]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/i915: Declare the swizzling unknown for L-shaped configurations
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 29 Jun 2015 13:01:19 +0000 (14:01 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Aug 2015 16:29:09 +0000 (09:29 -0700)
commit0f2bb042f21bdb28f20efcf1ff1c507e2f8b3caa
treec2569ebf860e77def03203b7b877fd41dea574c5
parentfb07c9c85095d9520c4d4db69bef70442ec62a72
drm/i915: Declare the swizzling unknown for L-shaped configurations

commit 19ee835cdb0b5a8eb11a68f25a51b8039d564488 upstream.

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>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/i915_gem_tiling.c