drm/amd/amdgpu: Fix flow control in uvd_v4_2_stop()
Subsystems (2)
PATCH 1/1 drm/amd/amdgpu: Fix flow control in uvd_v4_2_stop()
Break out of outer loop properly.
Signed-off-by Tom St Denis <[email protected]>
Reported-by Dan Carpenter <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +6 -3
@@ -401,7 +401,8 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)break ;mdelay (1 ); } -break ; +if (status &2 ) +break ; }for (i =0 ; i <10 ; ++i) {
@@ -411,7 +412,8 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)break ;mdelay (1 ); } -break ; +if (status &0xf ) +break ; }/* Stall UMC and register bus before resetting VCPU */
@@ -424,7 +426,8 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)break ;mdelay (1 ); } -break ; +if (status &0x240 ) +break ; }WREG32_P (0x3D49 ,0 , ~(1 <<2 ));
Signature · 6 lines
2.11.0 _______________________________________________ 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): [email protected]
Christian König
Reviewed-byAm 13.02.2017 um 20:13 schrieb Tom St Denis:
Quoted 4 lines
Break out of outer loop properly.
Signed-off-by Tom St Denis <[email protected]>Reported-by Dan Carpenter <[email protected]>
Reviewed-by Christian König <[email protected]>.
Quoted 29 lines
--- drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +4
-2@@ -401,7 +401,8 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)break ;mdelay (1 ); } -break ; +if (status &2 ) +break ; }for (i =0 ; i <10 ; ++i) {@@ -411,7 +412,8 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)break ;mdelay (1 ); } -break ; +if (status &0xf ) +break ; }/* Stall UMC and register bus before resetting VCPU */
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c static void uvd_v4_2_stop(struct amdgpu_device *adev) · line 433
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c +2
-1@@ -424,7 +426,8 @@ static void uvd_v4_2_stop(struct amdgpu_device *adev)break ;mdelay (1 ); } -break ; +if (status &0x240 ) +break ; }WREG32_P (0x3D49 ,0 , ~(1 <<2 ));
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx