* [mark:testing/v7.0-rc5 2/2] arch/arm64/kernel/process.c:704:31: error: expected readable system register
@ 2026-03-25 2:49 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-03-25 2:49 UTC (permalink / raw)
To: Mark Rutland; +Cc: llvm, oe-kbuild-all
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mark/linux.git testing/v7.0-rc5
head: 53a91f2f4a3dd7bb262b669780eea2fff13f4e37
commit: 53a91f2f4a3dd7bb262b669780eea2fff13f4e37 [2/2] HACK: arm64: Check CPU state at task-switch time
config: arm64-randconfig-001-20260325 (https://download.01.org/0day-ci/archive/20260325/202603251009.SO6yPDZX-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 054e11d1a17e5ba88bb1a8ef32fad3346e80b186)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260325/202603251009.SO6yPDZX-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603251009.SO6yPDZX-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/arm64/kernel/process.c:704:31: error: expected readable system register
704 | if (system_uses_hw_pan() && !read_sysreg(PAN))
| ^
arch/arm64/include/asm/sysreg.h:1164:15: note: expanded from macro 'read_sysreg'
1164 | asm volatile("mrs %0, " __stringify(r) : "=r" (__val)); \
| ^
<inline asm>:1:10: note: instantiated into assembly here
1 | mrs x8, PAN
| ^
1 error generated.
vim +704 arch/arm64/kernel/process.c
701
702 static inline void debug_switch_state(void)
703 {
> 704 if (system_uses_hw_pan() && !read_sysreg(PAN))
705 WARN_ONCE(1, "PSTATE.PAN clear unexpectedly at task-switch\n");
706
707 if (system_uses_irq_prio_masking()) {
708 unsigned long daif_expected = 0;
709 unsigned long daif_actual = read_sysreg(daif);
710 unsigned long pmr_expected = GIC_PRIO_IRQOFF;
711 unsigned long pmr_actual = read_sysreg_s(SYS_ICC_PMR_EL1);
712
713 WARN_ONCE(daif_actual != daif_expected ||
714 pmr_actual != pmr_expected,
715 "Unexpected DAIF + PMR: 0x%lx + 0x%lx (expected 0x%lx + 0x%lx)\n",
716 daif_actual, pmr_actual,
717 daif_expected, pmr_expected);
718 } else {
719 unsigned long daif_expected = DAIF_PROCCTX_NOIRQ;
720 unsigned long daif_actual = read_sysreg(daif);
721
722 WARN_ONCE(daif_actual != daif_expected,
723 "Unexpected DAIF value: 0x%lx (expected 0x%lx)\n",
724 daif_actual, daif_expected);
725 }
726 }
727
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-25 2:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-25 2:49 [mark:testing/v7.0-rc5 2/2] arch/arm64/kernel/process.c:704:31: error: expected readable system register kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox