aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/ni.c
diff options
context:
space:
mode:
authorChristian König <christian.koenig@amd.com>2013-08-01 11:34:07 -0400
committerAlex Deucher <alexander.deucher@amd.com>2013-08-07 17:37:11 -0400
commit2858c00d2823c83acce2a1175dbabb2cebee8678 (patch)
tree1751bd3ac36c6749a0fded1775def26b19be2dcb /drivers/gpu/drm/radeon/ni.c
parent797f203f622164a322b9a0f962ce431e3f6ca48e (diff)
drm/radeon: fix halting UVD
Removing the clock/power or resetting the VCPU can cause hangs if that happens in the middle of a register write. Stall the memory and register bus before putting the VCPU into reset. Keep it in reset when unloading the module or suspending. Signed-off-by: Christian König <christian.koenig@amd.com> Cc: stable@vger.kernel.org Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/ni.c')
-rw-r--r--drivers/gpu/drm/radeon/ni.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c
index 56bd4f3be4fe..16e91b08bf57 100644
--- a/drivers/gpu/drm/radeon/ni.c
+++ b/drivers/gpu/drm/radeon/ni.c
@@ -2286,7 +2286,7 @@ int cayman_suspend(struct radeon_device *rdev)
2286 radeon_vm_manager_fini(rdev); 2286 radeon_vm_manager_fini(rdev);
2287 cayman_cp_enable(rdev, false); 2287 cayman_cp_enable(rdev, false);
2288 cayman_dma_stop(rdev); 2288 cayman_dma_stop(rdev);
2289 r600_uvd_rbc_stop(rdev); 2289 r600_uvd_stop(rdev);
2290 radeon_uvd_suspend(rdev); 2290 radeon_uvd_suspend(rdev);
2291 evergreen_irq_suspend(rdev); 2291 evergreen_irq_suspend(rdev);
2292 radeon_wb_disable(rdev); 2292 radeon_wb_disable(rdev);
@@ -2418,6 +2418,7 @@ void cayman_fini(struct radeon_device *rdev)
2418 radeon_vm_manager_fini(rdev); 2418 radeon_vm_manager_fini(rdev);
2419 radeon_ib_pool_fini(rdev); 2419 radeon_ib_pool_fini(rdev);
2420 radeon_irq_kms_fini(rdev); 2420 radeon_irq_kms_fini(rdev);
2421 r600_uvd_stop(rdev);
2421 radeon_uvd_fini(rdev); 2422 radeon_uvd_fini(rdev);
2422 cayman_pcie_gart_fini(rdev); 2423 cayman_pcie_gart_fini(rdev);
2423 r600_vram_scratch_fini(rdev); 2424 r600_vram_scratch_fini(rdev);