]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3fc5edb1a7daa6c4a5e7f5fb17b143aee83d3a8e
tree7d8f44e504befdf4b282e9293ca47266533bda96
parent5136e2d939be7fa15b55510001c30ebb6ece15a2
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