Commit a4a5f5ca authored by Jack Xiao's avatar Jack Xiao Committed by Alex Deucher

drm/amdgpu: skip gds switch for mes queue

For mes manages gds allocation, skip gds switch.
Signed-off-by: default avatarJack Xiao <Jack.Xiao@amd.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 9d3bccdc
...@@ -639,7 +639,8 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job, ...@@ -639,7 +639,8 @@ int amdgpu_vm_flush(struct amdgpu_ring *ring, struct amdgpu_job *job,
} }
dma_fence_put(fence); dma_fence_put(fence);
if (ring->funcs->emit_gds_switch && gds_switch_needed) { if (!ring->is_mes_queue && ring->funcs->emit_gds_switch &&
gds_switch_needed) {
id->gds_base = job->gds_base; id->gds_base = job->gds_base;
id->gds_size = job->gds_size; id->gds_size = job->gds_size;
id->gws_base = job->gws_base; id->gws_base = job->gws_base;
......
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