[PATCH 00/11] drm/i915/cdclk: Declutter CDCLK code

Ville Syrjala ville.syrjala at linux.intel.com
Tue Oct 29 21:52:06 UTC 2024


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Declutter the CDCLK code a bit by moving a all the
foo_min_cdclk() things out into their respective files.

And I also reworked the "pixels per clock" and
guardband handling so that we don't have to repeat
essentially the same platform if-ladder two times.

TODO: the dsi and audio min_cdclk stuff could perhaps
      be more cleanly abstracted into some kind of
      encoder->min_cdlk() thing, but haven't really
      given this more than a cursory thought...

Ville Syrjälä (11):
  drm/i915: Introduce HAS_DOUBLE_WIDE()
  drm/i915/cdclk: Extract intel_cdclk_guardband() and intel_cdclk_ppc()
  drm/i915/cdclk: Extract hsw_ips_min_cdclk()
  drm/i915/cdclk: Extract intel_audio_min_cdclk()
  drm/i915/cdclk: Factor out has_audio check in intel_audio_min_cdclk()
  drm/i915/cdclk: Extract vlv_dsi_min_cdclk()
  drm/i915/cdclk: Factor out INTEL_OUTPUT_DSI check in
    vlv_dsi_min_cdclk()
  drm/i915/cdclk: Suck the compression_enable check into
    intel_vdsc_min_cdclk()
  drm/i915/cdclk: Drop pointles max_t() usage in intel_vdsc_min_cdclk()
  drm/i915/cdclk: Relocate intel_vdsc_min_cdclk()
  drm/i915/cdclk: Unify cdclk max() parameter order

 drivers/gpu/drm/i915/display/hsw_ips.c        |  16 +-
 drivers/gpu/drm/i915/display/hsw_ips.h        |   6 +-
 drivers/gpu/drm/i915/display/intel_audio.c    |  47 +++++
 drivers/gpu/drm/i915/display/intel_audio.h    |   1 +
 drivers/gpu/drm/i915/display/intel_bw.c       |   2 +-
 drivers/gpu/drm/i915/display/intel_cdclk.c    | 175 ++++--------------
 drivers/gpu/drm/i915/display/intel_display.c  |   4 +-
 .../drm/i915/display/intel_display_device.h   |   1 +
 drivers/gpu/drm/i915/display/intel_vdsc.c     |  46 +++++
 drivers/gpu/drm/i915/display/intel_vdsc.h     |   1 +
 drivers/gpu/drm/i915/display/vlv_dsi.c        |  25 +++
 drivers/gpu/drm/i915/display/vlv_dsi.h        |   8 +
 12 files changed, 187 insertions(+), 145 deletions(-)

-- 
2.45.2



More information about the Intel-gfx mailing list