]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: map gpu hive id to xgmi connected cpu
authorJonathan Kim <jonathan.kim@amd.com>
Thu, 14 Oct 2021 16:34:27 +0000 (12:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Oct 2021 21:14:40 +0000 (17:14 -0400)
commit99b8c37e0ffaea958ee83750cf25bdd44ec5bf8e
tree86c256944f93b867ae8d03a48e0d357ba3e160f1
parent1202723778c2624ae1fa7142e1017eae2373babf
drm/amdkfd: map gpu hive id to xgmi connected cpu

ROCr needs to be able to identify all devices that have direct access to
fine grain memory, which should include CPUs that are connected to GPUs
over xGMI. The GPU hive ID can be mapped onto the CPU hive ID since the
CPU is part of the hive.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Reviewed-by: Felix Kuehling <felix.kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_topology.c