]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0ed882710272ef4cefaf17240d9e8ccf061b89cb
treeb94f920f993d48e81aca5803affb7f3dd37f4a40
parent843c53e9594052008a411b99078ac5d563d2a93a
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