fix: disable batched dispatch mode in aub csr
Signed-off-by: Bartosz Dunajski <bartosz.dunajski@intel.com>
This commit is contained in:
parent
c651209617
commit
c1f2ff1ad6
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
* Copyright (C) 2022-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -30,6 +30,8 @@ struct RangeBasedFlushTest : public KernelAUBFixture<SimpleKernelFixture>, publi
|
|||
void SetUp() override {
|
||||
debugManager.flags.PerformImplicitFlushForNewResource.set(0);
|
||||
debugManager.flags.PerformImplicitFlushForIdleGpu.set(0);
|
||||
debugManager.flags.CsrDispatchMode.set(static_cast<int32_t>(DispatchMode::batchedDispatch));
|
||||
|
||||
KernelAUBFixture<SimpleKernelFixture>::setUp();
|
||||
};
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2018-2024 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -176,6 +176,7 @@ HWTEST_F(EnqueueHandlerWithAubSubCaptureTests, givenEnqueueHandlerWithAubSubCapt
|
|||
DebugManagerStateRestore stateRestore;
|
||||
debugManager.flags.AUBDumpSubCaptureMode.set(1);
|
||||
debugManager.flags.EnableTimestampPacket.set(true);
|
||||
debugManager.flags.CsrDispatchMode.set(static_cast<int32_t>(DispatchMode::batchedDispatch));
|
||||
|
||||
UnitTestSetter::disableHeaplessStateInit(stateRestore);
|
||||
|
||||
|
@ -212,6 +213,7 @@ HWTEST_F(EnqueueHandlerWithAubSubCaptureTests, givenInputEventsWhenDispatchingEn
|
|||
DebugManagerStateRestore stateRestore;
|
||||
debugManager.flags.AUBDumpSubCaptureMode.set(1);
|
||||
debugManager.flags.EnableTimestampPacket.set(true);
|
||||
debugManager.flags.CsrDispatchMode.set(static_cast<int32_t>(DispatchMode::batchedDispatch));
|
||||
UnitTestSetter::disableHeaplessStateInit(stateRestore);
|
||||
|
||||
auto defaultEngine = defaultHwInfo->capabilityTable.defaultEngineType;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2024 Intel Corporation
|
||||
* Copyright (C) 2019-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -83,7 +83,6 @@ AUBCommandStreamReceiverHw<GfxFamily>::AUBCommandStreamReceiverHw(const std::str
|
|||
stream = streamProvider->getStream();
|
||||
UNRECOVERABLE_IF(nullptr == stream);
|
||||
|
||||
this->dispatchMode = DispatchMode::batchedDispatch;
|
||||
if (debugManager.flags.CsrDispatchMode.get()) {
|
||||
this->dispatchMode = (DispatchMode)debugManager.flags.CsrDispatchMode.get();
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2022-2024 Intel Corporation
|
||||
* Copyright (C) 2022-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include <chrono>
|
||||
#include <condition_variable>
|
||||
#include <io.h>
|
||||
#include <signal.h>
|
||||
|
|
|
@ -106,18 +106,18 @@ HWTEST_F(AubCommandStreamReceiverTests, givenAubCommandStreamReceiverWhenItIsCre
|
|||
EXPECT_EQ(nullptr, aubCsr->hardwareContextController);
|
||||
}
|
||||
|
||||
HWTEST_F(AubCommandStreamReceiverTests, givenAubCsrWhenItIsCreatedWithDefaultSettingsThenItHasBatchedDispatchModeEnabled) {
|
||||
HWTEST_F(AubCommandStreamReceiverTests, givenAubCsrWhenItIsCreatedWithDefaultSettingsThenItHasImmediateDispatchModeEnabled) {
|
||||
DebugManagerStateRestore stateRestore;
|
||||
debugManager.flags.CsrDispatchMode.set(0);
|
||||
std::unique_ptr<MockAubCsr<FamilyType>> aubCsr(new MockAubCsr<FamilyType>("", true, *pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield()));
|
||||
EXPECT_EQ(DispatchMode::batchedDispatch, aubCsr->peekDispatchMode());
|
||||
EXPECT_EQ(DispatchMode::immediateDispatch, aubCsr->peekDispatchMode());
|
||||
}
|
||||
|
||||
HWTEST_F(AubCommandStreamReceiverTests, givenAubCsrWhenItIsCreatedWithDebugSettingsThenItHasProperDispatchModeEnabled) {
|
||||
DebugManagerStateRestore stateRestore;
|
||||
debugManager.flags.CsrDispatchMode.set(static_cast<uint32_t>(DispatchMode::immediateDispatch));
|
||||
debugManager.flags.CsrDispatchMode.set(static_cast<uint32_t>(DispatchMode::batchedDispatch));
|
||||
std::unique_ptr<MockAubCsr<FamilyType>> aubCsr(new MockAubCsr<FamilyType>("", true, *pDevice->executionEnvironment, pDevice->getRootDeviceIndex(), pDevice->getDeviceBitfield()));
|
||||
EXPECT_EQ(DispatchMode::immediateDispatch, aubCsr->peekDispatchMode());
|
||||
EXPECT_EQ(DispatchMode::batchedDispatch, aubCsr->peekDispatchMode());
|
||||
}
|
||||
|
||||
HWTEST_F(AubCommandStreamReceiverTests, givenAubCommandStreamReceiverWhenItIsCreatedThenMemoryManagerIsNotNull) {
|
||||
|
|
Loading…
Reference in New Issue