Skip to content

Commit 1705f22

Browse files
committed
drm/i915/dg2: Update steering tables
DG2's replicated register ranges are almost the same at XeHP SDV with the exception of one LNCF sub-range that switches to gslice steering. We can re-use the XeHP SDV mslice steering table and just provide a DG2-specific LNCF steering table. Bspec: 66534 Cc: Daniele Ceraolo Spurio <[email protected]> Signed-off-by: Matt Roper <[email protected]> Reviewed-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 768fe28 commit 1705f22

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

drivers/gpu/drm/i915/gt/intel_gt.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ static const struct intel_mmio_range xehpsdv_lncf_steering_table[] = {
103103
{},
104104
};
105105

106+
static const struct intel_mmio_range dg2_lncf_steering_table[] = {
107+
{ 0x00B000, 0x00B0FF },
108+
{ 0x00D880, 0x00D8FF },
109+
{},
110+
};
111+
106112
static u16 slicemask(struct intel_gt *gt, int count)
107113
{
108114
u64 dss_mask = intel_sseu_get_subslices(&gt->info.sseu, 0);
@@ -129,7 +135,10 @@ int intel_gt_init_mmio(struct intel_gt *gt)
129135
(intel_uncore_read(gt->uncore, GEN10_MIRROR_FUSE3) &
130136
GEN12_MEML3_EN_MASK);
131137

132-
if (IS_XEHPSDV(i915)) {
138+
if (IS_DG2(i915)) {
139+
gt->steering_table[MSLICE] = xehpsdv_mslice_steering_table;
140+
gt->steering_table[LNCF] = dg2_lncf_steering_table;
141+
} else if (IS_XEHPSDV(i915)) {
133142
gt->steering_table[MSLICE] = xehpsdv_mslice_steering_table;
134143
gt->steering_table[LNCF] = xehpsdv_lncf_steering_table;
135144
} else if (GRAPHICS_VER(i915) >= 11 &&

0 commit comments

Comments
 (0)