diff --git a/shared/source/xe3_core/linux/product_helper_ptl.cpp b/shared/source/xe3_core/linux/product_helper_ptl.cpp index 388fe92339..2c99397054 100644 --- a/shared/source/xe3_core/linux/product_helper_ptl.cpp +++ b/shared/source/xe3_core/linux/product_helper_ptl.cpp @@ -34,11 +34,6 @@ 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 ce5b2553b7..29a5c85100 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,4 +49,9 @@ 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 08b18f7eb2..5e497262c9 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,9 +54,3 @@ 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 7589dc9856..da07365d97 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,4 +139,8 @@ 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