]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: add reservation to nouveau_gem_ioctl_cpu_prep
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 21 Jan 2014 12:00:24 +0000 (13:00 +0100)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Mon, 1 Sep 2014 08:16:42 +0000 (10:16 +0200)
commita80d4d3cb341b8cc2f938cdb7d27d4284eeba4e5
treed0c0edaf033b87080f1617bc2ed82f7d12b0b802
parentc9b8620e4de07ba8303c62a559a901f1b9bae8c7
drm/nouveau: add reservation to nouveau_gem_ioctl_cpu_prep

Apart from some code inside ttm itself and nouveau_bo_vma_del,
this is the only place where ttm_bo_wait is used without a reservation.
Fix this so we can remove the fence_lock later on.

After the switch to rcu the reservation lock will be
removed again.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Acked-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_gem.c