]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:34:30 +0000 (16:34 +0200)
commit 284d4dfe850e665f0e7d4dfaf4d3d3da76d11fb0 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>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c

index a5ccd0ada16ab03241f9e61d55fb2a312fd21f31..e1d79f483049920be3aa2f3b00b668f751a79a6d 100644 (file)
@@ -886,6 +886,7 @@ struct amdgpu_mqd_prop {
        uint64_t csa_addr;
        uint64_t fence_address;
        bool tmz_queue;
+       bool kernel_queue;
 };
 
 struct amdgpu_mqd {
index 6ac0ce361a2d8cd10f1f147128dd8a201ff7092d..7c5584742471e9c2103343309f4c0d6f238c5ace 100644 (file)
@@ -687,6 +687,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.