mirror-linux/arch/parisc/kernel
Guilherme G. Piccoli c9888aaed1 parisc: Replace regular spinlock with spin_trylock on panic path
[ Upstream commit 829632dae8 ]

The panic notifiers' callbacks execute in an atomic context, with
interrupts/preemption disabled, and all CPUs not running the panic
function are off, so it's very dangerous to wait on a regular
spinlock, there's a risk of deadlock.

Refactor the panic notifier of parisc/power driver to make use
of spin_trylock - for that, we've added a second version of the
soft-power function. Also, some comments were reorganized and
trailing white spaces, useless header inclusion and blank lines
were removed.

Cc: "James E.J. Bottomley" <James.Bottomley@HansenPartnership.com>
Cc: Jeroen Roovers <jer@xs4all.nl>
Acked-by: Helge Deller <deller@gmx.de> # parisc
Signed-off-by: Guilherme G. Piccoli <gpiccoli@igalia.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-05-24 17:32:42 +01:00
..
syscalls parisc: Align parisc MADV_XXX constants with all other architectures 2023-01-14 10:33:40 +01:00
vdso32 parisc: Add missing FORCE prerequisites in Makefile 2023-01-07 11:11:56 +01:00
vdso64 parisc: Add missing FORCE prerequisites in Makefile 2023-01-07 11:11:56 +01:00
.gitignore
Makefile kbuild: use obj-y instead extra-y for objects placed at the head 2022-10-02 18:04:05 +09:00
alternative.c parisc: Reduce kernel size by packing alternative tables 2022-10-11 12:01:24 +02:00
asm-offsets.c parisc: Fix vDSO signal breakage on 32-bit kernel 2022-07-02 18:36:58 +02:00
audit.c audit: add support for the openat2 syscall 2021-10-01 16:52:48 -04:00
cache.c parisc: remove mmap linked list from cache handling 2022-09-26 19:46:19 -07:00
compat_audit.c audit: add support for the openat2 syscall 2021-10-01 16:52:48 -04:00
drivers.c parisc: Avoid printing the hardware path twice 2022-10-31 15:37:14 +01:00
entry.S parisc: Fix userspace graphics card breakage due to pgtable special bit 2022-10-14 10:45:12 +02:00
firmware.c parisc: Replace regular spinlock with spin_trylock on panic path 2023-05-24 17:32:42 +01:00
ftrace.c Tracing updates for 5.16: 2021-11-01 20:05:19 -07:00
hardware.c parisc: Clean up names in hardware database 2022-08-01 18:43:23 +02:00
head.S parisc: Add runtime check to prevent PA2.0 kernels on PA1.x machines 2022-08-22 11:09:17 +02:00
hpmc.S parisc: Re-use toc_stack as hpmc_stack 2022-01-11 11:57:37 +01:00
inventory.c
irq.c asm-generic: Conditionally enable do_softirq_own_stack() via Kconfig. 2022-09-05 17:20:55 +02:00
jump_label.c jump_label: make initial NOP patching the special case 2022-06-24 09:48:55 +02:00
kexec.c
kexec_file.c
kgdb.c parisc: Drop duplicate kgdb_pdc console 2023-01-07 11:11:56 +01:00
kprobes.c parisc: Fix typos in comments 2022-05-08 20:01:12 +02:00
module.c
pa7300lc.c
pacache.S parisc: Ensure page alignment in flush functions 2023-05-11 23:03:38 +09:00
parisc_ksyms.c parisc: Drop strnlen_user() in favour of generic version 2021-09-09 12:44:30 +02:00
patch.c parisc: Fix patch code locking and flushing 2022-05-17 21:52:59 +02:00
pci-dma.c parisc: Do not initialise statics to 0 2022-08-01 18:43:23 +02:00
pci.c
pdc_chassis.c kernel.h: split out panic and oops helpers 2021-07-01 11:06:04 -07:00
pdc_cons.c parisc: Drop locking in pdc console code 2023-01-07 11:11:56 +01:00
pdt.c parisc: Make use of the helper macro kthread_run() 2021-11-01 07:36:01 +01:00
perf.c
perf_asm.S
perf_images.h
process.c Random number generator fixes for Linux 6.1-rc1. 2022-10-16 15:27:07 -07:00
processor.c parisc: fix a crash with multicore scheduler 2022-06-03 09:54:01 +02:00
ptrace.c parisc: Wire up PTRACE_GETREGS/PTRACE_SETREGS for compat case 2023-02-09 11:28:20 +01:00
real2.S parisc: Fix argument pointer in real64_call_asm() 2023-05-11 23:03:38 +09:00
relocate_kernel.S
setup.c parisc: Convert PDC console to an early console 2022-10-11 12:01:24 +02:00
signal.c ptrace: Cleanups for v5.18 2022-03-28 17:29:53 -07:00
signal32.c
signal32.h parisc: Add vDSO support 2022-03-11 19:49:30 +01:00
smp.c profile: setup_profiling_timer() is moslty not implemented 2022-07-29 18:12:36 -07:00
stacktrace.c parisc: Fix implicit declaration of function '__kernel_text_address' 2021-11-13 22:10:56 +01:00
sys_parisc.c parisc: Align parisc MADV_XXX constants with all other architectures 2023-01-14 10:33:40 +01:00
sys_parisc32.c
syscall.S parisc: Add lws_atomic_xchg and lws_atomic_store syscalls 2022-01-07 01:29:21 +01:00
time.c parisc: Mark cr16 clock unstable on all SMP machines 2022-05-08 20:01:12 +02:00
toc.c parisc: Fix missing prototype for 'toc_intr' warning in toc.c 2022-01-20 20:39:19 +01:00
toc_asm.S parisc: Enable TOC (transfer of contents) feature unconditionally 2022-01-11 11:57:37 +01:00
topology.c parisc: fix a crash with multicore scheduler 2022-06-03 09:54:01 +02:00
traps.c parisc: Convert PDC console to an early console 2022-10-11 12:01:24 +02:00
unaligned.c parisc: Fix exception handler for fldw and fstw instructions 2022-08-21 08:43:09 +02:00
unwind.c parisc: Move thread_info into task struct 2021-11-01 07:35:59 +01:00
vdso.c treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
vmlinux.lds.S Revert "parisc: Fix backtrace to always include init funtion names" 2021-11-22 07:37:31 +01:00