drm/amdgpu: drop copy/paste leftover to fix big endian
Subsystems (2)
PATCH 1/1 drm/amdgpu: drop copy/paste leftover to fix big endian
The buf swap field doesn't exist on RB1.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -3
@@ -2624,9 +2624,6 @@ static int gfx_v10_0_cp_gfx_resume(struct amdgpu_device *adev) rb_bufsz =order_base_2 (ring->ring_size /8 ); tmp =REG_SET_FIELD (0 ,CP_RB1_CNTL ,RB_BUFSZ , rb_bufsz); tmp =REG_SET_FIELD (tmp,CP_RB1_CNTL ,RB_BLKSZ , rb_bufsz -2 ); -#ifdef __BIG_ENDIAN - tmp =REG_SET_FIELD (tmp,CP_RB1_CNTL ,BUF_SWAP ,1 ); -#endif WREG32_SOC15 (GC ,0 , mmCP_RB1_CNTL, tmp);/* Initialize the ring buffer's write pointers */ ring->wptr =0 ;
Signature · 6 lines
2.20.1 _______________________________________________ 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): 20190627141628.7882-1-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Zhang, Hawking
Reviewed-by Hawking ZhangRegards,
Hawking
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: 2019年6月27日 22:16
To: [email protected]
Cc: Deucher, Alexander <[email protected]>
Subject: [PATCH] drm/amdgpu: drop copy/paste leftover to fix big endian
The buf swap field doesn't exist on RB1.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -3
@@ -2624,9 +2624,6 @@ static int gfx_v10_0_cp_gfx_resume(struct amdgpu_device *adev) rb_bufsz =order_base_2 (ring->ring_size /8 ); tmp =REG_SET_FIELD (0 ,CP_RB1_CNTL ,RB_BUFSZ , rb_bufsz); tmp = REG_SET_FIELD(tmp, CP_RB1_CNTL, RB_BLKSZ, rb_bufsz - 2); -#ifdef __BIG_ENDIAN - tmp =REG_SET_FIELD (tmp,CP_RB1_CNTL ,BUF_SWAP ,1 ); -#endif WREG32_SOC15 (GC ,0 , mmCP_RB1_CNTL, tmp);/* Initialize the ring buffer's write pointers */ ring->wptr =0 ; --
2.20.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Michel Dänzer
Reviewed-byQuoted 13 lines · Alex Deucher
The buf swap field doesn't exist on RB1.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-0
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static int gfx_v10_0_cp_gfx_resume(struct amdgpu_device *adev) · line 2629
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-3@@ -2624,9 +2624,6 @@ static int gfx_v10_0_cp_gfx_resume(struct amdgpu_device *adev) rb_bufsz =order_base_2 (ring->ring_size /8 ); tmp =REG_SET_FIELD (0 ,CP_RB1_CNTL ,RB_BUFSZ , rb_bufsz); tmp =REG_SET_FIELD (tmp,CP_RB1_CNTL ,RB_BLKSZ , rb_bufsz -2 ); -#ifdef __BIG_ENDIAN - tmp =REG_SET_FIELD (tmp,CP_RB1_CNTL ,BUF_SWAP ,1 ); -#endif WREG32_SOC15 (GC ,0 , mmCP_RB1_CNTL, tmp);/* Initialize the ring buffer's write pointers */ ring->wptr =0 ;
So the RB0 BUF_SWAP bit applies to RB1 as well? Might be nice to clarify that in the commit log.
Anyway,
Signature · 6 lines
Earthling Michel Dänzer | https://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ 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): e894eeae-f175-d6b9-6817-7f3f59227fed-otUistvHUpPR7s880joybQ@public.gmane.org
Quoted 19 lines · Michel Dänzer
Quoted 17 lines · Alex Deucher
The buf swap field doesn't exist on RB1.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 3 --- 1 file changed, 3 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-2@@ -2624,9 +2624,6 @@ static int gfx_v10_0_cp_gfx_resume(struct amdgpu_device *adev) rb_bufsz =order_base_2 (ring->ring_size /8 ); tmp =REG_SET_FIELD (0 ,CP_RB1_CNTL ,RB_BUFSZ , rb_bufsz); tmp =REG_SET_FIELD (tmp,CP_RB1_CNTL ,RB_BLKSZ , rb_bufsz -2 ); -#ifdef __BIG_ENDIAN - tmp =REG_SET_FIELD (tmp,CP_RB1_CNTL ,BUF_SWAP ,1 );
Quoted 8 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c static int gfx_v10_0_cp_gfx_resume(struct amdgpu_device *adev) · line 2629
Quoted 5 lines
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-1-#endif WREG32_SOC15 (GC ,0 , mmCP_RB1_CNTL, tmp);/* Initialize the ring buffer's write pointers */ ring->wptr =0 ;So the RB0
BUF_SWAPbit applies to RB1 as well? Might be nice to clarify that in the commit log.
Maybe? I suspect there is no swapping on the other RB. I'm not even sure the swapping works on RB0, but the bits are still there. Someone would probably need to validate all of this on BE hardware.
Alex
Quoted 9 lines
Anyway,
Reviewed-by Michel Dänzer <[email protected]>--
Earthling Michel Dänzer | https://www.amd.com
Libre software enthusiast | Mesa and X developer
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx