diff options
author | Chris Wilson <[email protected]> | 2012-12-19 16:51:06 +0000 |
---|---|---|
committer | Daniel Vetter <[email protected]> | 2013-01-08 11:52:02 +0100 |
commit | 901593f2bf221659a605bdc1dcb11376ea934163 (patch) | |
tree | 4cee7420d2045c53974af51288372e2fe7e35ab0 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | 3490ea5de6ac4af309c3df8a26a5cca61306334c (diff) |
drm: Only evict the blocks required to create the requested hole
Avoid clobbering adjacent blocks if they happen to expire earlier and
amalgamate together to form the requested hole.
In passing this fixes a regression from
commit ea7b1dd44867e9cd6bac67e7c9fc3f128b5b255c
Author: Daniel Vetter <[email protected]>
Date: Fri Feb 18 17:59:12 2011 +0100
drm: mm: track free areas implicitly
which swaps the end address for size (with a potential overflow) and
effectively causes the eviction code to clobber almost all earlier
buffers above the evictee.
v2: Check the original hole not the adjusted as the coloring may confuse
us when later searching for the overlapping nodes. Also make sure that
we do apply the range restriction and color adjustment in the same
order for both scanning, searching and insertion.
v3: Send the version that was actually tested.
Note that this seems to be ducttape of decent quality ot paper over
some of our unbind related gpu hangs reported since 3.7. It is not
fully effective though, and certainly doesn't fix the underlying bug.
Signed-off-by: Chris Wilson <[email protected]>
Cc: Daniel Vetter <[email protected]>
[danvet: Added note plus bugzilla link and tested-by.]
Cc: [email protected]
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55984
Tested-by: Norbert Preining <[email protected]>
Acked-by: Dave Airlie <[email protected]
Signed-off-by: Daniel Vetter <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions