Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 1/1] drm/xe/guc: Don't send the multi-queue disable KLV to the media GT
@ 2026-12-03 23:32 Piórkowski, Piotr
  2026-12-03 23:35 ` Matthew Brost
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Piórkowski, Piotr @ 2026-12-03 23:32 UTC (permalink / raw)
  To: intel-xe; +Cc: Piotr Piórkowski, Shuicheng Lin

From: Piotr Piórkowski <piotr.piorkowski@intel.com>

When multi-queue is disabled via configfs, guc_waklv_init() adds
GUC_FEATURE_KLV_DISABLE_MULTI_QUEUE to the ADS of every GT. Multi-queue
is only supported on the primary GT and the media GuC rejects this KLV,
so the GuC load fails and the probe fails:

  xe 0000:00:02.0: [drm] *ERROR* SIGID=104 (-EINVAL) Tile0: GT1: GUC: Load failed, GUC_STATUS=0x80007534, time = 15ms, freq = 1250MHz (req 1250MHz)
  xe 0000:00:02.0: [drm] *ERROR* Tile0: GT1: load failed: status: Reset = 0, BootROM = 0x1A, UKernel = 0x75, MIA = 0x00, Auth = 0x02
  xe 0000:00:02.0: [drm] *ERROR* Tile0: GT1: illegal workaround KLV data
  xe 0000:00:02.0: [drm] *ERROR* SIGID=101 FATAL (-EINVAL) PROBE: driver loading failed for device 'd750'
  xe 0000:00:02.0: probe with driver xe failed with error -22
  xe 0000:00:02.0: [drm] *ERROR* Tile0: GT1: GuC RC setup HOST_CONTROL(0) failed (-ENODEV)
  xe 0000:00:02.0: [drm:guc_ct_change_state [xe]] Tile0: GT1: GuC CT communication channel stopped
  xe 0000:00:02.0: [drm:guc_ct_change_state [xe]] Tile0: GT1: GuC CT communication channel disabled
  xe 0000:00:02.0: [drm] Tile0: GT1: GuC not ready after disabling idle flow (GUC_STATUS: 0x80007534)

Send the KLV only to the GuC of the primary GT.

Fixes: 73c5a253068e ("drm/xe/configfs: Add enable_multi_queue attribute")
Cc: Shuicheng Lin <shuicheng.lin@intel.com>
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
---
 drivers/gpu/drm/xe/xe_guc_ads.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_guc_ads.c b/drivers/gpu/drm/xe/xe_guc_ads.c
index 4b7d423e715c..d4b2b54f2027 100644
--- a/drivers/gpu/drm/xe/xe_guc_ads.c
+++ b/drivers/gpu/drm/xe/xe_guc_ads.c
@@ -403,9 +403,10 @@ static void guc_waklv_init(struct xe_guc_ads *ads)
 	/*
 	 * On GuC firmware 70.66 and above, use the Feature KLV (shared with the
 	 * WA KLV buffer); older firmware uses GUC_CTL_DISABLE_MULTI_QUEUE in
-	 * the init params instead.
+	 * the init params instead. Only the primary GT supports multi-queue.
 	 */
-	if (!xe_configfs_get_enable_multi_queue(to_pci_dev(gt_to_xe(gt)->drm.dev)) &&
+	if (xe_gt_is_main_type(gt) &&
+	    !xe_configfs_get_enable_multi_queue(to_pci_dev(gt_to_xe(gt)->drm.dev)) &&
 	    GUC_FIRMWARE_VER_AT_LEAST(&gt->uc.guc, 70, 66)) {
 		u32 data = 1;
 
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-04  0:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-03 23:32 [PATCH v1 1/1] drm/xe/guc: Don't send the multi-queue disable KLV to the media GT Piórkowski, Piotr
2026-12-03 23:35 ` Matthew Brost
2026-12-04  0:05 ` ✗ CI.checkpatch: warning for series starting with [v1,1/1] " Patchwork
2026-12-04  0:07 ` ✓ CI.KUnit: success " Patchwork
2026-12-04  0:49 ` ✓ Xe.CI.BAT: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox