From ff1c5837fafea4dab5f6232684416fd32d328039 Mon Sep 17 00:00:00 2001 From: Compute-Runtime-Validation Date: Sat, 7 Dec 2024 05:53:48 +0100 Subject: [PATCH] Revert "fix: Disable dc flush mitigation" This reverts commit 60a6d3875bbdc895053654c1427b83b76bfa7659. Signed-off-by: Compute-Runtime-Validation --- .../xe2_hpg_core/lnl/copy_engine_aub_tests_lnl.cpp | 2 +- shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp | 5 +++++ .../lnl/windows/product_helper_tests_lnl_windows.cpp | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/opencl/test/unit_test/aub_tests/xe2_hpg_core/lnl/copy_engine_aub_tests_lnl.cpp b/opencl/test/unit_test/aub_tests/xe2_hpg_core/lnl/copy_engine_aub_tests_lnl.cpp index 37f610bcb9..36d109682e 100644 --- a/opencl/test/unit_test/aub_tests/xe2_hpg_core/lnl/copy_engine_aub_tests_lnl.cpp +++ b/opencl/test/unit_test/aub_tests/xe2_hpg_core/lnl/copy_engine_aub_tests_lnl.cpp @@ -19,7 +19,7 @@ struct CopyEnginesLnlFixture : public CopyEngineXeHPAndLatergetHardwareInfo().featureTable; - return (ftrTable.flags.ftrFlatPhysCCS && ftrTable.flags.ftrXe2Compression); + return (ftrTable.flags.ftrFlatPhysCCS); } }; 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 58f6a19ac1..639e192d43 100644 --- a/shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp +++ b/shared/source/xe2_hpg_core/windows/product_helper_lnl.cpp @@ -52,6 +52,11 @@ bool ProductHelperHw::isDirectSubmissionSupported(ReleaseHelper *rel return true; } +template <> +bool ProductHelperHw::mitigateDcFlush() const { + return true; +} + template <> bool ProductHelperHw::restartDirectSubmissionForHostptrFree() const { return true; 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 daeeda244a..3b29ea3891 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 @@ -23,9 +23,9 @@ LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenCheckDirectSubmissionSu EXPECT_TRUE(productHelper->isDirectSubmissionSupported(releaseHelper)); } -LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenDcFlushMitigationThenReturnFalse) { - EXPECT_FALSE(productHelper->mitigateDcFlush()); - EXPECT_FALSE(productHelper->isDcFlushMitigated()); +LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenDcFlushMitigationThenReturnTrue) { + EXPECT_TRUE(productHelper->mitigateDcFlush()); + EXPECT_TRUE(productHelper->isDcFlushMitigated()); } LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenOverridePatIndexCalledThenCorrectValueIsReturned) {