drm/xe: Split GuC communication initialization
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 11 Jan 2024 16:20:51 +0000 (17:20 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 11 Jan 2024 18:14:19 +0000 (19:14 +0100)
commit88cbf8502023dcb97bf9e40655d4848ba14350e0
tree81a2d1dbeab70623a6f9b495636a9da3bb958ed0
parentef51d7542d143f3fd9a48d4e2c307563661668aa
drm/xe: Split GuC communication initialization

Soon we will be trying to communicate with the GuC firmware very
early during VF driver probe, before we finish normal init steps.
Split GuC communication initialization code so the GuC MMIO based
communication xe_guc_mmio_send() functions will work where needed.

Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://lore.kernel.org/r/20240111162051.585-1-michal.wajdeczko@intel.com
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
drivers/gpu/drm/xe/xe_guc.c
drivers/gpu/drm/xe/xe_guc.h