drm/nouveau: Synchronize with the user channel before GPU object destruction.
There have been reports of PFIFO cache errors during context take down (fdo bug 31637). They are caused by some GPU objects being taken out while the channel is still potentially processing commands. Make sure that all the previous rendering has landed before releasing a GPU object. Reported-by: Grzesiek Sójka <email@example.com> Reported-by: Patrice Mandin <firstname.lastname@example.org> Signed-off-by: Francisco Jerez <email@example.com> Acked-by: Ben Skeggs <firstname.lastname@example.org> Signed-off-by: Ben Skeggs <email@example.com>