drm/nouveau: use ttm_bo_reserve_slowpath in validate_init, v2
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 15 Jan 2013 13:57:20 +0000 (14:57 +0100)
committerMaarten Lankhorst <maarten.lankhorst@canonical.com>
Tue, 15 Jan 2013 15:49:28 +0000 (16:49 +0100)
commitc354c893dd57aac11f5d96ada7c47a20fe090a6e
tree9c6916dda5c5dc415702e4934a0af6e7d4a15789
parentf2d476a110bc24fde008698ae9018c99e803e25c
drm/nouveau: use ttm_bo_reserve_slowpath in validate_init, v2

Similar rationale to the identical commit in drm/ttm.
Instead of only waiting for unreservation, we make sure we actually
own the reservation, then retry to get the rest.

Changes since v1:
 - Increase the seqno before calling ttm_bo_reserve_slowpath

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
drivers/gpu/drm/nouveau/nouveau_gem.c