]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nv50-nvc0: prevent multiple vm/bar flushes occuring simultanenously
authorBen Skeggs <bskeggs@redhat.com>
Mon, 7 Mar 2011 07:18:04 +0000 (17:18 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Mar 2011 21:03:08 +0000 (07:03 +1000)
commitf31408c39a0fc53c47d46c8cec78bf719d3221a2
tree53d45ab91ea31167710904f242b2dbdd33b1dc42
parenta0725e170821e6f3530b69894cc86bd524cc74aa
drm/nv50-nvc0: prevent multiple vm/bar flushes occuring simultanenously

The per-vm mutex doesn't prevent this completely, a flush coming from the
BAR VM could potentially happen at the same time as one for the channel
VM.  Not to mention that if/when we get per-client/channel VM, this will
happen far more frequently.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/nouveau/nv50_instmem.c
drivers/gpu/drm/nouveau/nv50_vm.c