Commit a7ec65fc authored by Matt Roper's avatar Matt Roper

drm/i915/xelpmp: Add multicast steering for media GT

MTL's media IP (Xe_LPM+) only has a single type of steering ("OAADDRM")
which selects between media slice 0 and media slice 1.  We'll always
steer to media slice 0 unless it is fused off (which is the case when
VD0, VE0, and SFC0 are all reported as unavailable).

Bspec: 67789
Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
Reviewed-by: default avatarBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221014230239.1023689-15-matthew.d.roper@intel.com
parent f32898c9
...@@ -42,6 +42,7 @@ static const char * const intel_steering_types[] = { ...@@ -42,6 +42,7 @@ static const char * const intel_steering_types[] = {
"LNCF", "LNCF",
"GAM", "GAM",
"DSS", "DSS",
"OADDRM",
"INSTANCE 0", "INSTANCE 0",
}; };
...@@ -129,6 +130,11 @@ static const struct intel_mmio_range xelpg_dss_steering_table[] = { ...@@ -129,6 +130,11 @@ static const struct intel_mmio_range xelpg_dss_steering_table[] = {
{ 0x00DE80, 0x00E8FF }, /* DSS (0xE000-0xE0FF reserved) */ { 0x00DE80, 0x00E8FF }, /* DSS (0xE000-0xE0FF reserved) */
}; };
static const struct intel_mmio_range xelpmp_oaddrm_steering_table[] = {
{ 0x393200, 0x39323F },
{ 0x393400, 0x3934FF },
};
void intel_gt_mcr_init(struct intel_gt *gt) void intel_gt_mcr_init(struct intel_gt *gt)
{ {
struct drm_i915_private *i915 = gt->i915; struct drm_i915_private *i915 = gt->i915;
...@@ -151,8 +157,9 @@ void intel_gt_mcr_init(struct intel_gt *gt) ...@@ -151,8 +157,9 @@ void intel_gt_mcr_init(struct intel_gt *gt)
drm_warn(&i915->drm, "mslice mask all zero!\n"); drm_warn(&i915->drm, "mslice mask all zero!\n");
} }
if (GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70) && if (MEDIA_VER(i915) >= 13 && gt->type == GT_MEDIA) {
gt->type == GT_PRIMARY) { gt->steering_table[OADDRM] = xelpmp_oaddrm_steering_table;
} else if (GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) {
fuse = REG_FIELD_GET(GT_L3_EXC_MASK, fuse = REG_FIELD_GET(GT_L3_EXC_MASK,
intel_uncore_read(gt->uncore, XEHP_FUSE4)); intel_uncore_read(gt->uncore, XEHP_FUSE4));
...@@ -514,6 +521,13 @@ static void get_nonterminated_steering(struct intel_gt *gt, ...@@ -514,6 +521,13 @@ static void get_nonterminated_steering(struct intel_gt *gt,
*group = 0; *group = 0;
*instance = 0; *instance = 0;
break; break;
case OADDRM:
if ((VDBOX_MASK(gt) | VEBOX_MASK(gt) | gt->info.sfc_mask) & BIT(0))
*group = 0;
else
*group = 1;
*instance = 0;
break;
default: default:
MISSING_CASE(type); MISSING_CASE(type);
*group = 0; *group = 0;
......
...@@ -61,6 +61,7 @@ enum intel_steering_type { ...@@ -61,6 +61,7 @@ enum intel_steering_type {
LNCF, LNCF,
GAM, GAM,
DSS, DSS,
OADDRM,
/* /*
* On some platforms there are multiple types of MCR registers that * On some platforms there are multiple types of MCR registers that
......
...@@ -1598,14 +1598,27 @@ xelpg_gt_workarounds_init(struct intel_gt *gt, struct i915_wa_list *wal) ...@@ -1598,14 +1598,27 @@ xelpg_gt_workarounds_init(struct intel_gt *gt, struct i915_wa_list *wal)
debug_dump_steering(gt); debug_dump_steering(gt);
} }
static void
xelpmp_gt_workarounds_init(struct intel_gt *gt, struct i915_wa_list *wal)
{
/* FIXME: Actual workarounds will be added in future patch(es) */
debug_dump_steering(gt);
}
static void static void
gt_init_workarounds(struct intel_gt *gt, struct i915_wa_list *wal) gt_init_workarounds(struct intel_gt *gt, struct i915_wa_list *wal)
{ {
struct drm_i915_private *i915 = gt->i915; struct drm_i915_private *i915 = gt->i915;
/* FIXME: Media GT handling will be added in an upcoming patch */ if (gt->type == GT_MEDIA) {
if (gt->type == GT_MEDIA) if (MEDIA_VER(i915) >= 13)
xelpmp_gt_workarounds_init(gt, wal);
else
MISSING_CASE(MEDIA_VER(i915));
return; return;
}
if (GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70)) if (GRAPHICS_VER_FULL(i915) >= IP_VER(12, 70))
xelpg_gt_workarounds_init(gt, wal); xelpg_gt_workarounds_init(gt, wal);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment