Skip to content

Commit 284d4df

Browse files
committed
drm/amdgpu: track whether a queue is a kernel queue in amdgpu_mqd_prop
Used to to set the MQD appropriately for each queue type. Kernel queues have additional privileges. Acked-by: Christian König <[email protected]> Reviewed-by: Lijo Lazar <[email protected]> Signed-off-by: Alex Deucher <[email protected]> Cc: [email protected] # 6.16.x
1 parent b4a69f7 commit 284d4df

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,7 @@ struct amdgpu_mqd_prop {
883883
uint64_t csa_addr;
884884
uint64_t fence_address;
885885
bool tmz_queue;
886+
bool kernel_queue;
886887
};
887888

888889
struct amdgpu_mqd {

drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -719,6 +719,7 @@ static void amdgpu_ring_to_mqd_prop(struct amdgpu_ring *ring,
719719
prop->eop_gpu_addr = ring->eop_gpu_addr;
720720
prop->use_doorbell = ring->use_doorbell;
721721
prop->doorbell_index = ring->doorbell_index;
722+
prop->kernel_queue = true;
722723

723724
/* map_queues packet doesn't need activate the queue,
724725
* so only kiq need set this field.

0 commit comments

Comments
 (0)