From 495b9eccd3cef9db009741f5987bd9d45e9d7af1 Mon Sep 17 00:00:00 2001 From: Lukasz Jobczyk Date: Thu, 7 Aug 2025 08:55:24 +0000 Subject: [PATCH] performance: disable tlb flush on LNL Windows Signed-off-by: Lukasz Jobczyk --- shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp | 5 +++++ .../lnl/windows/product_helper_tests_lnl_windows.cpp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp b/shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp index bbbd673f49..6840e5e468 100644 --- a/shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp +++ b/shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp @@ -21,5 +21,10 @@ bool ProductHelperHw::restartDirectSubmissionForHostptrFree() const return true; } +template <> +bool ProductHelperHw::isTlbFlushRequired() const { + return false; +} + template class ProductHelperHw; } // namespace NEO diff --git a/shared/test/unit_test/xe2_hpg_core/lnl/windows/product_helper_tests_lnl_windows.cpp b/shared/test/unit_test/xe2_hpg_core/lnl/windows/product_helper_tests_lnl_windows.cpp index c1eb1ecf11..3f174f8c91 100644 --- a/shared/test/unit_test/xe2_hpg_core/lnl/windows/product_helper_tests_lnl_windows.cpp +++ b/shared/test/unit_test/xe2_hpg_core/lnl/windows/product_helper_tests_lnl_windows.cpp @@ -39,3 +39,7 @@ LNLTEST_F(LnlProductHelperWindows, givenOverrideDirectSubmissionTimeoutsCalledTh LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenCallDeferMOCSToPatOnWSLThenTrueIsReturned) { EXPECT_TRUE(productHelper->deferMOCSToPatIndex(true)); } + +LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenAskedIfIsTlbFlushRequiredThenFalseIsReturned) { + EXPECT_FALSE(productHelper->isTlbFlushRequired()); +} \ No newline at end of file