summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/radeon_drv.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2016-09-22 21:43:50 +0300
committerAlex Deucher <alexander.deucher@amd.com>2016-09-28 23:16:27 +0300
commita481daa88fd4d6b54f25348972bba10b5f6a84d0 (patch)
tree27897f0e1a16de0e4446d340bdd7dfe1e1e694c1 /drivers/gpu/drm/radeon/radeon_drv.c
parent00ea8cba5ef7b783f11cb1a0b900b7c18d2ce0b6 (diff)
downloadlinux-a481daa88fd4d6b54f25348972bba10b5f6a84d0.tar.xz
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: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_drv.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_drv.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index 8f779e4ee3a5..d40637858b79 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -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)