Commit 0a90dc51 authored by Maarten Maathuis's avatar Maarten Maathuis Committed by Ben Skeggs
Browse files

drm/nv50: wait for pgraph to idle before unloading the context

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

Signed-off-by: default avatarMaarten Maathuis <>
Signed-off-by: default avatarBen Skeggs <>
parent fe5a64ac
......@@ -282,6 +282,7 @@ nv50_graph_unload_context(struct drm_device *dev)
return 0;
nv_wr32(dev, 0x400500, fifo & ~1);
nv_wr32(dev, 0x400784, inst);
nv_wr32(dev, 0x400824, nv_rd32(dev, 0x400824) | 0x20);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment