Thunk interface to get SDMA engine info
Add SDMA engine info fields to node properties and modify get node properties API to read SDMA engine info from sysfs Change-Id: Iea877b5bc008cc9df9405daf564a359535f1bc9f Signed-off-by: Oak Zeng <Oak.Zeng@amd.com>
This commit is contained in:
1 والد
e4109de26d
کامیت
414a3508d6
2 files changed
+7
-1
No files matched your search
@@ -990,6 +990,10 @@ HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
|
||||
props->uCodeEngineVersions.Value = (uint32_t)prop_val & 0x3ff;
|
||||
else if (strcmp(prop_name, "hive_id") == 0)
|
||||
props->HiveID = prop_val;
|
||||
else if (strcmp(prop_name, "num_sdma_engines") == 0)
|
||||
props->NumSdmaEngines = prop_val;
|
||||
else if (strcmp(prop_name, "num_sdma_xgmi_engines") == 0)
|
||||
props->NumSdmaXgmiEngines = prop_val;
|
||||
}
|
||||
|
||||
hsa_gfxip = find_hsa_gfxip_device(props->DeviceId);
|
||||
|
||||
Reference in new issue
Block a user