drm/amdgpu: fix and cleanup cpu visible VRAM handling
authorChristian König <christian.koenig@amd.com>
Thu, 5 Apr 2018 14:42:03 +0000 (16:42 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:05 +0000 (13:43 -0500)
commit5422a28fe86f9f77480471385e0a416c27a9ca72
tree3fda88b779e1f2505ee90ec61b9a369003e2038c
parentf1018f50d48395b4a189bf8ea9af1e4441209cfd
drm/amdgpu: fix and cleanup cpu visible VRAM handling

The detection if a BO was placed in CPU visible VRAM was incorrect.

Fix it and merge it with the correct detection in amdgpu_ttm.c

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c