Commit a481daa8 authored by Alex Deucher's avatar Alex Deucher

drm/radeon: always apply pci shutdown callbacks

We can't properly detect all hypervisors and we
need this to properly tear down the hardware.
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 00ea8cba
...@@ -364,9 +364,10 @@ static void ...@@ -364,9 +364,10 @@ static void
radeon_pci_shutdown(struct pci_dev *pdev) radeon_pci_shutdown(struct pci_dev *pdev)
{ {
/* if we are running in a VM, make sure the device /* if we are running in a VM, make sure the device
* torn down properly on reboot/shutdown * torn down properly on reboot/shutdown.
* unfortunately we can't detect certain
* hypervisors so just do this all the time.
*/ */
if (radeon_device_is_virtual())
radeon_pci_remove(pdev); radeon_pci_remove(pdev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment