]> 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)
commit6030431866824479a6b5f950d12aa58b7721fda3
treeab577d9ae7234ef7e9bb678fa2e8e6569bac09a5
parent14dab968efe87dd9f54141f70a6d50464ea83b39
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