[PATCH 07/35] drm/nouveau: try to protect nbo->pin_refcount

2013-01-10 Thread Daniel Vetter
... by moving the bo_pin/bo_unpin manipulation of the pin_refcount under the protection of the ttm reservation lock. pin/unpin seems to get called from all over the place, so atm this is completely racy. After this patch there are only a few places in cleanup functions left which access ->pin_refc

[PATCH 07/35] drm/nouveau: try to protect nbo->pin_refcount

2013-01-10 Thread Daniel Vetter
... by moving the bo_pin/bo_unpin manipulation of the pin_refcount under the protection of the ttm reservation lock. pin/unpin seems to get called from all over the place, so atm this is completely racy. After this patch there are only a few places in cleanup functions left which access ->pin_refc