drm/radeon: fix halting UVD
authorChristian König <christian.koenig@amd.com>
Thu, 1 Aug 2013 15:34:07 +0000 (17:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Aug 2013 21:37:11 +0000 (17:37 -0400)
commit2858c00d2823c83acce2a1175dbabb2cebee8678
tree1751bd3ac36c6749a0fded1775def26b19be2dcb
parent797f203f622164a322b9a0f962ce431e3f6ca48e
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>
drivers/gpu/drm/radeon/cik.c
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/ni.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/rv770.c
drivers/gpu/drm/radeon/si.c