Files
linux/arch/powerpc/include/asm
Christophe Leroy 5bafa7df79 powerpc: Fix eh field when calling lwarx on PPC32
commit 18db466a9a upstream.

Commit 9401f4e46c ("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.

Fixes: 9401f4e46c ("powerpc: Use lwarx/ldarx directly instead of PPC_LWARX/LDARX macros")
Cc: stable@vger.kernel.org # v5.15+
Reported-by: Pali Rohár <pali@kernel.org>
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Tested-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Segher Boessenkool <segher@kernel.crashing.org>
[mpe: Use symbolic names, use 'n' constraint per Segher]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/a1176e19e627dd6a1b8d24c6c457a8ab874b7d12.1659430931.git.christophe.leroy@csgroup.eu
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-08-17 14:24:29 +02:00
..
2021-09-08 15:32:35 -07:00
2021-04-08 21:17:42 +10:00
2021-08-10 23:14:55 +10:00
2020-10-07 22:34:47 +11:00
2020-12-05 21:49:52 +11:00
2021-03-24 14:09:29 +11:00
2021-03-24 14:09:30 +11:00
2021-07-01 11:06:03 -07:00
2021-02-09 01:09:44 +11:00
2021-09-03 22:54:12 +10:00
2018-05-25 12:04:43 +10:00
2021-08-10 23:14:55 +10:00
2021-06-25 00:07:10 +10:00
2020-07-27 00:01:32 +10:00
2021-07-08 11:48:23 -07:00
2018-07-30 22:48:21 +10:00
2019-05-01 16:45:05 +10:00
2021-08-23 19:28:20 +10:00
2020-12-04 01:01:19 +11:00
2021-02-09 00:10:50 +11:00