All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Mark Rutland <mark.rutland@arm.com>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [mark:testing/v7.0-rc5 2/2] arch/arm64/kernel/process.c:704:31: error: expected readable system register
Date: Wed, 25 Mar 2026 10:49:50 +0800	[thread overview]
Message-ID: <202603251009.SO6yPDZX-lkp@intel.com> (raw)

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

                 reply	other threads:[~2026-03-25  2:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202603251009.SO6yPDZX-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=llvm@lists.linux.dev \
    --cc=mark.rutland@arm.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.