From 9215f3acb57cf8ff6c68fac2a5b2e37d4b475cda Mon Sep 17 00:00:00 2001 From: Lukasz Jobczyk Date: Mon, 15 Jan 2024 11:21:06 +0000 Subject: [PATCH] performance: Remove tlb flush on DG2 Linux 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 ed2e539961..ff05953523 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 6d39d21b08..f913f85123 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