diff options
author | Paulo Zanoni <paulo.r.zanoni@intel.com> | 2015-06-12 14:36:18 -0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-06-15 18:36:24 +0200 |
commit | 31b9df1040a9ac1d4b88e382f16a50b9f0aff9be (patch) | |
tree | 05eacf22a1192038aa3a058f06ad3b7b5facc4e2 /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | 44c5905e8e977b1dd9bb99bcd5686464fa0aa247 (diff) | |
download | linux-31b9df1040a9ac1d4b88e382f16a50b9f0aff9be.tar.gz linux-31b9df1040a9ac1d4b88e382f16a50b9f0aff9be.tar.bz2 linux-31b9df1040a9ac1d4b88e382f16a50b9f0aff9be.zip |
drm/i915: print FBC compression status on debugfs
We already had a few bugs in the past where FBC was compressing
nothing when it was enabled, which makes the feature quite useless.
Add this information to debugfs so the test suites can check for
regressions in this piece of the code.
Our igt/tests/kms_frontbuffer_tracking already has support for this
message.
v2: - Remove pointless VLV check (Ville).
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_debugfs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c index 698c0a2db067..6c788e434255 100644 --- a/drivers/gpu/drm/i915/i915_debugfs.c +++ b/drivers/gpu/drm/i915/i915_debugfs.c @@ -1638,6 +1638,11 @@ static int i915_fbc_status(struct seq_file *m, void *unused) seq_putc(m, '\n'); } + if (INTEL_INFO(dev_priv)->gen >= 7) + seq_printf(m, "Compressing: %s\n", + yesno(I915_READ(FBC_STATUS2) & + FBC_COMPRESSION_MASK)); + intel_runtime_pm_put(dev_priv); return 0; |