Skip to contentSkip to conversation

habanalabs: register to pci shutdown callback

PATCH New Oded Gabbay 1 participant 1 message Dec 14, 2020 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 habanalabs: register to pci shutdown callback

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.

---
 drivers/misc/habanalabs/common/habanalabs_drv.c | 1 +
 1 file changed, 1 insertion(+)
drivers/misc/habanalabs/common/habanalabs_drv.c +1 -0
index 6bbb6bca6860..032d114f01ea 100644
@@ -544,6 +544,7 @@ static struct pci_driver hl_pci_driver = {
 	.id_table = ids,
 	.probe = hl_pci_probe,
 	.remove = hl_pci_remove,
+	.shutdown = hl_pci_remove,
 	.driver.pm = &hl_pm_ops,
 	.err_handler = &hl_pci_err_handler,
 };
Signature · 1 line
2.17.1