drm/xe: Separate pure MMIO init from VRAM checkout
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 27 Mar 2024 18:27:38 +0000 (19:27 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 28 Mar 2024 12:45:33 +0000 (13:45 +0100)
commit451d261a6ecc5a21dd4e34f18cc4c83177d6023f
tree327fe396f97fda795a27e593de657dd2e13c4bbb
parent7ee7dd6f301341d5b1204fc19fa620d7f7f7e90d
drm/xe: Separate pure MMIO init from VRAM checkout

We can setup root tile registers mapping at the same time as we
do early mapping of the entire MMIO BAR and keep mandatory VRAM
checkout as a separate step. This will allow us to perform SR-IOV
VF mode detection between those two steps using regular MMIO regs
access functions.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240327182740.407-2-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_mmio.h