fix(sysman): Changes in the hwmon name for Xe.

Related-To: NEO-10485

Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
This commit is contained in:
Bari, Pratik 2024-03-06 07:23:20 +00:00 committed by Compute-Runtime-Automation
parent 87f2357868
commit 75ce4dbe3b
2 changed files with 2 additions and 3 deletions

View File

@ -128,8 +128,7 @@ int64_t SysmanKmdInterfaceXe::getEngineActivityFd(zes_engine_group_t engineGroup
}
std::string SysmanKmdInterfaceXe::getHwmonName(uint32_t subDeviceId, bool isSubdevice) const {
std::string filePath = isSubdevice ? "xe_tile" + std::to_string(subDeviceId) : "xe";
return filePath;
return "xe";
}
std::optional<std::string> SysmanKmdInterfaceXe::getEngineClassString(uint16_t engineClass) {

View File

@ -97,7 +97,7 @@ TEST_F(SysmanFixtureDeviceXe, GivenSysmanKmdInterfaceWhenGettingSysfsFileNamesTh
TEST_F(SysmanFixtureDeviceXe, GivenSysmanKmdInterfaceWhenGettingHwMonNameThenCorrectPathIsReturned) {
auto pSysmanKmdInterface = pLinuxSysmanImp->pSysmanKmdInterface.get();
bool isSubdevice = true;
EXPECT_STREQ("xe_tile0", pSysmanKmdInterface->getHwmonName(0, isSubdevice).c_str());
EXPECT_STREQ("xe", pSysmanKmdInterface->getHwmonName(0, isSubdevice).c_str());
isSubdevice = false;
EXPECT_STREQ("xe", pSysmanKmdInterface->getHwmonName(0, isSubdevice).c_str());
}