drm/nouveau: wait on fence after bo move if validating for another channel
authorBen Skeggs <bskeggs@redhat.com>
Tue, 12 Jan 2010 05:28:19 +0000 (15:28 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jan 2010 08:48:38 +0000 (18:48 +1000)
commite147eae80afe98b86a7921a40a709584e6603e34
treeb40bdaf039d5d2b2a90794bff102cf9a42abd745
parent9855e584d296a32bbcc1bb3d29b7e0ed078b03cc
drm/nouveau: wait on fence after bo move if validating for another channel

Not an ideal solution, but it'll do for the moment for correctness.  We
need to come up with a nicer way to manage inter-channel sync, the hw
is unfortunately a little lacking in this area.

Should fix some resume corruption, as well as corruption that may be seen
while under memory pressure.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c