Commit 4e2796c8 authored by Michal Wajdeczko's avatar Michal Wajdeczko Committed by Matt Roper
Browse files

drm/xe/vf: Allow VF to initialize MCR tables



While VFs can't access MCR registers, it's still safe to initialize
our per-platform MCR tables, as we might need them later in the LRC
programming, as engines itself may access MCR steer registers and
thanks to all our past fixes to the VF probe initialization order,
VFs are able to use values of the fuse registers needed here.

Signed-off-by: default avatarMichal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260207214428.5205-1-michal.wajdeczko@intel.com


Reviewed-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
parent c57db41b
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -505,9 +505,6 @@ void xe_gt_mcr_init_early(struct xe_gt *gt)

	spin_lock_init(&gt->mcr_lock);

	if (IS_SRIOV_VF(xe))
		return;

	if (gt->info.type == XE_GT_TYPE_MEDIA) {
		drm_WARN_ON(&xe->drm, MEDIA_VER(xe) < 13);

@@ -568,9 +565,6 @@ void xe_gt_mcr_init_early(struct xe_gt *gt)
 */
void xe_gt_mcr_init(struct xe_gt *gt)
{
	if (IS_SRIOV_VF(gt_to_xe(gt)))
		return;

	/* Select non-terminated steering target for each type */
	for (int i = 0; i < NUM_STEERING_TYPES; i++) {
		gt->steering[i].initialized = true;