Revert "performance: enable Direct Submission on LNL Linux"

This reverts commit cb3b4d326d.

Related-To: NEO-14517, NEO-9004

Signed-off-by: Andrzej Koska <andrzej.koska@intel.com>
This commit is contained in:
Andrzej Koska
2025-03-31 10:33:31 +00:00
committed by Compute-Runtime-Automation
parent eb170e5150
commit e3e01e94a0
5 changed files with 14 additions and 10 deletions

View File

@@ -37,11 +37,6 @@ std::optional<GfxMemoryAllocationMethod> ProductHelperHw<gfxProduct>::getPreferr
return GfxMemoryAllocationMethod::allocateByKmd; return GfxMemoryAllocationMethod::allocateByKmd;
} }
template <>
bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(ReleaseHelper *releaseHelper) const {
return true;
}
template <> template <>
bool ProductHelperHw<gfxProduct>::blitEnqueuePreferred(bool isWriteToImageFromBuffer) const { bool ProductHelperHw<gfxProduct>::blitEnqueuePreferred(bool isWriteToImageFromBuffer) const {
return isWriteToImageFromBuffer; return isWriteToImageFromBuffer;

View File

@@ -45,6 +45,11 @@ uint64_t ProductHelperHw<gfxProduct>::overridePatIndex(bool isUncachedType, uint
return patIndex; return patIndex;
} }
template <>
bool ProductHelperHw<gfxProduct>::isDirectSubmissionSupported(ReleaseHelper *releaseHelper) const {
return true;
}
template <> template <>
bool ProductHelperHw<gfxProduct>::restartDirectSubmissionForHostptrFree() const { bool ProductHelperHw<gfxProduct>::restartDirectSubmissionForHostptrFree() const {
return true; return true;

View File

@@ -60,6 +60,10 @@ LNLTEST_F(LnlProductHelperLinux, givenProductHelperWhenAskedIsKmdMigrationSuppor
EXPECT_FALSE(productHelper->isKmdMigrationSupported()); EXPECT_FALSE(productHelper->isKmdMigrationSupported());
} }
LNLTEST_F(LnlProductHelperLinux, givenProductHelperWhenCheckDirectSubmissionSupportedThenFalseIsReturned) {
EXPECT_FALSE(productHelper->isDirectSubmissionSupported(releaseHelper));
}
LNLTEST_F(LnlProductHelperLinux, givenProductHelperWhenCheckIsCopyBufferRectSplitSupportedThenReturnsTrue) { LNLTEST_F(LnlProductHelperLinux, givenProductHelperWhenCheckIsCopyBufferRectSplitSupportedThenReturnsTrue) {
EXPECT_TRUE(productHelper->isCopyBufferRectSplitSupported()); EXPECT_TRUE(productHelper->isCopyBufferRectSplitSupported());
} }

View File

@@ -164,7 +164,3 @@ LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsDeviceUsmAllocationR
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned) { LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckingIsBufferPoolAllocatorSupportedThenCorrectValueIsReturned) {
EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported()); EXPECT_TRUE(productHelper->isBufferPoolAllocatorSupported());
} }
LNLTEST_F(LnlProductHelper, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) {
EXPECT_TRUE(productHelper->isDirectSubmissionSupported(releaseHelper));
}

View File

@@ -19,6 +19,10 @@ using namespace NEO;
using LnlProductHelperWindows = ProductHelperTest; using LnlProductHelperWindows = ProductHelperTest;
LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenCheckDirectSubmissionSupportedThenTrueIsReturned) {
EXPECT_TRUE(productHelper->isDirectSubmissionSupported(releaseHelper));
}
LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenDcFlushMitigationThenReturnFalse) { LNLTEST_F(LnlProductHelperWindows, givenProductHelperWhenDcFlushMitigationThenReturnFalse) {
EXPECT_FALSE(productHelper->mitigateDcFlush()); EXPECT_FALSE(productHelper->mitigateDcFlush());
EXPECT_FALSE(productHelper->isDcFlushMitigated()); EXPECT_FALSE(productHelper->isDcFlushMitigated());
@@ -88,4 +92,4 @@ LNLTEST_F(LnlProductHelperWindows, givenOverrideDirectSubmissionTimeoutsCalledTh
productHelper->overrideDirectSubmissionTimeouts(timeout, maxTimeout); productHelper->overrideDirectSubmissionTimeouts(timeout, maxTimeout);
EXPECT_EQ(timeout.count(), 2'000); EXPECT_EQ(timeout.count(), 2'000);
EXPECT_EQ(maxTimeout.count(), 3'000); EXPECT_EQ(maxTimeout.count(), 3'000);
} }