diff --git a/shared/source/xe3_core/linux/product_helper_ptl.cpp b/shared/source/xe3_core/linux/product_helper_ptl.cpp index 2c99397054..388fe92339 100644 --- a/shared/source/xe3_core/linux/product_helper_ptl.cpp +++ b/shared/source/xe3_core/linux/product_helper_ptl.cpp @@ -34,6 +34,11 @@ bool ProductHelperHw::isDisableScratchPagesSupported() const { return true; } +template <> +bool ProductHelperHw::isTlbFlushRequired() const { + return false; +} + template <> uint64_t ProductHelperHw::getSharedSystemPatIndex() const { return 1; diff --git a/shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl b/shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl index 29a5c85100..ce5b2553b7 100644 --- a/shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl +++ b/shared/source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl @@ -49,9 +49,4 @@ bool ProductHelperHw::isMisalignedUserPtr2WayCoherent() const { return true; } -template <> -bool ProductHelperHw::isTlbFlushRequired() const { - return false; -} - } // namespace NEO diff --git a/shared/test/unit_test/xe3_core/ptl/linux/product_helper_tests_ptl_linux.cpp b/shared/test/unit_test/xe3_core/ptl/linux/product_helper_tests_ptl_linux.cpp index 5e497262c9..08b18f7eb2 100644 --- a/shared/test/unit_test/xe3_core/ptl/linux/product_helper_tests_ptl_linux.cpp +++ b/shared/test/unit_test/xe3_core/ptl/linux/product_helper_tests_ptl_linux.cpp @@ -54,3 +54,9 @@ PTLTEST_F(PtlHwInfoLinux, WhenGtIsSetupThenGtSystemInfoIsCorrect) { EXPECT_GT(gtSystemInfo.DualSubSliceCount, 0u); EXPECT_GT(gtSystemInfo.MaxDualSubSlicesSupported, 0u); } + +using PtlProductHelperTest = ProductHelperTest; + +PTLTEST_F(PtlProductHelperTest, givenProductHelperWhenAskedIfIsTlbFlushRequiredThenFalseIsReturned) { + EXPECT_FALSE(productHelper->isTlbFlushRequired()); +} diff --git a/shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp b/shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp index da07365d97..7589dc9856 100644 --- a/shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp +++ b/shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp @@ -139,8 +139,4 @@ PTLTEST_F(PtlProductHelper, givenProductHelperWhenCheckingIsHostDeviceUsmPoolAll PTLTEST_F(PtlProductHelper, givenProductHelperWhenIsMisalignedUserPtr2WayCoherentThenReturnTrue) { EXPECT_TRUE(productHelper->isMisalignedUserPtr2WayCoherent()); -} - -PTLTEST_F(PtlProductHelper, givenProductHelperWhenAskedIfIsTlbFlushRequiredThenFalseIsReturned) { - EXPECT_FALSE(productHelper->isTlbFlushRequired()); } \ No newline at end of file