arch/xtensa/boot/boot-elf/bootstrap.S:58: Error: invalid register 'atomctl' for 'wsr' instruction
From: kernel test robot
Date: Sat Nov 08 2025 - 11:54:32 EST
Hi Arnd,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e811c33b1f137be26a20444b79db8cbc1fca1c89
commit: 8d46603eeeb4c6abff1d2e49f2a6ae289dac765e media: cxd2841er: fix 64-bit division on gcc-9
date: 11 months ago
config: xtensa-randconfig-r131-20251108 (https://download.01.org/0day-ci/archive/20251109/202511090027.GvyB7VDx-lkp@xxxxxxxxx/config)
compiler: xtensa-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251109/202511090027.GvyB7VDx-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202511090027.GvyB7VDx-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
arch/xtensa/boot/boot-elf/bootstrap.S: Assembler messages:
>> arch/xtensa/boot/boot-elf/bootstrap.S:58: Error: invalid register 'atomctl' for 'wsr' instruction
arch/xtensa/boot/boot-elf/bootstrap.S:68: Warning: value 0x1a0003000 truncated to 0xa0003000
vim +58 arch/xtensa/boot/boot-elf/bootstrap.S
e85e335f8ff615f Max Filippov 2012-12-03 42
e85e335f8ff615f Max Filippov 2012-12-03 43 .align 4
e85e335f8ff615f Max Filippov 2012-12-03 44 _SetupMMU:
09af39f649dac66 Max Filippov 2021-07-26 45 #if XCHAL_HAVE_WINDOWED
e85e335f8ff615f Max Filippov 2012-12-03 46 movi a0, 0
e85e335f8ff615f Max Filippov 2012-12-03 47 wsr a0, windowbase
e85e335f8ff615f Max Filippov 2012-12-03 48 rsync
e85e335f8ff615f Max Filippov 2012-12-03 49 movi a0, 1
e85e335f8ff615f Max Filippov 2012-12-03 50 wsr a0, windowstart
e85e335f8ff615f Max Filippov 2012-12-03 51 rsync
09af39f649dac66 Max Filippov 2021-07-26 52 #endif
e85e335f8ff615f Max Filippov 2012-12-03 53 movi a0, 0x1F
e85e335f8ff615f Max Filippov 2012-12-03 54 wsr a0, ps
e85e335f8ff615f Max Filippov 2012-12-03 55 rsync
e85e335f8ff615f Max Filippov 2012-12-03 56
e85e335f8ff615f Max Filippov 2012-12-03 57 #ifndef CONFIG_INITIALIZE_XTENSA_MMU_INSIDE_VMLINUX
e85e335f8ff615f Max Filippov 2012-12-03 @58 initialize_mmu
:::::: The code at line 58 was first introduced by commit
:::::: e85e335f8ff615f74e29e09cc2599f095600114b xtensa: add MMU v3 support
:::::: TO: Max Filippov <jcmvbkbc@xxxxxxxxx>
:::::: CC: Chris Zankel <chris@xxxxxxxxxx>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki