summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_fbc.c
diff options
context:
space:
mode:
authorPaulo Zanoni2015-09-14 20:19:58 +0200
committerDaniel Vetter2015-09-23 14:39:18 +0200
commitb8bf5d7fe0dee64ed0a73fa1e95ba8e464d605da (patch)
tree3ba361551d4cc5d818b58751b1b634f14b2d1031 /drivers/gpu/drm/i915/intel_fbc.c
parentdrm/i915: avoid the last 8mb of stolen on BDW/SKL (diff)
downloadkernel-qcow2-linux-b8bf5d7fe0dee64ed0a73fa1e95ba8e464d605da.tar.gz
kernel-qcow2-linux-b8bf5d7fe0dee64ed0a73fa1e95ba8e464d605da.tar.xz
kernel-qcow2-linux-b8bf5d7fe0dee64ed0a73fa1e95ba8e464d605da.zip
drm/i915: print the correct amount of bytes allocated for the CFB
And also print the threshold. I was surprised to see a log message claiming the CFB size was 32mb when there was less than 24mb available for it. Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_fbc.c')
-rw-r--r--drivers/gpu/drm/i915/intel_fbc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_fbc.c b/drivers/gpu/drm/i915/intel_fbc.c
index 6f3c2ea75dd8..69726a7ed0d0 100644
--- a/drivers/gpu/drm/i915/intel_fbc.c
+++ b/drivers/gpu/drm/i915/intel_fbc.c
@@ -634,8 +634,9 @@ static int intel_fbc_alloc_cfb(struct drm_i915_private *dev_priv, int size,
dev_priv->fbc.uncompressed_size = size;
- DRM_DEBUG_KMS("reserved %d bytes of contiguous stolen space for FBC\n",
- size);
+ DRM_DEBUG_KMS("reserved %llu bytes of contiguous stolen space for FBC, threshold: %d\n",
+ dev_priv->fbc.compressed_fb.size,
+ dev_priv->fbc.threshold);
return 0;