arm64: Fix calculation of page_offset in case we are running cases other than mem-usage
Subsystems (2)
PATCH 1/1 arm64: Fix calculation of page_offset in case we are running cases other than mem-usage
Patch f49ca13e5eed5bbdc69e0fd5ef099cb46050cb3d added '--mem-usage' support for arm64 architecture.
However, we also need to make sure that the calculation of 'page_offset' is valid in case we are running cases other than '--mem-usage'.
This patch does the same. I tested this patch on my qualcomm and apm mustang arm64 boards.
--- arch/arm64.c | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm64.c +6 -0
@@ -222,6 +222,12 @@ get_stext_symbol(void)int get_machdep_info_arm64 (void ) { +/* Check if va_bits is still not initialized. If still 0, call +* get_versiondep_info() to initialize the same. +*/ +if (!va_bits) +get_versiondep_info_arm64 (); +if (!calculate_plat_config ()) {ERRMSG ("Can't determine platform config values\n" );return FALSE;
Signature · 7 lines
2.7.4 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Hello Kazu-san,
Quoted 33 lines · Bhupesh Sharma
Patch
f49ca13e5eed5bbdc69e0fd5ef099cb46050cb3dadded '--mem-usage' support for arm64 architecture.However, we also need to make sure that the calculation of '
page_offset' is valid in case we are running cases other than '--mem-usage'.This patch does the same. I tested this patch on my qualcomm and apm mustang arm64 boards.
Signed-off-by Bhupesh Sharma <[email protected]>--- arch/arm64.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/arm64.c +6
-1@@ -222,6 +222,12 @@ get_stext_symbol(void)int get_machdep_info_arm64 (void ) { +/* Check if va_bits is still not initialized. If still 0, call +* get_versiondep_info() to initialize the same. +*/ +if (!va_bits) +get_versiondep_info_arm64 (); +if (!calculate_plat_config ()) {ERRMSG ("Can't determine platform config values\n" );return FALSE; --
Quoted 2 lines
2.7.4
This is an important fix for arm64 makedumpfile as it fixes issues reported with Fedora when we use makedumpfile for cases other than '--mem-usage'.
So kindly consider this one for the next makedumpfile release.
Regards,
Bhupesh
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 43 lines · Bhupesh Sharma
Hello Kazu-san,
Quoted 33 lines · Bhupesh Sharma
Patch
f49ca13e5eed5bbdc69e0fd5ef099cb46050cb3dadded '--mem-usage' support for arm64 architecture.However, we also need to make sure that the calculation of '
page_offset' is valid in case we are running cases other than '--mem-usage'.This patch does the same. I tested this patch on my qualcomm and apm mustang arm64 boards.
Signed-off-by Bhupesh Sharma <[email protected]>--- arch/arm64.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/arm64.c +6
-1@@ -222,6 +222,12 @@ get_stext_symbol(void)int get_machdep_info_arm64 (void ) { +/* Check if va_bits is still not initialized. If still 0, call +* get_versiondep_info() to initialize the same. +*/ +if (!va_bits) +get_versiondep_info_arm64 (); +if (!calculate_plat_config ()) {ERRMSG ("Can't determine platform config values\n" );return FALSE; --Quoted 2 lines
2.7.4
This is an important fix for arm64 makedumpfile as it fixes issues reported with Fedora when we use makedumpfile for cases other than '--mem-usage'.
Quoted 1 line
So kindly consider this one for the next makedumpfile release.
Hi Bhupesh,
I understood its importance and I think that this problem should be fixed before the v1.6.4 release. Thanks for letting me know it.
I've reviewed the patch and the process flow of arm64 architecture around it. It looks good to me, and applied.
Thanks,
Kazu
Quoted 9 lines
Regards,
Bhupesh_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 46 lines · Kazuhito Hagio
Quoted 43 lines · Bhupesh Sharma
Hello Kazu-san,
Quoted 33 lines · Bhupesh Sharma
Patch
f49ca13e5eed5bbdc69e0fd5ef099cb46050cb3dadded '--mem-usage' support for arm64 architecture.However, we also need to make sure that the calculation of '
page_offset' is valid in case we are running cases other than '--mem-usage'.This patch does the same. I tested this patch on my qualcomm and apm mustang arm64 boards.
Signed-off-by Bhupesh Sharma <[email protected]>--- arch/arm64.c | 6 ++++++ 1 file changed, 6 insertions(+)arch/arm64.c +6
-1@@ -222,6 +222,12 @@ get_stext_symbol(void)int get_machdep_info_arm64 (void ) { +/* Check if va_bits is still not initialized. If still 0, call +* get_versiondep_info() to initialize the same. +*/ +if (!va_bits) +get_versiondep_info_arm64 (); +if (!calculate_plat_config ()) {ERRMSG ("Can't determine platform config values\n" );return FALSE; --Quoted 2 lines
2.7.4
This is an important fix for arm64 makedumpfile as it fixes issues reported with Fedora when we use makedumpfile for cases other than '--mem-usage'.
Quoted 1 line
So kindly consider this one for the next makedumpfile release.
Quoted 7 lines
Hi Bhupesh,
I understood its importance and I think that this problem should be fixed before the v1.6.4 release. Thanks for letting me know it.
I've reviewed the patch and the process flow of arm64 architecture around it. It looks good to me, and applied.
Great. Thanks a lot for your help.
Regards,
Bhupesh
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec