summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_device.c
diff options
context:
space:
mode:
authorMichal Wajdeczko <michal.wajdeczko@intel.com>2024-03-27 19:27:39 +0100
committerMichal Wajdeczko <michal.wajdeczko@intel.com>2024-03-28 13:45:35 +0100
commitd79c88c45dae1f1c5f80bd473811c6d053f55828 (patch)
tree7c3a81a7cdc20069439fcb4aa0ed509043248acf /drivers/gpu/drm/xe/xe_device.c
parent451d261a6ecc5a21dd4e34f18cc4c83177d6023f (diff)
downloadlwn-d79c88c45dae1f1c5f80bd473811c6d053f55828.tar.gz
lwn-d79c88c45dae1f1c5f80bd473811c6d053f55828.zip
drm/xe: Move SR-IOV probe to xe_device_probe_early()
SR-IOV mode detection requires access to the MMIO register and this can be done now in xe_device_probe_early(). We can also drop explicit has_sriov parameter as this flag is now already available from xe->info. Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240327182740.407-3-michal.wajdeczko@intel.com
Diffstat (limited to 'drivers/gpu/drm/xe/xe_device.c')
-rw-r--r--drivers/gpu/drm/xe/xe_device.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_device.c b/drivers/gpu/drm/xe/xe_device.c
index 286ebccc3fc8..01bd5ccf05ca 100644
--- a/drivers/gpu/drm/xe/xe_device.c
+++ b/drivers/gpu/drm/xe/xe_device.c
@@ -424,6 +424,8 @@ int xe_device_probe_early(struct xe_device *xe)
if (err)
return err;
+ xe_sriov_probe_early(xe);
+
err = xe_mmio_verify_vram(xe);
if (err)
return err;