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
This commit is contained in:
jordans
2025-03-11 16:56:02 -04:00
committed by Stratton, Jordan
parent 6903a41b1d
commit d4b85b6bf5
20 changed files with 1104 additions and 28 deletions
@@ -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