[Intel-gfx] [RFC 0/8] re-organize a bit gen10 and gen11

Rodrigo Vivi rodrigo.vivi at intel.com
Thu Oct 18 23:34:39 UTC 2018


The goal off this series is to start the trend of prefering
gen number and feature checks instead of hardcoding
individual platform names everywhere.

I tried to use coccinelle but I failed badly because
there are places where it makes sense to have platform
codenames still. On sort part it was many different cases
that manually changing got easier than creating rules
(at least for me).

Please let me know what you think.

Thanks in advance,
Rodrigo.

Rodrigo Vivi (8):
  drm/i915: Make number of ddi ports explicit.
  drm/i915: Use the ddi_ports info to kill ugly CNL_WITH_PORT_F.
  drm/i915/gen10: Prefer gen number than platform codename.
  drm/i915: Group gen 10 display.
  drm/i915/gen11+: Prefer gen over platform codename.
  drm/i915: Consolidate cdclk hooks.
  drm/i915: Sort platform if cases from newer-to-older.
  drm/i915: Simplify intel_has_sagv function.

 drivers/gpu/drm/i915/i915_drv.c          | 10 +++
 drivers/gpu/drm/i915/i915_drv.h          |  8 +-
 drivers/gpu/drm/i915/i915_irq.c          |  5 +-
 drivers/gpu/drm/i915/i915_pci.c          |  5 +-
 drivers/gpu/drm/i915/intel_cdclk.c       | 97 +++++++++++-------------
 drivers/gpu/drm/i915/intel_color.c       |  2 +-
 drivers/gpu/drm/i915/intel_ddi.c         | 48 ++++++------
 drivers/gpu/drm/i915/intel_device_info.h |  2 +-
 drivers/gpu/drm/i915/intel_display.c     | 16 ++--
 drivers/gpu/drm/i915/intel_dp.c          | 26 ++++---
 drivers/gpu/drm/i915/intel_dpll_mgr.c    |  4 +-
 drivers/gpu/drm/i915/intel_hdmi.c        |  2 +-
 drivers/gpu/drm/i915/intel_hotplug.c     |  2 +-
 drivers/gpu/drm/i915/intel_mocs.c        |  3 +-
 drivers/gpu/drm/i915/intel_pm.c          | 12 +--
 drivers/gpu/drm/i915/intel_runtime_pm.c  | 26 +++----
 drivers/gpu/drm/i915/intel_sprite.c      |  2 +-
 drivers/gpu/drm/i915/intel_uncore.c      |  2 +-
 18 files changed, 136 insertions(+), 136 deletions(-)

-- 
2.19.1



More information about the Intel-gfx mailing list