powerpc/kexec_file: print error string on usable memory property update failure
PATCH 1/1 powerpc/kexec_file: print error string on usable memory property update failure
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.
--- arch/powerpc/kexec/file_load_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/powerpc/kexec/file_load_64.c +2 -1
@@ -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)); goto out; } }
Signature · 1 line
2.38.1
Quoted 5 lines · Sourabh Jain
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 <[email protected]>
LGTM
Quoted 18 lines
--- arch/powerpc/kexec/file_load_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/powerpc/kexec/file_load_64.c +2
-1@@ -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)); goto out; } }
Quoted 7 lines · Hari Bathini
Quoted 4 lines · Sourabh Jain
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.
Quoted 5 lines
Quoted 1 line
Signed-off-by Sourabh Jain <[email protected]>LGTM
Acked-by Hari Bathini <[email protected]>
Thanks!
- Sourabh Jain
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
Quoted 23 lines · Sourabh Jain
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 <[email protected]>--- arch/powerpc/kexec/file_load_64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)arch/powerpc/kexec/file_load_64.c +2
-1@@ -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)); goto out; } }
Michael Ellerman
AppliedQuoted 5 lines · Sourabh Jain
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.
Applied to powerpc/next.
[1/1] powerpc/kexec_file: print error string on usable memory property update failure
https://git.kernel.org/powerpc/c/b0ae5b6f3c298a005b73556740526c0e24a5633c
cheers