libhsakmt: Fix CPU cache issue

For "Intel Meteor lake Mobile", the cache info is not in sysfs,
    That means /sys/devices/system/node/node%d/%s/cache is not exist,
    but system working fine.

Change-Id: Ie7c04426791a84c2288ff21df093226828a5f629
Signed-off-by: Gang Ba <Gang.Ba@amd.com>
此提交包含在:
gaba
2023-12-06 12:54:46 -05:00
提交者 David Yat Sin
父節點 01ff2f7934
當前提交 4bf73f521b
共有 2 個檔案被更改,包括 10 行新增 和 3 行删除
+5 -2
查看文件
@@ -1466,8 +1466,11 @@ static HSAKMT_STATUS topology_get_cpu_cache_props(int node,
tbl->node.NumCaches = topology_create_temp_cpu_cache_list(
node, cpuinfo, &cpu_ci_list);
if (!tbl->node.NumCaches) {
pr_err("Fail to get cache info for node %d\n", node);
ret = HSAKMT_STATUS_ERROR;
/* For "Intel Meteor lake Mobile", the cache info is not in sysfs,
* That means /sys/devices/system/node/node%d/%s/cache is not exist.
* here AMD will not black this issue.
*/
pr_debug("CPU cache info is not available for node %d \n", node);
goto exit;
}