From: Chris Wilson Date: Mon, 19 Jul 2010 20:46:08 +0000 (+0100) Subject: drm/i915: Warn if we run out of FIFO space for a mode X-Git-Tag: v3.0~3480^2~70^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9421ae8f30958deea98d71477b4a77a066856b4;p=platform%2Fkernel%2Flinux-amlogic.git drm/i915: Warn if we run out of FIFO space for a mode Signed-off-by: Chris Wilson Cc: Jesse Barnes Signed-off-by: Eric Anholt --- diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index baaaeaa..132314e 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -2745,8 +2745,14 @@ static unsigned long intel_calculate_wm(unsigned long clock_in_khz, /* Don't promote wm_size to unsigned... */ if (wm_size > (long)wm->max_wm) wm_size = wm->max_wm; - if (wm_size <= 0) + if (wm_size <= 0) { wm_size = wm->default_wm; + DRM_ERROR("Insufficient FIFO for plane, expect flickering:" + " entries required = %ld, available = %lu.\n", + entries_required + wm->guard_size, + wm->fifo_size); + } + return wm_size; }