From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9DCB7606A322 for ; Fri, 4 Dec 2026 02:09:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=Fheirx/g Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5E8CF10E156; Fri, 4 Dec 2026 02:09:19 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.15]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8B0E510E156 for ; Fri, 4 Dec 2026 02:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796350153; x=1827886153; h=date:from:to:cc:subject:message-id:references: content-transfer-encoding:in-reply-to:mime-version; bh=W2mirfV6xAQIF7TaZKmIQMQ4/27mWwUFtOG/isQ5hKQ=; b=Fheirx/gvwafL9nzxQsCB/Uk/fpWPPhzfKfjl3kkyopSv4WLtC24mexa 1zEqENZ0dFFtLT/KWYRublH0SoJECqWIWEdJ0NySzFz1OpBttXaEMd4Ys 2tCbExxCMxO945OHSTWMjkzPXXFVonkmCMHT6numo5TcivDiOsAzrvwe8 eWxKtcXxnokzwEBUjAjWuUP5Q17fkEZS1qoc2zl+PS+Yy/E9hs33DSc0w /0N68P/lueYDIJrzBLTrl1FVp/9e3hG+S24OX7TAnVWNVgmxhfWNz4F0P 4KAGDe3M72Dk83CFiPT7bXz20EzrS+39GsgkGdCUGCmun5byPkYqfo5No A==; X-CSE-ConnectionGUID: eGeG4L4pT3iZPrIZNHlvcA== X-CSE-MsgGUID: Znr8C5nUQa2+71VlIjHirw== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5323083" X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="5323083" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa107.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 18:09:13 -0800 X-CSE-ConnectionGUID: sPpd3owLRMyzE2ajR0dfwg== X-CSE-MsgGUID: V1uM+W0YQLOUhqi+b9vhew== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,77,1794902400"; d="scan'208";a="13955528" Received: from fmsmsx901.amr.corp.intel.com ([10.18.126.90]) by orviesa002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 18:09:12 -0800 Received: from FMSMSX902.amr.corp.intel.com (10.18.126.91) by fmsmsx901.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 18:09:11 -0800 Received: from fmsedg901.ED.cps.intel.com (10.1.192.143) by FMSMSX902.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57 via Frontend Transport; Thu, 3 Dec 2026 18:09:11 -0800 Received: from CO1PR03CU002.outbound.protection.outlook.com (52.101.46.44) by edgegateway.intel.com (192.55.55.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.57; Thu, 3 Dec 2026 18:09:10 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=AD8np05K8GcXggSqcaOsbV0aKrPLkWHFGu/rajebTL70Gr5lmHVFxQrLcVIt+CtpNaHkIdoQ3apZbHxAGNkFNU/2g6W3CRA2w0riUmp4CkDq3vaZpiDmBTFi2j0v6ZNPS9Og1PCeQxACMpavBrmUZclTlugsDkvHdQmvsvITQq/GaFP2zrdyOzmGU9vdal05VOm3Dmv+O37zb3J9CRBWQ6yXMeKxGVdEHcxRy55KKgcE4Og8u1xeSzNvLJbKdF8FVsNYKqGksAVUoZejYgfsC1IUvgDqcNMO7mG6+DEf2QC0oWR71NIBeNHNqv6/sdV1M8DZ4R68f4dhqNV0HMn8Jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=3lRCVrnXeIGSrdhlYHzGC9k6GzyIOm8Lxeb/3gd5PLo=; b=j24Jp1VAs+qyIWdSm674yF9rEK2OgGLzRKIU0pWJ2J7jrpCfworJuq5m2wfdFR/kzNlKAJp2RYcQ9AtlAfm/PRXi2DU2Rhj4hdlB+38n6zk4Vt2l3VICbO2eB+LeFzefVCejV1lvPxZuar52bc90X4JHynyqklB4AaYLXhEg9eEyjLel/dn9uwtEwI078+e8f2cD2w2ZpRIFC7gQSduZUA18D2biGJu9R0Ml1ySNC4tVr2sOKVwoKWpaq1it3jv0jur34mAQPjDvxi/5qi3bZhLJBQS32Dftnwhn+Ml+mnLMiGUDvrAs/pKlY03pkTDMLQDc6uJcoFf/aQOttMtdMw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: mx.microsoft.com 1; dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from LV2PR11MB6000.namprd11.prod.outlook.com (2603:10b6:408:17c::12) by MN0PR11MB6231.namprd11.prod.outlook.com (2603:10b6:208:3c4::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.688.12; Fri, 4 Dec 2026 02:09:02 +0000 Received: from LV2PR11MB6000.namprd11.prod.outlook.com ([fe80::7fd:3ebd:962e:1390]) by LV2PR11MB6000.namprd11.prod.outlook.com ([fe80::7fd:3ebd:962e:1390%3]) with mapi id 15.21.0688.011; Fri, 4 Dec 2026 02:09:02 +0000 Date: Thu, 3 Dec 2026 21:08:57 -0500 From: Rodrigo Vivi To: =?iso-8859-1?Q?Pi=F3rkowski=2C?= Piotr CC: , Matt Atwood , Satyanarayana K V P , Tangudu Tilak Tirumalesh , Varun Gupta Subject: Re: [PATCH v3 1/5] drm/xe/vf: Don't use multi-queue if it is disabled in GuC Message-ID: References: <20261203231835.437637-1-piotr.piorkowski@intel.com> <20261203231835.437637-2-piotr.piorkowski@intel.com> Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20261203231835.437637-2-piotr.piorkowski@intel.com> X-ClientProxiedBy: SJ0PR03CA0161.namprd03.prod.outlook.com (2603:10b6:a03:338::16) To LV2PR11MB6000.namprd11.prod.outlook.com (2603:10b6:408:17c::12) X-Archived-By: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: LV2PR11MB6000:EE_|MN0PR11MB6231:EE_ X-MS-Office365-Filtering-Correlation-Id: 61121984-b021-4bae-aed0-08df51ab90a7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|376014|1800799024|366016|23010399003|11063799006|4143699003|261009223027099003|18002099003|22082099003|10067099003|56012099006|261102123227099003|261022075727099003|261028144727099003|261022105027099003|261021121427099003|261021123027099003|261026121527099003|261026140227099003; X-Microsoft-Antispam-Message-Info: Cl6ZVDgtsmUyUvYNEx46ske6iqdGI9bK3RYqlqGSjmECqowbr5KWxzMrzm5kKMyIP9dtQNvd0xmfNdpd2LWvSPgtOYnhRouzmaBhKDTEPSfevqy5oUmhvtIjeOP3L1u8kYmHpqsyqM+NKZFB2Ps1xQbB7ggYJX+elMwa1z+kL9S4RtMUmoI8v6Y80uIMwaeMuFHg8dTFkHguk/6M/bhT7IT4kY0P0jfIxB5JjwalpoJyVqNIlxS373yVqNrNGdai47tGBn1O15FpkBejquTRJKAQhPbH3KLOuO2thqsBpySLW4xE0TArtP/GsNmC/pmjxqfAOaL+GNK4sD35jwcowLRzcUHCo/LbD+LrlA6RPJsn4r42FfqkaGfIB+BFtJpS05yXFSKmEri2eAqT4bBOCvpG/FrGw7iJ0hL/xGW7g6oIRNc55PCzTOKXp4+BfB9SY/T20FACZt6l0fQmHaaGKYM1La37nr8Ik0OZI8qMMjjdveMO9OpfTrFnfRFt3k3zhSAEGzr78hSPp+287BhZMg43ZhirZTzgVaJo3XsiPRAn9w5ck8JlBAaINV6+erdsOcgfYIvZGA1jF5LuAle0kIM4VRj7PYbzcbiMQMrnai10UOpp6T8clIXlJRVfCdtcPM40Pz/MOpuqd4f5r/ULDmpBFyfRsRR6Hn9C1ZZzkOw= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:LV2PR11MB6000.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016)(23010399003)(11063799006)(4143699003)(261009223027099003)(18002099003)(22082099003)(10067099003)(56012099006)(261102123227099003)(261022075727099003)(261028144727099003)(261022105027099003)(261021121427099003)(261021123027099003)(261026121527099003)(261026140227099003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?iso-8859-1?Q?jw1hFVH+WCmNxj2D5/3imiRwcZ81UFLodNGk6JKpQm6rlrCVfvET04gzfE?= =?iso-8859-1?Q?GI9RzFD6ulYnEL7w4tTwtwLxPT/JX+dJMuo/i/our4nW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LVtGsCy9UEbDyZXVEJAoF4ciX7qlJnX/nToq20x9f4FBgsuxekpUSu6QXkchlZi5RNPgXfhQk+oHXlrYt9oXHWllm82R5ylbgMLJXGh2Hli9ILsVna6nSjz4eKsBGSgxf0/vmgmHIx1nobwLZk4uuYqpjFwpCBuDNP44QyK840PbjEsqxtXeKfXIMtsbzxlFNep57by7GP/RWp3b2m9NC+ofiZzjbcI9fkL/dmPIIfKeKjQjQtdzx/QoyjV3M9EcfyM9vqDULvJ4QGcDrpOo9Ang0A11madTmwk4JY3Qvyk46jnz4DK+vusAPebSNgVaURVZLNwDqKDw== X-MS-Exchange-CrossTenant-Network-Message-Id: 61121984-b021-4bae-aed0-08df51ab90a7 X-MS-Exchange-CrossTenant-AuthSource: LV2PR11MB6000.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2026 02:09:02.0405 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SLlF5E/YEPR2DaXU5smWELj/w48ntb1IOOufUnNfOvmyfDOp/qyQcj1vbKosOEjFmsHhkg1r0HrRkBYonoEQbA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR11MB6231 X-OriginatorOrg: intel.com X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On Fri, Dec 04, 2026 at 12:18:31AM +0100, Piórkowski, Piotr wrote: > From: Piotr Piórkowski > > Multi-queue can be disabled via configfs on the PF, which also disables > it in the GuC shared with the VFs. A VF only knows its own configfs > setting, so it may still try to use multi-queue. > > Query GUC_FEATURE_KLV_DISABLE_MULTI_QUEUE from the GuC at VF probe and > clear the multi-queue engine class mask if multi-queue is disabled. If > the GuC can't report it, keep multi-queue enabled as before. > > Add xe_gt_disable_multi_queue() for that and use it also when > multi-queue is disabled via configfs. > > Cc: Matt Atwood > Cc: Rodrigo Vivi > Cc: Satyanarayana K V P > Cc: Tangudu Tilak Tirumalesh > Cc: Varun Gupta > Signed-off-by: Piotr Piórkowski Reviewed-by: Rodrigo Vivi > --- > drivers/gpu/drm/xe/xe_gt.h | 10 ++++++++ > drivers/gpu/drm/xe/xe_gt_sriov_vf.c | 38 +++++++++++++++++++++++++++++ > drivers/gpu/drm/xe/xe_gt_sriov_vf.h | 1 + > drivers/gpu/drm/xe/xe_guc.c | 2 ++ > drivers/gpu/drm/xe/xe_pci.c | 2 +- > 5 files changed, 52 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/xe/xe_gt.h b/drivers/gpu/drm/xe/xe_gt.h > index 1c701dd98edc3..d4784e49420f3 100644 > --- a/drivers/gpu/drm/xe/xe_gt.h > +++ b/drivers/gpu/drm/xe/xe_gt.h > @@ -176,4 +176,14 @@ static inline bool xe_gt_has_multi_queue(const struct xe_gt *gt) > return gt && gt->info.multi_queue_engine_class_mask; > } > > +/** > + * xe_gt_disable_multi_queue() - Disable multi-queue on all engine classes. > + * > + * @gt: the GT object > + */ > +static inline void xe_gt_disable_multi_queue(struct xe_gt *gt) > +{ > + gt->info.multi_queue_engine_class_mask = 0; > +} > + > #endif > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > index 60f1b29358f93..6cad30e4a892b 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.c > @@ -19,6 +19,7 @@ > #include "xe_assert.h" > #include "xe_device.h" > #include "xe_ggtt.h" > +#include "xe_gt.h" > #include "xe_gt_sriov_printk.h" > #include "xe_gt_sriov_vf.h" > #include "xe_gt_sriov_vf_types.h" > @@ -728,6 +729,43 @@ int xe_gt_sriov_vf_query_config(struct xe_gt *gt) > return 0; > } > > +/** > + * xe_gt_sriov_vf_check_multi_queue() - Check if multi-queue is enabled in GuC. > + * @gt: the &xe_gt > + * > + * The GuC is shared with the PF, which may have disabled multi-queue in it. > + * Query the GuC and don't use multi-queue on the VF if it is disabled there. > + * If the GuC can't report it, assume multi-queue is enabled. > + * > + * This function is for VF use only. > + */ > +void xe_gt_sriov_vf_check_multi_queue(struct xe_gt *gt) > +{ > + u32 disabled; > + int err; > + > + xe_gt_assert(gt, IS_SRIOV_VF(gt_to_xe(gt))); > + > + if (!xe_gt_has_multi_queue(gt)) > + return; > + > + err = guc_action_query_single_klv32(>->uc.guc, > + GUC_FEATURE_KLV_DISABLE_MULTI_QUEUE, > + &disabled); > + if (err) { > + xe_gt_sriov_dbg(gt, "Failed to query multi-queue status (%pe), assuming enabled\n", > + ERR_PTR(err)); > + return; > + } > + > + xe_gt_sriov_dbg(gt, "multi-queue %s\n", str_enabled_disabled(!disabled)); > + > + if (disabled) { > + xe_gt_sriov_info(gt, "Multi-queue disabled by the PF\n"); > + xe_gt_disable_multi_queue(gt); > + } > +} > + > /** > * xe_gt_sriov_vf_sched_groups_enabled() - Check if PF has enabled multiple > * scheduler groups > diff --git a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h > index d171a8242a342..89226420884a7 100644 > --- a/drivers/gpu/drm/xe/xe_gt_sriov_vf.h > +++ b/drivers/gpu/drm/xe/xe_gt_sriov_vf.h > @@ -19,6 +19,7 @@ void xe_gt_sriov_vf_guc_versions(struct xe_gt *gt, > struct xe_uc_fw_version *wanted, > struct xe_uc_fw_version *found); > int xe_gt_sriov_vf_query_config(struct xe_gt *gt); > +void xe_gt_sriov_vf_check_multi_queue(struct xe_gt *gt); > int xe_gt_sriov_vf_connect(struct xe_gt *gt); > int xe_gt_sriov_vf_query_runtime(struct xe_gt *gt); > void xe_gt_sriov_vf_migrated_event_handler(struct xe_gt *gt); > diff --git a/drivers/gpu/drm/xe/xe_guc.c b/drivers/gpu/drm/xe/xe_guc.c > index 00df83460022d..2201038774138 100644 > --- a/drivers/gpu/drm/xe/xe_guc.c > +++ b/drivers/gpu/drm/xe/xe_guc.c > @@ -763,6 +763,8 @@ static int vf_guc_init_noalloc(struct xe_guc *guc) > if (err) > return err; > > + xe_gt_sriov_vf_check_multi_queue(gt); > + > return 0; > } > > diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c > index 0c6bc82d917ba..b319abf7009eb 100644 > --- a/drivers/gpu/drm/xe/xe_pci.c > +++ b/drivers/gpu/drm/xe/xe_pci.c > @@ -932,7 +932,7 @@ static struct xe_gt *alloc_primary_gt(struct xe_tile *tile, > gt->info.multi_queue_engine_class_mask = graphics_desc->multi_queue_engine_class_mask; > if (!xe_configfs_get_enable_multi_queue(to_pci_dev(xe->drm.dev))) { > xe_gt_info(gt, "Multi-queue disabled via configfs\n"); > - gt->info.multi_queue_engine_class_mask = 0; > + xe_gt_disable_multi_queue(gt); > } > gt->info.engine_mask = graphics_desc->hw_engine_mask; > gt->info.num_geometry_xecore_fuse_regs = graphics_desc->num_geometry_xecore_fuse_regs; > -- > 2.34.1 >