Message ID | 20231114-pseries-memhp-fixes-v1-1-fb8f2bb7c557@linux.ibm.com (mailing list archive) |
---|---|
State | Accepted |
Commit | bd68ffce69f6cf8ddd3a3c32549d1d2275e49fc5 |
Headers | show |
Series | powerpc/pseries/memhp: Fix minor bugs and improve error logging | expand |
diff --git a/arch/powerpc/platforms/pseries/hotplug-memory.c b/arch/powerpc/platforms/pseries/hotplug-memory.c index a43bfb01720a..6f2eebae7bee 100644 --- a/arch/powerpc/platforms/pseries/hotplug-memory.c +++ b/arch/powerpc/platforms/pseries/hotplug-memory.c @@ -436,14 +436,15 @@ static int dlpar_memory_remove_by_index(u32 drc_index) } } - if (!lmb_found) + if (!lmb_found) { + pr_debug("Failed to look up LMB for drc index %x\n", drc_index); rc = -EINVAL; - - if (rc) + } else if (rc) { pr_debug("Failed to hot-remove memory at %llx\n", lmb->base_addr); - else + } else { pr_debug("Memory at %llx was hot-removed\n", lmb->base_addr); + } return rc; }