drm/amdgpu: Remove VRAM from shared bo domains.
authorSamuel Li <[email protected]>
Wed, 18 Apr 2018 20:26:18 +0000 (16:26 -0400)
committerAlex Deucher <[email protected]>
Tue, 15 May 2018 18:43:43 +0000 (13:43 -0500)
commit9b3f217faf48603c91d4ca44a18e6ff74c3c1c0c
tree16a67de3810baa11771ebc04c146bf1801efee8b
parent1d2361e5a6c60d7b142d19555c3e6240ffe93731
drm/amdgpu: Remove VRAM from shared bo domains.

This fixes an issue introduced by change "allow framebuffer in GART
memory as well" which could lead to a shared buffer ending up
pinned in vram.  Use GTT if it is included in the domain, otherwise
return an error.

Signed-off-by: Samuel Li <[email protected]>
Reviewed-by: Alex Deucher <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c