fix: Make use of correct base ext structures in sysman

Related-To: NEO-15537

Signed-off-by: shubham kumar <shubham.kumar@intel.com>
This commit is contained in:
shubham kumar
2025-07-29 10:23:40 +00:00
committed by Compute-Runtime-Automation
parent 74552606bf
commit b024ea2923
3 changed files with 8 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ ze_result_t LinuxPciImp::getProperties(zes_pci_properties_t *pProperties) {
void *pNext = pProperties->pNext;
while (pNext) {
auto pExtProps = reinterpret_cast<zet_base_properties_t *>(pNext);
auto pExtProps = reinterpret_cast<zes_base_properties_t *>(pNext);
if (pExtProps->stype == ZES_INTEL_PCI_LINK_SPEED_DOWNGRADE_EXP_PROPERTIES) {
auto pDowngradeExtProps = reinterpret_cast<zes_intel_pci_link_speed_downgrade_exp_properties_t *>(pExtProps);
auto pSysmanKmdInterface = pLinuxSysmanImp->getSysmanKmdInterface();
@@ -323,7 +323,7 @@ ze_result_t LinuxPciImp::getState(zes_pci_state_t *state) {
const void *pNext = state->pNext;
while (pNext) {
result = ZE_RESULT_ERROR_INVALID_ARGUMENT;
auto pExtProps = reinterpret_cast<zet_base_properties_t *>(const_cast<void *>(pNext));
auto pExtProps = reinterpret_cast<zes_base_properties_t *>(const_cast<void *>(pNext));
if (pExtProps->stype == ZES_INTEL_PCI_LINK_SPEED_DOWNGRADE_EXP_STATE) {
auto pDowngradeExpState = reinterpret_cast<zes_intel_pci_link_speed_downgrade_exp_state_t *>(pExtProps);
auto pSysmanKmdInterface = pLinuxSysmanImp->getSysmanKmdInterface();