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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user