From 7adf9ad32a3052670d8aa6f55c1cff471743892f Mon Sep 17 00:00:00 2001 From: Mateusz Jablonski Date: Fri, 27 Sep 2024 08:23:38 +0000 Subject: [PATCH] feature: enable WMTP on LNL Related-To: NEO-12648 Signed-off-by: Mateusz Jablonski --- .../enable_compiler_product_helper_lnl.cpp | 6 ------ .../xe2_hpg_core/lnl/definitions/wmtp_setup_lnl.inl | 10 ---------- .../xe2_hpg_core/lnl/product_helper_tests_lnl.cpp | 3 +-- 3 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 shared/source/xe2_hpg_core/lnl/definitions/wmtp_setup_lnl.inl diff --git a/shared/source/xe2_hpg_core/enable_compiler_product_helper_lnl.cpp b/shared/source/xe2_hpg_core/enable_compiler_product_helper_lnl.cpp index 39ae2e8693..a2863dbaf3 100644 --- a/shared/source/xe2_hpg_core/enable_compiler_product_helper_lnl.cpp +++ b/shared/source/xe2_hpg_core/enable_compiler_product_helper_lnl.cpp @@ -15,7 +15,6 @@ #include "shared/source/helpers/compiler_product_helper_xe_hpc_and_later.inl" #include "platforms.h" -#include "wmtp_setup_lnl.inl" namespace NEO { template <> @@ -23,11 +22,6 @@ uint32_t CompilerProductHelperHw::getDefaultHwIpVersion() const return AOT::LNL_B0; } -template <> -bool CompilerProductHelperHw::isMidThreadPreemptionSupported(const HardwareInfo &hwInfo) const { - return hwInfo.featureTable.flags.ftrWalkerMTP && wmtpSupported; -} - static EnableCompilerProductHelper enableCompilerProductHelperLNL; } // namespace NEO diff --git a/shared/source/xe2_hpg_core/lnl/definitions/wmtp_setup_lnl.inl b/shared/source/xe2_hpg_core/lnl/definitions/wmtp_setup_lnl.inl deleted file mode 100644 index b072211123..0000000000 --- a/shared/source/xe2_hpg_core/lnl/definitions/wmtp_setup_lnl.inl +++ /dev/null @@ -1,10 +0,0 @@ -/* - * Copyright (C) 2024 Intel Corporation - * - * SPDX-License-Identifier: MIT - * - */ - -namespace NEO { -constexpr bool wmtpSupported = false; -} // namespace NEO diff --git a/shared/test/unit_test/xe2_hpg_core/lnl/product_helper_tests_lnl.cpp b/shared/test/unit_test/xe2_hpg_core/lnl/product_helper_tests_lnl.cpp index 2447c2196d..5b1bdca494 100644 --- a/shared/test/unit_test/xe2_hpg_core/lnl/product_helper_tests_lnl.cpp +++ b/shared/test/unit_test/xe2_hpg_core/lnl/product_helper_tests_lnl.cpp @@ -20,7 +20,6 @@ #include "aubstream/product_family.h" #include "platforms.h" -#include "wmtp_setup_lnl.inl" using namespace NEO; @@ -93,7 +92,7 @@ LNLTEST_F(LnlProductHelper, givenCompilerProductHelperWhenGetMidThreadPreemption hwInfo.featureTable.flags.ftrWalkerMTP = false; EXPECT_FALSE(compilerProductHelper->isMidThreadPreemptionSupported(hwInfo)); hwInfo.featureTable.flags.ftrWalkerMTP = true; - EXPECT_EQ(wmtpSupported, compilerProductHelper->isMidThreadPreemptionSupported(hwInfo)); + EXPECT_TRUE(compilerProductHelper->isMidThreadPreemptionSupported(hwInfo)); } LNLTEST_F(LnlProductHelper, whenCheckPreferredAllocationMethodThenAllocateByKmdIsReturnedExceptTagBufferAndTimestampPacketTagBuffer) {