]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
habanalabs: register to pci shutdown callback
authorOded Gabbay <ogabbay@kernel.org>
Mon, 14 Dec 2020 10:52:06 +0000 (12:52 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Jan 2021 17:26:14 +0000 (18:26 +0100)
commit93aef8e6cc08391d5c288177dcb46fe1fd88f240
tree58059da1953986214e8c3c34491c42bdd936366b
parent79df21218d639f560ae2e9dfb89a76757ea334d8
habanalabs: register to pci shutdown callback

[ Upstream commit fcaebc7354188b0d708c79df4390fbabd4d9799d ]

We need to make sure our device is idle when rebooting a virtual
machine. This is done in the driver level.

The firmware will later handle FLR but we want to be extra safe and
stop the devices until the FLR is handled.

Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/misc/habanalabs/habanalabs_drv.c