diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-07-07 10:37:35 +0200 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-07-29 13:08:28 +1000 |
commit | 29c41f9804226cff9e44e31d3b2e0146a081da5b (patch) | |
tree | e539e774102c84396c45ea3833e41621f63b607b /drm/nouveau_gem.c | |
parent | 547d2a8b7e17d02bfe0bebcf65a958ced1d0a9ad (diff) | |
download | nouveau-29c41f9804226cff9e44e31d3b2e0146a081da5b.tar.gz |
drm: do not unpin in nouveau_gem_object_del
This should no longer be required, and is harmful for framebuffer pinning.
Also add a warning if unpin causes the pin count to drop below 0.
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drm/nouveau_gem.c')
-rw-r--r-- | drm/nouveau_gem.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drm/nouveau_gem.c b/drm/nouveau_gem.c index e72d09c06..830cb7bad 100644 --- a/drm/nouveau_gem.c +++ b/drm/nouveau_gem.c @@ -50,12 +50,6 @@ nouveau_gem_object_del(struct drm_gem_object *gem) return; nvbo->gem = NULL; - /* Lockdep hates you for doing reserve with gem object lock held */ - if (WARN_ON_ONCE(nvbo->pin_refcnt)) { - nvbo->pin_refcnt = 1; - nouveau_bo_unpin(nvbo); - } - if (gem->import_attach) drm_prime_gem_destroy(gem, nvbo->bo.sg); |