libhsakmt: Add a message when a device is not supported
This helps to quickly triage problems. Change-Id: Iad2b4b74209ab972be0c2f6311eeb3aaf098d29f Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
This commit is contained in:
+5
-1
@@ -1066,7 +1066,11 @@ HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
|
||||
props->MarketingName[i] = name[i];
|
||||
props->MarketingName[i] = '\0';
|
||||
}
|
||||
}
|
||||
} else if (props->DeviceId)
|
||||
/* still return success */
|
||||
pr_err("device ID 0x%x is not supported in libhsakmt\n",
|
||||
props->DeviceId);
|
||||
|
||||
if (props->NumFComputeCores)
|
||||
assert(props->EngineId.ui32.Major);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user