Print the FDT error description along with the error message if failed
to set the "linux,drconf-usable-memory" property in the kdump kernel's
FDT.
Signed-off-by: Sourabh Jain <redacted>
---
arch/powerpc/kexec/file_load_64.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -687,7 +687,8 @@ static int update_usable_mem_fdt(void *fdt, struct crash_mem *usable_mem)ret=fdt_setprop(fdt,node,"linux,drconf-usable-memory",um_info.buf,(um_info.idx*sizeof(u64)));if(ret){-pr_err("Failed to update fdt with linux,drconf-usable-memory property");+pr_err("Failed to update fdt with linux,drconf-usable-memory property: %s",+fdt_strerror(ret));gotoout;}}
From: Hari Bathini <hbathini@linux.ibm.com> Date: 2022-12-19 08:47:24
On 16/12/22 5:57 pm, Sourabh Jain wrote:
Print the FDT error description along with the error message if failed
to set the "linux,drconf-usable-memory" property in the kdump kernel's
FDT.
Signed-off-by: Sourabh Jain <redacted>
LGTM
Acked-by: Hari Bathini <hbathini@linux.ibm.com>
@@ -687,7 +687,8 @@ static int update_usable_mem_fdt(void *fdt, struct crash_mem *usable_mem)ret=fdt_setprop(fdt,node,"linux,drconf-usable-memory",um_info.buf,(um_info.idx*sizeof(u64)));if(ret){-pr_err("Failed to update fdt with linux,drconf-usable-memory property");+pr_err("Failed to update fdt with linux,drconf-usable-memory property: %s",+fdt_strerror(ret));gotoout;}}
Print the FDT error description along with the error message if failed
to set the "linux,drconf-usable-memory" property in the kdump kernel's
FDT.
Signed-off-by: Sourabh Jain <redacted>
LGTM
Acked-by: Hari Bathini <hbathini@linux.ibm.com>
The only place on kexec/kdump path where we don't print
reason for FDT operation failure. This patch fix that.
Will this be a good candidate for next rc?
Thanks,
Sourabh
On 16/12/22 17:57, Sourabh Jain wrote:
quoted hunk
Print the FDT error description along with the error message if failed
to set the "linux,drconf-usable-memory" property in the kdump kernel's
FDT.
Signed-off-by: Sourabh Jain <redacted>
---
arch/powerpc/kexec/file_load_64.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -687,7 +687,8 @@ static int update_usable_mem_fdt(void *fdt, struct crash_mem *usable_mem)ret=fdt_setprop(fdt,node,"linux,drconf-usable-memory",um_info.buf,(um_info.idx*sizeof(u64)));if(ret){-pr_err("Failed to update fdt with linux,drconf-usable-memory property");+pr_err("Failed to update fdt with linux,drconf-usable-memory property: %s",+fdt_strerror(ret));gotoout;}}