[PATCH] drm/amdgpu/mes: use mc address for wptr in add queue packet

Min, Frank Frank.Min at amd.com
Tue May 14 08:51:30 UTC 2024


[AMD Official Use Only - AMD Internal Distribution Only]

From: Frank Min <Frank.Min at amd.com>

use mc address for wptr in add queue packet

Signed-off-by: Frank Min <Frank.Min at amd.com>
---
 drivers/gpu/drm/amd/amdgpu/mes_v12_0.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
index 5519655fd70a..6256b21884ee 100644
--- a/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/mes_v12_0.c
@@ -267,11 +267,7 @@ static int mes_v12_0_add_hw_queue(struct amdgpu_mes *mes,
        mes_add_queue_pkt.doorbell_offset = input->doorbell_offset;
        mes_add_queue_pkt.mqd_addr = input->mqd_addr;

-       if (((adev->mes.sched_version & AMDGPU_MES_API_VERSION_MASK) >>
-                       AMDGPU_MES_API_VERSION_SHIFT) >= 2)
-               mes_add_queue_pkt.wptr_addr = input->wptr_mc_addr;
-       else
-               mes_add_queue_pkt.wptr_addr = input->wptr_addr;
+       mes_add_queue_pkt.wptr_addr = input->wptr_mc_addr;

        mes_add_queue_pkt.queue_type =
                convert_to_mes_queue_type(input->queue_type);
--
2.34.1



More information about the amd-gfx mailing list