Skip to content

Commit 4733ce3

Browse files
Move pollForCompletionMask for TBX to new method
Change-Id: I1ce760ea185064ec9122eb5bf11d9b99c9c700e2 Signed-off-by: Dunajski, Bartosz <[email protected]>
1 parent 048098c commit 4733ce3

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

runtime/command_stream/tbx_command_stream_receiver_hw.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ class TbxCommandStreamReceiverHw : public CommandStreamReceiverSimulatedHw<GfxFa
3333
using BaseClass::engineIndex;
3434
using BaseClass::osContext;
3535

36+
uint32_t getMaskAndValueForPollForCompletion() const;
37+
bool getpollNotEqualValueForPollForCompletion() const;
38+
3639
public:
3740
using CommandStreamReceiverSimulatedCommonHw<GfxFamily>::initAdditionalMMIO;
3841
using CommandStreamReceiverSimulatedCommonHw<GfxFamily>::aubManager;

runtime/command_stream/tbx_command_stream_receiver_hw.inl

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,13 @@ void TbxCommandStreamReceiverHw<GfxFamily>::pollForCompletion() {
350350
typedef typename AubMemDump::CmdServicesMemTraceRegisterPoll CmdServicesMemTraceRegisterPoll;
351351

352352
auto mmioBase = this->getCsTraits(osContext->getEngineType()).mmioBase;
353-
bool pollNotEqual = false;
353+
bool pollNotEqual = getpollNotEqualValueForPollForCompletion();
354+
uint32_t mask = getMaskAndValueForPollForCompletion();
355+
uint32_t value = mask;
354356
tbxStream.registerPoll(
355357
AubMemDump::computeRegisterOffset(mmioBase, 0x2234), //EXECLIST_STATUS
356-
0x100,
357-
0x100,
358+
mask,
359+
value,
358360
pollNotEqual,
359361
CmdServicesMemTraceRegisterPoll::TimeoutActionValues::Abort);
360362
}
@@ -431,4 +433,14 @@ void TbxCommandStreamReceiverHw<GfxFamily>::waitBeforeMakingNonResidentWhenRequi
431433
this->makeCoherent(*allocation);
432434
}
433435
}
436+
437+
template <typename GfxFamily>
438+
uint32_t TbxCommandStreamReceiverHw<GfxFamily>::getMaskAndValueForPollForCompletion() const {
439+
return 0x100;
440+
}
441+
442+
template <typename GfxFamily>
443+
bool TbxCommandStreamReceiverHw<GfxFamily>::getpollNotEqualValueForPollForCompletion() const {
444+
return false;
445+
}
434446
} // namespace OCLRT

0 commit comments

Comments
 (0)