]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amdgpu: track whether a queue is a kernel queue in amdgpu_mqd_prop
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jun 2025 15:22:26 +0000 (11:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 28 Jul 2025 20:25:04 +0000 (16:25 -0400)
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
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c

index a1737556a77ebe4d7974637b7337f77840602a05..ef3af170dda4ebb4b9092d49fe1f7ecc0f4fb12e 100644 (file)
@@ -883,6 +883,7 @@ struct amdgpu_mqd_prop {
        uint64_t csa_addr;
        uint64_t fence_address;
        bool tmz_queue;
+       bool kernel_queue;
 };
 
 struct amdgpu_mqd {
index a5c3f64cbce6288e78f73c2ca5b8359acb737b94..6379bb25bf5ce3d3d8c44ac5e59a95491ac232e4 100644 (file)
@@ -719,6 +719,7 @@ static void amdgpu_ring_to_mqd_prop(struct amdgpu_ring *ring,
        prop->eop_gpu_addr = ring->eop_gpu_addr;
        prop->use_doorbell = ring->use_doorbell;
        prop->doorbell_index = ring->doorbell_index;
+       prop->kernel_queue = true;
 
        /* map_queues packet doesn't need activate the queue,
         * so only kiq need set this field.