freebsd-dev/sys/powerpc
Leandro Lupori 9b23e3845b [PowerPC] Move pmc_hook out of critical section
Calling pmc_hook inside a critical section may result in a panic.

This happens when the user callchain is fetched, because it uses
pmap_map_user_ptr, that tries to get the (sleepable) pmap lock when the
needed vsid is not found.

Judging by the implementation in other platforms, intr_irq_handler in
kern/subr_intr.c and what pmc_hook do, it seems safe to move pmc_hook
outside the critical section.

Sponsored by:	Eldorado Research Institute (eldorado.org.br)
Differential Revision:	https://reviews.freebsd.org/D26111
2020-09-01 11:30:39 +00:00
..
aim [PowerPC] Fix translation-related crashes during startup 2020-08-21 03:31:01 +00:00
amigaone powerpc/amigaone: Add CPLD driver for AmigaOne A1222 "Tabor" 2020-04-03 20:45:16 +00:00
booke Revert r240317 to prevent leaking pmap entries 2020-07-16 23:29:26 +00:00
conf Include TMPFS in all the GENERIC kernel configs 2020-07-24 08:40:04 +00:00
cpufreq powerpc: Fix cpufreq statement scoping 2019-03-08 03:59:53 +00:00
fpu Mark more nodes as CTLFLAG_MPSAFE or CTLFLAG_NEEDGIANT (17 of many) 2020-02-26 14:26:36 +00:00
include [PowerPC] Fix booke64 qemu infinite loop in L2 cache enable 2020-06-19 18:40:39 +00:00
mambo sys/powerpc: further adoption of SPDX licensing ID tags. 2017-11-27 15:09:59 +00:00
mikrotik
mpc85xx powerpc/mpc85xx: Don't use the quantum cache in vmem for MPIC MSIs 2020-06-10 04:04:59 +00:00
ofw [PowerPC] kernel ifunc support for powerpc*, fix ppc64 relocation oddities. 2020-05-07 19:32:49 +00:00
powermac Revert 2020-03-06 23:01:49 +00:00
powernv [PowerPC64] Fix invalid OPAL call in xive_bind(). 2020-08-21 03:23:10 +00:00
powerpc [PowerPC] Move pmc_hook out of critical section 2020-09-01 11:30:39 +00:00
ps3 powerpc/mmu: Convert PowerPC pmap drivers to ifunc from kobj 2020-05-27 01:24:12 +00:00
pseries powerpc/mmu: Convert PowerPC pmap drivers to ifunc from kobj 2020-05-27 01:24:12 +00:00
psim Remove more needless <sys/tty.h> includes 2019-12-01 20:43:37 +00:00