drm/amdgpu: Implement get num of hops between two xgmi device
authorshaoyunl <shaoyun.liu@amd.com>
Wed, 17 Apr 2019 18:28:18 +0000 (14:28 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 24 May 2019 17:20:48 +0000 (12:20 -0500)
commitda361dd13f4fb766445f55bbd2eec36c73a9b1bb
tree98547fe53ee4003abdc2ab5e41919b60877c6a40
parentd8e408a82704c86ba87c3d58cfe69dcdb758aa07
drm/amdgpu: Implement get num of hops between two xgmi device

KFD need to provide the info for upper level to determine the data path

Signed-off-by: shaoyunl <shaoyun.liu@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.h
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.h