[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20230220135844.73e9dcae@canb.auug.org.au>
Date: Mon, 20 Feb 2023 13:58:44 +1100
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Ard Biesheuvel <ardb@...nel.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Linux Next Mailing List <linux-next@...r.kernel.org>,
Pierre Gondois <pierre.gondois@....com>
Subject: linux-next: manual merge of the efi tree with Linus' tree
Hi all,
Today's linux-next merge of the efi tree got a conflict in:
arch/arm64/include/asm/efi.h
between commit:
8a9a1a18731e ("arm64: efi: Avoid workqueue to check whether EFI runtime is live")
from Linus' tree and commit:
0e68b5517d37 ("arm64: efi: Make efi_rt_lock a raw_spinlock")
from the efi tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc arch/arm64/include/asm/efi.h
index acaa39f6381a,1b81dd5554cb..000000000000
--- a/arch/arm64/include/asm/efi.h
+++ b/arch/arm64/include/asm/efi.h
@@@ -47,18 -48,9 +48,18 @@@ int efi_set_mapping_permissions(struct
efi_virtmap_unload(); \
})
- extern spinlock_t efi_rt_lock;
+ extern raw_spinlock_t efi_rt_lock;
+extern u64 *efi_rt_stack_top;
efi_status_t __efi_rt_asm_wrapper(void *, const char *, ...);
+/*
+ * efi_rt_stack_top[-1] contains the value the stack pointer had before
+ * switching to the EFI runtime stack.
+ */
+#define current_in_efi() \
+ (!preemptible() && efi_rt_stack_top != NULL && \
+ on_task_stack(current, READ_ONCE(efi_rt_stack_top[-1]), 1))
+
#define ARCH_EFI_IRQ_FLAGS_MASK (PSR_D_BIT | PSR_A_BIT | PSR_I_BIT | PSR_F_BIT)
/*
Content of type "application/pgp-signature" skipped
Powered by blists - more mailing lists