Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] drm/xe/vf: Avoid reading media version when media GT is disabled
@ 2026-01-30 15:55 Piórkowski, Piotr
  2026-01-30 16:02 ` ✓ CI.KUnit: success for " Patchwork
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Piórkowski, Piotr @ 2026-01-30 15:55 UTC (permalink / raw)
  To: intel-xe; +Cc: Piotr Piórkowski, Matt Roper, Michal Wajdeczko

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

When the media GT is not allowed, a VF must not attempt to read
the media version from the GuC. The GuC may not be loaded, and
any attempt to communicate with it would result in a timeout
and a VF probe failure:

(...)
[ 1912.406046] xe 0000:01:00.1: [drm] *ERROR* Tile0: GT1: GuC mmio request 0x5507: no reply 0x5507
[ 1912.407277] xe 0000:01:00.1: [drm] *ERROR* Tile0: GT1: [GUC COMMUNICATION] MMIO send failed (-ETIMEDOUT)
[ 1912.408689] xe 0000:01:00.1: [drm] *ERROR* VF: Tile0: GT1: Failed to reset GuC state (-ETIMEDOUT)
[ 1912.413986] xe 0000:01:00.1: probe with driver xe failed with error -110

Let's skip reading the media version for VFs when the media GT is not
allowed.

Fixes: 7abd69278bb5 ("drm/xe/configfs: Add attribute to disable GT types")
Signed-off-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
---
 drivers/gpu/drm/xe/xe_pci.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/xe/xe_pci.c b/drivers/gpu/drm/xe/xe_pci.c
index b5e8935fff1d..6ac1baabab4e 100644
--- a/drivers/gpu/drm/xe/xe_pci.c
+++ b/drivers/gpu/drm/xe/xe_pci.c
@@ -644,6 +644,10 @@ static int handle_gmdid(struct xe_device *xe,
 			ver / 100, ver % 100);
 	}
 
+	/* Don't try read media ver if media GT is not allowed */
+	if (!xe_configfs_media_gt_allowed(to_pci_dev(xe->drm.dev)))
+		return 0;
+
 	ret = read_gmdid(xe, GMDID_MEDIA, &ver, media_revid);
 	if (ret)
 		return ret;
-- 
2.34.1


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

end of thread, other threads:[~2026-02-02  8:43 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-30 15:55 [PATCH v1] drm/xe/vf: Avoid reading media version when media GT is disabled Piórkowski, Piotr
2026-01-30 16:02 ` ✓ CI.KUnit: success for " Patchwork
2026-01-30 16:35 ` ✓ Xe.CI.BAT: " Patchwork
2026-01-30 18:08 ` [PATCH v1] " Lin, Shuicheng
2026-01-30 18:20   ` Lin, Shuicheng
2026-02-02  8:43     ` Piotr Piórkowski

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