summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-08-03 15:10:28 +0800
committerAlex Deucher <alexander.deucher@amd.com>2016-08-08 11:33:23 -0400
commitac8e3f304047e8f0229e217afaee25be918f8ae7 (patch)
treea2dd5152998a75d3ef2530b3b2ed2a8581d95e9b /drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
parent9c0171b41248805d928863fc87190e6530b71773 (diff)
downloadlinux-ac8e3f304047e8f0229e217afaee25be918f8ae7.tar.bz2
drm/amdgpu: remove RB1_BUSY bit checking
This is a workaround to let VCE soft reset work. RB1_BUSY bit is always set, so remove its checking now, and we will depend on RB0_BUSY currently. After we find the root cause of RB1_BUSY, we can add it back. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vce_v3_0.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/vce_v3_0.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
index 516882b07842..76d5d6893c89 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
@@ -589,7 +589,11 @@ static int vce_v3_0_wait_for_idle(void *handle)
return -ETIMEDOUT;
}
-#define AMDGPU_VCE_STATUS_BUSY_MASK 0x78
+#define VCE_STATUS_VCPU_REPORT_AUTO_BUSY_MASK 0x00000008L /* AUTO_BUSY */
+#define VCE_STATUS_VCPU_REPORT_RB0_BUSY_MASK 0x00000010L /* RB0_BUSY */
+#define VCE_STATUS_VCPU_REPORT_RB1_BUSY_MASK 0x00000020L /* RB1_BUSY */
+#define AMDGPU_VCE_STATUS_BUSY_MASK (VCE_STATUS_VCPU_REPORT_AUTO_BUSY_MASK | \
+ VCE_STATUS_VCPU_REPORT_RB0_BUSY_MASK)
static int vce_v3_0_check_soft_reset(void *handle)
{