mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 11:09:48 +07:00
db19c724cb
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 |
||
---|---|---|
.. | ||
aperture_gm.c | ||
cfg_space.c | ||
cmd_parser.c | ||
cmd_parser.h | ||
debug.h | ||
debugfs.c | ||
display.c | ||
display.h | ||
dmabuf.c | ||
dmabuf.h | ||
edid.c | ||
edid.h | ||
execlist.c | ||
execlist.h | ||
fb_decoder.c | ||
fb_decoder.h | ||
firmware.c | ||
gtt.c | ||
gtt.h | ||
gvt.c | ||
gvt.h | ||
handlers.c | ||
hypercall.h | ||
interrupt.c | ||
interrupt.h | ||
kvmgt.c | ||
Makefile | ||
mmio_context.c | ||
mmio_context.h | ||
mmio.c | ||
mmio.h | ||
mpt.h | ||
opregion.c | ||
page_track.c | ||
page_track.h | ||
reg.h | ||
sched_policy.c | ||
sched_policy.h | ||
scheduler.c | ||
scheduler.h | ||
trace_points.c | ||
trace.h | ||
vgpu.c |