[PATCH v2 17/39] arm64/efi: Implement override for IRQ flags checks

Vladimir Murzin vladimir.murzin at arm.com
Wed Nov 25 06:53:27 PST 2026


On 11/13/26 13:22, Mark Brown wrote:
> On Thu, Nov 12, 2026 at 01:20:20PM +0000, Vladimir Murzin wrote:
> 
>> +#define arch_efi_check_flags(state_flags, caller)									\
>> +do {															\
>> +	arm64_exc_hwstate_t __actual = {.flags =  arch_local_save_flags() };						\
>> +	arm64_exc_hwstate_t __expected = {.flags=state_flags};								\
> The generic version has an:
> 
>         if (!WARN_ON_ONCE(mismatch & ARCH_EFI_IRQ_FLAGS_MASK))
>                 break;
> 
> which will generate a backtrace the first time things go wrong, this
> doesn't.
> 

Good point! Sashiko also suggested restoring flags before continue with
prints (which also applies to generic version).

Cheers
Vladimir



More information about the linux-arm-kernel mailing list