drm/xe: Move SR-IOV probe to xe_device_probe_early()
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 27 Mar 2024 18:27:39 +0000 (19:27 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 28 Mar 2024 12:45:35 +0000 (13:45 +0100)
commitd79c88c45dae1f1c5f80bd473811c6d053f55828
tree7c3a81a7cdc20069439fcb4aa0ed509043248acf
parent451d261a6ecc5a21dd4e34f18cc4c83177d6023f
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
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_pci.c
drivers/gpu/drm/xe/xe_sriov.c
drivers/gpu/drm/xe/xe_sriov.h