From ddc77fee2ac21d48ec095cc976d87aa71b9575f6 Mon Sep 17 00:00:00 2001 From: "Jesse.Zhang" Date: Thu, 29 Jan 2026 15:31:55 +0800 Subject: [PATCH] drm/amdgpu: Add user queue HQD count to hw_ip info Add a new field userq_num_hqds to drm_amdgpu_info_hw_ip to expose the number of available hardware queue descriptors (HQDs) for user queues. This allows userspace to query the maximum number of user queues that can be created for a particular IP block. the patch link in driver side: https://lists.freedesktop.org/archives/amd-gfx/2025-June/126686.html https://lists.freedesktop.org/archives/amd-gfx/2025-July/126981.html v2: rename userq_num_hqds to userq_num_slots (Marek) Signed-off-by: Jesse Zhang --- include/drm/amdgpu_drm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/amdgpu_drm.h b/include/drm/amdgpu_drm.h index f7bc9457..ed63e61f 100644 --- a/include/drm/amdgpu_drm.h +++ b/include/drm/amdgpu_drm.h @@ -1512,6 +1512,8 @@ struct drm_amdgpu_info_hw_ip { __u32 available_rings; /** version info: bits 23:16 major, 15:8 minor, 7:0 revision */ __u32 ip_discovery_version; + /* Userq available slots */ + __u32 userq_num_slots; }; /* GFX metadata BO sizes and alignment info (in bytes) */