[Pdbg] [PATCH 05/10] mem: Dump ffdc data if memory operations fail
Amitay Isaacs
amitay at ozlabs.org
Wed Jul 3 13:46:14 AEST 2019
Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
src/mem.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/mem.c b/src/mem.c
index 0b8ad7e..b3e6b4f 100644
--- a/src/mem.c
+++ b/src/mem.c
@@ -105,6 +105,9 @@ static int _getmem(uint64_t addr, uint64_t size, uint8_t block_size, bool ci, bo
progress_end();
if (rc) {
PR_ERROR("Unable to read memory using sbefifo\n");
+ if (rc == 1)
+ sbe_ffdc_dump(target);
+
continue;
}
@@ -198,6 +201,9 @@ static int _putmem(uint64_t addr, uint8_t block_size, bool ci)
progress_end();
if (rc) {
printf("Unable to write memory using sbefifo\n");
+ if (rc == 1)
+ sbe_ffdc_dump(target);
+
continue;
}
--
2.21.0
More information about the Pdbg
mailing list