[Intel-gfx] [PATCH 0/7] drm/i915: Always use crtc_ timings with adjusted_mode

ville.syrjala at linux.intel.com ville.syrjala at linux.intel.com
Tue Sep 8 03:40:43 PDT 2015


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

Maarten pointed out that we still look at the non-crtc_ timings from
adjusted_mode in many places. While that is only strictly required with
HDMI due to stereo doubling I think it's better to be consistent about
it and always use the crtc_ timings. So this series aims to do just that.

I used spatch and sed to do a bunch of the conversion. I also used spatch
to located the functions that get passed the adjusted_mode (fairly easy
after the mode->adjustead_mode rename), but I was too lazy to figure out
if there is a way to make it rename those function arguments at the same
time, so I just did that part manually.

Series available here:
git://github.com/vsyrjala/linux.git adjusted_mode_crtc_timings

In the branch I also included my earlier drm_edid.c const patches [1],
as I believe this series would run into some compiler warnings without
some of those those patches.

[1] http://lists.freedesktop.org/archives/dri-devel/2015-September/089896.html

Ville Syrjälä (7):
  drm/i915: Use intel_panel for DVO fixed mode handling
  drm/i915: Always call the adjusted mode 'adjusted_mode'
  drm/i915: s/mode/adjusted_mode/ in functions that really get passed
    the adjusted_mode
  drm/i915: Always use crtc_ timings when dealing with adjustead_mode
  drm/i915: Move HDMI aspect ratio setup to .compute_config()
  drm/i915: Constify adjusted_mode
  drm/i915: Add HDMI aspect ratio property for SDVO

 drivers/gpu/drm/i915/dvo.h           |   4 +-
 drivers/gpu/drm/i915/dvo_ch7017.c    |   4 +-
 drivers/gpu/drm/i915/dvo_ch7xxx.c    |   4 +-
 drivers/gpu/drm/i915/dvo_ivch.c      |  12 ++--
 drivers/gpu/drm/i915/dvo_ns2501.c    |   4 +-
 drivers/gpu/drm/i915/dvo_sil164.c    |   4 +-
 drivers/gpu/drm/i915/dvo_tfp410.c    |   4 +-
 drivers/gpu/drm/i915/i915_drv.h      |   2 +-
 drivers/gpu/drm/i915/intel_audio.c   |  24 ++++----
 drivers/gpu/drm/i915/intel_crt.c     |   2 +-
 drivers/gpu/drm/i915/intel_display.c |  20 +++----
 drivers/gpu/drm/i915/intel_dp.c      |   2 +-
 drivers/gpu/drm/i915/intel_dp_mst.c  |   4 +-
 drivers/gpu/drm/i915/intel_drv.h     |   3 +-
 drivers/gpu/drm/i915/intel_dsi.c     |  37 ++++++-------
 drivers/gpu/drm/i915/intel_dvo.c     |  59 +++++++++-----------
 drivers/gpu/drm/i915/intel_hdmi.c    |  40 +++++---------
 drivers/gpu/drm/i915/intel_lvds.c    |   3 +-
 drivers/gpu/drm/i915/intel_modes.c   |   9 +++
 drivers/gpu/drm/i915/intel_panel.c   | 104 +++++++++++++++++------------------
 drivers/gpu/drm/i915/intel_pm.c      |  21 +++----
 drivers/gpu/drm/i915/intel_sdvo.c    |  38 +++++++++++--
 drivers/gpu/drm/i915/intel_sprite.c  |  16 +++---
 23 files changed, 215 insertions(+), 205 deletions(-)

-- 
2.4.6



More information about the Intel-gfx mailing list