Skip to content

Commit 5c66211

Browse files
Extract mask and value for pollForCompletion in AubCsr from pollForCompletion
Change-Id: Ice43f5d57ff7281735d002d389255abe4135feec Signed-off-by: Maciej Dziuban <[email protected]>
1 parent 9d8f280 commit 5c66211

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

runtime/command_stream/aub_command_stream_receiver_hw.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ class AUBCommandStreamReceiverHw : public CommandStreamReceiverSimulatedHw<GfxFa
110110
size_t getPreferredTagPoolSize() const override { return 1; }
111111

112112
protected:
113+
constexpr static uint32_t getMaskAndValueForPollForCompletion();
114+
113115
bool dumpAubNonWritable = false;
114116
ExternalAllocationsContainer externalAllocations;
115117
};

runtime/command_stream/aub_command_stream_receiver_hw.inl

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -569,16 +569,21 @@ void AUBCommandStreamReceiverHw<GfxFamily>::pollForCompletion(EngineInstanceT en
569569
return;
570570
}
571571

572-
typedef typename AubMemDump::CmdServicesMemTraceRegisterPoll CmdServicesMemTraceRegisterPoll;
573-
574-
auto mmioBase = this->getCsTraits(engineInstance).mmioBase;
575-
bool pollNotEqual = false;
572+
const auto mmioBase = this->getCsTraits(engineInstance).mmioBase;
573+
const bool pollNotEqual = false;
574+
const uint32_t mask = getMaskAndValueForPollForCompletion();
575+
const uint32_t value = mask;
576576
stream->registerPoll(
577577
AubMemDump::computeRegisterOffset(mmioBase, 0x2234), //EXECLIST_STATUS
578-
0x100,
579-
0x100,
578+
mask,
579+
value,
580580
pollNotEqual,
581-
CmdServicesMemTraceRegisterPoll::TimeoutActionValues::Abort);
581+
AubMemDump::CmdServicesMemTraceRegisterPoll::TimeoutActionValues::Abort);
582+
}
583+
584+
template <typename GfxFamily>
585+
constexpr uint32_t AUBCommandStreamReceiverHw<GfxFamily>::getMaskAndValueForPollForCompletion() {
586+
return 0x100;
582587
}
583588

584589
template <typename GfxFamily>

0 commit comments

Comments
 (0)