aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorThomas Hellstrom <[email protected]>2018-03-22 09:35:18 +0000
committerThomas Hellstrom <[email protected]>2018-03-22 11:08:24 +0000
commit20fb5a635a0c8478ac98f15cfafc2ea83df29565 (patch)
tree21801e5254a8e7ee292d8e25e541415fadb0b134 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentdrm/vmwgfx: Stricter count of legacy surface device resources (diff)
downloadkernel-20fb5a635a0c8478ac98f15cfafc2ea83df29565.tar.gz
kernel-20fb5a635a0c8478ac98f15cfafc2ea83df29565.zip
drm/vmwgfx: Unpin the screen object backup buffer when not used
We were relying on the pinned screen object backup buffer to be destroyed when not used. But if we hold a copy of the atomic state, like when hibernating, the backup buffer might not be destroyed since it's refcounted by the atomic state. This causes us to hibernate with a buffer pinned in VRAM. Fix this by only having the buffer pinned when it is actually used by a screen object. Signed-off-by: Thomas Hellstrom <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Sinclair Yeh <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions