1
0
Fork 0
remarkable-linux/drivers/gpu
Thomas Hellstrom 8c8f0b1f59 drm/vmwgfx: Unpin the screen object backup buffer when not used
[ Upstream commit 20fb5a635a ]

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 <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:52:30 +02:00
..
drm drm/vmwgfx: Unpin the screen object backup buffer when not used 2018-05-30 07:52:30 +02:00
host1x License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ipu-v3 gpu: ipu-v3: prg: avoid possible array underflow 2018-05-30 07:52:15 +02:00
vga
Makefile