[PATCH] drm/amdgu/vce_v3: start vce block before ring test
S, Shirish
Shirish.S at amd.com
Mon Feb 4 12:44:06 UTC 2019
vce ring test fails during resume since mmVCE_RB_RPTR*
is not intitalized/updated.
Hence start vce block before ring test.
Signed-off-by: Shirish S <shirish.s at amd.com>
---
* vce_v4_0.c's hw_init sequence already has this change.
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
index 6ec65cf1..d809c10 100644
--- a/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
@@ -469,6 +469,10 @@ static int vce_v3_0_hw_init(void *handle)
int r, i;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
+ r = vce_v3_0_start(adev);
+ if (r)
+ return r;
+
vce_v3_0_override_vce_clock_gating(adev, true);
amdgpu_asic_set_vce_clocks(adev, 10000, 10000);
--
2.7.4
More information about the amd-gfx
mailing list