drm/amdkfd: sever xgmi io link if host driver has disable sharing
authorJonathan Kim <Jonathan.Kim@amd.com>
Fri, 20 Sep 2024 15:46:05 +0000 (11:46 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 24 Oct 2024 22:06:34 +0000 (18:06 -0400)
commite46738a58f87fc03962ce907f81e69dcd93f88f5
tree3c59098a35b12759a2b8f433057fff3df36e818d
parent46186667f98fb7158c98f4ff5da62c427761ffcd
drm/amdkfd: sever xgmi io link if host driver has disable sharing

Host drivers can create partial hives per guest by disabling xgmi sharing
between certain peers in the main hive.
Typically, these partial hives are fully connected per guest session.
In the event that the host makes a mistake by adding a non-shared node
to a guest session, have the KFD reflect sharing disabled by severing
the IO link.

Signed-off-by: Jonathan Kim <jonathan.kim@amd.com>
Tested-by: James Yao <yiqing.yao@amd.com>
Reviewed-by: Harish Kasiviswanathan <harish.kasiviswanathan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h
drivers/gpu/drm/amd/amdkfd/kfd_crat.c