]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfa08f8d8ee7b39f9d3f656cce719963262475bf5
tree059dbba049c0be7cf335e701480bab416f9adeba
parent08f37c217b8fb8cae465a1f80275c70bd32d82de
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