drm/radeon/kms: adjust evergreen display watermark setup
authorAlex Deucher <alexdeucher@gmail.com>
Thu, 14 Apr 2011 23:07:34 +0000 (19:07 -0400)
committerDave Airlie <airlied@redhat.com>
Thu, 14 Apr 2011 23:09:59 +0000 (09:09 +1000)
commit12dfc843f43efe14d0cfc7a52753d971a0cc759d
treeb94f920f993d48e81aca5803affb7f3dd37f4a40
parenta70882aa3137fff9532b51ed5d6a92922e1c4c9c
drm/radeon/kms: adjust evergreen display watermark setup

This patch fixes two issues:
- A disabled crtc does not use any lb, so return 0 for
lb size.  This makes the display priority calculation
more exact.
- Only use 1/2 and whole lb partitions. Using smaller
partitions can cause underflow to one of the displays
if you have multiple large displays on the same lb.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=34534

Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/evergreen.c