diff options
| author | Zack Rusin <[email protected]> | 2021-01-14 23:38:16 +0000 |
|---|---|---|
| committer | Zack Rusin <[email protected]> | 2021-04-14 20:41:02 +0000 |
| commit | ab4d9913632b1e5ffcf3365783e98718b3c83c7f (patch) | |
| tree | 8cceefe98f43f4ba5cd1f9de06ef9cc3495c84ec /lib/dynamic_debug.c | |
| parent | Linux 5.12-rc7 (diff) | |
| download | kernel-ab4d9913632b1e5ffcf3365783e98718b3c83c7f.tar.gz kernel-ab4d9913632b1e5ffcf3365783e98718b3c83c7f.zip | |
drm/vmwgfx: Make sure we unpin no longer needed buffers
We were not correctly unpinning no longer needed buffers. In particular
vmw_buffer_object, which is internally often pinned on creation wasn't
unpinned on destruction and none of the internal MOB buffers were
unpinned before being put back. Technically this existed for a
long time but commit 57fcd550eb15 ("drm/ttm: Warn on pinning without
holding a reference") introduced a WARN_ON which was filling up the
kernel logs rather quickly.
Quite frankly internal usage of vmw_buffer_object and in general
pinning needs to be refactored in vmwgfx but for now this makes
it work.
Signed-off-by: Zack Rusin <[email protected]>
Reviewed-by: Martin Krastev <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Fixes: 57fcd550eb15 ("drm/ttm: Warn on pinning without holding a reference")
Link: https://patchwork.freedesktop.org/patch/414984/?series=86052&rev=1
Cc: Huang Rui <[email protected]>
Cc: Christian König <[email protected]>
Cc: Daniel Vetter <[email protected]>
Cc: Christian Koenig <[email protected]>
Cc: [email protected]
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions
