Skip to content

Commit

Permalink
habanalabs: register to pci shutdown callback
Browse files Browse the repository at this point in the history
[ Upstream commit fcaebc7 ]

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>
  • Loading branch information
ogabbay authored and gregkh committed Jan 19, 2021
1 parent 68a9abf commit c78cff5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/misc/habanalabs/common/habanalabs_drv.c
Expand Up @@ -528,6 +528,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,
};
Expand Down

0 comments on commit c78cff5

Please sign in to comment.