drm/amdgu/vce_v3: start vce block before ring test
Subsystems (2)
PATCH 1/1 drm/amdgu/vce_v3: start vce block before ring test
vce ring test fails during resume since mmVCE_RB_RPTR* is not intitalized/updated.
Hence start vce block before ring test.
---
* 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(+)
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +4 -0
@@ -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 );
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1549284230-32705-1-git-send-email-shirish.s-5C7GfCeVMHo@public.gmane.org
Am 04.02.19 um 13:44 schrieb S, Shirish:
Quoted 4 lines
vce ring test fails during resume since mmVCE_RB_RPTR* is not intitalized/updated.
Hence start vce block before ring test.
Mhm, I wonder why this ever worked. But yeah, same problem seems to exits for VCE 2 as well.
Leo any comment on this?
Thanks,
Christian.
Quoted 13 lines
Signed-off-by Shirish S <[email protected]>---
* vce_v4_0.c'shw_initsequence already has this change.drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c static int vce_v3_0_hw_init(void *handle) · line 478
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +4
-0@@ -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 );
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 4bdfc32e-1236-1cb0-d141-a555034e23e6-5C7GfCeVMHo@public.gmane.org
Quoted 9 lines · Christian
Am 04.02.19 um 13:44 schrieb S, Shirish:
Quoted 4 lines
vce ring test fails during resume since mmVCE_RB_RPTR* is not intitalized/updated.
Hence start vce block before ring test.
Mhm, I wonder why this ever worked. But yeah, same problem seems to exits for VCE 2 as well.
Leo any comment on this?
UVD and VCE start function were at hw_init originally from the bring up on all the HW. And later the DPM developer moved them to set_powergating_state() for some reason.
@Shirish, are you sure the vce_v3_0_start() is not there?
Just simply adding it back to hw_init, might break the DPM logic, so please make sure.
Thanks,
Leo
Quoted 19 lines
Thanks,
Christian.Quoted 15 lines
Signed-off-by Shirish S <[email protected]>---
* vce_v4_0.c'shw_initsequence already has this change.drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +0
-0@@ -469,6 +469,10 @@ static int vce_v3_0_hw_init(void *handle)int r, i;struct amdgpu_device *adev = (struct amdgpu_device *)handle;
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c static int vce_v3_0_hw_init(void *handle) · line 478
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +4
-0+ 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 );
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 85ac20db-37b0-1c67-8306-f9a6cfaf7dad-5C7GfCeVMHo@public.gmane.org
Quoted 10 lines · Leo
Quoted 9 lines · Christian
Am 04.02.19 um 13:44 schrieb S, Shirish:
Quoted 4 lines
vce ring test fails during resume since mmVCE_RB_RPTR* is not intitalized/updated.
Hence start vce block before ring test.
Mhm, I wonder why this ever worked. But yeah, same problem seems to exits for VCE 2 as well.
Leo any comment on this?
Quoted 8 lines
UVD and VCE start function were at
hw_initoriginally from the bring up on all the HW. And later the DPM developer moved them toset_powergating_state()for some reason.@Shirish, are you sure the
vce_v3_0_start()is not there?Just simply adding it back to
hw_init, might break the DPM logic, so please make sure.
Sure Leo, i will check and get back.
Regards,
Shirish S
Quoted 31 lines
Thanks,
Leo
Quoted 25 lines
Thanks,
Christian.Quoted 22 lines
Signed-off-by Shirish S <[email protected]>---
* vce_v4_0.c'shw_initsequence already has this change.drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +4
-0@@ -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 );
Signature · 7 lines
Regards, Shirish S _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): b542189a-121c-84fc-5d75-403339e41599-5C7GfCeVMHo@public.gmane.org
Am 05.02.19 um 10:21 schrieb S, Shirish:
Quoted 15 lines · Leo
Quoted 14 lines · Christian
Quoted 9 lines
Am 04.02.19 um 13:44 schrieb S, Shirish:
Quoted 4 lines
vce ring test fails during resume since mmVCE_RB_RPTR* is not intitalized/updated.
Hence start vce block before ring test.
Mhm, I wonder why this ever worked. But yeah, same problem seems to exits for VCE 2 as well.
Leo any comment on this?
UVD and VCE start function were at
hw_initoriginally from the bring up on all the HW. And later the DPM developer moved them toset_powergating_state()for some reason.
Quoted 5 lines
Quoted 4 lines
@Shirish, are you sure the
vce_v3_0_start()is not there?Just simply adding it back to
hw_init, might break the DPM logic, so please make sure.Sure Leo, i will check and get back.
I've just double checked the code and at least of hand this patch looks incorrect to me.
Submitting commands to the ring should automatically calls amdgpu_vce_ring_begin_use() and so ungate the power and clocks and start the engine.
This is actually vital for the ring test, so this patch is a clear NAK.
Christian.
Quoted 28 lines
Regards,
Shirish S
Quoted 23 lines
Thanks,
Leo
Quoted 18 lines
Thanks,
Christian.Quoted 15 lines
Signed-off-by Shirish S <[email protected]>---
* vce_v4_0.c'shw_initsequence already has this change.drivers/gpu/drm/amd/amdgpu/vce_v3_0.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +0
-0@@ -469,6 +469,10 @@ static int vce_v3_0_hw_init(void *handle)int r, i;struct amdgpu_device *adev = (struct amdgpu_device *)handle;
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c static int vce_v3_0_hw_init(void *handle) · line 478
Quoted 7 lines
drivers/gpu/drm/amd/amdgpu/vce_v3_0.c +4
-0+ 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 );
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx