]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: call ttm_bo_wait with the bo lock held to prevent hang
authorLuca Barbieri <luca@luca-barbieri.com>
Sat, 30 Jan 2010 22:21:38 +0000 (23:21 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 9 Feb 2010 02:49:09 +0000 (12:49 +1000)
commite1a3d7bcf3090dbceda5d1e5914a7e1c558457ed
tree1713ba58c5b60a82c88e70eda64fef052fd85ead
parent94ed99d7a71680590a36b2ceff91e4c928eefeb5
drm/nouveau: call ttm_bo_wait with the bo lock held to prevent hang

nouveau_gem_ioctl_cpu_prep calls ttm_bo_wait without the bo lock held.
ttm_bo_wait unlocks that lock, and so must be called with it held.

Currently this bug causes libdrm nouveau_bo_busy() to hang the machine.

Signed-off-by: Luca Barbieri <luca at luca-barbieri.com>
Acked-by: Maarten Maathuis <madman2003@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_gem.c