Skip to content

Commit c565032

Browse files
dishikrealexdeucher
authored andcommitted
drm/amdkfd: Check use_xgmi_p2p before reporting hive_id
Recently introduced commit 158a05a ("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: 158a05a ("drm/amdgpu: Add use_xgmi_p2p module parameter") Signed-off-by: Divya Shikre <DivyaUday.Shikre@amd.com> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent b7dfbd2 commit c565032

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/gpu/drm/amd/amdkfd/kfd_device.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,8 @@ bool kgd2kfd_device_init(struct kfd_dev *kfd,
531531
goto kfd_doorbell_error;
532532
}
533533

534-
kfd->hive_id = kfd->adev->gmc.xgmi.hive_id;
534+
if (amdgpu_use_xgmi_p2p)
535+
kfd->hive_id = kfd->adev->gmc.xgmi.hive_id;
535536

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

0 commit comments

Comments
 (0)