drm/xe/vf: Custom GuC initialization if VF
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 21 May 2024 09:25:18 +0000 (11:25 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 22 May 2024 10:53:45 +0000 (12:53 +0200)
commitd8a417c4bd510e7ed8ccd30045bf2bf307c00c57
treecb9311664302572dbc1d737b370337415e1a2d6e
parent7065b19bd542e5dfdcfc421aed4ab9e4fefa19cc
drm/xe/vf: Custom GuC initialization if VF

The GuC firmware is loaded and initialized by the PF driver. Make
sure VF drivers only perform permitted operations. For submission
initialization, use number of GuC context IDs from self config.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240521092518.624-3-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_gt_sriov_vf.c
drivers/gpu/drm/xe/xe_gt_sriov_vf.h
drivers/gpu/drm/xe/xe_guc.c