android_kernel_motorola_sm6375/arch/xtensa
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Max Filippov d1e2ec2e0b xtensa: add missing exclusive access state management
commit a0fc1436f1f4f84e93144480bf30e0c958d135b6 upstream.

The result of the s32ex opcode is recorded in the ATOMCTL special
register and must be retrieved with the getex opcode. Context switch
between s32ex and getex may trash the ATOMCTL register and result in
duplicate update or missing update of the atomic variable.
Add atomctl8 field to the struct thread_info and use getex to swap
ATOMCTL bit 8 as a part of context switch.
Clear exclusive access monitor on kernel entry.

Cc: [email protected]
Fixes: f7c34874f0 ("xtensa: add exclusive atomics support")
Signed-off-by: Max Filippov <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2020-08-21 13:05:24 +02:00
..
boot xtensa: virt: fix PCI IO ports mapping 2019-10-15 14:29:53 -07:00
configs xtensa: virt: add defconfig and DTS 2019-07-08 14:32:06 -07:00
include xtensa: add missing exclusive access state management 2020-08-21 13:05:24 +02:00
kernel xtensa: add missing exclusive access state management 2020-08-21 13:05:24 +02:00
lib xtensa: abstract 'entry' and 'retw' in assembly code 2019-07-08 10:04:48 -07:00
mm xtensa: fix TLB sanity checker 2019-12-21 11:04:34 +01:00
oprofile
platforms treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
variants
Kconfig xtensa: Implement copy_thread_tls 2020-01-14 20:08:35 +01:00
Kconfig.debug
Makefile