drm/radeon: always apply pci shutdown callbacks
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Sep 2016 18:43:50 +0000 (14:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 28 Sep 2016 20:16:27 +0000 (16:16 -0400)
We can't properly detect all hypervisors and we
need this to properly tear down the hardware.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon_drv.c

index 8f779e4..d406378 100644 (file)
@@ -364,10 +364,11 @@ static void
 radeon_pci_shutdown(struct pci_dev *pdev)
 {
        /* 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);
 }
 
 static int radeon_pmops_suspend(struct device *dev)