From f03decfc251eb18cc4b35b7ac6a5c92833b05a93 Mon Sep 17 00:00:00 2001 From: Tomasz Biernacik Date: Mon, 28 Apr 2025 20:31:02 +0000 Subject: [PATCH] performance: disable coherency for buffers on PTL Related-To: NEO-9421 Signed-off-by: Tomasz Biernacik --- .../source/xe3_core/ptl/os_agnostic_product_helper_ptl.inl | 5 +++++ .../test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp | 4 ++++ 2 files changed, 9 insertions(+) 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 0c68776f45..80f181a579 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 @@ -34,4 +34,9 @@ bool ProductHelperHw::isDirectSubmissionSupported(ReleaseHelper *rel return true; } +template <> +bool ProductHelperHw::isCachingOnCpuAvailable() const { + return false; +} + } // namespace NEO 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 e070be3dec..2d3a88a6db 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 @@ -89,3 +89,7 @@ PTLTEST_F(PtlProductHelper, givenExternalHostPtrWhenMitigateDcFlushThenOverrideC } } } + +PTLTEST_F(PtlProductHelper, givenProductHelperWhenCallIsCachingOnCpuAvailableThenFalseIsReturned) { + EXPECT_FALSE(productHelper->isCachingOnCpuAvailable()); +}