]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: handle FIFO oversubsription correctly
authorJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 16 Jul 2009 20:01:01 +0000 (13:01 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 16 Jul 2009 20:02:33 +0000 (13:02 -0700)
commit084e838c719da8e6b4305bc2534e6a490fd14d05
treea9a35b483382b65673843c661e058b8561e5f911
parentcac755c6b41635256b581bbdc8044cb1e6a8dfac
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 <eric@anholt.net>
Tested-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/intel_display.c