drm/amdkfd: bind cpu and hiveless gpu to a hive if xgmi connected
authorJonathan Kim <jonathan.kim@amd.com>
Thu, 2 Feb 2023 16:10:08 +0000 (11:10 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 9 Jun 2023 13:52:36 +0000 (09:52 -0400)
commit1698e200e88db96aef7d16aa3d63df68a209ffbd
treeababb74dff9567724babc5ef5684097e73ee4569
parent8c45a8340dd097ea0d6be6f718c4882283d9645d
drm/amdkfd: bind cpu and hiveless gpu to a hive if xgmi connected

If a CPU and GPU are xGMI connected but the GPU is hiveless with
respect to other GPUs, create a new CPU-GPU hive using the GPU's PCI
device location ID as the new hive ID to maintain fine grain memory
access usage.

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