Skip to content

drm/i915: Make fastset not suck and allow seamless M/N changes

Ville Syrjala intel-gfx 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest17 patches 0 repliesNew
  2. v317 patches 3 repliesSuperseded
  3. v216 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v126 patches28 repliesSuperseded

Changes in v2 from the cover letter

- bunch of stuff already merged
- a bit more refactoring to make things nicer
- Tweak the M/N rounding for fastboot
- don't mess with the DP link rate on platforms (pre-BDW) where we haven't implemented seamsless M/N chages

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17drm/i915: Relocate intel_crtc_dotclock()drivers/gpu/drm/i915/display/intel_ddi.c drivers/gpu/drm/i915/display/intel_display.c+22 -220 replies
2/17drm/i915: Shuffle some PLL code arounddrivers/gpu/drm/i915/display/intel_dpll_mgr.c+88 -880 replies
3/17drm/i915: Extract HAS_DOUBLE_BUFFERED_M_N()drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_dp.c drivers/gpu/drm/i915/i915_drv.h+4 -30 replies
4/17drm/i915/dsi: Extract {vlv, bxt}_get_pclk()drivers/gpu/drm/i915/display/vlv_dsi_pll.c+68 -530 replies
5/17drm/i915: Do .crtc_compute_clock() earlierdrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_dpll.c+5 -70 replies
6/17drm/i915: Reassign DPLLs only for crtcs going throug .compute_config()drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_dpll.c+3 -200 replies
7/17drm/i915: Feed the DPLL output freq back into crtc_statedrivers/gpu/drm/i915/display/intel_crt.c drivers/gpu/drm/i915/display/intel_dpll.c drivers/gpu/drm/i915/display/intel_dpll_mgr.c +4 more+117 -120 replies
8/17drm/i915: Compute clocks earlierdrivers/gpu/drm/i915/display/intel_display.c+4 -40 replies
9/17drm/i915: Make M/N checks non-fuzzydrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_modeset_verify.c+13 -450 replies
10/17drm/i915: Make all clock checks non-fuzzydrivers/gpu/drm/i915/display/intel_display.c+4 -150 replies
11/17drm/i915: Set active dpll early for icl+drivers/gpu/drm/i915/display/intel_dpll_mgr.c+6 -00 replies
12/17drm/i915: Nuke fastet state copy hacksdrivers/gpu/drm/i915/display/intel_display.c+3 -250 replies
13/17drm/i915: Skip intel_modeset_pipe_config_late() if the pipe is not enableddrivers/gpu/drm/i915/display/intel_display.c+5 -30 replies
14/17drm/i915: Add intel_panel_highest_mode()drivers/gpu/drm/i915/display/intel_panel.c drivers/gpu/drm/i915/display/intel_panel.h+18 -00 replies
15/17drm/i915: Allow M/N change during fastset on bdw+drivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display_types.h drivers/gpu/drm/i915/display/intel_dp.c+43 -80 replies
16/17drm/i915: Use a fixed N value alwaysdrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_display.h drivers/gpu/drm/i915/display/intel_dp.c +2 more+24 -290 replies
17/17drm/i915: Round TMDS clock to nearestdrivers/gpu/drm/i915/display/intel_display.c drivers/gpu/drm/i915/display/intel_hdmi.c+3 -20 replies

Reviews trailers per patch

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

PatchJani NikulaMika Kahola
1/17R-b
2/17R-b
3/17R-b
4/17R-b
5/17R-b
6/17R-b
7/17R-b
8/17R-b
9/17R-b
10/17R-b
11/17A-b
12/17R-b
13/17R-b
14/17R-b
15/17R-b
16/17R-b
17/17A-b

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

Read the v4 thread

Cover letter [Intel-gfx] [PATCH v4 00/17] drm/i915: Make fastset not suck and allow seamless M/N changes

From: Ville Syrjälä <[email protected]>

