dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Zimmermann <tzimmermann@suse.de>
To: kraxel@redhat.com, airlied@redhat.com, daniel@ffwll.ch,
	maarten.lankhorst@linux.intel.com, maxime.ripard@bootlin.com,
	sean@poorly.run, sam@ravnborg.org,
	dri-devel@lists.freedesktop.org
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Subject: [PATCH v2 2/9] drm/ast: Unpin cursor BO during cleanup
Date: Tue, 11 Jun 2019 15:03:37 +0200	[thread overview]
Message-ID: <20190611130344.18988-3-tzimmermann@suse.de> (raw)
In-Reply-To: <20190611130344.18988-1-tzimmermann@suse.de>

The unpin operation was missing from ast_cursor_fini(). Fixed now.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
---
 drivers/gpu/drm/ast/ast_mode.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/ast/ast_mode.c b/drivers/gpu/drm/ast/ast_mode.c
index fb700d620b64..41741cd6cd15 100644
--- a/drivers/gpu/drm/ast/ast_mode.c
+++ b/drivers/gpu/drm/ast/ast_mode.c
@@ -959,6 +959,7 @@ static void ast_cursor_fini(struct drm_device *dev)
 	struct drm_gem_vram_object *gbo =
 		drm_gem_vram_of_gem(ast->cursor_cache);
 	drm_gem_vram_kunmap_at(gbo, &ast->cache_kmap);
+	drm_gem_vram_unpin(gbo);
 	drm_gem_object_put_unlocked(ast->cursor_cache);
 }
 
-- 
2.21.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

  parent reply	other threads:[~2019-06-11 13:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-11 13:03 [PATCH v2 0/9] Remove explicit locking and kmap arguments from GEM VRAM interface Thomas Zimmermann
2019-06-11 13:03 ` [PATCH v2 1/9] drm/gem-vram: Support pinning buffers to current location Thomas Zimmermann
2019-06-12  8:13   ` Gerd Hoffmann
2019-06-12  8:29     ` Thomas Zimmermann
2019-06-12 12:30       ` Gerd Hoffmann
2019-06-11 13:03 ` Thomas Zimmermann [this message]
2019-06-11 13:03 ` [PATCH v2 3/9] drm/ast: Remove obsolete or unused cursor state Thomas Zimmermann
2019-06-11 13:03 ` [PATCH v2 4/9] drm/ast: Pin and map cursor source BO during update Thomas Zimmermann
2019-06-12  8:15   ` Gerd Hoffmann
2019-06-11 13:03 ` [PATCH v2 5/9] drm/ast: Pin framebuffer BO during dirty update Thomas Zimmermann
2019-06-11 20:29   ` Sam Ravnborg
2019-06-12  7:35     ` Thomas Zimmermann
2019-06-12  7:48       ` Sam Ravnborg
2019-06-11 13:03 ` [PATCH v2 6/9] drm/mgag200: " Thomas Zimmermann
2019-06-11 13:03 ` [PATCH v2 7/9] drm/mgag200: Rewrite cursor handling Thomas Zimmermann
2019-06-12  8:17   ` Gerd Hoffmann
2019-06-11 13:03 ` [PATCH v2 8/9] drm: Remove lock interfaces from GEM VRAM helpers Thomas Zimmermann
2019-06-11 13:03 ` [PATCH v2 9/9] drm: Remove functions with kmap-object argument " Thomas Zimmermann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190611130344.18988-3-tzimmermann@suse.de \
    --to=tzimmermann@suse.de \
    --cc=airlied@redhat.com \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=kraxel@redhat.com \
    --cc=maarten.lankhorst@linux.intel.com \
    --cc=maxime.ripard@bootlin.com \
    --cc=sam@ravnborg.org \
    --cc=sean@poorly.run \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox