Skip to content

Commit

Permalink
drm/radeon: always apply pci shutdown callbacks
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Deucher committed Sep 28, 2016
1 parent 00ea8cb commit a481daa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions drivers/gpu/drm/radeon/radeon_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a481daa

Please sign in to comment.