kfdtest: add MES judging API in test utility.

Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
Change-Id: I978fc85b7c81ea65b97953a50d2d0312bcba95bf
This commit is contained in:
Yifan Zhang
2023-02-23 13:51:51 +08:00
committed by Yifan1 Zhang
parent 64aa9009e1
commit 564913526a
4 changed files with 12 additions and 0 deletions
+5
View File
@@ -234,6 +234,11 @@ bool isTonga(const HsaNodeProperties *props) {
return false;
}
bool CheckMES(const HsaNodeProperties *props) {
/* MES devices need GART mappings and therefore need non-paged memory */
return (props->EngineId.ui32.Major >= 11) ? true : false;
}
const uint32_t GetGfxVersion(const HsaNodeProperties *props) {
return ((props->EngineId.ui32.Major << 16) |
(props->EngineId.ui32.Minor << 8) |