[PATCH] drm/amdgpu: fix to print incorrect wptr address

Michel Dänzer michel at daenzer.net
Fri Apr 14 03:08:45 UTC 2017


On 14/04/17 11:50 AM, Huang Rui wrote:
> Signed-off-by: Huang Rui <ray.huang at amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> index da4559b..4736196 100644
> --- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> +++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
> @@ -326,8 +326,8 @@ static void sdma_v4_0_ring_set_wptr(struct amdgpu_ring *ring)
>  				"mmSDMA%i_GFX_RB_WPTR == 0x%08x "
>  				"mmSDMA%i_GFX_RB_WPTR_HI == 0x%08x \n",
>  				me,
> -				me,
>  				lower_32_bits(ring->wptr << 2),
> +				me,
>  				upper_32_bits(ring->wptr << 2));
>  		WREG32(sdma_v4_0_get_reg_offset(me, mmSDMA0_GFX_RB_WPTR), lower_32_bits(ring->wptr << 2));
>  		WREG32(sdma_v4_0_get_reg_offset(me, mmSDMA0_GFX_RB_WPTR_HI), upper_32_bits(ring->wptr << 2));
> 

Reviewed-by: Michel Dänzer <michel.daenzer at amd.com>


-- 
Earthling Michel Dänzer               |               http://www.amd.com
Libre software enthusiast             |             Mesa and X developer


More information about the amd-gfx mailing list