[PATCH 2/2] drm/radeon: always apply pci shutdown callbacks
Alex Deucher
alexdeucher at gmail.com
Thu Sep 22 18:47:35 UTC 2016
We can't properly detect all hypervisors and we
need this to properly tear down the hardware.
Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
---
drivers/gpu/drm/radeon/radeon_drv.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/radeon_drv.c
index 8f779e4..d406378 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)
--
2.5.5
More information about the amd-gfx
mailing list