drm/amdkfd: support xgmi same hive mapping
authorPhilip Yang <Philip.Yang@amd.com>
Tue, 23 Jun 2020 21:06:53 +0000 (17:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Apr 2021 01:48:15 +0000 (21:48 -0400)
commitb53fa124acdcec6d05bcdb36b55bf0f84471b1b7
tree7d8f44e504befdf4b282e9293ca47266533bda96
parente49fe4040a10c1cd3b215c511f658d15aa7c8be9
drm/amdkfd: support xgmi same hive mapping

amdgpu_gmc_get_vm_pte use bo_va->is_xgmi same hive information to set
pte flags to update GPU mapping. Add local structure variable bo_va, and
update bo_va.is_xgmi, pass it to mapping->bo_va while mapping to GPU.

Assuming xgmi pstate is hi after boot.

Signed-off-by: Philip Yang <Philip.Yang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_svm.c