]> Gentwo Git Trees - linux/.git/commit
drm/xe/sriov: Disable SR-IOV if primary GT is disabled via configfs
authorMatt Roper <matthew.d.roper@intel.com>
Mon, 13 Oct 2025 20:10:06 +0000 (13:10 -0700)
committerMatt Roper <matthew.d.roper@intel.com>
Tue, 14 Oct 2025 14:45:28 +0000 (07:45 -0700)
commit961a7582b159586aafee3cf2e81dec1d493d1715
tree37d2df949eed5790d6746e94206c6968540a3369
parent7abd69278bb53ab6b43f9650daba550cc7624858
drm/xe/sriov: Disable SR-IOV if primary GT is disabled via configfs

SR-IOV operation relies on the primary GT's GuC to operate (in both PF
and VF mode).  Don't enable the .has_sriov flag if the primary-GT was
disabled by configfs.

v2:
 - Move handling to xe_info_init().  (Michal)

v3:
 - Just update the .has_sriov flag in xe_info_init_early().  (Michal)

v4:
 - Drop unnecessary comment.  (Michal)
 - Flip condition order for consistency with other checks.  (Michal)

Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20251013200944.2499947-48-matthew.d.roper@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
drivers/gpu/drm/xe/xe_pci.c