mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-11 00:10:58 +08:00
refactor: Add debug flags to set PATs for dc flush mitigation
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
654fdc1345
commit
1f6eaf2525
@@ -574,6 +574,8 @@ ForceInOrderEvents = -1
|
||||
EnableInOrderRelaxedOrderingForEventsChaining = -1
|
||||
OverridePatIndexForSystemMemory = -1
|
||||
OverridePatIndexForDeviceMemory = -1
|
||||
OverrideReadWritePatForDcFlushMitigation = -1
|
||||
OverrideWriteOnlyPatForDcFlushMitigation = -1
|
||||
PrintGmmCompressionParams = 0
|
||||
SkipInOrderNonWalkerSignalingAllowed = 0
|
||||
PrintKernelDispatchParameters = 0
|
||||
|
||||
@@ -57,6 +57,21 @@ LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenOverridePatIndexCalledT
|
||||
expectedPatIndexOverride = 1u;
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::linearStream));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::internalHeap));
|
||||
|
||||
expectedPatIndexOverride = 19u;
|
||||
debugManager.flags.OverrideReadWritePatForDcFlushMitigation.set(static_cast<int32_t>(expectedPatIndexOverride));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::bufferHostMemory));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::mapAllocation));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::svmCpu));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::svmZeroCopy));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::internalHostMemory));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::timestampPacketTagBuffer));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::tagBuffer));
|
||||
|
||||
expectedPatIndexOverride = 33u;
|
||||
debugManager.flags.OverrideWriteOnlyPatForDcFlushMitigation.set(static_cast<int32_t>(expectedPatIndexOverride));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::linearStream));
|
||||
EXPECT_EQ(expectedPatIndexOverride, productHelper->overridePatIndex(0u, expectedPatIndex, AllocationType::internalHeap));
|
||||
}
|
||||
|
||||
LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenIsStagingBuffersEnabledThenTrueIsReturned) {
|
||||
|
||||
Reference in New Issue
Block a user