~vicamo/+git/ubuntu-kernel:wip/intel-mtl/drm-tip

Last commit made on 2023-04-10
Get this branch:
git clone -b wip/intel-mtl/drm-tip https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
wip/intel-mtl/drm-tip
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

ba5d415... by Anusha Srivatsa <email address hidden>

drm/i915/mtl: Pin assignment for TypeC

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

Unlike previous platforms that used PORT_TX_DFLEXDPSP
for max_lane calculation, MTL uses only PORT_TX_DFLEXPA1
from which the max_lanes has to be calculated.

Bspec: 50235, 65380
Cc: Mika Kahola <email address hidden>
Cc: Imre Deak <email address hidden>
Cc: Matt Roper <email address hidden>
Signed-off-by: Anusha Srivatsa <email address hidden>
Signed-off-by: Jose Roberto de Souza <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528643/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

7e90d18... by Imre Deak <email address hidden>

drm/i915/mtl: TypeC HPD live status query

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

The HPD live status for MTL has to be read from different set of
registers. MTL deserves a new function for this purpose
and cannot reuse the existing HPD live status detection

Signed-off-by: Anusha Srivatsa <email address hidden>
Signed-off-by: Imre Deak <email address hidden>
Signed-off-by: Mika Kahola <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528639/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

f701394... by Mika Kahola <email address hidden>

drm/i915/mtl: Power up TCSS

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

Add register writes to enable powering up Type-C subsystem i.e. TCSS.
For MeteorLake we need to request TCSS to power up and check the TCSS
power state after 500 us.

In addition, for PICA we need to set/clear the Type-C PHY ownnership
bit when Type-C device is connected/disconnected.

v2: Call tcss power request with correct parameter.
v3: Use de variant for register wait (Jani)

Signed-off-by: Mika Kahola <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528641/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

60f8393... by Gustavo Sousa <email address hidden>

drm/i915/mtl: Define mask for DDI AUX interrupts

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

Xe_LPD+ defines interrupt bits for only DDI ports in the DE Port
Interrupt registers. The bits for Type-C ports are defined in the PICA
interrupt registers.

BSpec: 50064
Signed-off-by: Gustavo Sousa <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528640/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

8006740... by Mika Kahola <email address hidden>

drm/i915/mtl: MTL PICA hotplug detection

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

PICA is used for DP alt mode and TBT modes. Hotplug interruption is routed
from PICA chip to south display engine and from there to north display
engine. This patch adds functionality to enable hotplug detection for
all Type-C ports (4 ports available).

Differently from HPD in south display, PICA provides a dedicated HPD
control register for each supported port, so we loop over ports
ourselves instead of using intel_hpd_hotplug_enables() or
intel_get_hpd_pins().

BSpec: 49305, 55726, 65107, 65300

Signed-off-by: Mika Kahola <email address hidden>
Signed-off-by: Madhumitha Tolakanahalli Pradeep <email address hidden>
Signed-off-by: Gustavo Sousa <email address hidden>
Signed-off-by: Imre Deak <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528642/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

c149f68... by Mika Kahola <email address hidden>

drm/i915/mtl: Enable TC ports

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

Finally, we can enable TC ports for Meteorlake.

Signed-off-by: Mika Kahola <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528636/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

1e3eeef... by Mika Kahola <email address hidden>

drm/i915/mtl: Readout Thunderbolt HW state

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

Readout hw state for Thunderbolt.

Signed-off-by: Mika Kahola <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528635/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

4c44987... by Mika Kahola <email address hidden>

drm/i915/mtl: Enabling/disabling sequence Thunderbolt pll

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

Enabling and disabling sequence for Thunderbolt PLL.

v2: Use __intel_de_wait_for_register() instead of
    __intel_wait_for_register() (Jani)
    Use '0' instead of ~XELPDP_TBT_CLOCK_ACK (Gustavo)

Signed-off-by: Mika Kahola <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528634/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

31f2f77... by Mika Kahola <email address hidden>

drm/i915/mtl: For DP2.0 10G and 20G rates use MPLLA

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

Use MPLLA for DP2.0 rates 20G and 20G, when ssc is enabled.

Signed-off-by: Mika Kahola <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528637/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>

b84202a... by Mika Kahola <email address hidden>

drm/i915/mtl: Add voltage swing sequence for C20

BugLink: https://gitlab.freedesktop.org/drm/intel/-/issues/8314

DP1.4 and DP20 voltage swing sequence for C20 phy.

Bspec: 65449, 67636, 67610

v2: DP2.0 Tx Eq tables has been updated in BSpec.
    Update also the driver code as per BSpec 65449

Signed-off-by: Mika Kahola <email address hidden>
Signed-off-by: Clint Taylor <email address hidden>
Signed-off-by: Radhakrishna Sripada <email address hidden>
(cherrry-picked from https://patchwork.freedesktop.org/patch/528631/mbox/)
Signed-off-by: You-Sheng Yang <email address hidden>