drm/nv50-/vm: take mutex rather than irqsave spinlock
authorBen Skeggs <bskeggs@redhat.com>
Mon, 13 May 2013 11:13:15 +0000 (21:13 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 1 Jul 2013 03:44:50 +0000 (13:44 +1000)
commitca97a36698ca3f76d3cee542e69dcf1b66210b0c
tree059dbba049c0be7cf335e701480bab416f9adeba
parent464d636bd0a7a905209816d1dee0838ccb79e57a
drm/nv50-/vm: take mutex rather than irqsave spinlock

These operations can take quite some time, and we really don't want to
have to hold a spinlock for too long.

Now that the lock ordering for vm and the gr/nv84 hw bug workaround has
been reversed, it's possible to use a mutex here.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/subdev/vm/nv50.c
drivers/gpu/drm/nouveau/core/subdev/vm/nvc0.c