drm/amdgpu/gfx9: correct the emit_frame_size
Subsystems (2)
PATCH 1/1 drm/amdgpu/gfx9: correct the emit_frame_size
As the tlb flush commands are combined to one command now, so need to modify the emit frame size.
Signed-off-by Emily Deng <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +3 -3
@@ -4379,7 +4379,7 @@ static const struct amdgpu_ring_funcs gfx_v9_0_ring_funcs_gfx = { .emit_frame_size = /* totally 242 maximum if 16 IBs */5 +/* COND_EXEC */ 7 +/* PIPELINE_SYNC */ -SOC15_FLUSH_GPU_TLB_NUM_WREG *5 + + (SOC15_FLUSH_GPU_TLB_NUM_WREG -1 ) *5 +SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT *7 +2 +/* VM_FLUSH */ 8 + /* FENCE for VM_FLUSH */
@@ -4432,7 +4432,7 @@ static const struct amdgpu_ring_funcs gfx_v9_0_ring_funcs_compute = {7 +/* gfx_v9_0_ring_emit_hdp_flush */ 5 +/* gfx_v9_0_ring_emit_hdp_invalidate */ 7 +/* gfx_v9_0_ring_emit_pipeline_sync */ -SOC15_FLUSH_GPU_TLB_NUM_WREG *5 + + (SOC15_FLUSH_GPU_TLB_NUM_WREG -1 ) *5 +SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT *7 +2 +/* gfx_v9_0_ring_emit_vm_flush */ 8 + 8 + 8, /* gfx_v9_0_ring_emit_fence x3 for user fence, vm fence */
@@ -4468,7 +4468,7 @@ static const struct amdgpu_ring_funcs gfx_v9_0_ring_funcs_kiq = {7 +/* gfx_v9_0_ring_emit_hdp_flush */ 5 +/* gfx_v9_0_ring_emit_hdp_invalidate */ 7 +/* gfx_v9_0_ring_emit_pipeline_sync */ -SOC15_FLUSH_GPU_TLB_NUM_WREG *5 + + (SOC15_FLUSH_GPU_TLB_NUM_WREG -1 ) *5 +SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT *7 +2 +/* gfx_v9_0_ring_emit_vm_flush */ 8 + 8 + 8, /* gfx_v9_0_ring_emit_fence_kiq x3 for user fence, vm fence */
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): 1522664350-28887-1-git-send-email-Emily.Deng-5C7GfCeVMHo@public.gmane.org
Quoted 4 lines · Emily Deng
As the tlb flush commands are combined to one command now, so need to modify the emit frame size.
Signed-off-by Emily Deng <[email protected]>
I've reverted the patches. They seem to regress other gfx9 parts.
Alex
Quoted 38 lines
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +3
-4@@ -4379,7 +4379,7 @@ static const struct amdgpu_ring_funcs gfx_v9_0_ring_funcs_gfx = { .emit_frame_size = /* totally 242 maximum if 16 IBs */5 +/* COND_EXEC */ 7 +/* PIPELINE_SYNC */ -SOC15_FLUSH_GPU_TLB_NUM_WREG *5 + + (SOC15_FLUSH_GPU_TLB_NUM_WREG -1 ) *5 +SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT *7 +2 +/* VM_FLUSH */ 8 + /* FENCE for VM_FLUSH */@@ -4432,7 +4432,7 @@ static const struct amdgpu_ring_funcs gfx_v9_0_ring_funcs_compute = {7 +/* gfx_v9_0_ring_emit_hdp_flush */ 5 +/* gfx_v9_0_ring_emit_hdp_invalidate */ 7 +/* gfx_v9_0_ring_emit_pipeline_sync */ -SOC15_FLUSH_GPU_TLB_NUM_WREG *5 + + (SOC15_FLUSH_GPU_TLB_NUM_WREG -1 ) *5 +SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT *7 +2 +/* gfx_v9_0_ring_emit_vm_flush */ 8 + 8 + 8, /* gfx_v9_0_ring_emit_fence x3 for user fence, vm fence */@@ -4468,7 +4468,7 @@ static const struct amdgpu_ring_funcs gfx_v9_0_ring_funcs_kiq = {7 +/* gfx_v9_0_ring_emit_hdp_flush */ 5 +/* gfx_v9_0_ring_emit_hdp_invalidate */ 7 +/* gfx_v9_0_ring_emit_pipeline_sync */ -SOC15_FLUSH_GPU_TLB_NUM_WREG *5 + + (SOC15_FLUSH_GPU_TLB_NUM_WREG -1 ) *5 +SOC15_FLUSH_GPU_TLB_NUM_REG_WAIT *7 +2 +/* gfx_v9_0_ring_emit_vm_flush */ 8 + 8 + 8, /* gfx_v9_0_ring_emit_fence_kiq x3 for user fence, vm fence */ --2.7.4
Quoted 4 lines
_______________________________________________
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