drm/amdgpu: Don't change preferred domian when fallback GTT v6
authorChunming Zhou <david1.zhou@amd.com>
Fri, 16 Mar 2018 04:29:38 +0000 (12:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 Apr 2018 18:08:00 +0000 (13:08 -0500)
commit5a8c102ac471c53da38b2c3c35417e9355d21215
treecfa0de553f08ea7aa5ed663cc117396b72f75b00
parenta70cdb9eddcfd4ba20d69b84149b4a38648455ac
drm/amdgpu: Don't change preferred domian when fallback GTT v6

v2: add sanity checking
v3: make code open
v4: also handle visible to invisible fallback
v5: Since two fallback cases, re-use goto retry
v6: avoid bo is unref when retry, and only user BO can fallback

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com> (v5)
Acked-by: Felix Kuehling <Felix.Kuehling@amd.com>
Cc: felix.kuehling@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