OSDN Git Service

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)
commitd5edb56fbc59f06324c2d625ab3e7ea0cc4e8b6e
tree86c256944f93b867ae8d03a48e0d357ba3e160f1
parentc72942c167c1329f0aaa348e764f52e0aac09459
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