summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_drv.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2017-01-25 12:00:29 -0500
committerAlex Deucher <alexander.deucher@amd.com>2017-01-25 16:54:50 -0500
commitb9b487e494712c8e5905b724e12f5ef17e9ae6f9 (patch)
tree14240b944a18e23d1e31c1e7ac9bab0a1bcceca4 /drivers/gpu/drm/radeon/radeon_drv.c
parent3a1d19a29670aa7eb58576a31883d0aa9fb77549 (diff)
downloadblackbird-op-linux-b9b487e494712c8e5905b724e12f5ef17e9ae6f9.tar.gz
blackbird-op-linux-b9b487e494712c8e5905b724e12f5ef17e9ae6f9.zip
Revert "drm/radeon: always apply pci shutdown callbacks"
This seems to break reboot on some evergreen systems. bugs: https://bugs.freedesktop.org/show_bug.cgi?id=99524 https://bugzilla.kernel.org/show_bug.cgi?id=192271 This reverts commit a481daa88fd4d6b54f25348972bba10b5f6a84d0. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_drv.c')
-rw-r--r--drivers/gpu/drm/radeon/radeon_drv.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index 00ea0002b539..e0c143b865f3 100644
--- a/drivers/gpu/drm/radeon/radeon_drv.c
+++ b/drivers/gpu/drm/radeon/radeon_drv.c
@@ -366,11 +366,10 @@ 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.
- * unfortunately we can't detect certain
- * hypervisors so just do this all the time.
+ * torn down properly on reboot/shutdown
*/
- radeon_pci_remove(pdev);
+ if (radeon_device_is_virtual())
+ radeon_pci_remove(pdev);
}
static int radeon_pmops_suspend(struct device *dev)
OpenPOWER on IntegriCloud