]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vmwgfx: Stricter count of legacy surface device resources
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 22 Mar 2018 09:34:00 +0000 (10:34 +0100)
committerThomas Hellstrom <thellstrom@vmware.com>
Thu, 22 Mar 2018 11:08:24 +0000 (12:08 +0100)
commit63455de17b8066a56aee10c1fea221521e770b94
treeab577d9ae7234ef7e9bb678fa2e8e6569bac09a5
parent62c19ff497e359555260334ea9bcf9f0a8aa8127
drm/vmwgfx: Stricter count of legacy surface device resources

For legacy surfaces, they were previously registered as device resources
when the driver resources were created. Since they are evictable we instead
register them as device resources once they are created on the device,
just like for guest-backed surfaces. This has implications during
hibernation where we can't hibernate with device resources active.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Deepak Rawat <drawat@vmware.com>
Reviewed-by: Sinclair Yeh <syeh@vmware.com>
drivers/gpu/drm/vmwgfx/vmwgfx_surface.c