android_kernel_motorola_sm6375/arch/parisc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
John David Anglin f0ea421fa2 parisc: Restore __ldcw_align for PA-RISC 2.0 processors
commit 914988e099fc658436fbd7b8f240160c352b6552 upstream.

Back in 2005, Kyle McMartin removed the 16-byte alignment for
ldcw semaphores on PA 2.0 machines (CONFIG_PA20). This broke
spinlocks on pre PA8800 processors. The main symptom was random
faults in mmap'd memory (e.g., gcc compilations, etc).

Unfortunately, the errata for this ldcw change is lost.

The issue is the 16-byte alignment required for ldcw semaphore
instructions can only be reduced to natural alignment when the
ldcw operation can be handled coherently in cache. Only PA8800
and PA8900 processors actually support doing the operation in
cache.

Aligning the spinlock dynamically adds two integer instructions
to each spinlock.

Tested on rp3440, c8000 and a500.

Signed-off-by: John David Anglin <[email protected]>
Link: https://lore.kernel.org/linux-parisc/[email protected]/T/#t
Link: https://lore.kernel.org/linux-parisc/[email protected]/
Cc: [email protected]
Signed-off-by: Helge Deller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2023-10-10 21:46:45 +02:00
..
boot
configs
include parisc: Restore __ldcw_align for PA-RISC 2.0 processors 2023-10-10 21:46:45 +02:00
kernel parisc: irq: Make irq_stack_union static to avoid sparse warning 2023-10-10 21:46:39 +02:00
lib
math-emu
mm
oprofile
defpalo.conf
install.sh
Kconfig parisc: Enable ARCH_HAS_STRICT_MODULE_RWX 2022-06-29 08:58:48 +02:00
Kconfig.debug
Makefile
nm