hsakmt: Initial Commit for the HSA KMT Model

The over arching goal it so provide an API that pre-silicon models can latch into for software bring up.# Please enter the commit message for your changes. Lines starting


[ROCm/ROCR-Runtime commit: d4b85b6bf5]
Tento commit je obsažen v:
jordans
2025-03-11 16:56:02 -04:00
odevzdal Stratton, Jordan
rodič 9e8859636e
revize 938b34da24
20 změnil soubory, kde provedl 1104 přidání a 28 odebrání
@@ -520,5 +520,14 @@ bool KfdDriver::BindXnackMode() {
return (mode != Flag::XNACK_DISABLE);
}
hsa_status_t KfdDriver::IsModelEnabled(bool* enable) const {
// AIE does not support streaming performance monitor.
HSAKMT_STATUS status = HSAKMT_STATUS_ERROR;
status = hsaKmtModelEnabled(enable);
if (status != HSAKMT_STATUS_SUCCESS) {
return HSA_STATUS_ERROR;
}
}
} // namespace AMD
} // namespace rocr
@@ -688,5 +688,11 @@ hsa_status_t XdnaDriver::SPMSetDestBuffer(uint32_t preferred_node_id, uint32_t s
return HSA_STATUS_ERROR_INVALID_AGENT;
}
hsa_status_t XdnaDriver::IsModelEnabled(bool* enable) const {
// AIE does not support streaming performance monitor.
*enable = false;
return HSA_STATUS_SUCCESS;
}
} // namespace AMD
} // namespace rocr