OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1d878df
)
drm/qxl: balance dumb_shadow_bo pin
author
Gerd Hoffmann
<kraxel@redhat.com>
Tue, 11 May 2021 10:45:22 +0000
(12:45 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 12 May 2021 10:37:47 +0000
(12:37 +0200)
The shadow bo is created in pinned state, so we have to unpin it when
dropping the reference. Otherwise ttm is unhappy and throws a WARN()
on release.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link:
http://patchwork.freedesktop.org/patch/msgid/20210511104522.2694803-3-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_display.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/qxl/qxl_display.c
b/drivers/gpu/drm/qxl/qxl_display.c
index
be51837
..
9e0a1e8
100644
(file)
--- a/
drivers/gpu/drm/qxl/qxl_display.c
+++ b/
drivers/gpu/drm/qxl/qxl_display.c
@@
-801,6
+801,7
@@
static void qxl_prepare_shadow(struct qxl_device *qdev, struct qxl_bo *user_bo,
qdev->dumb_shadow_bo->surf.width != surf.width ||
qdev->dumb_shadow_bo->surf.height != surf.height) {
if (qdev->dumb_shadow_bo) {
+ qxl_bo_unpin(qdev->dumb_shadow_bo);
drm_gem_object_put
(&qdev->dumb_shadow_bo->tbo.base);
qdev->dumb_shadow_bo = NULL;