Skip to content

drm/i915: Start cleaning up the DPLL ID mess

Ville Syrjala intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest4 patches 1 replyIn review

Changes in v3 from the cover letter

- deal with pll->index in debugfs code
- rebase due to other changes

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/i915: Stop requiring PLL index == PLL IDdrivers/gpu/drm/i915/display/intel_display_debugfs.c drivers/gpu/drm/i915/display/intel_dpll_mgr.c drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1 more+48 -320 replies
2/4drm/i915: Decouple I915_NUM_PLLS from PLL IDsdrivers/gpu/drm/i915/display/intel_dpll_mgr.c+24 -20 replies
3/4drm/i915: Introduce for_each_shared_dpll()drivers/gpu/drm/i915/display/intel_display_debugfs.c drivers/gpu/drm/i915/display/intel_dpll_mgr.c drivers/gpu/drm/i915/display/intel_dpll_mgr.h +1 more+25 -260 replies
4/4drm/i915: s/dev_priv/i915/ in the shared_dpll codedrivers/gpu/drm/i915/display/intel_dpll_mgr.c drivers/gpu/drm/i915/display/intel_dpll_mgr.h+443 -4430 replies

Reviews trailers per patch

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

PatchJani Nikula
SeriesR-b
1/4R-b
2/4R-b
3/4R-b
4/4R-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 [Intel-gfx] [PATCH v3 0/4] drm/i915: Start cleaning up the DPLL ID mess

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

Start to clean up the mess around DPLL IDs a bit by removing the nasty assumption that the index of the DPLL in the arrays matches its ID. Fortunately we did have a WARN i nthere to cathc mistakes, but better to not has such silly assumptions i nthe first place.

There's still a lot of mess left since the DPLL IDs in the hardware are a mess as well. Eg. the index of the register instance often differs from the index used to select the DPLL in clock routing thing. So we could probably clean up more of that, perhaps by declaring separate IDs for each PLL for each use case...

v2:
- the trivial patches were already merged
- introduce pll->index
- add another patch for for_each_shared_dpll()
- add another patch s/dev_priv/i915/

v3:
- deal with pll->index in debugfs code
- rebase due to other changes

Ville Syrjälä (4):
drm/i915: Stop requiring PLL index == PLL ID drm/i915: Decouple I915_NUM_PLLS from PLL IDs drm/i915: Introduce for_each_shared_dpll() drm/i915: s/dev_priv/i915/ in the shared_dpll code

 .../drm/i915/display/intel_display_debugfs.c  |   9 +-
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 965 +++++++++---------
 drivers/gpu/drm/i915/display/intel_dpll_mgr.h |  26 +-
 .../gpu/drm/i915/display/intel_pch_refclk.c   |   7 +-
 4 files changed, 522 insertions(+), 485 deletions(-)
Signature · 1 line
2.41.0