Skip to content

drm/i915/tc: Align the ADLP TypeC sequences with bspec

Imre Deak intel-gfx llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest29 patches 33 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/29drm/i915/tc: Group the TC PHY setup/query functions per platformdrivers/gpu/drm/i915/display/intel_tc.c+130 -1142 replies
2/29drm/i915/tc: Use the adlp prefix for ADLP TC PHY functionsdrivers/gpu/drm/i915/display/intel_tc.c+9 -91 reply
3/29drm/i915/tc: Rename tc_phy_status_complete() to tc_phy_is_ready()drivers/gpu/drm/i915/display/intel_tc.c+12 -121 reply
4/29drm/i915/tc: Use the tc_phy prefix for all TC PHY functionsdrivers/gpu/drm/i915/display/intel_tc.c+15 -151 reply
5/29drm/i915/tc: Move TC port fields to a new intel_tc_port structdrivers/gpu/drm/i915/display/intel_display.h drivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_tc.c +1 more+335 -2891 reply
6/29drm/i915/tc: Check for TC PHY explicitly in intel_tc_port_fia_max_lane_count()drivers/gpu/drm/i915/display/intel_tc.c+2 -11 reply
7/29drm/i915/tc: Move the intel_tc_port struct declaration to intel_tc.cdrivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_tc.c +1 more+49 -371 reply
8/29drm/i915/tc: Add TC PHY hook to get the PHY HPD live statusdrivers/gpu/drm/i915/display/intel_tc.c+29 -111 reply
9/29drm/i915/tc: Add TC PHY hooks to get the PHY ready/owned statedrivers/gpu/drm/i915/display/intel_tc.c+8 -121 reply
10/29drm/i915/tc: Add TC PHY hook to read out the PHY HW statedrivers/gpu/drm/i915/display/intel_tc.c+24 -101 reply
11/29drm/i915/tc: Add generic TC PHY connect/disconnect handlersdrivers/gpu/drm/i915/display/intel_tc.c+39 -261 reply
12/29drm/i915/tc: Factor out tc_phy_verify_legacy_or_dp_alt_mode()drivers/gpu/drm/i915/display/intel_tc.c+29 -181 reply
13/29drm/i915/tc: Add TC PHY hooks to connect/disconnect the PHYdrivers/gpu/drm/i915/display/intel_tc.c+9 -31 reply
14/29drm/i915/tc: Fix up the legacy VBT flag only in disconnected modedrivers/gpu/drm/i915/display/intel_tc.c+10 -31 reply
15/29drm/i915/tc: Check TC mode instead of the VBT legacy flagdrivers/gpu/drm/i915/display/intel_tc.c+7 -81 reply
16/29drm/i915/tc: Block/unblock TC-cold in the PHY connect/disconnect hooksdrivers/gpu/drm/i915/display/intel_tc.c+13 -301 reply
17/29drm/i915/tc: Remove redundant wakeref=0 check from unblock_tc_cold()drivers/gpu/drm/i915/display/intel_tc.c+0 -81 reply
18/29drm/i915/tc: Drop tc_cold_block()/unblock()'s power domain parameterdrivers/gpu/drm/i915/display/intel_tc.c+37 -241 reply
19/29drm/i915/tc: Add TC PHY hook to get the TC-cold blocking power domaindrivers/gpu/drm/i915/display/intel_tc.c+59 -141 reply
20/29drm/i915/tc: Add asserts in TC PHY hooks that the required power is ondrivers/gpu/drm/i915/display/intel_tc.c+61 -03 replies
21/29drm/i915/tc: Add TC PHY hook to init the PHYdrivers/gpu/drm/i915/display/intel_tc.c drivers/gpu/drm/i915/i915_pci.c drivers/gpu/drm/i915/intel_device_info.h+56 -441 reply
22/29drm/i915/adlp/tc: Use the DE HPD ISR register for hotplug detectiondrivers/gpu/drm/i915/display/intel_tc.c+9 -121 reply
23/29drm/i915/tc: Get power ref for reading the HPD live status registerdrivers/gpu/drm/i915/display/intel_tc.c+19 -81 reply
24/29drm/i915/tc: Don't connect the PHY in intel_tc_port_connected()drivers/gpu/drm/i915/display/intel_tc.c+8 -31 reply
25/29drm/i915/adlp/tc: Align the connect/disconnect PHY sequence with bspecdrivers/gpu/drm/i915/display/intel_tc.c+94 -171 reply
26/29drm/i915: Move shared DPLL disabling into CRTC disable hookdrivers/gpu/drm/i915/display/intel_display.c+4 -12 replies
27/29drm/i915: Disable DPLLs before disconnecting the TC PHYdrivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_dp_mst.c+29 -31 reply
28/29drm/i915: Remove TC PHY disconnect workarounddrivers/gpu/drm/i915/display/intel_tc.c+0 -81 reply
29/29drm/i915: Remove the encoder update_prepare()/complete() hooksdrivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display_types.h+12 -1211 reply

Reviews trailers per patch

All 29 patches have a Reviewed-by or Acked-by.

PatchMika Kahola
1/29R-b
2/29R-b
3/29R-b
4/29R-b
5/29R-b
6/29R-b
7/29R-b
8/29R-b
9/29R-b
10/29R-b
11/29R-b
12/29R-b
13/29R-b
14/29R-b
15/29R-b
16/29R-b
17/29R-b
18/29R-b
19/29R-b
20/29R-b
21/29R-b
22/29R-b
23/29R-b
24/29R-b
25/29R-b
26/29R-b R-b
27/29R-b
28/29R-b
29/29R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Intel-gfx] [PATCH 00/29] drm/i915/tc: Align the ADLP TypeC sequences with bspec

This patchset updates the ADLP TypeC PHY connect/disconnect sequences that changed in Bspec. The change in the power domains used and order of enabling these wrt. taking the PHY ownership domains requires moving these sequences to platform specific hooks; the first part of the patchset adds these along with other hooks to setup/query the PHY HW state, replacing the corresponding if ladders.

The second part of the patchset adds the ADLP specific hooks, updating the connect/disconnect sequences and hotplug detection for it according to bspec.

The last part makes sure that the port DPLL is disabled before disconnecting the TC PHY, as required by bspec.

Tested on ICL, TGL, ADLP.

Imre Deak (29):
drm/i915/tc: Group the TC PHY setup/query functions per platform drm/i915/tc: Use the adlp prefix for ADLP TC PHY functions drm/i915/tc: Rename tc_phy_status_complete() to tc_phy_is_ready() drm/i915/tc: Use the tc_phy prefix for all TC PHY functions drm/i915/tc: Move TC port fields to a new intel_tc_port struct drm/i915/tc: Check for TC PHY explicitly in
intel_tc_port_fia_max_lane_count()
drm/i915/tc: Move the intel_tc_port struct declaration to intel_tc.c drm/i915/tc: Add TC PHY hook to get the PHY HPD live status drm/i915/tc: Add TC PHY hooks to get the PHY ready/owned state drm/i915/tc: Add TC PHY hook to read out the PHY HW state drm/i915/tc: Add generic TC PHY connect/disconnect handlers drm/i915/tc: Factor out tc_phy_verify_legacy_or_dp_alt_mode() drm/i915/tc: Add TC PHY hooks to connect/disconnect the PHY drm/i915/tc: Fix up the legacy VBT flag only in disconnected mode drm/i915/tc: Check TC mode instead of the VBT legacy flag drm/i915/tc: Block/unblock TC-cold in the PHY connect/disconnect hooks drm/i915/tc: Remove redundant wakeref=0 check from unblock_tc_cold() drm/i915/tc: Drop tc_cold_block()/unblock()'s power domain parameter drm/i915/tc: Add TC PHY hook to get the TC-cold blocking power domain drm/i915/tc: Add asserts in TC PHY hooks that the required power is on drm/i915/tc: Add TC PHY hook to init the PHY drm/i915/adlp/tc: Use the DE HPD ISR register for hotplug detection drm/i915/tc: Get power ref for reading the HPD live status register drm/i915/tc: Don't connect the PHY in intel_tc_port_connected() drm/i915/adlp/tc: Align the connect/disconnect PHY sequence with bspec drm/i915: Move shared DPLL disabling into CRTC disable hook drm/i915: Disable DPLLs before disconnecting the TC PHY drm/i915: Remove TC PHY disconnect workaround
drm/i915: Remove the encoder update_prepare()/complete() hooks

 drivers/gpu/drm/i915/display/intel_ddi.c      |   71 +-
 drivers/gpu/drm/i915/display/intel_display.c  |   85 +-
 drivers/gpu/drm/i915/display/intel_display.h  |    7 -
 .../drm/i915/display/intel_display_types.h    |   19 +-
 drivers/gpu/drm/i915/display/intel_dp_mst.c   |   15 +
 drivers/gpu/drm/i915/display/intel_tc.c       | 1248 +++++++++++------
 drivers/gpu/drm/i915/display/intel_tc.h       |    4 +-
 drivers/gpu/drm/i915/i915_pci.c               |    3 -
 drivers/gpu/drm/i915/intel_device_info.h      |    1 -
 9 files changed, 850 insertions(+), 603 deletions(-)
Signature · 1 line
2.37.1