drm/nv50: wait for pgraph to idle before unloading the context
authorMaarten Maathuis <madman2003@gmail.com>
Mon, 11 Jan 2010 20:18:53 +0000 (21:18 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 14 Jan 2010 08:48:21 +0000 (18:48 +1000)
commit0a90dc51aa3162abb7cd64323ba2e6674e1c5ff4
tree31fe16e9d83d601e3a60f0f924966a6023aee2b2
parentfe5a64acbfab4f79ccd18972c3d4c1cae31f3b8d
drm/nv50: wait for pgraph to idle before unloading the context

This should fix the problem with gpu hangs people have had when closing
channels.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv50_graph.c