|
@@ -481,14 +481,12 @@ amdgpu_pci_remove(struct pci_dev *pdev)
|
|
static void
|
|
static void
|
|
amdgpu_pci_shutdown(struct pci_dev *pdev)
|
|
amdgpu_pci_shutdown(struct pci_dev *pdev)
|
|
{
|
|
{
|
|
- struct drm_device *dev = pci_get_drvdata(pdev);
|
|
|
|
- struct amdgpu_device *adev = dev->dev_private;
|
|
|
|
-
|
|
|
|
/* 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 (amdgpu_passthrough(adev))
|
|
|
|
- amdgpu_pci_remove(pdev);
|
|
|
|
|
|
+ amdgpu_pci_remove(pdev);
|
|
}
|
|
}
|
|
|
|
|
|
static int amdgpu_pmops_suspend(struct device *dev)
|
|
static int amdgpu_pmops_suspend(struct device *dev)
|