freebsd-dev/sys/powerpc/powernv
Brandon Bergren 9367fb301c [PowerPC] Fix panic when attempting to handle an HMI from an idle thread
In IRC, sfs_ finally managed to get a good trace of a kernel panic that was
happening when attempting to use webengine.

As it turns out, we were using vtophys() from interrupt context on an idle
thread in opal_hmi_handler2().

Since this involves locking the kernel pmap on PPC64 at the moment, this
ended up tripping a KASSERT in mtx_lock(), which then caused a parallel
panic stampede.

So, avoid this by preallocating the flags variable and storing it in PCPU.

Fixes "panic: mtx_lock() by idle thread 0x... on sleep mutex kernelpmap".

Differential Revision:	https://reviews.freebsd.org/D22962
2019-12-30 02:56:47 +00:00
..
opal_async.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
opal_console.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
opal_dbg.c [PPC64] Enable opal console use as a GDB DBGPORT 2019-12-09 13:09:32 +00:00
opal_dev.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
opal_flash.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
opal_hmi.c [PowerPC] Fix panic when attempting to handle an HMI from an idle thread 2019-12-30 02:56:47 +00:00
opal_i2c.c powerpc/powernv: Add asynchronous token management for powernv 2019-03-01 02:49:47 +00:00
opal_i2cm.c Reverting r330925 for now 2018-03-15 06:19:45 +00:00
opal_nvram.c powerpc64/powernv: Add opal NVRAM driver for PowerNV systems 2019-09-14 03:30:34 +00:00
opal_pci.c powerpc64/powernv: Use OPAL call for non-POWER8 PCI TCE reset 2019-11-10 04:24:36 +00:00
opal_sensor.c powerpc/powernv: Reduce the scope of the sensor guarding mutex 2019-06-10 03:16:55 +00:00
opal.c
opal.h powerpc/powernv: Set the PTCR for the Nest MMU 2019-12-15 21:20:18 +00:00
opalcall.S powerpc64: Use medium code model in asm files for TOC references 2019-03-29 02:38:30 +00:00
platform_powernv.c powerpc/powernv: Set the PTCR for the Nest MMU 2019-12-15 21:20:18 +00:00
powernv_centaur.c Reverting r330925 for now 2018-03-15 06:19:45 +00:00
powernv_xscom.c Reverting r330925 for now 2018-03-15 06:19:45 +00:00
xive.c Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00