drm/amdgpu: IH process reset count when restart
Subsystems (3)
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH 1/7 drm/amdgpu: IH process reset count when restart
Otherwise when IH process restart, count is zero, the loop will not exit to wake_up_all after processing AMDGPU_IH_MAX_NUM_IVS interrupts.
Signed-off-by Philip Yang <[email protected]>
Reviewed-by Christian König <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c +2 -1
@@ -221,7 +221,7 @@ int amdgpu_ih_wait_on_checkpoint_process(struct amdgpu_device *adev,*/ int amdgpu_ih_process (struct amdgpu_device *adev,struct amdgpu_ih_ring *ih) { -unsigned int count =AMDGPU_IH_MAX_NUM_IVS ; +unsigned int count;u32 wptr;if (!ih->enabled || adev->shutdown)
@@ -230,6 +230,7 @@ int amdgpu_ih_process(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih) wptr =amdgpu_ih_get_wptr (adev, ih); restart_ih: + count =AMDGPU_IH_MAX_NUM_IVS ;DRM_DEBUG ("%s: rptr %d, wptr %d\n" , __func__, ih->rptr, wptr);/* Order reading of wptr vs. reading of IH ring data */
Signature · 1 line
2.17.1
A message that is not in the archive (sent off-list or not yet received): [email protected]
PATCH v2 1/5 drm/amdgpu: IH process reset count when restart
Otherwise when IH process restart, count is zero, the loop will not exit to wake_up_all after processing AMDGPU_IH_MAX_NUM_IVS interrupts.
Signed-off-by Philip Yang <[email protected]>
Reviewed-by Christian König <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c +2 -1
@@ -221,7 +221,7 @@ int amdgpu_ih_wait_on_checkpoint_process(struct amdgpu_device *adev,*/ int amdgpu_ih_process (struct amdgpu_device *adev,struct amdgpu_ih_ring *ih) { -unsigned int count =AMDGPU_IH_MAX_NUM_IVS ; +unsigned int count;u32 wptr;if (!ih->enabled || adev->shutdown)
@@ -230,6 +230,7 @@ int amdgpu_ih_process(struct amdgpu_device *adev, struct amdgpu_ih_ring *ih) wptr =amdgpu_ih_get_wptr (adev, ih); restart_ih: + count =AMDGPU_IH_MAX_NUM_IVS ;DRM_DEBUG ("%s: rptr %d, wptr %d\n" , __func__, ih->rptr, wptr);/* Order reading of wptr vs. reading of IH ring data */
Signature · 1 line
2.17.1