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>
Cette révision appartient à :
gaba a créé et David Yat Sin a révisé 2023-12-08 15:29:19 -05:00
1 Parent 01ff2f7934
révision 4bf73f521b
2 fichiers modifiés
+10 -3

Aucun fichier ne correspond à votre recherche

+5 -1
Voir le fichier
@@ -64,7 +64,11 @@ TEST_F(KFDTopologyTest , BasicTest) {
" SGPR Size is " << pNodeProperties->SGPRSizePerCU << std::endl;
}
EXPECT_GT(pNodeProperties->NumMemoryBanks, HSAuint32(0)) << "Node index: " << node << "No MemoryBanks.";
EXPECT_GT(pNodeProperties->NumCaches, HSAuint32(0)) << "Node index: " << node << "No Caches.";
if (pNodeProperties->NumCaches ==0)
// SWDEV-420270
// 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.
LOG() << "Node index: " << node << " No Caches or not available to read ." << std::endl;
}
}