Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BECFCC369D9 for ; Wed, 30 Apr 2025 06:28:44 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 579F210E028; Wed, 30 Apr 2025 06:28:44 +0000 (UTC) Received: from amd-X570-AORUS-ELITE.amd.com (unknown [165.204.156.251]) by gabe.freedesktop.org (Postfix) with ESMTPS id 955D110E028 for ; Wed, 30 Apr 2025 06:28:43 +0000 (UTC) Received: by amd-X570-AORUS-ELITE.amd.com (Postfix, from userid 1000) id A60D536A0008; Wed, 30 Apr 2025 11:58:39 +0530 (IST) From: Sunil Khatri To: igt-dev@lists.freedesktop.org, Vitaly Prosyak Cc: Sunil Khatri , "Prosyak@sunil.khatri"@amd.com, Vitaly , Jesse Zhang Subject: [PATCH v3 1/4] drm-uapi/amdgpu: add UAPI query if user queues are supported Date: Wed, 30 Apr 2025 11:58:32 +0530 Message-ID: <20250430062835.348074-1-sunil.khatri@amd.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: igt-dev@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development mailing list for IGT GPU Tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" Add UAPI support of userq mask of ip's supporting userqueues on a asic. The changes have been pulled from below kernel commit. https://lists.freedesktop.org/archives/amd-gfx/2025-April/122559.html Cc: Prosyak, Vitaly Cc: Jesse Zhang Signed-off-by: Sunil Khatri --- include/drm-uapi/amdgpu_drm.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/drm-uapi/amdgpu_drm.h b/include/drm-uapi/amdgpu_drm.h index 3f4813879..ddcda5d3b 100644 --- a/include/drm-uapi/amdgpu_drm.h +++ b/include/drm-uapi/amdgpu_drm.h @@ -1446,6 +1446,9 @@ struct drm_amdgpu_info_device { __u32 csa_size; /* context save area base virtual alignment for gfx11 */ __u32 csa_alignment; + /* Userq IP mask (1 << AMDGPU_HW_IP_*) */ + __u32 userq_ip_mask; + __u32 pad; }; struct drm_amdgpu_info_hw_ip { -- 2.43.0