linux/arch/powerpc/platforms
Alexey Kardashevskiy ab7032e793 powerpc/ioda/npu: Call skiboot's hot reset hook when disabling NPU2
The skiboot firmware has a hot reset handler which fences the NVIDIA V100
GPU RAM on Witherspoons and makes accesses no-op instead of throwing HMIs:
https://github.com/open-power/skiboot/commit/fca2b2b839a67

Now we are going to pass V100 via VFIO which most certainly involves
KVM guests which are often terminated without getting a chance to offline
GPU RAM so we end up with a running machine with misconfigured memory.
Accessing this memory produces hardware management interrupts (HMI)
which bring the host down.

To suppress HMIs, this wires up this hot reset hook to vfio_pci_disable()
via pci_disable_device() which switches NPU2 to a safe mode and prevents
HMIs.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Alistair Popple <alistair@popple.id.au>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-12-21 16:20:46 +11:00
..
4xx powerpc/4xx: Delete an unnecessary return statement in two functions 2018-12-21 11:32:49 +11:00
8xx powerpc updates for 4.20 2018-10-26 14:36:21 -07:00
40x powerpc: PCI_MSI needs PCI 2018-11-02 00:15:25 +09:00
44x powerpc/dma: split the two __dma_alloc_coherent implementations 2018-12-20 22:21:20 +11:00
52xx powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
82xx powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
83xx powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
85xx powerpc: use mm zones more sensibly 2018-12-20 22:21:20 +11:00
86xx powerpc/smp: Use code patching to restore reset vector 2018-12-19 18:56:32 +11:00
512x powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
amigaone powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
cell powerpc: generate uapi header and system call table files 2018-12-21 14:46:50 +11:00
chrp powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
embedded6xx powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
maple powerpc: Use device_type helpers to access the node type 2018-11-26 22:33:37 +11:00
pasemi powerpc/pasemi: Add Nemo board IRQ initroutine 2018-12-20 22:21:20 +11:00
powermac powerpc/smp: Use code patching to restore reset vector 2018-12-19 18:56:32 +11:00
powernv powerpc/ioda/npu: Call skiboot's hot reset hook when disabling NPU2 2018-12-21 16:20:46 +11:00
ps3 mm: remove include/linux/bootmem.h 2018-10-31 08:54:16 -07:00
pseries powerpc/fadump: Do not allow hot-remove memory from fadump reserved area. 2018-12-21 11:32:49 +11:00
fsl_uli1575.c
Kconfig powerpc/kconfig: remove CONFIG_6xx 2018-11-26 22:33:37 +11:00
Kconfig.cputype powerpc: allow NOT_COHERENT_CACHE for amigaone 2018-12-20 22:21:20 +11:00
Makefile powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00