feature: control post sync completion check

Related-To: NEO-14844

Signed-off-by: Tomasz Biernacik <tomasz.biernacik@intel.com>
This commit is contained in:
Tomasz Biernacik
2025-07-10 10:59:42 +00:00
committed by Compute-Runtime-Automation
parent 087d1ecea4
commit 2c5cbec033
24 changed files with 447 additions and 32 deletions

View File

@@ -6498,3 +6498,49 @@ HWTEST_F(CommandStreamReceiverHwTest, givenImmediateFlushTaskCmdListDispatchWhen
EXPECT_TRUE(commandStreamReceiver.latestFlushedBatchBuffer.disableFlatRingBuffer);
}
HWTEST_F(CommandStreamReceiverHwTest, GivenWaitOnWalkerPostSyncWhenImmediateFlushTaskCalledThenExpectIsWalkerWithProfilingEnqueuedFlagTrue) {
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
{
immediateFlushTaskFlags.isWalkerWithProfilingEnqueued = false;
commandStreamReceiver.flushImmediateTask(commandStream,
commandStream.getUsed(),
immediateFlushTaskFlags,
*pDevice);
EXPECT_FALSE(commandStreamReceiver.isWalkerWithProfilingEnqueued);
}
{
immediateFlushTaskFlags.isWalkerWithProfilingEnqueued = true;
commandStreamReceiver.flushImmediateTask(commandStream,
commandStream.getUsed(),
immediateFlushTaskFlags,
*pDevice);
EXPECT_TRUE(commandStreamReceiver.isWalkerWithProfilingEnqueued);
}
{
immediateFlushTaskFlags.isWalkerWithProfilingEnqueued = false;
commandStreamReceiver.isWalkerWithProfilingEnqueued = true;
commandStreamReceiver.flushImmediateTask(commandStream,
commandStream.getUsed(),
immediateFlushTaskFlags,
*pDevice);
EXPECT_TRUE(commandStreamReceiver.isWalkerWithProfilingEnqueued);
}
{
immediateFlushTaskFlags.isWalkerWithProfilingEnqueued = true;
commandStreamReceiver.isWalkerWithProfilingEnqueued = true;
commandStreamReceiver.flushImmediateTask(commandStream,
commandStream.getUsed(),
immediateFlushTaskFlags,
*pDevice);
EXPECT_TRUE(commandStreamReceiver.isWalkerWithProfilingEnqueued);
}
}

View File

@@ -1239,3 +1239,7 @@ HWTEST2_F(ProductHelperTest, givenProductHelperWhenPidFdOrSocketForIpcIsNotSuppo
HWTEST2_F(ProductHelperTest, givenProductHelperWhenPidFdOrSocketForIpcIsNotSupportedThenFalseReturned, IsAtMostXeCore) {
EXPECT_FALSE(productHelper->isPidFdOrSocketForIpcSupported());
}
HWTEST_F(ProductHelperTest, givenProductHelperWhenAskingShouldRegisterEnqueuedWalkerWithProfilingThenFalseReturned) {
EXPECT_FALSE(productHelper->shouldRegisterEnqueuedWalkerWithProfiling());
}