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)
commit89dc15b76fd3b57d0b7d3bd3556bd6fa514e0257
treeab577d9ae7234ef7e9bb678fa2e8e6569bac09a5
parent6073a09210e06f39adabd682c282b3ee14c3d33d
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