[Intel-gfx] [RFC][PATCH 0/8] drm/i915: Keep drm_crtc->state in sync

Ander Conselvan de Oliveira ander.conselvan.de.oliveira at intel.com
Mon Dec 8 07:21:01 PST 2014


When we implement atomic support, we'll need to keep a crtc current
state in the drm_crtc->state pointer, and save the new config into
a separate state object passed down the call chain. This series moves
in that direction by making struct intel_crtc_config the state struct
for our driver, and by getting rid of intel_crtc->new_config and
passing it down the call chain.

I'm not sure if this actually goes in the right direction, so I'm
sending this RFC.

Thanks,
Ander

Ander Conselvan de Oliveira (8):
  drm/i915: Rename struct intel_crtc_config to intel_crtc_state
  drm/i915: Embedded struct drm_crtc_state in intel_crtc_state
  drm/i915: Pass new_config down do crtc_compute_clock
  drm/i915: Use local pipe_config varariable when available
  drm/i915: Don't access to crtc->new_config from
    intel_mode_max_pixclk()
  drm/i915: Remove intel_crtc->new_config pointer
  drm/i915: Make intel_crtc->config a pointer
  drm/i915: Keep drm_crtc->state in sync with intel_crtc->config

 drivers/gpu/drm/i915/i915_debugfs.c  |  12 +-
 drivers/gpu/drm/i915/i915_drv.h      |   7 +-
 drivers/gpu/drm/i915/i915_irq.c      |   8 +-
 drivers/gpu/drm/i915/intel_audio.c   |   2 +-
 drivers/gpu/drm/i915/intel_crt.c     |  16 +-
 drivers/gpu/drm/i915/intel_ddi.c     | 103 ++---
 drivers/gpu/drm/i915/intel_display.c | 714 ++++++++++++++++++-----------------
 drivers/gpu/drm/i915/intel_dp.c      |  34 +-
 drivers/gpu/drm/i915/intel_dp_mst.c  |  15 +-
 drivers/gpu/drm/i915/intel_drv.h     |  45 +--
 drivers/gpu/drm/i915/intel_dsi.c     |  18 +-
 drivers/gpu/drm/i915/intel_dvo.c     |  20 +-
 drivers/gpu/drm/i915/intel_fbdev.c   |  10 +-
 drivers/gpu/drm/i915/intel_hdmi.c    |  48 +--
 drivers/gpu/drm/i915/intel_lvds.c    |  16 +-
 drivers/gpu/drm/i915/intel_overlay.c |   2 +-
 drivers/gpu/drm/i915/intel_panel.c   |  16 +-
 drivers/gpu/drm/i915/intel_pm.c      |  60 +--
 drivers/gpu/drm/i915/intel_psr.c     |   8 +-
 drivers/gpu/drm/i915/intel_sdvo.c    |  28 +-
 drivers/gpu/drm/i915/intel_sprite.c  |   2 +-
 drivers/gpu/drm/i915/intel_tv.c      |  10 +-
 22 files changed, 604 insertions(+), 590 deletions(-)

-- 
1.9.1



More information about the Intel-gfx mailing list