drm/amd/amdgpu: Update VM function pointer
authorGang Ba <gaba@amd.com>
Wed, 14 Aug 2019 15:00:19 +0000 (11:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:58:28 +0000 (10:58 -0500)
commit108b4d928c032b6fc3b9b10197154ee35d59961d
tree79987e3fecf1c5e1ce4b24abec598188509ee6ce
parentf40c6912d2be1d9721d83b00abe312b2240407e6
drm/amd/amdgpu: Update VM function pointer

When VM state changed and system in large bar mode,
make sure to use CPU update function, otherwise use
SDMA function.

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Gang Ba <gaba@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c