mbox series

[00/17] drm/i915: Global state rework

Message ID 20200120174728.21095-1-ville.syrjala@linux.intel.com
Headers show
Series drm/i915: Global state rework | expand

Message

Ville Syrjälä Jan. 20, 2020, 5:47 p.m. UTC
From: Ville Syrjälä <ville.syrjala@linux.intel.com>

Here's an attempt at making the ad-hoc global state handling more
standardized like the private obj stuff. As the first excercise we
convert the bandwidth and cdclk states to use this. Another future
target for this is probably ddb/fifo allocation for the pipes.

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

Ville Syrjälä (17):
  drm/i915: Polish WM_LINETIME register stuff
  drm/i915: Move linetime wms into the crtc state
  drm/i915: Nuke skl wm.dirty_pipes bitmask
  drm/i915: Move more cdclk state handling into the cdclk code
  drm/i915: Collect more cdclk state under the same roof
  drm/i915: s/need_cd2x_updare/can_cd2x_update/
  drm/i915: s/cdclk_state/cdclk_config/
  drm/i915: Simplify intel_set_cdclk_{pre,post}_plane_update() calling
    convention
  drm/i915: Extract intel_cdclk_state
  drm/i915: swap() the entire cdclk state
  drm/i915: s/init_cdclk/init_cdclk_hw/
  drm/i915: Move intel_atomic_state_free() into intel_atomic.c
  drm/i915: Intrduce better global state handling
  drm/i915: Convert bandwidth state to global state
  drm/i915: Introduce intel_calc_active_pipes()
  drm/i915: Convert cdclk to global state
  drm/i915: Store active_pipes bitmask in cdclk state

 drivers/gpu/drm/i915/Makefile                 |   1 +
 drivers/gpu/drm/i915/display/intel_atomic.c   |  26 +-
 drivers/gpu/drm/i915/display/intel_atomic.h   |   5 +-
 .../gpu/drm/i915/display/intel_atomic_plane.c |  66 +-
 .../gpu/drm/i915/display/intel_atomic_plane.h |   5 +-
 drivers/gpu/drm/i915/display/intel_audio.c    |  39 +-
 drivers/gpu/drm/i915/display/intel_bw.c       |  31 +-
 drivers/gpu/drm/i915/display/intel_bw.h       |   4 +-
 drivers/gpu/drm/i915/display/intel_cdclk.c    | 748 ++++++++++--------
 drivers/gpu/drm/i915/display/intel_cdclk.h    |  71 +-
 drivers/gpu/drm/i915/display/intel_display.c  | 297 +++++--
 drivers/gpu/drm/i915/display/intel_display.h  |   3 +
 .../drm/i915/display/intel_display_power.c    |  24 +-
 .../drm/i915/display/intel_display_types.h    |  35 +-
 .../gpu/drm/i915/display/intel_global_state.c | 223 ++++++
 .../gpu/drm/i915/display/intel_global_state.h |  87 ++
 drivers/gpu/drm/i915/gvt/handlers.c           |   6 +-
 drivers/gpu/drm/i915/i915_drv.h               |  48 +-
 drivers/gpu/drm/i915/i915_reg.h               |  14 +-
 drivers/gpu/drm/i915/intel_pm.c               | 147 +---
 20 files changed, 1147 insertions(+), 733 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/display/intel_global_state.c
 create mode 100644 drivers/gpu/drm/i915/display/intel_global_state.h