From 3ba8ca47b00d2b6e3afebc3a7a6c59978b092222 Mon Sep 17 00:00:00 2001 From: Lukasz Jobczyk Date: Thu, 27 Jul 2023 12:47:27 +0000 Subject: [PATCH] performance: Remove tlb flush on DG2 Resolves: NEO-7116 Signed-off-by: Lukasz Jobczyk --- shared/source/xe_hpg_core/linux/product_helper_dg2.cpp | 5 +++++ .../xe_hpg_core/dg2/linux/product_helper_tests_dg2.cpp | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/shared/source/xe_hpg_core/linux/product_helper_dg2.cpp b/shared/source/xe_hpg_core/linux/product_helper_dg2.cpp index ddad468e28..c8ffa04a73 100644 --- a/shared/source/xe_hpg_core/linux/product_helper_dg2.cpp +++ b/shared/source/xe_hpg_core/linux/product_helper_dg2.cpp @@ -70,5 +70,10 @@ bool ProductHelperHw::getUuid(NEO::DriverModel *driverModel, const u return true; } +template <> +bool ProductHelperHw::isTlbFlushRequired() const { + return false; +} + template class ProductHelperHw; } // namespace NEO diff --git a/shared/test/unit_test/xe_hpg_core/dg2/linux/product_helper_tests_dg2.cpp b/shared/test/unit_test/xe_hpg_core/dg2/linux/product_helper_tests_dg2.cpp index b56153717a..852c573027 100644 --- a/shared/test/unit_test/xe_hpg_core/dg2/linux/product_helper_tests_dg2.cpp +++ b/shared/test/unit_test/xe_hpg_core/dg2/linux/product_helper_tests_dg2.cpp @@ -43,3 +43,7 @@ DG2TEST_F(Dg2ProductHelperLinux, GivenDg2WhenConfigureHardwareCustomThenKmdNotif EXPECT_TRUE(pInHwInfo.capabilityTable.kmdNotifyProperties.enableQuickKmdSleepForDirectSubmission); EXPECT_EQ(20ll, pInHwInfo.capabilityTable.kmdNotifyProperties.delayQuickKmdSleepForDirectSubmissionMicroseconds); } + +DG2TEST_F(Dg2ProductHelperLinux, whenCheckIsTlbFlushRequiredThenReturnProperValue) { + EXPECT_FALSE(productHelper->isTlbFlushRequired()); +} \ No newline at end of file