Commit b80160a5 authored by Frank Min's avatar Frank Min Committed by Alex Deucher

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

use mc address for wptr in add queue packet
Signed-off-by: default avatarFrank Min <Frank.Min@amd.com>
Reviewed-by: default avatarJack Xiao <Jack.Xiao@amd.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 2581f22f
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment