fix: make sip state programing once for all level zero command queues

Related-To: NEO-7828

Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
Zbigniew Zdanowicz
2023-07-06 14:12:49 +00:00
committed by Compute-Runtime-Automation
parent 81822e3716
commit 3f7269d401
8 changed files with 96 additions and 14 deletions

View File

@@ -4140,6 +4140,12 @@ HWTEST2_F(CommandStreamReceiverHwTest,
auto &commandStreamReceiver = pDevice->getUltCommandStreamReceiver<FamilyType>();
commandStreamReceiver.storeMakeResidentAllocations = true;
EXPECT_FALSE(commandStreamReceiver.getSipSentFlag());
commandStreamReceiver.setSipSentFlag(true);
EXPECT_TRUE(commandStreamReceiver.getSipSentFlag());
commandStreamReceiver.setSipSentFlag(false);
EXPECT_FALSE(commandStreamReceiver.getSipSentFlag());
commandStreamReceiver.flushImmediateTask(commandStream, commandStream.getUsed(), immediateFlushTaskFlags, *pDevice);
auto sipAllocation = NEO::SipKernel::getSipKernel(*pDevice).getSipAllocation();
@@ -4151,6 +4157,8 @@ HWTEST2_F(CommandStreamReceiverHwTest,
auto stateSipCmd = hwParserCsr.getCommand<STATE_SIP>();
ASSERT_NE(nullptr, stateSipCmd);
EXPECT_TRUE(commandStreamReceiver.getSipSentFlag());
size_t usedSize = commandStreamReceiver.commandStream.getUsed();
commandStreamReceiver.flushImmediateTask(commandStream,
commandStream.getUsed(),
@@ -4162,5 +4170,7 @@ HWTEST2_F(CommandStreamReceiverHwTest,
stateSipCmd = hwParserCsr.getCommand<STATE_SIP>();
EXPECT_EQ(nullptr, stateSipCmd);
EXPECT_TRUE(commandStreamReceiver.getSipSentFlag());
EXPECT_TRUE(commandStreamReceiver.isMadeResident(sipAllocation));
}