Re: [PATCH] arm64: Disable EL2 traps for BRBE instructions executed in EL1

From: Anshuman Khandual
Date: Mon Mar 27 2023 - 02:08:49 EST




On 3/25/23 06:07, kernel test robot wrote:
> All errors (new ones prefixed by >>):
>
>>> <instantiation>:36:14: error: expected compatible register or logical immediate
> orr x0, x0, #HFGITR_EL2_nBRBIALL
> ^
> <instantiation>:10:2: note: while in macro instantiation
> __init_el2_fgt
> ^
> arch/arm64/kernel/head.S:577:2: note: while in macro instantiation
> init_el2_state
> ^
> <instantiation>:37:14: error: expected compatible register or logical immediate
> orr x0, x0, #HFGITR_EL2_nBRBINJ
> ^
> <instantiation>:10:2: note: while in macro instantiation
> __init_el2_fgt
> ^
> arch/arm64/kernel/head.S:577:2: note: while in macro instantiation
> init_el2_state
> ^

I guess these build errors are caused by unavailability of the pre-requisite
patches from Mark Brown, in this test environment ?

https://lore.kernel.org/all/20230306-arm64-fgt-reg-gen-v3-0-decba93cbaab@xxxxxxxxxx/