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
This commit is contained in:
Felix Kuehling
2016-03-09 14:29:37 -05:00
rodzic 1c1bc32477
commit 0ed29f5191
4 zmienionych plików z 27 dodań i 4 usunięć
+10
Wyświetl plik
@@ -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;
}