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:
committed by
Yifan1 Zhang
parent
64aa9009e1
commit
564913526a
@@ -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) |
|
||||
|
||||
Reference in New Issue
Block a user