[Intel-gfx] [PATCH 00/10] drm/i915: Introduce i915 based i915_MISSING_CASE macro and us it in i915

Pankaj Bharadiya pankaj.laxminarayan.bharadiya at intel.com
Tue Feb 25 13:46:59 UTC 2020


Existing MISSING_CASE macro uses WARN call to dump the stack trace.

Now that we have struct drm_device based drm_WARN, introduce struct
drm_i915_private based i915_MISSING_CASE macro which uses drm_WARN so
that device specific information will also get printed in backtrace.

Also, automatically convert the MISSING_CASE with i915 specific
i915_MISSING_CASE  variant using coccinelle semantic patch scripts.

i915_MISSING_CASE macro should be preferred over MISSING_CASE,
wherever possible.

Pankaj Bharadiya (10):
  drm/i915: Add i915 device based MISSING_CASE macro
  drm/i915/display/cdclk: Make MISSING_CASE backtrace i915 specific
  drm/i915/display/ddi: Make MISSING_CASE backtrace i915 specific
  drm/i915/display/display: Make MISSING_CASE backtrace i915 specific
  drm/i915/dp: Make MISSING_CASE backtrace i915 specific
  drm/i915/display/hdmi: Make MISSING_CASE backtrace i915 specific
  drm/i915/display: Make MISSING_CASE backtrace i915 specific
  drm/i915/gem: Make MISSING_CASE backtrace i915 specific
  drm/i915/gt: Make MISSING_CASE backtrace i915 specific
  drm/i915: Make MISSING_CASE backtrace i915 specific

 drivers/gpu/drm/i915/display/icl_dsi.c        |  8 +++--
 drivers/gpu/drm/i915/display/intel_bios.c     |  4 +--
 drivers/gpu/drm/i915/display/intel_bw.c       |  6 ++--
 drivers/gpu/drm/i915/display/intel_cdclk.c    | 19 +++++++-----
 .../gpu/drm/i915/display/intel_combo_phy.c    |  6 ++--
 drivers/gpu/drm/i915/display/intel_ddi.c      | 19 ++++++------
 drivers/gpu/drm/i915/display/intel_display.c  | 29 ++++++++++---------
 drivers/gpu/drm/i915/display/intel_dp.c       | 28 +++++++++---------
 drivers/gpu/drm/i915/display/intel_dpll_mgr.c | 10 +++----
 drivers/gpu/drm/i915/display/intel_hdmi.c     | 12 ++++----
 drivers/gpu/drm/i915/display/intel_hotplug.c  |  2 +-
 drivers/gpu/drm/i915/display/intel_sprite.c   |  4 +--
 drivers/gpu/drm/i915/display/intel_tc.c       |  2 +-
 drivers/gpu/drm/i915/gem/i915_gem_stolen.c    | 17 +++++++----
 drivers/gpu/drm/i915/gt/intel_workarounds.c   |  6 ++--
 drivers/gpu/drm/i915/i915_debugfs.c           |  3 +-
 drivers/gpu/drm/i915/i915_drv.c               |  2 +-
 drivers/gpu/drm/i915/i915_gem_fence_reg.c     |  2 +-
 drivers/gpu/drm/i915/i915_gpu_error.c         |  2 +-
 drivers/gpu/drm/i915/i915_utils.h             |  4 +++
 drivers/gpu/drm/i915/intel_device_info.c      | 13 +++++----
 drivers/gpu/drm/i915/intel_pm.c               | 10 +++----
 22 files changed, 113 insertions(+), 95 deletions(-)

-- 
2.23.0



More information about the Intel-gfx mailing list