Go to the documentation of this file.
37 #include "debug/GPUCoalescer.hh"
38 #include "debug/MemoryAccess.hh"
39 #include "debug/ProtocolTrace.hh"
49 #include "params/VIPERCoalescer.hh"
59 m_cache_inv_pkt(nullptr),
92 return RequestStatus_Aliased;
97 if (pkt->
req->isInvL1()) {
107 return RequestStatus_Issued;
116 if (pkt != NULL && pkt->
req->hasContextId()) {
117 proc_id = pkt->
req->contextId();
122 if (pkt->
req->hasPC()) {
123 pc = pkt->
req->getPC();
136 uint32_t tableSize = crequest->
getPackets().size();
137 for (
int i = 0;
i < tableSize;
i++) {
139 uint32_t tmpOffset = (tmpPkt->
getAddr()) - line_addr;
140 uint32_t tmpSize = tmpPkt->
getSize();
144 atomicOps.push_back(tmpAtomicOp);
145 }
else if (tmpPkt->
isWrite()) {
149 for (
int j = 0;
j < tmpSize;
j++) {
150 accessMask[tmpOffset +
j] =
true;
153 std::shared_ptr<RubyRequest> msg;
157 RubyAccessMode_Supervisor, pkt,
158 PrefetchBit_No, proc_id, 100,
159 blockSize, accessMask,
160 dataBlock, atomicOps, crequest->
getSeqNum());
164 RubyAccessMode_Supervisor, pkt,
165 PrefetchBit_No, proc_id, 100,
166 blockSize, accessMask,
174 DPRINTFR(ProtocolTrace,
"%15s %3s %10s%20s %6s>%-6s %s %s\n",
177 RubyRequestType_to_string(crequest->
getRubyType()));
180 "there should not be any I-Fetch requests in the GPU Coalescer");
210 for (
auto pkt : req_pkts) {
217 writeCompletePkt->
setAddr(pkt->getAddr());
229 auto key = instSeqNum;
239 RubyPort::SenderState *ss =
240 safe_cast<RubyPort::SenderState *>
241 (writeCompletePkt->senderState);
242 MemResponsePort *port = ss->port;
243 assert(port != NULL);
245 writeCompletePkt->senderState = ss->predecessor;
247 port->hitCallback(writeCompletePkt);
284 "There are %d Invalidations outstanding before Cache Walk\n",
287 for (
int i = 0;
i < size;
i++) {
290 RubyRequestType request_type = RubyRequestType_REPLACEMENT;
291 std::shared_ptr<RubyRequest> msg = std::make_shared<RubyRequest>(
293 request_type, RubyAccessMode_Supervisor,
303 "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 Wed May 4 2022 12:14:02 for gem5 by doxygen 1.8.17