drm/i915: Add pipe crc tracepoint
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 6 Feb 2019 20:49:07 +0000 (22:49 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Feb 2019 18:57:33 +0000 (20:57 +0200)
commit5cee6c458771ce7f52fcf9fad38c0604def7b8ca
tree84b051f5414acf92138d2ff26a54414067c90722
parent9095c86374db8a6b75e0e3398e7c1a9859d6b868
drm/i915: Add pipe crc tracepoint

Add a tracepoint for pipe crc. Makes life much simpler when staring at
traces when hunting for fifo underruns and other issues which cause
corrupted frames. We'll add the tracepoint before filtering out any
potentially bogus crcs during modeset (should actually verify if that
filtering is even correct anymore...)

v2: s/crcs[5]/*crcs/ in the function argument because something
    in the macros wants to do sizeof(crcs) and gcc likes to
    warn us it's not an actual array so the size may not be
    as expected. The silly bugger even does that for 'crcs[]'
    causing us to lose any helpful syntactic hint that we
    are in fact dealing with an array (kbuild test robot)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190206204910.13965-1-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_irq.c
drivers/gpu/drm/i915/i915_trace.h