microblaze: Fix MB_MANAGER build with older binutils
Subsystems (2)
PATCH 1/1 microblaze: Fix MB_MANAGER build with older binutils
Commit 88707ebe77e2 ("microblaze: Add custom break vector handler for mb manager") added the suspend mnemonic to the MB Manager break handler.
GNU as only learned this mnemonic in binutils 2.42. Linux supports binutils 2.30, where enabling CONFIG_MB_MANAGER fails:
arch/microblaze/kernel/entry.S:946: Error: unknown opcode "suspend"
The suspend mnemonic is an alias for mbar 24, and both encode as 0xbb020004. Use the underlying instruction, which GNU as 2.30 already supports.
--- arch/microblaze/kernel/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/microblaze/kernel/entry.S +1 -1
@@ -943,7 +943,7 @@ ret_from_break: mbar 1 mbar 2 bri 4 - suspend + mbar 24 /* suspend */ nop #endif
Signature · 1 line
2.53.0
Quoted 11 lines · Karl Mehltretter
The suspend mnemonic is an alias for mbar 24, and both encode as
0xbb020004. Use the underlying instruction, which GNU as 2.30 already supports.Fixes 88707ebe77e2 ("microblaze: Add custom break vector handler for mb manager")Reported-by kernel test robot <[email protected]>Suggested-by Michal Simek <[email protected]>Assisted-by Codex:gpt-5.6-solSigned-off-by Karl Mehltretter <[email protected]>
Just a friendly ping in case this got missed.
Thanks,
Karl
Michal Simek
maintainerQuoted 13 lines · Karl Mehltretter
Quoted 11 lines · Karl Mehltretter
The suspend mnemonic is an alias for mbar 24, and both encode as
0xbb020004. Use the underlying instruction, which GNU as 2.30 already supports.Fixes 88707ebe77e2 ("microblaze: Add custom break vector handler for mb manager")Reported-by kernel test robot <[email protected]>Suggested-by Michal Simek <[email protected]>Assisted-by Codex:gpt-5.6-solSigned-off-by Karl Mehltretter <[email protected]>
Quoted 1 line
Just a friendly ping in case this got missed.
will look at it after rc1.
M
Signature · 6 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP/Versal ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal/Versal NET SoCs TF-A maintainer - Xilinx ZynqMP/Versal/Versal NET SoCs
Quoted 28 lines · Karl Mehltretter
Commit
88707ebe77e2("microblaze: Add custom break vector handler for mb manager") added the suspend mnemonic to the MB Manager break handler.GNU as only learned this mnemonic in binutils 2.42. Linux supports binutils 2.30, where enabling
CONFIG_MB_MANAGERfails:
arch/microblaze/kernel/entry.S:946: Error: unknown opcode "suspend"The suspend mnemonic is an alias for mbar 24, and both encode as
0xbb020004. Use the underlying instruction, which GNU as 2.30 already supports.Fixes 88707ebe77e2 ("microblaze: Add custom break vector handler for mb manager")Reported-by kernel test robot <[email protected]>Suggested-by Michal Simek <[email protected]>Assisted-by Codex:gpt-5.6-solSigned-off-by Karl Mehltretter <[email protected]>--- arch/microblaze/kernel/entry.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/microblaze/kernel/entry.S +0
-0
arch/microblaze/kernel/entry.S ret_from_break: · line 949
Quoted 8 lines
arch/microblaze/kernel/entry.S +1
-1@@ -943,7 +943,7 @@ ret_from_break: mbar 1 mbar 2 bri 4 - suspend + mbar 24 /* suspend */ nop #endif
Applied.
M
Signature · 6 lines
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91 w: www.monstr.eu p: +42-0-721842854 Maintainer of Linux kernel - Xilinx Microblaze Maintainer of Linux kernel - Xilinx Zynq ARM and ZynqMP/Versal ARM64 SoCs U-Boot custodian - Xilinx Microblaze/Zynq/ZynqMP/Versal/Versal NET SoCs TF-A maintainer - Xilinx ZynqMP/Versal/Versal NET SoCs