diff options
| author | Zack Rusin <[email protected]> | 2021-01-14 23:38:16 +0000 |
|---|---|---|
| committer | Zack Rusin <[email protected]> | 2021-01-20 22:04:56 +0000 |
| commit | d1a73c641afd2617bd80bce8b71a096fc5b74b7e (patch) | |
| tree | 34d59fa7650a368c7ab9ce962704e01f720aee22 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c | |
| parent | dt-bindings: dp-connector: Drop maxItems from -supply (diff) | |
| download | kernel-d1a73c641afd2617bd80bce8b71a096fc5b74b7e.tar.gz kernel-d1a73c641afd2617bd80bce8b71a096fc5b74b7e.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 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
0 files changed, 0 insertions, 0 deletions
