fix(sysman): Return correct HwMon path for Prelim File
Related-To: NEO-10030 Signed-off-by: Bari, Pratik <pratik.bari@intel.com>
This commit is contained in:
parent
aaef241111
commit
88b44c6644
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
* Copyright (C) 2023-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -71,7 +71,7 @@ int64_t SysmanKmdInterfaceI915Prelim::getEngineActivityFd(zes_engine_group_t eng
|
|||
}
|
||||
|
||||
std::string SysmanKmdInterfaceI915Prelim::getHwmonName(uint32_t subDeviceId, bool isSubdevice) const {
|
||||
return "";
|
||||
return getHwmonNameI915(subDeviceId, isSubdevice);
|
||||
}
|
||||
|
||||
std::string SysmanKmdInterfaceI915Prelim::getEngineBasePath(uint32_t subDeviceId) const {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2023 Intel Corporation
|
||||
* Copyright (C) 2023-2024 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -44,7 +44,8 @@ TEST_F(SysmanFixtureDeviceI915Prelim, GivenI915PrelimVersionWhenSysmanKmdInterfa
|
|||
|
||||
TEST_F(SysmanFixtureDeviceI915Prelim, GivenSysmanKmdInterfaceInstanceWhenCallingGetHwmonNameThenEmptyNameIsReturned) {
|
||||
auto pSysmanKmdInterface = pLinuxSysmanImp->getSysmanKmdInterface();
|
||||
EXPECT_STREQ("", pSysmanKmdInterface->getHwmonName(0, true).c_str());
|
||||
EXPECT_STREQ("i915_gt0", pSysmanKmdInterface->getHwmonName(0, true).c_str());
|
||||
EXPECT_STREQ("i915", pSysmanKmdInterface->getHwmonName(0, false).c_str());
|
||||
}
|
||||
|
||||
TEST_F(SysmanFixtureDeviceI915Prelim, GivenSysmanKmdInterfaceInstanceWhenCallingGetEngineBasePathThenEmptyPathIsReturned) {
|
||||
|
|
Loading…
Reference in New Issue