drm/amdgpu: Don't change preferred domian when fallback GTT v5
authorChunming Zhou <david1.zhou@amd.com>
Fri, 16 Mar 2018 04:29:38 +0000 (12:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 22 Mar 2018 19:42:33 +0000 (14:42 -0500)
commitcc15dfaa85e8dfc763f22caca54fa097e377ea27
treeae2a983d60876449e2f9f9e75a57869b5ce5ea9a
parentb6356df3eb9ad9ae12efb4ec37d5615065e51d8b
drm/amdgpu: Don't change preferred domian when fallback GTT v5

v2: add sanity checking
v3: make code open
v4: also handle visible to invisible fallback
v5: Since two fallback cases, re-use goto retry

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c