Used to track the privilege level of the queue.

Acked-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu.h      | 1 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu.h 
b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
index a1737556a77eb..51be12bc7c8b7 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu.h
@@ -883,6 +883,7 @@ struct amdgpu_mqd_prop {
        uint64_t csa_addr;
        uint64_t fence_address;
        bool tmz_queue;
+       bool priv_queue;
 };
 
 struct amdgpu_mqd {
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
index 426834806fbf2..08615a20ab4d3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
@@ -682,6 +682,8 @@ 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;
+       /* kernel queues are privileged */
+       prop->priv_queue = true;
 
        /* map_queues packet doesn't need activate the queue,
         * so only kiq need set this field.
-- 
2.50.0

Reply via email to