drm/xe/vf: Provide early access to GMDID register
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 23 May 2024 22:30:42 +0000 (00:30 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 24 May 2024 08:08:28 +0000 (10:08 +0200)
commitfcc6b719ae8576a00ddd3e261b18443594250189
treeab7855668eaa9d90810035a118d6be725897f52c
parent2948b24233cfe3c8f2c071b6c83efc3e05881023
drm/xe/vf: Provide early access to GMDID register

VFs do not have direct access to the GMDID register and must obtain
its value from the GuC. Since we need GMDID value very early in the
driver probe flow, before we even start the full setup of GT and GuC
data structures, we must do some early initializations ourselves.

Additionally, since we also need GMDID for the media GT, which isn't
created yet, temporarly tweak the root GT type into MEDIA to allow
communication with the correct GuC, as only it can provide the value
of the media GMDID register.

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/20240523223042.888-1-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_pci.c