drm/i915: Dump skl+ watermark changes
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 8 Feb 2019 20:05:27 +0000 (22:05 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 12 Feb 2019 12:36:45 +0000 (14:36 +0200)
commitab98e94435abc493c8fedf5e07b0b3f045424d32
treebad94615015142d0350c4708074d6fa283896c2f
parented7dc6777400937b4686e9ec1db1533ea4546864
drm/i915: Dump skl+ watermark changes

Currently we're only dumping out the ddb allocation changes, let's do
the same for the watermarks. This should help with debugging underruns
and whatnot.

First I tried one line per plane per wm level, but that resulted in
an obnoxious amount of lines printed. So as a compromise I settled
on a four line format, each line containing a single watermark related
value (enable,lines,blocks,min_ddb_alloc) for all 8 levels (+trans wm).
It still produces quite a lot of output but I can't really see a way
around that because we simply have a lot of data to dump.

Let's also pimp the ddb debug to print the size of the allocations
too, not just their bounds. Makes it a bit easier to compare against
the watermarks.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190208200527.12844-1-ville.syrjala@linux.intel.com
Reviewed-by: Clint Taylor <Clinton.A.Taylor@intel.com>
drivers/gpu/drm/i915/intel_pm.c