diff --git a/shared/source/xe_hpg_core/xe_lpg/windows/product_helper_xe_lpg_windows.inl b/shared/source/xe_hpg_core/xe_lpg/windows/product_helper_xe_lpg_windows.inl index 068169fc61..25a32f8b6d 100644 --- a/shared/source/xe_hpg_core/xe_lpg/windows/product_helper_xe_lpg_windows.inl +++ b/shared/source/xe_hpg_core/xe_lpg/windows/product_helper_xe_lpg_windows.inl @@ -19,4 +19,16 @@ bool ProductHelperHw::isCompressionForbidden(const HardwareInfo &hwI return isCompressionForbiddenCommon(false); } +template <> +void ProductHelperHw::overrideDirectSubmissionTimeouts(uint64_t &timeoutUs, uint64_t &maxTimeoutUs) const { + timeoutUs = 1'000; + maxTimeoutUs = 1'000; + if (debugManager.flags.DirectSubmissionControllerTimeout.get() != -1) { + timeoutUs = debugManager.flags.DirectSubmissionControllerTimeout.get(); + } + if (debugManager.flags.DirectSubmissionControllerMaxTimeout.get() != -1) { + maxTimeoutUs = debugManager.flags.DirectSubmissionControllerMaxTimeout.get(); + } +} + } // namespace NEO diff --git a/shared/test/unit_test/os_interface/product_helper_tests.cpp b/shared/test/unit_test/os_interface/product_helper_tests.cpp index 1203a2648e..7017a84af1 100644 --- a/shared/test/unit_test/os_interface/product_helper_tests.cpp +++ b/shared/test/unit_test/os_interface/product_helper_tests.cpp @@ -1181,7 +1181,7 @@ HWTEST2_F(ProductHelperTest, givenProductHelperThenCompressionIsNotForbidden, Is EXPECT_FALSE(productHelper->isCompressionForbidden(hwInfo)); } -HWTEST2_F(ProductHelperTest, givenProductHelperBeforeXe2WhenOverrideDirectSubmissionTimeoutsThenTimeoutsNotAdjusted, IsAtMostXeCore) { +HWTEST2_F(ProductHelperTest, givenProductHelperBeforeXeLpgWhenOverrideDirectSubmissionTimeoutsThenTimeoutsNotAdjusted, IsAtMostDg2) { DebugManagerStateRestore restorer; uint64_t timeoutUs{5000};