And with fastset made to not suck we can consider allowing seameless M/N changes on eDP panels that support such things. I've given that a quick test here on a TGL and it seemed to work OK.

The rough parts:
- The DPLL stuff is kinda messy still, a lot of which is due to the dpll_mgr vs. not depending on platform/output type. Maybe it's finally time to start cleaning that mess up...
- the port_dpll[] stuff probably needs to be reworked at some point to make a bit more sense
- fastboot I *think* should mostly keep working now that we try to match the GOP/VBIOS M/N behaviour. FDI M/N vs. DPLL is a bit of a challenge for the platforms where the encoder live in the PCH, but I'm going to declare that as not so important
- DSI clock handling is snafu
- DP link computation policy might need a bit more work since we may now consume more bandwidth than before on machines where seamless M/N changes are possible

I also did a quick smoke test through the series on tgl and snb in the hopes of keeping this at least mostly bisectable.

Changes in v2:
- bunch of stuff already merged
- a bit more refactoring to make things nicer
- Tweak the M/N rounding for fastboot
- don't mess with the DP link rate on platforms (pre-BDW) where we haven't implemented seamsless M/N chages
Changes in v3:
- Attempt to get the VLV/BXT DSI stuff to pass CI :/ Changes in v4:
- Just a rebase

Ville Syrjälä (17):
drm/i915: Relocate intel_crtc_dotclock()
drm/i915: Shuffle some PLL code around
drm/i915: Extract HAS_DOUBLE_BUFFERED_M_N()
drm/i915/dsi: Extract {vlv,bxt}_get_pclk()
drm/i915: Do .crtc_compute_clock() earlier
drm/i915: Reassign DPLLs only for crtcs going throug .compute_config() drm/i915: Feed the DPLL output freq back into crtc_state drm/i915: Compute clocks earlier
drm/i915: Make M/N checks non-fuzzy
drm/i915: Make all clock checks non-fuzzy
drm/i915: Set active dpll early for icl+
drm/i915: Nuke fastet state copy hacks
drm/i915: Skip intel_modeset_pipe_config_late() if the pipe is not
enabled
drm/i915: Add intel_panel_highest_mode()
drm/i915: Allow M/N change during fastset on bdw+ drm/i915: Use a fixed N value always
drm/i915: Round TMDS clock to nearest

 drivers/gpu/drm/i915/display/intel_crt.c      |   3 +
 drivers/gpu/drm/i915/display/intel_ddi.c      |  22 --
 drivers/gpu/drm/i915/display/intel_display.c  | 199 +++++++----------
 drivers/gpu/drm/i915/display/intel_display.h  |   2 +-
 .../drm/i915/display/intel_display_types.h    |   1 +
 drivers/gpu/drm/i915/display/intel_dp.c       |  50 +++--
 drivers/gpu/drm/i915/display/intel_dp_mst.c   |   3 +-
 drivers/gpu/drm/i915/display/intel_dpll.c     |  69 +++++-
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 204 ++++++++++--------
 drivers/gpu/drm/i915/display/intel_fdi.c      |   2 +-
 drivers/gpu/drm/i915/display/intel_hdmi.c     |   2 +-
 .../drm/i915/display/intel_modeset_verify.c   |   6 +-
 drivers/gpu/drm/i915/display/intel_panel.c    |  15 ++
 drivers/gpu/drm/i915/display/intel_panel.h    |   3 +
 .../gpu/drm/i915/display/intel_pch_refclk.c   |  10 +
 .../gpu/drm/i915/display/intel_pch_refclk.h   |   1 +
 drivers/gpu/drm/i915/display/vlv_dsi.c        |  11 +-
 drivers/gpu/drm/i915/display/vlv_dsi_pll.c    | 141 +++++++-----
 drivers/gpu/drm/i915/i915_drv.h               |   2 +
 19 files changed, 420 insertions(+), 326 deletions(-)
Signature · 1 line
2.35.1