Skip to content

Commit 59179fa

Browse files
Revert "performance: Set L1 cache policy to WB on PTL"
This reverts commit 577de97. Signed-off-by: Compute-Runtime-Validation <[email protected]>
1 parent 56ce056 commit 59179fa

File tree

9 files changed

+5
-29
lines changed

9 files changed

+5
-29
lines changed

level_zero/core/test/unit_tests/sources/debugger/test_l0_debugger_1.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
namespace L0 {
3535
namespace ult {
3636

37-
HWTEST_EXCLUDE_PRODUCT(L0DebuggerTest, givenDebuggerEnabledAndL1CachePolicyWBWhenAppendingThenDebugSurfaceHasCachePolicyWBP_IsAtLeastXeCore, IGFX_PTL);
38-
3937
using L0DebuggerTest = Test<L0DebuggerHwFixture>;
4038
using L0DebuggerParameterizedTests = L0DebuggerHwParameterizedFixture;
4139
using L0DebuggerGlobalStatelessTest = Test<L0DebuggerHwGlobalStatelessFixture>;

level_zero/core/test/unit_tests/sources/module/test_module.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@
5454
namespace L0 {
5555
namespace ult {
5656

57-
HWTEST_EXCLUDE_PRODUCT(ModuleTranslationUnitTest, givenAtLeastXeHpgCoreWhenGetInternalOptionsThenCorrectBuildOptionIsSet_IsAtLeastXeCore, IGFX_PTL);
58-
5957
using ModuleTest = Test<ModuleFixture>;
6058

6159
TEST_F(ModuleTest, GivenGeneralRegisterFileDescriptorWhenGetKernelPropertiesIsCalledThenDescriptorIsCorrectlySet) {

opencl/test/unit_test/program/program_tests.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,6 @@
7171

7272
using namespace NEO;
7373

74-
HWTEST_EXCLUDE_PRODUCT(ProgramTests, givenAtLeastXeHpgCoreWhenGetInternalOptionsThenCorrectBuildOptionIsSet_IsAtLeastXeCore, IGFX_PTL);
75-
7674
void ProgramTests::SetUp() {
7775
ClDeviceFixture::setUp();
7876
cl_device_id device = pClDevice;

opencl/test/unit_test/xe3_core/test_cmds_programming_xe3_core.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ XE3_CORETEST_F(CmdsProgrammingTestsXe3Core, givenL3ToL1DebugFlagWhenStatelessMoc
4444

4545
auto actualL1CachePolocy = static_cast<uint8_t>(stateBaseAddress->getL1CacheControlCachePolicy());
4646

47-
const uint8_t expectedL1CachePolicy = pDevice->getHardwareInfo().platform.eProductFamily == IGFX_PTL ? 2 : 0;
47+
const uint8_t expectedL1CachePolicy = 0;
4848
EXPECT_EQ(expectedL1CachePolicy, actualL1CachePolocy);
4949
}
5050

@@ -75,8 +75,7 @@ XE3_CORETEST_F(CmdsProgrammingTestsXe3Core, whenAppendingRssThenProgramWtL1Cache
7575

7676
EncodeSurfaceState<FamilyType>::encodeBuffer(args);
7777

78-
const uint8_t expectedL1CachePolicy = pDevice->getHardwareInfo().platform.eProductFamily == IGFX_PTL ? 2 : 0;
79-
EXPECT_EQ(expectedL1CachePolicy, rssCmd.getL1CacheControlCachePolicy());
78+
EXPECT_EQ(FamilyType::RENDER_SURFACE_STATE::L1_CACHE_CONTROL_WBP, rssCmd.getL1CacheControlCachePolicy());
8079
}
8180

8281
XE3_CORETEST_F(CmdsProgrammingTestsXe3Core, givenAlignedCacheableReadOnlyBufferThenChoseOclBufferConstPolicy) {
@@ -103,7 +102,7 @@ XE3_CORETEST_F(CmdsProgrammingTestsXe3Core, givenAlignedCacheableReadOnlyBufferT
103102

104103
auto actualL1CachePolocy = static_cast<uint8_t>(surfaceState.getL1CacheControlCachePolicy());
105104

106-
const uint8_t expectedL1CachePolicy = pDevice->getHardwareInfo().platform.eProductFamily == IGFX_PTL ? 2 : 0;
105+
const uint8_t expectedL1CachePolicy = 0;
107106
EXPECT_EQ(expectedL1CachePolicy, actualL1CachePolocy);
108107

109108
alignedFree(ptr);

shared/source/xe3_core/definitions/enable_xe3_core_products.inl

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@
66
*/
77

88
#ifdef SUPPORT_PTL
9-
10-
template <>
11-
uint32_t L1CachePolicyHelper<IGFX_PTL>::getDefaultL1CachePolicy(bool isDebuggerActive) {
12-
using GfxFamily = HwMapper<IGFX_PTL>::GfxFamily;
13-
return GfxFamily::STATE_BASE_ADDRESS::L1_CACHE_CONTROL_WB;
14-
}
15-
169
template struct L1CachePolicyHelper<IGFX_PTL>;
1710
static EnableGfxProductHw<IGFX_PTL> enableGfxProductHwPTL;
1811
#endif

shared/test/unit_test/helpers/cache_policy_tests.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ HWTEST2_F(ProductHelperTest, givenL1CachePolicyHelperWhenUnsupportedL1PoliciesAn
2626
HWTEST2_F(ProductHelperTest, givenAtLeastXeHpgCoreWhenGetL1CachePolicyThenReturnCorrectValue, IsAtLeastXeCore) {
2727
using GfxFamily = typename HwMapper<productFamily>::GfxFamily;
2828
auto policy = [&]() -> uint32_t {
29-
if constexpr (productFamily == IGFX_PTL) {
30-
return GfxFamily::RENDER_SURFACE_STATE::L1_CACHE_CONTROL_WB;
31-
} else if constexpr (GfxFamily::isHeaplessRequired()) {
29+
if constexpr (GfxFamily::isHeaplessRequired()) {
3230
return GfxFamily::RENDER_SURFACE_STATE::L1_CACHE_CONTROL_WBP;
3331
} else {
3432
return GfxFamily::STATE_BASE_ADDRESS::L1_CACHE_CONTROL_WBP;

shared/test/unit_test/xe3_core/ptl/excludes_xe3_core_ptl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,3 @@
88
#include "shared/test/common/test_macros/hw_test_base.h"
99

1010
HWTEST_EXCLUDE_PRODUCT(ProductHelperTest, whenGettingPreferredAllocationMethodThenNoPreferenceIsReturned, IGFX_PTL);
11-
HWTEST_EXCLUDE_PRODUCT(ProductHelperTest, givenProductHelperWhenGetL1CachePolicyThenReturnWriteByPass_IsSbaRequiredAndAtLeastXeCore, IGFX_PTL);
12-
HWTEST_EXCLUDE_PRODUCT(CompilerProductHelperFixture, givenAtLeastXeHpgCoreWhenGetCachingPolicyOptionsThenReturnWriteByPassPolicyOption_IsAtLeastXeCore, IGFX_PTL);
13-
HWTEST_EXCLUDE_PRODUCT(SbaTest, givenStateBaseAddressAndDebugFlagSetWhenAppendExtraCacheSettingsThenProgramCorrectL1CachePolicy_IsSbaRequiredAndAtLeastXeCore, IGFX_PTL);

shared/test/unit_test/xe3_core/ptl/product_helper_tests_ptl.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ PTLTEST_F(PtlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorS
7575
EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
7676
}
7777

78-
PTLTEST_F(ProductHelperTest, givenProductHelperWhenGetL1CachePolicyThenReturnWriteByPass) {
79-
EXPECT_EQ(2u, productHelper->getL1CachePolicy(false));
80-
EXPECT_EQ(2u, productHelper->getL1CachePolicy(true));
81-
}
82-
8378
PTLTEST_F(PtlProductHelper, givenDebugFlagWhenCheckingIsResolveDependenciesByPipeControlsSupportedThenTheFlagDerivedValueIsReturned) {
8479
DebugManagerStateRestore restorer;
8580

shared/test/unit_test/xe3_core/test_encode_xe3_core.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ XE3_CORETEST_F(Xe3SbaTest, givenSpecificProductFamilyWhenAppendingSbaThenProgram
593593

594594
StateBaseAddressHelper<FamilyType>::appendStateBaseAddressParameters(args);
595595

596-
EXPECT_EQ(pDevice->getHardwareInfo().platform.eProductFamily == IGFX_PTL ? 2 : 0, sbaCmd.getL1CacheControlCachePolicy());
596+
EXPECT_EQ(FamilyType::STATE_BASE_ADDRESS::L1_CACHE_CONTROL_WBP, sbaCmd.getL1CacheControlCachePolicy());
597597
}
598598

599599
XE3_CORETEST_F(Xe3SbaTest, givenL1CachingOverrideWhenStateBaseAddressIsProgrammedThenItMatchesTheOverrideValue) {

0 commit comments

Comments
 (0)