Commit c5650327 authored by Divya Shikre's avatar Divya Shikre Committed by Alex Deucher
Browse files

drm/amdkfd: Check use_xgmi_p2p before reporting hive_id



Recently introduced commit 158a05a0 ("drm/amdgpu: Add
use_xgmi_p2p module parameter") did not update XGMI iolinks
when use_xgmi_p2p is disabled. Add fix to not create XGMI
iolinks in KFD topology when this parameter is disabled.

Fixes: 158a05a0 ("drm/amdgpu: Add use_xgmi_p2p module parameter")
Signed-off-by: default avatarDivya Shikre <DivyaUday.Shikre@amd.com>
Reviewed-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b7dfbd2e
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -531,6 +531,7 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd,
		goto kfd_doorbell_error;
	}

	if (amdgpu_use_xgmi_p2p)
		kfd->hive_id = kfd->adev->gmc.xgmi.hive_id;

	kfd->noretry = kfd->adev->gmc.noretry;