summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_debugfs.c
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2014-12-03 17:33:24 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-12-04 12:01:14 +0100
commit2fcffe195ed3329082ce22f2118543871bfbbcf0 (patch)
treea7714f6017aae2491b3cb4b80a5d904ff13ac67c /drivers/gpu/drm/i915/i915_debugfs.c
parentf763566992bb004a27d620c9ad90ec9a4dff34c3 (diff)
downloadlwn-2fcffe195ed3329082ce22f2118543871bfbbcf0.tar.gz
lwn-2fcffe195ed3329082ce22f2118543871bfbbcf0.zip
drm/i915: Don't display nonsensical values in i915_ddb_info on gen < 9
When playing around with debugfs and a HSW machine I noticed that we were displaying some garbled value in i915_ddb_info. This debugfs file is only meaningful for gen9+, so don't display anything on earlier platforms. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.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 6c169392f701..d0e445eca9ce 100644
--- a/drivers/gpu/drm/i915/i915_debugfs.c
+++ b/drivers/gpu/drm/i915/i915_debugfs.c
@@ -2743,6 +2743,9 @@ static int i915_ddb_info(struct seq_file *m, void *unused)
enum pipe pipe;
int plane;
+ if (INTEL_INFO(dev)->gen < 9)
+ return 0;
+
drm_modeset_lock_all(dev);
ddb = &dev_priv->wm.skl_hw.ddb;