drm/amdgpu: switch the GDS only on demand v2
authorChristian König <christian.koenig@amd.com>
Tue, 1 Mar 2016 14:09:25 +0000 (15:09 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Mar 2016 16:01:49 +0000 (11:01 -0500)
commit971fe9a9414b2ccabc11ff6a5ff6be0d6f2dabda
tree8d9bbb4983b34c39ead2deb849ce8a48cd9102cf
parentcffadc83c7016ba68721affe5da537ead279e2d2
drm/amdgpu: switch the GDS only on demand v2

Switching the GDS space to often seems to be problematic.

This patch together with the following can avoid VM faults on context switch.

v2: extend commit message a bit

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