performance: disable tlb flush on BMG Windows

Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2025-08-07 09:57:46 +00:00
committed by Compute-Runtime-Automation
parent 495b9eccd3
commit 3ffb51932f
3 changed files with 35 additions and 0 deletions

View File

@@ -22,5 +22,10 @@ bool ProductHelperHw<gfxProduct>::restartDirectSubmissionForHostptrFree() const
return true;
}
template <>
bool ProductHelperHw<gfxProduct>::isTlbFlushRequired() const {
return false;
}
template class ProductHelperHw<gfxProduct>;
} // namespace NEO

View File

@@ -0,0 +1,9 @@
#
# Copyright (C) 2025 Intel Corporation
#
# SPDX-License-Identifier: MIT
#
if(WIN32)
target_sources(neo_shared_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/product_helper_tests_bmg_windows.cpp)
endif()

View File

@@ -0,0 +1,21 @@
/*
* Copyright (C) 2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/os_interface/product_helper.h"
#include "shared/source/xe2_hpg_core/hw_info_xe2_hpg_core.h"
#include "shared/test/common/helpers/debug_manager_state_restore.h"
#include "shared/test/unit_test/os_interface/product_helper_tests.h"
#include "per_product_test_definitions.h"
using namespace NEO;
using BmgProductHelperWindows = ProductHelperTest;
BMGTEST_F(BmgProductHelperWindows, givenProductHelperWhenAskedIfIsTlbFlushRequiredThenFalseIsReturned) {
EXPECT_FALSE(productHelper->isTlbFlushRequired());
}