From a48c99e580684122925a26d5e5d6b4cca0bb617b Mon Sep 17 00:00:00 2001 From: Pratik Bari Date: Mon, 1 Sep 2025 16:41:55 +0000 Subject: [PATCH] fix: Remove the current Ras Util Interface from specific products Related-To: NEO-15787 Signed-off-by: Pratik Bari --- .../xe2_hpg_core/bmg/sysman_product_helper_bmg.cpp | 10 ---------- .../xe2_hpg_core/lnl/sysman_product_helper_lnl.cpp | 12 +----------- .../xe3_core/ptl/sysman_product_helper_ptl.cpp | 10 ---------- .../unit_tests/sources/ras/linux/test_zes_ras.cpp | 2 +- 4 files changed, 2 insertions(+), 32 deletions(-) diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/bmg/sysman_product_helper_bmg.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/bmg/sysman_product_helper_bmg.cpp index 548a649f2c..921365168f 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/bmg/sysman_product_helper_bmg.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/bmg/sysman_product_helper_bmg.cpp @@ -1254,16 +1254,6 @@ const std::map> *SysmanProductHelpe return &guidToKeyOffsetMap; } -template <> -RasInterfaceType SysmanProductHelperHw::getGtRasUtilInterface() { - return RasInterfaceType::netlink; -} - -template <> -RasInterfaceType SysmanProductHelperHw::getHbmRasUtilInterface() { - return RasInterfaceType::netlink; -} - template <> bool SysmanProductHelperHw::isUpstreamPortConnected() { return true; diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/lnl/sysman_product_helper_lnl.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/lnl/sysman_product_helper_lnl.cpp index 291b8b5f50..59818badd2 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/lnl/sysman_product_helper_lnl.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe2_hpg_core/lnl/sysman_product_helper_lnl.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2024 Intel Corporation + * Copyright (C) 2024-2025 Intel Corporation * * SPDX-License-Identifier: MIT * @@ -14,16 +14,6 @@ constexpr static auto gfxProduct = IGFX_LUNARLAKE; #include "level_zero/sysman/source/shared/linux/product_helper/sysman_product_helper_xe_hp_and_later.inl" -template <> -RasInterfaceType SysmanProductHelperHw::getGtRasUtilInterface() { - return RasInterfaceType::netlink; -} - -template <> -RasInterfaceType SysmanProductHelperHw::getHbmRasUtilInterface() { - return RasInterfaceType::netlink; -} - template <> bool SysmanProductHelperHw::isZesInitSupported() { return true; diff --git a/level_zero/sysman/source/shared/linux/product_helper/xe3_core/ptl/sysman_product_helper_ptl.cpp b/level_zero/sysman/source/shared/linux/product_helper/xe3_core/ptl/sysman_product_helper_ptl.cpp index 5a3f0c5f53..2fa724c331 100644 --- a/level_zero/sysman/source/shared/linux/product_helper/xe3_core/ptl/sysman_product_helper_ptl.cpp +++ b/level_zero/sysman/source/shared/linux/product_helper/xe3_core/ptl/sysman_product_helper_ptl.cpp @@ -14,16 +14,6 @@ constexpr static auto gfxProduct = IGFX_PTL; #include "level_zero/sysman/source/shared/linux/product_helper/sysman_product_helper_xe_hp_and_later.inl" -template <> -RasInterfaceType SysmanProductHelperHw::getGtRasUtilInterface() { - return RasInterfaceType::netlink; -} - -template <> -RasInterfaceType SysmanProductHelperHw::getHbmRasUtilInterface() { - return RasInterfaceType::netlink; -} - template <> bool SysmanProductHelperHw::isZesInitSupported() { return true; diff --git a/level_zero/sysman/test/unit_tests/sources/ras/linux/test_zes_ras.cpp b/level_zero/sysman/test/unit_tests/sources/ras/linux/test_zes_ras.cpp index 743a5cc47e..1ff7b99c26 100644 --- a/level_zero/sysman/test/unit_tests/sources/ras/linux/test_zes_ras.cpp +++ b/level_zero/sysman/test/unit_tests/sources/ras/linux/test_zes_ras.cpp @@ -155,7 +155,7 @@ HWTEST2_F(SysmanRasFixture, GivenValidSysmanHandleWhenRetrievingRasHandlesIfRasE EXPECT_EQ(testcount, 0u); } -HWTEST2_F(SysmanRasFixture, GivenValidSysmanHandleWhenRetrievingRasHandlesIfRasEventsAndHbmAreAbsentThenZeroHandlesAreCreated, IsNotPVC) { +HWTEST_F(SysmanRasFixture, GivenValidSysmanHandleWhenRetrievingRasHandlesIfRasEventsAndHbmAreAbsentThenZeroHandlesAreCreated) { pRasFwUtilInterface->mockMemorySuccess = true; pFsAccess->mockReadDirectoryWithoutRasEvents = true;