]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0ef7a788830698994b1551620ac122964ab2957
tree3fda88b779e1f2505ee90ec61b9a369003e2038c
parent6b204aca3c5f732ace2531d35d6aac5f77661b61
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