Skip to content

drm/i915: adjusted_mode.clock vs. port_clock v3

[email protected] intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 of 11 patches 8 repliesIn review

7 of 11 patches are in this archive. The cover letter announces 11.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11drm/i915: Don't factor in pixel multplier when deriving dotclock from link clock and M/N valuesdrivers/gpu/drm/i915/intel_display.c+7 -80 replies
4/11drm/i915: Add state readout and checking for has_dp_encoder and dp_m_ndrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_dp.c drivers/gpu/drm/i915/intel_drv.h+72 -102 replies
5/11drm/i915: Make intel_fuzzy_clock_check() take in arbitrary clocksdrivers/gpu/drm/i915/intel_display.c+4 -71 reply
6/11drm/i915: Add intel_dotclock_calculate()drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h+19 -236 replies
7/11drm/i915: Make i9xx_crtc_clock_get() use dpll_hw_statedrivers/gpu/drm/i915/intel_display.c+3 -44 replies
8/11drm/i915: Make i9xx_crtc_clock_get() work for PCH DPLLsdrivers/gpu/drm/i915/intel_display.c+3 -17 replies
9/11drm/i915: Fix port_clock and adjusted_mode.clock readout all overdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_crt.c drivers/gpu/drm/i915/intel_display.c +5 more+72 -185 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchJani Nikula
SeriesR-b R-b R-b R-b
1/11R-b
4/11R-b
5/11R-b
6/11R-b
7/11R-b
8/11R-b
9/11R-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 [PATCH 00/11] drm/i915: adjusted_mode.clock vs. port_clock v3

Another day, another attempt.

This series replaces the earlier attempt:
[PATCH 0/8] drm/i915: adjusted_mode.clock vs. port_clock v2

The main new idea is to make it the encoders' responsibility to calculate adjusted_mode.clock. In order to do that I had to add DP M/N extraction and i9xx_crtc_clock_get() had to be improved so that it can dig out the PCH DPLL frequency. The rest is more or less the same old.

As a bonus we now get to cross check the FDI's idea of dotclock against the encoder's idea.

Also now CTG too can calculate the dotclock from the DP port_clock. I don't think that could have worked before as the DPLL was running at the DP link frequency, so we read that out into adjusted_mode.clock and then compared it with whatever the user requested. Not the same thing at all. But now it should just work (tm).

I gave it a quick whirl on my ILK eDP + DP, and IVB HDMI and DP. Neither machine started to yell at me, so I think it's in a semi-decent shape at least. Unfortunately I don't have a CTG w/ DP so I can't test that part, nor do I have any SDVO/DVO hardware.