]> 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)
commitf8ea5ce91a3bbce61c7a764eea3eaaf7597f9be4
tree86c256944f93b867ae8d03a48e0d357ba3e160f1
parent4ec541985655e8b3be8b0e927952a31ec21c08ec
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