|
gem5 [DEVELOP-FOR-25.0]
|
#include <GPUCoalescer.hh>
Classes | |
| class | GMTokenPort |
| struct | GPUCoalescerStats |
Public Types | |
| typedef RubyGPUCoalescerParams | Params |
Public Types inherited from gem5::ruby::RubyPort | |
| typedef RubyPortParams | Params |
Public Types inherited from gem5::ClockedObject | |
| using | Params = ClockedObjectParams |
| Parameters of ClockedObject. | |
Public Types inherited from gem5::SimObject | |
| typedef SimObjectParams | Params |
Public Member Functions | |
| GPUCoalescer (const Params &) | |
| ~GPUCoalescer () | |
| Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
| Get a port with a given name and index. | |
| void | wakeup () |
| void | printRequestTable (std::stringstream &ss) |
| void | printProgress (std::ostream &out) const |
| void | resetStats () override |
| Callback to reset stats. | |
| void | collateStats () |
| void | writeCallback (Addr address, DataBlock &data) |
| void | writeCallback (Addr address, MachineType mach, DataBlock &data) |
| void | writeCallback (Addr address, MachineType mach, DataBlock &data, Cycles initialRequestTime, Cycles forwardRequestTime, Cycles firstResponseTime, bool isRegion) |
| void | writeCallback (Addr address, MachineType mach, DataBlock &data, Cycles initialRequestTime, Cycles forwardRequestTime, Cycles firstResponseTime) |
| void | writeCompleteCallback (Addr address, uint64_t instSeqNum, MachineType mach) |
| void | readCallback (Addr address, DataBlock &data) |
| void | readCallback (Addr address, MachineType mach, DataBlock &data, bool externalHit) |
| void | readCallback (Addr address, MachineType mach, DataBlock &data, Cycles initialRequestTime, Cycles forwardRequestTime, Cycles firstResponseTime, bool externalHit) |
| void | readCallback (Addr address, MachineType mach, DataBlock &data, Cycles initialRequestTime, Cycles forwardRequestTime, Cycles firstResponseTime, bool isRegion, bool externalHit) |
| virtual void | atomicCallback (Addr address, MachineType mach, const DataBlock &data) |
| RequestStatus | makeRequest (PacketPtr pkt) override |
| int | outstandingCount () const override |
| bool | isDeadlockEventScheduled () const override |
| void | descheduleDeadlockEvent () override |
| bool | empty () const |
| void | print (std::ostream &out) const |
| void | evictionCallback (Addr address) |
| void | completeIssue () |
| void | insertKernel (int wavefront_id, PacketPtr pkt) |
| RubySystem * | getRubySystem () |
| GMTokenPort & | getGMTokenPort () |
| statistics::Histogram & | getOutstandReqHist () |
| statistics::Histogram & | getLatencyHist () |
| statistics::Histogram & | getTypeLatencyHist (uint32_t t) |
| statistics::Histogram & | getMissLatencyHist () |
| statistics::Histogram & | getMissTypeLatencyHist (uint32_t t) |
| statistics::Histogram & | getMissMachLatencyHist (uint32_t t) const |
| statistics::Histogram & | getMissTypeMachLatencyHist (uint32_t r, uint32_t t) const |
| statistics::Histogram & | getIssueToInitialDelayHist (uint32_t t) const |
| statistics::Histogram & | getInitialToForwardDelayHist (const MachineType t) const |
| statistics::Histogram & | getForwardRequestToFirstResponseHist (const MachineType t) const |
| statistics::Histogram & | getFirstResponseToCompletionDelayHist (const MachineType t) const |
Public Member Functions inherited from gem5::ruby::RubyPort | |
| RubyPort (const Params &p) | |
| virtual | ~RubyPort () |
| void | init () override |
| init() is called after all C++ SimObjects have been created and all ports are connected. | |
| Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
| Get a port with a given name and index. | |
| void | setController (AbstractController *_cntrl) |
| uint32_t | getId () |
| DrainState | drain () override |
| Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are partially executed or are partially in flight. | |
| bool | isCPUSequencer () |
| virtual int | functionalWrite (Packet *func_pkt) |
| Addr | getOffset (Addr addr) const |
| Addr | makeLineAddress (Addr addr) const |
| std::string | printAddress (Addr addr) const |
Public Member Functions inherited from gem5::ClockedObject | |
| ClockedObject (const ClockedObjectParams &p) | |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. | |
Public Member Functions inherited from gem5::SimObject | |
| const Params & | params () const |
| SimObject (const Params &p) | |
| virtual | ~SimObject () |
| virtual void | loadState (CheckpointIn &cp) |
| loadState() is called on each SimObject when restoring from a checkpoint. | |
| virtual void | initState () |
| initState() is called on each SimObject when not restoring from a checkpoint. | |
| virtual void | regProbePoints () |
| Register probe points for this object. | |
| virtual void | regProbeListeners () |
| Register probe listeners for this object. | |
| ProbeManager * | getProbeManager () |
| Get the probe manager for this object. | |
| virtual void | startup () |
| startup() is the final initialization call before simulation. | |
| DrainState | drain () override |
| Provide a default implementation of the drain interface for objects that don't need draining. | |
| virtual void | memWriteback () |
| Write back dirty buffers to memory using functional writes. | |
| virtual void | memInvalidate () |
| Invalidate the contents of memory buffers. | |
| void | serialize (CheckpointOut &cp) const override |
| Serialize an object. | |
| void | unserialize (CheckpointIn &cp) override |
| Unserialize an object. | |
Public Member Functions inherited from gem5::EventManager | |
| EventQueue * | eventQueue () const |
| void | schedule (Event &event, Tick when) |
| void | deschedule (Event &event) |
| void | reschedule (Event &event, Tick when, bool always=false) |
| void | schedule (Event *event, Tick when) |
| void | deschedule (Event *event) |
| void | reschedule (Event *event, Tick when, bool always=false) |
| void | wakeupEventQueue (Tick when=(Tick) -1) |
| This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. | |
| void | setCurTick (Tick newVal) |
| EventManager (EventManager &em) | |
| Event manger manages events in the event queue. | |
| EventManager (EventManager *em) | |
| EventManager (EventQueue *eq) | |
Public Member Functions inherited from gem5::Serializable | |
| Serializable () | |
| virtual | ~Serializable () |
| void | serializeSection (CheckpointOut &cp, const char *name) const |
| Serialize an object into a new section. | |
| void | serializeSection (CheckpointOut &cp, const std::string &name) const |
| void | unserializeSection (CheckpointIn &cp, const char *name) |
| Unserialize an a child object. | |
| void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from gem5::Drainable | |
| DrainState | drainState () const |
| Return the current drain state of an object. | |
| virtual void | notifyFork () |
| Notify a child process of a fork. | |
Public Member Functions inherited from gem5::statistics::Group | |
| Group (Group *parent, const char *name=nullptr) | |
| Construct a new statistics group. | |
| virtual | ~Group () |
| virtual void | regStats () |
| Callback to set stat parameters. | |
| virtual void | preDumpStats () |
| Callback before stats are dumped. | |
| void | addStat (statistics::Info *info) |
| Register a stat with this group. | |
| const std::map< std::string, Group * > & | getStatGroups () const |
| Get all child groups associated with this object. | |
| const std::vector< Info * > & | getStats () const |
| Get all stats associated with this object. | |
| void | addStatGroup (const char *name, Group *block) |
| Add a stat block as a child of this block. | |
| const Info * | resolveStat (std::string name) const |
| Resolve a stat by its name within this group. | |
| void | mergeStatGroup (Group *block) |
| Merge the contents (stats & children) of a block to this block. | |
| Group ()=delete | |
| Group (const Group &)=delete | |
| Group & | operator= (const Group &)=delete |
Public Member Functions inherited from gem5::Named | |
| Named (std::string_view name_) | |
| virtual | ~Named ()=default |
| virtual std::string | name () const |
Public Member Functions inherited from gem5::Clocked | |
| void | updateClockPeriod () |
| Update the tick to the current tick. | |
| 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 caller to determine a future cycle. | |
| Cycles | curCycle () const |
| Determine the current cycle, corresponding to a tick aligned to a clock edge. | |
| Tick | nextCycle () const |
| Based on the clock of the object, determine the start tick of the first cycle that is at least one cycle in the future. | |
| uint64_t | frequency () const |
| Tick | clockPeriod () const |
| double | voltage () const |
| Cycles | ticksToCycles (Tick t) const |
| Tick | cyclesToTicks (Cycles c) const |
Protected Member Functions | |
| bool | tryCacheAccess (Addr addr, RubyRequestType type, Addr pc, RubyAccessMode access_mode, int size, DataBlock *&data_ptr) |
| virtual void | issueRequest (CoalescedRequest *crequest)=0 |
| virtual void | issueMemSyncRequest (PacketPtr pkt) |
| void | kernelCallback (int wavefront_id) |
| void | hitCallback (CoalescedRequest *crequest, MachineType mach, DataBlock &data, bool success, Cycles initialRequestTime, Cycles forwardRequestTime, Cycles firstResponseTime, bool isRegion, bool externalHit, bool mshrHitUnderMiss) |
| void | recordStats (CoalescedRequest *crequest, MachineType mach, Cycles initialRequestTime, Cycles forwardRequestTime, Cycles firstResponseTime, bool isRegion, bool mshrHitUnderMiss) |
| void | completeHitCallback (std::vector< PacketPtr > &mylist) |
| virtual RubyRequestType | getRequestType (PacketPtr pkt) |
| GPUDynInstPtr | getDynInst (PacketPtr pkt) const |
| bool | coalescePacket (PacketPtr pkt) |
Protected Member Functions inherited from gem5::ruby::RubyPort | |
| void | trySendRetries () |
| void | ruby_hit_callback (PacketPtr pkt) |
| void | ruby_unaddressed_callback (PacketPtr pkt) |
| void | ruby_stale_translation_callback (Addr txnId) |
| void | testDrainComplete () |
| void | ruby_eviction_callback (Addr address) |
| bool | recvTimingResp (PacketPtr pkt, PortID request_port_id) |
| Called by the PIO port when receiving a timing response. | |
Protected Member Functions inherited from gem5::Drainable | |
| Drainable () | |
| virtual | ~Drainable () |
| virtual void | drainResume () |
| Resume execution after a successful drain. | |
| void | signalDrainDone () const |
| Signal that an object is drained. | |
Protected Member Functions inherited from gem5::Clocked | |
| Clocked (ClockDomain &clk_domain) | |
| Create a clocked object and set the clock domain based on the parameters. | |
| Clocked (Clocked &)=delete | |
| Clocked & | operator= (Clocked &)=delete |
| virtual | ~Clocked () |
| Virtual destructor due to inheritance. | |
| void | resetClock () const |
| Reset the object's clock using the current global tick value. | |
| virtual void | clockPeriodUpdated () |
| A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. | |
Private Member Functions | |
| GPUCoalescer (const GPUCoalescer &obj) | |
| GPUCoalescer & | operator= (const GPUCoalescer &obj) |
Private Attributes | |
| GMTokenPort | gmTokenPort |
Additional Inherited Members | |
Static Public Member Functions inherited from gem5::SimObject | |
| static void | serializeAll (const std::string &cpt_dir) |
| Create a checkpoint by serializing all SimObjects in the system. | |
| static SimObject * | find (const char *name) |
| Find the SimObject with the given name and return a pointer to it. | |
| static void | setSimObjectResolver (SimObjectResolver *resolver) |
| There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
| static SimObjectResolver * | getSimObjectResolver () |
| There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
Static Public Member Functions inherited from gem5::Serializable | |
| static const std::string & | currentSection () |
| Gets the fully-qualified name of the active section. | |
| static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
| Generate a checkpoint file so that the serialization can be routed to it. | |
Public Attributes inherited from gem5::ClockedObject | |
| PowerState * | powerState |
Definition at line 216 of file GPUCoalescer.hh.
| typedef RubyGPUCoalescerParams gem5::ruby::GPUCoalescer::Params |
Definition at line 239 of file GPUCoalescer.hh.
| gem5::ruby::GPUCoalescer::GPUCoalescer | ( | const Params & | p | ) |
Definition at line 208 of file GPUCoalescer.cc.
References completeIssue(), issueEvent, gem5::MipsISA::p, and gem5::ruby::RubyPort::RubyPort().
Referenced by coalescePacket(), completeIssue(), GPUCoalescer(), hitCallback(), insertKernel(), gem5::ruby::VIPERCoalescer::invTCC(), gem5::ruby::VIPERCoalescer::invTCP(), makeRequest(), gem5::ruby::VIPERCoalescer::makeWriteCompletePkts(), operator=(), gem5::ruby::VIPERCoalescer::VIPERCoalescer(), writeCompleteCallback(), and gem5::ruby::VIPERCoalescer::writeCompleteCallback().
| gem5::ruby::GPUCoalescer::~GPUCoalescer | ( | ) |
Definition at line 290 of file GPUCoalescer.cc.
|
private |
References GPUCoalescer().
|
virtual |
Definition at line 978 of file GPUCoalescer.cc.
References coalescedTable, data, fatal_if, hitCallback(), issueRequest(), and gem5::ruby::RubyPort::makeLineAddress().
|
protected |
Definition at line 797 of file GPUCoalescer.cc.
References gem5::ruby::PendingWriteInst::addPendingReq(), gem5::ArmISA::c, gem5::Packet::cmd, coalescedReqs, coalescedTable, gem5::Clocked::curCycle(), DPRINTF, gem5::Packet::getAddr(), getDynInst(), getRequestType(), GPUCoalescer(), gem5::ruby::CoalescedRequest::insertPacket(), m_max_outstanding_requests, m_outstanding_count, gem5::ruby::RubyPort::m_usingRubyTester, gem5::ruby::RubyPort::makeLineAddress(), pendingWriteInsts, gem5::Packet::req, gem5::safe_cast(), gem5::Packet::senderState, gem5::ruby::CoalescedRequest::setIssueTime(), gem5::ruby::CoalescedRequest::setRubyType(), gem5::ArmISA::ss, and gem5::MemCmd::WriteReq.
Referenced by completeIssue().
| void gem5::ruby::GPUCoalescer::collateStats | ( | ) |
References data.
|
protected |
Definition at line 1007 of file GPUCoalescer.cc.
References gem5::curTick(), gem5::ruby::RubyPort::MemResponsePort::hitCallback(), issueEvent, gem5::ruby::RubyPort::m_ruby_system, gem5::ArmISA::rs, gem5::safe_cast(), gem5::EventManager::schedule(), gem5::ArmISA::ss, gem5::ruby::RubyPort::testDrainComplete(), gem5::ruby::RubyPort::trySendRetries(), uncoalescedTable, and gem5::MemCmd::WriteReq.
Referenced by hitCallback(), and gem5::ruby::VIPERCoalescer::invTCPCallback().
| void gem5::ruby::GPUCoalescer::completeIssue | ( | ) |
Definition at line 891 of file GPUCoalescer.cc.
References coalescedReqs, coalescePacket(), coalescingWindow, DPRINTF, GPUCoalescer(), gem5::ArmISA::i, issueRequest(), kernelCallback(), gem5::ArmISA::len, newKernelEnds, and uncoalescedTable.
Referenced by GPUCoalescer().
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 330 of file GPUCoalescer.hh.
References deadlockCheckEvent, and gem5::EventManager::deschedule().
| bool gem5::ruby::GPUCoalescer::empty | ( | ) | const |
Definition at line 669 of file GPUCoalescer.cc.
References coalescedTable.
Referenced by gem5::ruby::VIPERCoalescer::writeCompleteCallback().
| void gem5::ruby::GPUCoalescer::evictionCallback | ( | Addr | address | ) |
Definition at line 962 of file GPUCoalescer.cc.
References gem5::ruby::RubyPort::ruby_eviction_callback().
|
protected |
Definition at line 784 of file GPUCoalescer.cc.
References gem5::ComputeUnit::DataPort::SenderState::_gpuDynInst, gem5::safe_cast(), gem5::Packet::senderState, and gem5::ArmISA::ss.
Referenced by coalescePacket(), and makeRequest().
|
inline |
Definition at line 378 of file GPUCoalescer.hh.
References m_FirstResponseToCompletionDelayHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 374 of file GPUCoalescer.hh.
References m_ForwardToFirstResponseDelayHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 346 of file GPUCoalescer.hh.
References gmTokenPort.
|
inline |
Definition at line 370 of file GPUCoalescer.hh.
References m_InitialToForwardDelayHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 366 of file GPUCoalescer.hh.
References m_IssueToInitialDelayHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 350 of file GPUCoalescer.hh.
References m_latencyHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 354 of file GPUCoalescer.hh.
References m_missLatencyHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 359 of file GPUCoalescer.hh.
References m_missMachLatencyHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 356 of file GPUCoalescer.hh.
References m_missTypeLatencyHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 363 of file GPUCoalescer.hh.
References m_missTypeMachLatencyHist, gem5::MipsISA::r, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
inline |
Definition at line 348 of file GPUCoalescer.hh.
References m_outstandReqHist.
Referenced by gem5::ruby::Profiler::collateStats().
|
overridevirtual |
Get a port with a given name and index.
This is used at binding time and returns a reference to a protocol-agnostic port.
gem5 has a request and response port interface. All memory objects are connected together via ports. These ports provide a rigid interface between these memory objects. These ports implement three different memory system modes: timing, atomic, and functional. The most important mode is the timing mode and here timing mode is used for conducting cycle-level timing experiments. The other modes are only used in special circumstances and should not be used to conduct cycle-level timing experiments. The other modes are only used in special circumstances. These ports allow SimObjects to communicate with each other.
| if_name | Port name |
| idx | Index in the case of a VectorPort |
Reimplemented from gem5::SimObject.
Definition at line 295 of file GPUCoalescer.cc.
References gem5::ruby::RubyPort::getPort(), and gmTokenPort.
|
protectedvirtual |
Definition at line 675 of file GPUCoalescer.cc.
References gem5::Packet::isFlush(), gem5::Packet::isRead(), gem5::Packet::isWrite(), panic, and gem5::Packet::req.
Referenced by coalescePacket(), and makeRequest().
|
inline |
Definition at line 344 of file GPUCoalescer.hh.
References gem5::ruby::RubyPort::m_ruby_system.
|
inline |
Definition at line 351 of file GPUCoalescer.hh.
References m_typeLatencyHist, and gem5::ArmISA::t.
Referenced by gem5::ruby::Profiler::collateStats().
|
protected |
Definition at line 570 of file GPUCoalescer.cc.
References completeHitCallback(), data, DPRINTF, gem5::Packet::getAddr(), gem5::ruby::CoalescedRequest::getFirstPkt(), gem5::ruby::RubyPort::getOffset(), gem5::ruby::CoalescedRequest::getPackets(), gem5::Packet::getPtr(), gem5::ruby::CoalescedRequest::getRubyType(), gem5::Packet::getSize(), GPUCoalescer(), gem5::Packet::isAtomicOp(), m_outstanding_count, gem5::ruby::RubyPort::m_ruby_system, gem5::ruby::RubyPort::makeLineAddress(), gem5::ArmISA::offset, panic, gem5::ruby::RubyPort::printAddress(), recordStats(), and gem5::Packet::setData().
Referenced by atomicCallback(), readCallback(), and writeCallback().
| void gem5::ruby::GPUCoalescer::insertKernel | ( | int | wavefront_id, |
| PacketPtr | pkt ) |
Definition at line 388 of file GPUCoalescer.cc.
References DPRINTF, GPUCoalescer(), and kernelEndList.
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 324 of file GPUCoalescer.hh.
References deadlockCheckEvent.
|
inlineprotectedvirtual |
Definition at line 389 of file GPUCoalescer.hh.
Referenced by makeRequest().
|
protectedpure virtual |
Implemented in gem5::ruby::VIPERCoalescer.
Referenced by atomicCallback(), completeIssue(), readCallback(), and writeCallback().
|
protected |
Definition at line 968 of file GPUCoalescer.cc.
References kernelEndList, and gem5::ruby::RubyPort::ruby_hit_callback().
Referenced by completeIssue().
|
overridevirtual |
Implements gem5::ruby::RubyPort.
Reimplemented in gem5::ruby::VIPERCoalescer.
Definition at line 704 of file GPUCoalescer.cc.
References gem5::Packet::cmd, gem5::curTick(), DPRINTF, gem5::Packet::getAddr(), getDynInst(), getRequestType(), GPUCoalescer(), gem5::ArmISA::i, gem5::Packet::isFlush(), gem5::Packet::isRead(), issueEvent, issueMemSyncRequest(), gem5::Packet::isWrite(), gem5::ruby::RubyPort::m_ruby_system, gem5::ruby::RubyPort::m_usingRubyTester, gem5::MemCmd::MemSyncReq, gem5::Packet::req, gem5::EventManager::schedule(), and uncoalescedTable.
Referenced by gem5::ruby::VIPERCoalescer::makeRequest().
|
private |
References GPUCoalescer().
|
inlineoverridevirtual |
Implements gem5::ruby::RubyPort.
Definition at line 321 of file GPUCoalescer.hh.
References m_outstanding_count.
| void gem5::ruby::GPUCoalescer::print | ( | std::ostream & | out | ) | const |
Definition at line 776 of file GPUCoalescer.cc.
References m_outstanding_count, and gem5::ruby::RubyPort::m_version.
Referenced by gem5::ruby::operator<<().
| void gem5::ruby::GPUCoalescer::printProgress | ( | std::ostream & | out | ) | const |
Definition at line 382 of file GPUCoalescer.cc.
| void gem5::ruby::GPUCoalescer::printRequestTable | ( | std::stringstream & | ss | ) |
Definition at line 332 of file GPUCoalescer.cc.
References gem5::Clocked::clockPeriod(), coalescedTable, gem5::Clocked::curCycle(), gem5::ruby::RubyPort::printAddress(), gem5::ArmISA::ss, and uncoalescedTable.
Referenced by wakeup().
Definition at line 488 of file GPUCoalescer.cc.
References data, and readCallback().
Referenced by readCallback(), readCallback(), and readCallback().
| void gem5::ruby::GPUCoalescer::readCallback | ( | Addr | address, |
| MachineType | mach, | ||
| DataBlock & | data, | ||
| bool | externalHit = false ) |
Definition at line 494 of file GPUCoalescer.cc.
References data, and readCallback().
| void gem5::ruby::GPUCoalescer::readCallback | ( | Addr | address, |
| MachineType | mach, | ||
| DataBlock & | data, | ||
| Cycles | initialRequestTime, | ||
| Cycles | forwardRequestTime, | ||
| Cycles | firstResponseTime, | ||
| bool | externalHit = false ) |
Definition at line 503 of file GPUCoalescer.cc.
References data, and readCallback().
| void gem5::ruby::GPUCoalescer::readCallback | ( | Addr | address, |
| MachineType | mach, | ||
| DataBlock & | data, | ||
| Cycles | initialRequestTime, | ||
| Cycles | forwardRequestTime, | ||
| Cycles | firstResponseTime, | ||
| bool | isRegion, | ||
| bool | externalHit = false ) |
Definition at line 518 of file GPUCoalescer.cc.
References coalescedTable, data, fatal_if, hitCallback(), gem5::Packet::isGLCSet(), gem5::Packet::isSLCSet(), issueRequest(), and gem5::ruby::RubyPort::makeLineAddress().
|
protected |
Definition at line 1053 of file GPUCoalescer.cc.
References gem5::ruby::CoalescedRequest::getFirstPkt(), gem5::ruby::CoalescedRequest::getRubyType(), gem5::Packet::isGLCSet(), gem5::Packet::isSLCSet(), m_dataCache_ptr, and stats.
Referenced by hitCallback().
|
overridevirtual |
Callback to reset stats.
Reimplemented from gem5::statistics::Group.
Definition at line 359 of file GPUCoalescer.cc.
References gem5::ArmISA::i, m_FirstResponseToCompletionDelayHist, m_ForwardToFirstResponseDelayHist, m_InitialToForwardDelayHist, m_IssueToInitialDelayHist, m_latencyHist, m_missLatencyHist, m_missMachLatencyHist, m_missTypeLatencyHist, m_missTypeMachLatencyHist, and m_typeLatencyHist.
|
protected |
References gem5::X86ISA::addr, and gem5::MipsISA::pc.
| void gem5::ruby::GPUCoalescer::wakeup | ( | ) |
Definition at line 306 of file GPUCoalescer.cc.
References gem5::Clocked::clockPeriod(), coalescedTable, gem5::Clocked::curCycle(), gem5::curTick(), gem5::Clocked::cyclesToTicks(), deadlockCheckEvent, m_deadlock_threshold, m_outstanding_count, gem5::ruby::RubyPort::m_version, panic, printRequestTable(), gem5::EventManager::schedule(), gem5::ArmISA::ss, uncoalescedTable, and warn.
Definition at line 402 of file GPUCoalescer.cc.
References data, and writeCallback().
Referenced by writeCallback(), writeCallback(), and writeCallback().
Definition at line 408 of file GPUCoalescer.cc.
References data, and writeCallback().
| void gem5::ruby::GPUCoalescer::writeCallback | ( | Addr | address, |
| MachineType | mach, | ||
| DataBlock & | data, | ||
| Cycles | initialRequestTime, | ||
| Cycles | forwardRequestTime, | ||
| Cycles | firstResponseTime ) |
Definition at line 416 of file GPUCoalescer.cc.
References data, and writeCallback().
| void gem5::ruby::GPUCoalescer::writeCallback | ( | Addr | address, |
| MachineType | mach, | ||
| DataBlock & | data, | ||
| Cycles | initialRequestTime, | ||
| Cycles | forwardRequestTime, | ||
| Cycles | firstResponseTime, | ||
| bool | isRegion ) |
Definition at line 429 of file GPUCoalescer.cc.
References coalescedTable, data, hitCallback(), issueRequest(), and gem5::ruby::RubyPort::makeLineAddress().
| void gem5::ruby::GPUCoalescer::writeCompleteCallback | ( | Addr | address, |
| uint64_t | instSeqNum, | ||
| MachineType | mach ) |
Definition at line 458 of file GPUCoalescer.cc.
References gem5::ruby::PendingWriteInst::ackWriteCompletion(), DPRINTF, gem5::ruby::PendingWriteInst::getNumPendingStores(), GPUCoalescer(), gem5::ruby::RubyPort::m_usingRubyTester, pendingWriteInsts, gem5::ruby::PendingWriteInst::receiveWriteCompleteAck(), and uncoalescedTable.
|
protected |
Definition at line 473 of file GPUCoalescer.hh.
|
protected |
Definition at line 452 of file GPUCoalescer.hh.
Referenced by coalescePacket(), and completeIssue().
|
protected |
Definition at line 448 of file GPUCoalescer.hh.
Referenced by atomicCallback(), coalescePacket(), empty(), printRequestTable(), readCallback(), wakeup(), and writeCallback().
|
protected |
Definition at line 436 of file GPUCoalescer.hh.
Referenced by completeIssue().
|
protected |
Definition at line 472 of file GPUCoalescer.hh.
Referenced by descheduleDeadlockEvent(), isDeadlockEventScheduled(), gem5::ruby::VIPERCoalescer::issueRequest(), and wakeup().
|
private |
Definition at line 553 of file GPUCoalescer.hh.
Referenced by getGMTokenPort(), and getPort().
|
protected |
Definition at line 425 of file GPUCoalescer.hh.
Referenced by completeHitCallback(), GPUCoalescer(), and makeRequest().
|
protected |
Definition at line 462 of file GPUCoalescer.hh.
Referenced by insertKernel(), and kernelCallback().
|
protected |
Definition at line 431 of file GPUCoalescer.hh.
Referenced by gem5::ruby::VIPERCoalescer::invTCP(), and recordStats().
|
protected |
Definition at line 461 of file GPUCoalescer.hh.
|
protected |
Definition at line 429 of file GPUCoalescer.hh.
Referenced by gem5::ruby::VIPERCoalescer::issueRequest(), and wakeup().
|
protected |
Definition at line 532 of file GPUCoalescer.hh.
Referenced by getFirstResponseToCompletionDelayHist(), and resetStats().
|
protected |
Definition at line 531 of file GPUCoalescer.hh.
Referenced by getForwardRequestToFirstResponseHist(), and resetStats().
|
protected |
Definition at line 530 of file GPUCoalescer.hh.
Referenced by getInitialToForwardDelayHist(), and resetStats().
|
protected |
Definition at line 432 of file GPUCoalescer.hh.
|
protected |
Histograms for recording the breakdown of miss latency.
Definition at line 529 of file GPUCoalescer.hh.
Referenced by getIssueToInitialDelayHist(), and resetStats().
|
protected |
Histogram for holding latency profile of all requests.
Definition at line 514 of file GPUCoalescer.hh.
Referenced by getLatencyHist(), and resetStats().
|
protected |
Definition at line 468 of file GPUCoalescer.hh.
|
protected |
Definition at line 467 of file GPUCoalescer.hh.
|
protected |
Definition at line 428 of file GPUCoalescer.hh.
Referenced by coalescePacket().
|
protected |
Histogram for holding latency profile of all requests that miss in the controller connected to this sequencer.
Definition at line 519 of file GPUCoalescer.hh.
Referenced by getMissLatencyHist(), and resetStats().
|
protected |
Histograms for profiling the latencies for requests that required external messages.
Definition at line 524 of file GPUCoalescer.hh.
Referenced by getMissMachLatencyHist(), and resetStats().
|
protected |
Definition at line 520 of file GPUCoalescer.hh.
Referenced by getMissTypeLatencyHist(), and resetStats().
|
protected |
Definition at line 526 of file GPUCoalescer.hh.
Referenced by getMissTypeMachLatencyHist(), and resetStats().
|
protected |
Definition at line 460 of file GPUCoalescer.hh.
Referenced by coalescePacket(), hitCallback(), outstandingCount(), print(), and wakeup().
|
protected |
Histogram for number of outstanding requests per cycle.
Definition at line 511 of file GPUCoalescer.hh.
Referenced by getOutstandReqHist().
|
protected |
Definition at line 470 of file GPUCoalescer.hh.
|
protected |
Definition at line 465 of file GPUCoalescer.hh.
|
protected |
Definition at line 466 of file GPUCoalescer.hh.
|
protected |
Definition at line 515 of file GPUCoalescer.hh.
Referenced by getTypeLatencyHist(), and resetStats().
|
protected |
Definition at line 463 of file GPUCoalescer.hh.
Referenced by completeIssue().
|
protected |
Definition at line 457 of file GPUCoalescer.hh.
Referenced by coalescePacket(), and writeCompleteCallback().
|
protected |
Referenced by recordStats().
|
protected |
Definition at line 441 of file GPUCoalescer.hh.
Referenced by completeHitCallback(), completeIssue(), makeRequest(), printRequestTable(), wakeup(), and writeCompleteCallback().