drm/nvc0/fence: restore pre-suspend fence buffer context on resume
authorBen Skeggs <bskeggs@redhat.com>
Fri, 28 Sep 2012 01:50:29 +0000 (11:50 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:47:14 +0000 (05:47 +0900)
commit2e218484ece411edc83dc747e49c01d57f2b166e
treebb305f28745eb22f9d56e3fd993cbeba4fc4ba98
parent834daf171bc4404198544f6a4c1f93167cd2b29a
drm/nvc0/fence: restore pre-suspend fence buffer context on resume

commit d6ba6d215a538a58f0f0026f0961b0b9125e8042 upstream.

Fixes some unfortunate races on resume.  The G84 version of the code doesn't
need this as "gpuobj"s are automagically suspended/resumed by the core code
whereas pinned buffer objects are not.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/nouveau/nvc0_fence.c