Skip to content

Commit 03bca4a

Browse files
mkaholamattrope
authored andcommitted
drm/i915/adl_p: Enable/disable loadgen sharing
Disable loadgen sharing for DP link rate 1.62 GHz and HDMI 5.94 GHz. For all other modes, we can enable loadgen sharing feature. BSpec: 55359 Cc: Imre Deak <[email protected]> Signed-off-by: Mika Kahola <[email protected]> Signed-off-by: Clinton Taylor <[email protected]> Signed-off-by: Matt Roper <[email protected]> Reviewed-by: Anusha Srivatsa <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent de1dc03 commit 03bca4a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

drivers/gpu/drm/i915/display/intel_ddi.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,14 @@ tgl_dkl_phy_ddi_vswing_sequence(struct intel_encoder *encoder,
14591459
val = intel_de_read(dev_priv, DKL_TX_DPCNTL2(tc_port));
14601460
val &= ~DKL_TX_DP20BITMODE;
14611461
intel_de_write(dev_priv, DKL_TX_DPCNTL2(tc_port), val);
1462+
1463+
if ((intel_crtc_has_dp_encoder(crtc_state) &&
1464+
crtc_state->port_clock == 162000) ||
1465+
(intel_crtc_has_type(crtc_state, INTEL_OUTPUT_HDMI) &&
1466+
crtc_state->port_clock == 594000))
1467+
val |= DKL_TX_LOADGEN_SHARING_PMD_DISABLE;
1468+
else
1469+
val &= ~DKL_TX_LOADGEN_SHARING_PMD_DISABLE;
14621470
}
14631471
}
14641472

drivers/gpu/drm/i915/i915_reg.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10825,6 +10825,7 @@ enum skl_power_gate {
1082510825
_DKL_TX_DPCNTL1)
1082610826

1082710827
#define _DKL_TX_DPCNTL2 0x2C8
10828+
#define DKL_TX_LOADGEN_SHARING_PMD_DISABLE REG_BIT(12)
1082810829
#define DKL_TX_DP20BITMODE (1 << 2)
1082910830
#define DKL_TX_DPCNTL2(tc_port) _MMIO(_PORT(tc_port, \
1083010831
_DKL_PHY1_BASE, \

0 commit comments

Comments
 (0)