Report SVM heap in topology

The Runtime requested this information so they can tell easily
whether a pointer is part of HSA shared address space or not.


Change-Id: If2041ed34031636677d692bc2dc6625634027ed4


[ROCm/ROCR-Runtime commit: 0ed29f5191]
This commit is contained in:
Felix Kuehling
2016-03-09 14:29:37 -05:00
parent 2f015053b2
commit a31106ee4c
4 changed files with 27 additions and 4 deletions
+10
View File
@@ -1246,6 +1246,16 @@ HSAKMT_STATUS fmm_get_aperture_base_and_limit(aperture_type_e aperture_type, HSA
}
break;
case FMM_SVM:
/* Report single SVM aperture, starting at base of
* fine-grained, ending at limit of coarse-grained */
if (aperture_is_valid(svm.dgpu_alt_aperture.base,
svm.dgpu_aperture.limit)) {
*aperture_base = PORT_VPTR_TO_UINT64(svm.dgpu_alt_aperture.base);
*aperture_limit = PORT_VPTR_TO_UINT64(svm.dgpu_aperture.limit);
}
break;
default:
err = HSAKMT_STATUS_ERROR;
}