Re: [PATCH 2/3] arm64/boot: Enable EL2 requirements for FEAT_Debugv8p9

From: kernel test robot
Date: Wed Oct 02 2024 - 19:27:05 EST


Hi Anshuman,

kernel test robot noticed the following build errors:

[auto build test ERROR on arm64/for-next/core]
[also build test ERROR on kvmarm/next soc/for-next arm/for-next arm/fixes linus/master v6.12-rc1 next-20241002]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Anshuman-Khandual/arm64-cpufeature-Add-field-details-for-ID_AA64DFR1_EL1-register/20241001-123752
base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core
patch link: https://lore.kernel.org/r/20241001043602.1116991-3-anshuman.khandual%40arm.com
patch subject: [PATCH 2/3] arm64/boot: Enable EL2 requirements for FEAT_Debugv8p9
config: arm64-randconfig-002-20241003 (https://download.01.org/0day-ci/archive/20241003/202410030702.9xBCVi6s-lkp@xxxxxxxxx/config)
compiler: clang version 15.0.7 (https://github.com/llvm/llvm-project 8dfdcc7b7bf66834a761bd8de445840ef68e4d1a)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241003/202410030702.9xBCVi6s-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/202410030702.9xBCVi6s-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> <instantiation>:3:10: error: expected compatible register, symbol or integer in range [0, 4095]
cmp x1, #ID_AA64MMFR0_EL1_FGT_FGT2
^
<instantiation>:12:2: note: while in macro instantiation
__init_el2_fgt2
^
arch/arm64/kernel/head.S:317:2: note: while in macro instantiation
init_el2_state
^
>> <instantiation>:1:5: error: expected absolute expression
.if (((HDFGWTR2_EL2_nMDSELR_EL1) >> 31) == 0 || ((HDFGWTR2_EL2_nMDSELR_EL1) >> 31) == 0x1ffffffff)
^
<instantiation>:11:2: note: while in macro instantiation
mov_q x0, HDFGWTR2_EL2_nMDSELR_EL1
^
<instantiation>:12:2: note: while in macro instantiation
__init_el2_fgt2
^
arch/arm64/kernel/head.S:317:2: note: while in macro instantiation
init_el2_state
^
<instantiation>:4:6: error: expected absolute expression
.if (((HDFGWTR2_EL2_nMDSELR_EL1) >> 47) == 0 || ((HDFGWTR2_EL2_nMDSELR_EL1) >> 47) == 0x1ffff)
^
<instantiation>:11:2: note: while in macro instantiation
mov_q x0, HDFGWTR2_EL2_nMDSELR_EL1
^
<instantiation>:12:2: note: while in macro instantiation
__init_el2_fgt2
^
arch/arm64/kernel/head.S:317:2: note: while in macro instantiation
init_el2_state
^
>> <instantiation>:1:6: error: expected constant expression
.inst(0xd5000000|(SYS_HDFGWTR2_EL2)|(.L__gpr_num_x0))
^
<instantiation>:12:2: note: while in macro instantiation
msr_s SYS_HDFGWTR2_EL2, x0
^
<instantiation>:12:2: note: while in macro instantiation
__init_el2_fgt2
^
arch/arm64/kernel/head.S:317:2: note: while in macro instantiation
init_el2_state
^
>> <instantiation>:1:6: error: expected constant expression
.inst(0xd5000000|(SYS_HDFGRTR2_EL2)|(.L__gpr_num_x0))
^
<instantiation>:13:2: note: while in macro instantiation
msr_s SYS_HDFGRTR2_EL2, x0
^
<instantiation>:12:2: note: while in macro instantiation
__init_el2_fgt2
^
arch/arm64/kernel/head.S:317:2: note: while in macro instantiation
init_el2_state
^

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki