Skip to content

Commit 7c6119c

Browse files
alexdeuchergregkh
authored andcommitted
drm/amdgpu: track whether a queue is a kernel queue in amdgpu_mqd_prop
commit 284d4df upstream. Used to to set the MQD appropriately for each queue type. Kernel queues have additional privileges. Acked-by: Christian König <christian.koenig@amd.com> Reviewed-by: Lijo Lazar <lijo.lazar@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org # 6.16.x Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 88b2dcc commit 7c6119c

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
@@ -886,6 +886,7 @@ struct amdgpu_mqd_prop {
886886
uint64_t csa_addr;
887887
uint64_t fence_address;
888888
bool tmz_queue;
889+
bool kernel_queue;
889890
};
890891

891892
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
@@ -687,6 +687,7 @@ static void amdgpu_ring_to_mqd_prop(struct amdgpu_ring *ring,
687687
prop->eop_gpu_addr = ring->eop_gpu_addr;
688688
prop->use_doorbell = ring->use_doorbell;
689689
prop->doorbell_index = ring->doorbell_index;
690+
prop->kernel_queue = true;
690691

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

0 commit comments

Comments
 (0)