Go to the documentation of this file.
39 #include "debug/GPUCoalescer.hh"
40 #include "debug/MemoryAccess.hh"
41 #include "debug/ProtocolTrace.hh"
51 #include "params/VIPERCoalescer.hh"
61 m_cache_inv_pkt(nullptr),
94 return RequestStatus_Aliased;
99 if (pkt->
req->isInvL1()) {
109 return RequestStatus_Issued;
118 if (pkt != NULL && pkt->
req->hasContextId()) {
119 proc_id = pkt->
req->contextId();
124 if (pkt->
req->hasPC()) {
125 pc = pkt->
req->getPC();
138 uint32_t tableSize = crequest->
getPackets().size();
139 for (
int i = 0;
i < tableSize;
i++) {
141 uint32_t tmpOffset = (tmpPkt->
getAddr()) - line_addr;
142 uint32_t tmpSize = tmpPkt->
getSize();
146 atomicOps.push_back(tmpAtomicOp);
147 }
else if (tmpPkt->
isWrite()) {
151 for (
int j = 0;
j < tmpSize;
j++) {
152 accessMask[tmpOffset +
j] =
true;
155 std::shared_ptr<RubyRequest> msg;
159 RubyAccessMode_Supervisor, pkt,
160 PrefetchBit_No, proc_id, 100,
161 blockSize, accessMask,
162 dataBlock, atomicOps, crequest->
getSeqNum());
166 RubyAccessMode_Supervisor, pkt,
167 PrefetchBit_No, proc_id, 100,
168 blockSize, accessMask,
176 DPRINTFR(ProtocolTrace,
"%15s %3s %10s%20s %6s>%-6s %s %s\n",
179 RubyRequestType_to_string(crequest->
getRubyType()));
182 "there should not be any I-Fetch requests in the GPU Coalescer");
212 for (
auto pkt : req_pkts) {
219 writeCompletePkt->
setAddr(pkt->getAddr());
231 auto key = instSeqNum;
241 RubyPort::SenderState *ss =
242 safe_cast<RubyPort::SenderState *>
243 (writeCompletePkt->senderState);
244 MemResponsePort *port = ss->port;
245 assert(port != NULL);
247 writeCompletePkt->senderState = ss->predecessor;
249 port->hitCallback(writeCompletePkt);
286 "There are %d Invalidations outstanding before Cache Walk\n",
289 for (
int i = 0;
i < size;
i++) {
292 RubyRequestType request_type = RubyRequestType_REPLACEMENT;
293 std::shared_ptr<RubyRequest> msg = std::make_shared<RubyRequest>(
295 request_type, RubyAccessMode_Supervisor,
305 "There are %d Invalidatons outstanding after Cache Walk\n",
Tick curTick()
The universal simulation clock.
void setData(const uint8_t *data, int offset, int len)
std::string printAddress(Addr addr)
Addr getAddressAtIdx(int idx) const
RequestPtr req
A pointer to the original request.
void enqueue(MsgPtr message, Tick curTime, Tick delta)
static uint32_t getBlockSizeBytes()
PacketPtr m_cache_inv_pkt
void schedule(Event &event, Tick when)
Addr makeLineAddress(Addr addr)
MessageBuffer * m_mandatory_q_ptr
PacketPtr getFirstPkt() const
void issueRequest(CoalescedRequest *crequest) override
void writeCompleteCallback(Addr address, uint64_t instSeqNum)
std::unordered_map< uint64_t, std::vector< PacketPtr > > m_writeCompletePktMap
AtomicOpFunctor * getAtomicOp() const
Accessor function to atomic op.
void makeWriteCompletePkts(CoalescedRequest *crequest)
Tick cyclesToTicks(Cycles c) const
RubyGPUCoalescerParams Params
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
void setAddr(Addr _addr)
Update the address of this packet mid-transaction.
ProbePointArg< PacketInfo > Packet
Packet probe point.
uint64_t Tick
Tick count type.
std::vector< PacketPtr > & getPackets()
Cycles m_deadlock_threshold
void completeHitCallback(std::vector< PacketPtr > &mylist)
MemCmd cmd
The command field of the packet.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
SenderState * senderState
This packet's sender state.
Tick clockEdge(Cycles cycles=Cycles(0)) const
Determine the tick when a cycle begins, by default the current one, but the argument also enables the...
EventFunctionWrapper deadlockCheckEvent
virtual Cycles mandatoryQueueLatency(const RubyRequestType ¶m_type)
CacheMemory * m_dataCache_ptr
uint64_t getSeqNum() const
RequestStatus makeRequest(PacketPtr pkt) override
AbstractController * m_controller
RequestStatus makeRequest(PacketPtr pkt) override
void invTCPCallback(Addr address)
VIPERCoalescer(const Params &)
RubyRequestType getRubyType() const
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
void invTCP()
Invalidate TCP.
bool scheduled() const
Determine if the current event is scheduled.
T * getPtr()
get a pointer to the data ptr.
Generated on Tue Sep 21 2021 12:25:43 for gem5 by doxygen 1.8.17