Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdkfd: Add/remove queues on the correct XCC on GFX 12.1

On GFX 12.1, pass the xcc id of the master XCC to choose the correct
MES Pipe to send the add_queue/remove_queue requests to MES.

Signed-off-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Alex Sierra <alex.sierra@amd.com>
Reviewed-by: Michael Chen <michael.chen@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Mukul Joshi and committed by
Alex Deucher
b6ac64ee 376fa6c9

+2
+2
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
··· 257 257 queue_input.exclusively_scheduled = q->properties.is_gws; 258 258 queue_input.sh_mem_config_data = qpd->sh_mem_config; 259 259 queue_input.vm_cntx_cntl = qpd->vm_cntx_cntl; 260 + queue_input.xcc_id = ffs(dqm->dev->xcc_mask) - 1; 260 261 261 262 amdgpu_mes_lock(&adev->mes); 262 263 r = adev->mes.funcs->add_hw_queue(&adev->mes, &queue_input); ··· 288 287 memset(&queue_input, 0x0, sizeof(struct mes_remove_queue_input)); 289 288 queue_input.doorbell_offset = q->properties.doorbell_off; 290 289 queue_input.gang_context_addr = q->gang_ctx_gpu_addr; 290 + queue_input.xcc_id = ffs(dqm->dev->xcc_mask) - 1; 291 291 292 292 amdgpu_mes_lock(&adev->mes); 293 293 r = adev->mes.funcs->remove_hw_queue(&adev->mes, &queue_input);