Skip to content

drm/i915: Introduce intel_cdclk_state (v3)

[email protected] intel-gfx 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 posting 3/31 of 3 patches 0 repliesNew
  2. v3 Latest12 of 14 patches 4 repliesIn review
  3. v2 posting 2/38 of 14 patches 2 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/314 patches23 repliesSuperseded
v114 patches4 repliesSuperseded

12 of 14 patches are in this archive. The cover letter announces 14.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14drm/i915: Store the pipe pixel rate in the crtc statedrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_fbc.c +1 more+42 -170 replies
3/14drm/i915: s/get_display_clock_speed/get_cdclk/drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_runtime_pm.c+39 -590 replies
3/14drm/i915: s/get_display_clock_speed/get_cdclk/drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_runtime_pm.c+41 -620 replies
4/14drm/i915: Clean up the .get_cdclk() assignment if ladderdrivers/gpu/drm/i915/intel_display.c+24 -172 replies
5/14drm/i915: Move most cdclk/rawclk related code to intel_cdclk.cDocumentation/gpu/i915.rst drivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/intel_cdclk.c +2 more+2017 -18940 replies
6/14drm/i915: Pass computed vco to bxt_set_cdclk()drivers/gpu/drm/i915/intel_cdclk.c+19 -140 replies
7/14drm/i915: Start moving the cdclk stuff into a distinct state structuredrivers/gpu/drm/i915/i915_debugfs.c drivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_audio.c +7 more+248 -1711 reply
8/14drm/i915: Track full cdclk state for the logical and actual cdclk frequenciesdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_cdclk.c drivers/gpu/drm/i915/intel_display.c +3 more+127 -830 replies
10/14drm/i915: Pass the cdclk state to the set_cdclk() functionsdrivers/gpu/drm/i915/intel_cdclk.c+48 -300 replies
11/14drm/i915: Move PFI credit reprogramming into vlv/chv_set_cdclk()drivers/gpu/drm/i915/intel_cdclk.c+4 -10 replies
13/14drm/i915: Replace the .modeset_commit_cdclk() hook with a more direct .set_cdclk() hookdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/intel_cdclk.c drivers/gpu/drm/i915/intel_display.c +1 more+38 -511 reply
14/14drm/i915: Move ilk_pipe_pixel_rate() to intel_display.cdrivers/gpu/drm/i915/intel_display.c drivers/gpu/drm/i915/intel_drv.h drivers/gpu/drm/i915/intel_pm.c+35 -340 replies

Reviews trailers per patch

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

PatchAnder Conselvan de Oliveira
SeriesR-b R-b R-b R-b R-b R-b
1/14R-b
3/14R-b R-b R-b
3/14R-b R-b R-b
4/14R-b R-b
5/14R-b
6/14R-b
7/14R-b R-b
8/14R-b
10/14R-b
11/14R-b R-b
13/14R-b R-b
14/14R-b

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

Read the v3 thread

Cover letter [PATCH v3 00/14] drm/i915: Introduce intel_cdclk_state (v3)

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

Here's the latest version of my cdclk state work. I tried to accomodate most of the review feedback, although there were some comments which I think are better left for a followup work. Mainly about renaming some functions and whatnot to make more sense, and probably adjusting how we do the state swap.

On that last point, I left that 'hw' state under dev_priv->cdclk. I think we should be able to get rid of that if we pass the old cdclk state down to the code that actually programs the cdlck (since that code wants to compare the new and current states to see which parts of the programming are needed).

Another thing I realized recently is that we have no protection against gmbus or aux vs. cdclk reprogramming. On some platforms/ports gmbus and/or aux is clock by cdclk, so I think we need to add some protection. Fortunately both gmbus and aux have their own low level mutexes so I think we should be able to just grab those around the reprogramming part. Although for this we might have to keep the 'hw' cdclk state as we'd need to make sure the gmbus/aux code programs the dividers based on the actual hardware state.

So, there's still some work left, but I think we should be able to move this forward and hopefully unblock some *future* stuff.

Entire series available here:
git://github.com/vsyrjala/linux.git cdclk_state_4

Ville Syrjälä (14):
drm/i915: Store the pipe pixel rate in the crtc state drm/i915: Nuke intel_mode_max_pixclk()
drm/i915: s/get_display_clock_speed/get_cdclk/
drm/i915: Clean up the .get_cdclk() assignment if ladder drm/i915: Move most cdclk/rawclk related code to intel_cdclk.c drm/i915: Pass computed vco to bxt_set_cdclk()
drm/i915: Start moving the cdclk stuff into a distinct state structure drm/i915: Track full cdclk state for the logical and actual cdclk
frequencies
drm/i915: Pass dev_priv to remainder of the cdclk functions drm/i915: Pass the cdclk state to the set_cdclk() functions drm/i915: Move PFI credit reprogramming into vlv/chv_set_cdclk() drm/i915: Nuke the VLV/CHV PFI programming power domain workaround drm/i915: Replace the .modeset_commit_cdclk() hook with a more direct
.set_cdclk() hook
drm/i915: Move ilk_pipe_pixel_rate() to intel_display.c

 Documentation/gpu/i915.rst              |    9 +
 drivers/gpu/drm/i915/Makefile           |    1 +
 drivers/gpu/drm/i915/i915_debugfs.c     |    2 +-
 drivers/gpu/drm/i915/i915_drv.h         |   37 +-
 drivers/gpu/drm/i915/intel_audio.c      |    2 +-
 drivers/gpu/drm/i915/intel_cdclk.c      | 1867 +++++++++++++++++++++++++++++++
 drivers/gpu/drm/i915/intel_display.c    | 1831 ++----------------------------
 drivers/gpu/drm/i915/intel_dp.c         |    4 +-
 drivers/gpu/drm/i915/intel_drv.h        |   43 +-
 drivers/gpu/drm/i915/intel_fbc.c        |    5 +-
 drivers/gpu/drm/i915/intel_panel.c      |    4 +-
 drivers/gpu/drm/i915/intel_pm.c         |   51 +-
 drivers/gpu/drm/i915/intel_runtime_pm.c |    6 +-
 13 files changed, 2042 insertions(+), 1820 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/intel_cdclk.c
Signature · 6 lines
2.10.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx