ROCr changes to enable small BAR P2P over xGMI

Change-Id: I6aaa3fe2565cdf7e15d58a7484d6bd5916ffff64
This commit is contained in:
Ramesh Errabolu
2018-08-28 16:20:03 -05:00
parent 81532bb6f5
commit f007870792
4 changed files with 17 additions and 9 deletions
@@ -120,6 +120,12 @@ void RegisterLinkInfo(uint32_t node_id, uint32_t num_link) {
link_info.link_type = HSA_AMD_LINK_INFO_TYPE_INFINBAND;
debug_print("IOLINK is missing atomic and coherency defaults.\n");
break;
case HSA_IOLINK_TYPE_XGMI:
link_info.link_type = HSA_AMD_LINK_INFO_TYPE_XGMI;
link_info.atomic_support_32bit = true;
link_info.atomic_support_64bit = true;
link_info.coherent_support = true;
break;
default:
debug_print("Unrecognized IOLINK type.\n");
break;