linux_dsm_epyc7002/drivers/gpu/drm/i915/gvt
Pankaj Bharadiya db19c724cb drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available
drm specific WARN* calls include device information in the
backtrace, so we know what device the warnings originate from.

Covert all the calls of WARN* with device specific drm_WARN*
variants in functions where drm_i915_private struct pointer is
readily available.

The conversion was done automatically with below coccinelle semantic
patch. checkpatch errors/warnings are fixed manually.

@rule1@
identifier func, T;
@@
func(...) {
...
struct drm_i915_private *T = ...;
<+...
(
-WARN(
+drm_WARN(&T->drm,
...)
|
-WARN_ON(
+drm_WARN_ON(&T->drm,
...)
|
-WARN_ONCE(
+drm_WARN_ONCE(&T->drm,
...)
|
-WARN_ON_ONCE(
+drm_WARN_ON_ONCE(&T->drm,
...)
)
...+>
}

@rule2@
identifier func, T;
@@
func(struct drm_i915_private *T,...) {
<+...
(
-WARN(
+drm_WARN(&T->drm,
...)
|
-WARN_ON(
+drm_WARN_ON(&T->drm,
...)
|
-WARN_ONCE(
+drm_WARN_ONCE(&T->drm,
...)
|
-WARN_ON_ONCE(
+drm_WARN_ON_ONCE(&T->drm,
...)
)
...+>
}

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Acked-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20200220165507.16823-8-pankaj.laxminarayan.bharadiya@intel.com
2020-02-24 18:13:20 +08:00
..
aperture_gm.c drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available 2020-02-24 18:13:20 +08:00
cfg_space.c
cmd_parser.c drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available 2020-02-24 18:13:20 +08:00
cmd_parser.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
debug.h
debugfs.c
display.c drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available 2020-02-24 18:13:20 +08:00
display.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
dmabuf.c drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available 2020-02-24 18:13:20 +08:00
dmabuf.h
edid.c drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available 2020-02-24 18:13:20 +08:00
edid.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
execlist.c drm/i915: Make for_each_engine_masked work on intel_gt 2019-10-18 00:06:25 +01:00
execlist.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
fb_decoder.c
fb_decoder.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
firmware.c
gtt.c drm/i915: Remove unneeded semicolon 2019-12-16 23:13:12 +00:00
gtt.h
gvt.c drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available 2020-02-24 18:13:20 +08:00
gvt.h drm/i915/gvt: make gvt oblivious of kvmgt data structures 2020-02-20 16:28:05 +08:00
handlers.c drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available 2020-02-24 18:13:20 +08:00
hypercall.h Linux 5.5-rc7 2020-01-20 11:42:57 +10:00
interrupt.c
interrupt.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
kvmgt.c drm/i915/gvt: make gvt oblivious of kvmgt data structures 2020-02-20 16:28:05 +08:00
Makefile
mmio_context.c drm/i915/gvt: Make WARN* drm specific where drm_priv ptr is available 2020-02-24 18:13:20 +08:00
mmio_context.h
mmio.c
mmio.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
mpt.h drm/i915/gvt: Pin vgpu dma address before using 2019-12-13 11:24:01 +08:00
opregion.c
page_track.c
page_track.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
reg.h
sched_policy.c
sched_policy.h drm/i915: make more headers self-contained 2019-11-08 10:16:13 +00:00
scheduler.c drm/i915/gtt: split up i915_gem_gtt 2020-01-07 19:27:36 +00:00
scheduler.h
trace_points.c
trace.h
vgpu.c Merge drm-intel-next-queued into gvt-next 2020-02-20 16:23:37 +08:00