Revision 19ee835cdb0b5a8eb11a68f25a51b8039d564488 authored by Chris Wilson on 29 June 2015, 13:01:19 UTC, committed by Daniel Vetter on 09 July 2015, 07:36:44 UTC
The old style of memory interleaving swizzled upto the end of the
first even bank of memory, and then used the remainder as unswizzled on
the unpaired bank - i.e. swizzling is not constant for all memory. This
causes problems when we try to migrate memory and so the kernel prevents
migration at all when we detect L-shaped inconsistent swizzling.
However, this issue also extends to userspace who try to manually detile
into memory as the swizzling for an individual page is unknown (it
depends on its physical address only known to the kernel), userspace
cannot correctly swizzle objects.

v2: Mark the global swizzling as unknown rather than adjust the value
reported to userspace.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91105
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
1 parent dec4f79
History
File Mode Size
00-INDEX -rw-r--r-- 548 bytes
lglock.txt -rw-r--r-- 6.4 KB
lockdep-design.txt -rw-r--r-- 11.6 KB
lockstat.txt -rw-r--r-- 11.4 KB
locktorture.txt -rw-r--r-- 5.6 KB
mutex-design.txt -rw-r--r-- 6.2 KB
rt-mutex-design.txt -rw-r--r-- 32.8 KB
rt-mutex.txt -rw-r--r-- 3.5 KB
spinlocks.txt -rw-r--r-- 6.5 KB
ww-mutex-design.txt -rw-r--r-- 12.4 KB

back to top