]> git.baikalelectronics.ru Git - kernel.git/commit
drm: mm: fix range restricted allocations
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 26 Aug 2010 19:44:17 +0000 (21:44 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 26 Aug 2010 23:10:16 +0000 (09:10 +1000)
commitaec5381af47b047767bf9ab4b8bd4c93a66c76fd
tree594d1c7f2807da61abb20aa3febe0ca159c3bdeb
parenta08fc0e7300429bb784cb410cef3c1d145438a3e
drm: mm: fix range restricted allocations

With the code cleanup in

c833927db677772b7bd5e342c8ec2c3f7c3064c7 is the first bad commit
commit c833927db677772b7bd5e342c8ec2c3f7c3064c7
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Fri Jul 2 15:02:15 2010 +0100

    drm_mm: extract check_free_mm_node

I've botched up the range-restriction checks. The result is usually
an X server dying with SIGBUS in libpixman (software fallback rendering).
Change the code to adjust the start and end for range restricted
allocations. IMHO this even makes the code a bit clearer.

Fixes regression bug: https://bugs.freedesktop.org/show_bug.cgi?id=29738

Reported-by-Tested-by: Till MAtthiesen <entropy@everymail.net>
Acked-by: Alex Deucher <alexdeucher@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_mm.c