]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/nouveau/gem: return only valid domain when there's only one
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 20 Oct 2015 05:15:39 +0000 (01:15 -0400)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 3 Nov 2015 04:56:06 +0000 (14:56 +1000)
commit04b8a4bd8e01e25b9fa9fa7b1c957a7346ae83c1
tree11d83b2422f5bc487b464b59a78ca8e0ffdf1dd5
parenta76edb8cec0cc864c8b72fa7e84a72336e033e23
drm/nouveau/gem: return only valid domain when there's only one

On nv50+, we restrict the valid domains to just the one where the buffer
was originally created. However after the buffer is evicted to system
memory, we might move it back to a different domain that was not
originally valid. When sharing the buffer and retrieving its GEM_INFO
data, we still want the domain that will be valid for this buffer in a
pushbuf, not the one where it currently happens to be.

This resolves fdo#92504 and several others. These are due to suspend
evicting all buffers, making it more likely that they temporarily end up
in the wrong place.

Cc: stable@vger.kernel.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92504
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_gem.c