[PATCH v1 1/3] powerpc: Fix eh field when calling lwarx on PPC32

Michael Ellerman patch-notifications at ellerman.id.au
Sun Aug 14 08:38:17 AEST 2022


On Tue, 2 Aug 2022 11:02:36 +0200, Christophe Leroy wrote:
> Commit 9401f4e46cf6 ("powerpc: Use lwarx/ldarx directly instead of
> PPC_LWARX/LDARX macros") properly handled the eh field of lwarx
> in asm/bitops.h but failed to clear it for PPC32 in
> asm/simple_spinlock.h
> 
> So, do as in arch_atomic_try_cmpxchg_lock(), set it to 1 if PPC64
> but set it to 0 if PPC32. For that use IS_ENABLED(CONFIG_PPC64) which
> returns 1 when CONFIG_PPC64 is set and 0 otherwise.
> 
> [...]

Applied to powerpc/fixes.

[1/3] powerpc: Fix eh field when calling lwarx on PPC32
      https://git.kernel.org/powerpc/c/18db466a9a306406dab3b134014d9f6ed642471c
[2/3] powerpc: Don't hide eh field of lwarx behind a macro
      https://git.kernel.org/powerpc/c/eb5a33ea31190c189ca4a59de4687b0877662c06
[3/3] powerpc: Make eh value more explicit when using lwarx
      https://git.kernel.org/powerpc/c/5cccf7a5215d12027e55e247907817631b413c28

cheers


More information about the Linuxppc-dev mailing list