drm/amdgpu: Add preferred_domain check when determine XGMI state
authorshaoyunl <shaoyun.liu@amd.com>
Tue, 26 Mar 2019 18:47:57 +0000 (14:47 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Apr 2019 15:00:30 +0000 (10:00 -0500)
commitb4ae4fe6cdbbfedb9e71294a4d9aa2b4a37edf16
tree711f5febf508766215f5e5aa855b3458e6519871
parentc4229c6e37c203fd99397c1bcfe83a2bc1d30d96
drm/amdgpu: Add preferred_domain check when determine XGMI state

Avoid unnecessary XGMI hight pstate trigger when mapping none-vram memory for peer device

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@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_vm.c