From: Jesse Barnes Date: Thu, 16 Jul 2009 20:01:01 +0000 (-0700) Subject: drm/i915: handle FIFO oversubsription correctly X-Git-Tag: v2.6.31-rc6~37^2~16 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=390c4dd448b1a5f04ea497c20f5ff664f8eeed01;p=pandora-kernel.git drm/i915: handle FIFO oversubsription correctly If you're pushing a plane hard (i.e. you need most or all of the FIFO entries just to cover your frame refresh latency), the watermark level may end up being negative. So fix up the signed vs. unsigned math in the calculation function to handle this correctly, giving all available FIFO entries to such a configuration. Reported-by: Eric Anholt Tested-by: Eric Anholt Signed-off-by: Jesse Barnes Signed-off-by: Eric Anholt --- Reading git-diff-tree failed