summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-06-24 16:22:02 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-07-01 11:27:46 +0200
commit8a5729a37375c20a196e14ce49b4390d42bdb87b (patch)
tree2f2f439ea974f5301ad1e3615d31f69058df4b4b /drivers/gpu/drm/i915/i915_debugfs.c
parentb63fb44c65ac37ceac8acd258939fcdc9f223c42 (diff)
drm/i915: Fix reason for per-chip disabling of FBC
When running on my snb machine, recent kernels display successively: [drm:intel_update_fbc], fbc set to per-chip default [drm:intel_update_fbc], fbc disabled per module param But no module param is set. This happens because the check for the module parameter uses a variable that has been overridden inside the "per-chip default" code. Fix up the logic and add another reason for the FBC to the be disabled. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> 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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_debugfs.c b/drivers/gpu/drm/i915/i915_debugfs.c
index 47d6c748057..dca49828e3f 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -1518,6 +1518,9 @@ static int i915_fbc_status(struct seq_file *m, void *unused)
case FBC_MODULE_PARAM:
seq_printf(m, "disabled per module param (default off)");
break;
+ case FBC_CHIP_DEFAULT:
+ seq_printf(m, "disabled per chip default");
+ break;
default:
seq_printf(m, "unknown reason");
}