mirror of
https://github.com/torvalds/linux.git
synced 2024-12-01 16:41:39 +00:00
drm/qxl: Do not pin buffer objects for vmap
Pin and vmap are distinct operations. Do not perform a pin as part of the vmap call. This used to be necessary to keep the fbdev buffer in place while it is being updated. Fbdev emulation has meanwhile been fixed to lock the buffer correctly. Same for vunmap. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> # virtio-gpu Acked-by: Christian König <christian.koenig@amd.com> Acked-by: Zack Rusin <zack.rusin@broadcom.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240227113853.8464-14-tzimmermann@suse.de
This commit is contained in:
parent
fe36f1512c
commit
b33651a5c9
@ -164,10 +164,6 @@ int qxl_bo_vmap_locked(struct qxl_bo *bo, struct iosys_map *map)
|
||||
goto out;
|
||||
}
|
||||
|
||||
r = qxl_bo_pin_locked(bo);
|
||||
if (r)
|
||||
return r;
|
||||
|
||||
r = ttm_bo_vmap(&bo->tbo, &bo->map);
|
||||
if (r) {
|
||||
qxl_bo_unpin_locked(bo);
|
||||
@ -243,7 +239,6 @@ void qxl_bo_vunmap_locked(struct qxl_bo *bo)
|
||||
return;
|
||||
bo->kptr = NULL;
|
||||
ttm_bo_vunmap(&bo->tbo, &bo->map);
|
||||
qxl_bo_unpin_locked(bo);
|
||||
}
|
||||
|
||||
int qxl_bo_vunmap(struct qxl_bo *bo)
|
||||
|
Loading…
Reference in New Issue
Block a user