nouveau: disallow pushbuf BOs in multiple memory types
authorBen Skeggs <bskeggs@redhat.com>
Mon, 7 Jan 2013 03:07:13 +0000 (13:07 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Jan 2013 03:15:28 +0000 (13:15 +1000)
commit891517f5111cd82909906d5e8ee0299db0d46762
tree50e825af9bbbe90854399556a6fa0d87d4c9cc4d
parentbaf0a7daafc7636106e1b19267ed22e22b1a2283
nouveau: disallow pushbuf BOs in multiple memory types

Under certain circumstances it's possible for libdrm to decide to move
a GART|VRAM pushbuf to be VRAM-only.  This causes the kernel to reject
the command submission on GF8 and up, due to a stricter policy where
buffers are only allowed to move to memory types that were specified
at creation time.

The simplest fix for this is to force the creation-time memory type for
the lifetime of the push buffer.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
nouveau/pushbuf.c