drm/amdgpu: needn't set aggregated doorbell for map queue
Subsystems (2)
PATCH 1/1 drm/amdgpu: needn't set aggregated doorbell for map queue
Needn't set aggregated doorbell for map queue and remove the dead code.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 6 ------ drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 4 ---- 2 files changed, 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0 -6
@@ -8220,9 +8220,6 @@ static void gfx_v10_0_ring_set_wptr_gfx(struct amdgpu_ring *ring)WDOORBELL64 (ring->doorbell_index, wptr_tmp); }else {WDOORBELL64 (ring->doorbell_index, wptr_tmp); - -if (*is_queue_unmap) -WDOORBELL64 (aggregated_db_index, wptr_tmp); } }else {if (ring->use_doorbell) {
@@ -8283,9 +8280,6 @@ static void gfx_v10_0_ring_set_wptr_compute(struct amdgpu_ring *ring)WDOORBELL64 (ring->doorbell_index, wptr_tmp); }else {WDOORBELL64 (ring->doorbell_index, wptr_tmp); - -if (*is_queue_unmap) -WDOORBELL64 (aggregated_db_index, wptr_tmp); } }else {/* XXX check if swapping is necessary on BE */
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +0 -4
@@ -358,10 +358,6 @@ static void sdma_v5_0_ring_set_wptr(struct amdgpu_ring *ring)DRM_DEBUG ("calling WDOORBELL64(0x%08x, 0x%016llx)\n" , ring->doorbell_index, ring->wptr <<2 );WDOORBELL64 (ring->doorbell_index, ring->wptr <<2 ); - -if (*is_queue_unmap) -WDOORBELL64 (aggregated_db_index, - ring->wptr <<2 ); } }else {if (ring->use_doorbell) {
Signature · 1 line
2.34.1
[Public]
Please ignore this patch, double confirm from the stakeholder the MES map queue has possibility to change as an unmap queue after write the doorbell.
Regards,
--Prike
Quoted 68 lines
-----Original Message-----
From: Liang, Prike <[email protected]>
Sent: Thursday, November 9, 2023 3:36 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amdgpu: needn't set aggregated doorbell for map queueNeedn't set aggregated doorbell for map queue and remove the dead code.
Signed-off-by Prike Liang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 6 ------ drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c | 4 ---- 2 files changed, 10 deletions(-)drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-3@@ -8220,9 +8220,6 @@ static void gfx_v10_0_ring_set_wptr_gfx(struct amdgpu_ring *ring) WDOORBELL64(ring->doorbell_index, wptr_tmp); }else {WDOORBELL64 (ring->doorbell_index, wptr_tmp); - -if (*is_queue_unmap) -WDOORBELL64 (aggregated_db_index, wptr_tmp); }} else { if (ring->use_doorbell) {drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +0
-3@@ -8283,9 +8280,6 @@ static void gfx_v10_0_ring_set_wptr_compute(struct amdgpu_ring *ring) WDOORBELL64(ring->doorbell_index, wptr_tmp); }else {WDOORBELL64 (ring->doorbell_index, wptr_tmp); - -if (*is_queue_unmap) -WDOORBELL64 (aggregated_db_index, wptr_tmp); }} else { /* XXX check if swapping is necessary on BE */ diff --git
a/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.cb/drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c
indexc1ff5eda8961..14633e2ceac6100644drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +0
-0@@ -358,10 +358,6 @@ static void sdma_v5_0_ring_set_wptr(struct amdgpu_ring *ring) DRM_DEBUG("calling WDOORBELL64(0x%08x, 0x%016llx)\n", ring->doorbell_index, ring->wptr << 2); WDOORBELL64(ring->doorbell_index, ring->wptr <<2);
drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c +0
-5- -if (*is_queue_unmap) -WDOORBELL64 (aggregated_db_index, - ring->wptr <<2 ); } }else {if (ring->use_doorbell) { --2.34.1