gem5
v20.1.0.0
|
#include <smmu_v3_deviceifc.hh>
Public Member Functions | |
Tick | recvAtomic (PacketPtr pkt) |
bool | recvTimingReq (PacketPtr pkt) |
void | schedTimingResp (PacketPtr pkt) |
Tick | atsRecvAtomic (PacketPtr pkt) |
bool | atsRecvTimingReq (PacketPtr pkt) |
bool | atsRecvTimingResp (PacketPtr pkt) |
void | schedAtsTimingResp (PacketPtr pkt) |
void | scheduleDeviceRetry () |
void | sendDeviceRetry () |
void | atsSendDeviceRetry () |
Port & | getPort (const std::string &name, PortID id) override |
Get a port with a given name and index. More... | |
SMMUv3DeviceInterface (const SMMUv3DeviceInterfaceParams *p) | |
~SMMUv3DeviceInterface () | |
const SMMUv3DeviceInterfaceParams * | params () const |
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. More... | |
void | setSMMU (SMMUv3 *_smmu) |
void | sendRange () |
Public Member Functions inherited from ClockedObject | |
ClockedObject (const ClockedObjectParams *p) | |
const Params * | params () const |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
Public Member Functions inherited from SimObject | |
const Params * | params () const |
SimObject (const Params *_params) | |
virtual | ~SimObject () |
virtual const std::string | name () const |
virtual void | init () |
init() is called after all C++ SimObjects have been created and all ports are connected. More... | |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. More... | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. More... | |
virtual void | regProbePoints () |
Register probe points for this object. More... | |
virtual void | regProbeListeners () |
Register probe listeners for this object. More... | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. More... | |
virtual void | startup () |
startup() is the final initialization call before simulation. More... | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. More... | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. More... | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. More... | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
Public Member Functions inherited from 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. More... | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. More... | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
Public Member Functions inherited from Serializable | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. More... | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. More... | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
Public Member Functions inherited from Stats::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. More... | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. More... | |
virtual void | resetStats () |
Callback to reset stats. More... | |
virtual void | preDumpStats () |
Callback before stats are dumped. More... | |
void | addStat (Stats::Info *info) |
Register a stat with this group. More... | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. More... | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. More... | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. More... | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
Public Member Functions inherited from Clocked | |
void | updateClockPeriod () |
Update the tick to the current tick. More... | |
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. More... | |
Cycles | curCycle () const |
Determine the current cycle, corresponding to a tick aligned to a clock edge. More... | |
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. More... | |
uint64_t | frequency () const |
Tick | clockPeriod () const |
double | voltage () const |
Cycles | ticksToCycles (Tick t) const |
Tick | cyclesToTicks (Cycles c) const |
Friends | |
class | SMMUTranslationProcess |
Additional Inherited Members | |
Public Types inherited from ClockedObject | |
typedef ClockedObjectParams | Params |
Parameters of ClockedObject. More... | |
Public Types inherited from SimObject | |
typedef SimObjectParams | Params |
Static Public Member Functions inherited from SimObject | |
static void | serializeAll (CheckpointOut &cp) |
Serialize all SimObjects in the system. More... | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. More... | |
Static Public Member Functions inherited from Serializable | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
Serializes all the SimObjects. More... | |
static void | unserializeGlobals (CheckpointIn &cp) |
Protected Member Functions inherited from Drainable | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. More... | |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
Protected Member Functions inherited from Clocked | |
Clocked (ClockDomain &clk_domain) | |
Create a clocked object and set the clock domain based on the parameters. More... | |
Clocked (Clocked &)=delete | |
Clocked & | operator= (Clocked &)=delete |
virtual | ~Clocked () |
Virtual destructor due to inheritance. More... | |
void | resetClock () const |
Reset the object's clock using the current global tick value. More... | |
virtual void | clockPeriodUpdated () |
A hook subclasses can implement so they can do any extra work that's needed when the clock rate is changed. More... | |
Protected Attributes inherited from SimObject | |
const SimObjectParams * | _params |
Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Definition at line 55 of file smmu_v3_deviceifc.hh.
SMMUv3DeviceInterface::SMMUv3DeviceInterface | ( | const SMMUv3DeviceInterfaceParams * | p | ) |
Definition at line 45 of file smmu_v3_deviceifc.cc.
|
inline |
Definition at line 123 of file smmu_v3_deviceifc.hh.
Definition at line 171 of file smmu_v3_deviceifc.cc.
References ArmISA::a, ACTION_SEND_RESP_ATS, SMMUTranslationProcess::beginTransaction(), csprintf(), DPRINTF, SMMUTranslRequest::fromPacket(), Packet::getAddr(), Packet::getSize(), SimObject::name(), SMMUv3::runProcessAtomic(), and smmu.
Referenced by SMMUATSDevicePort::recvAtomic().
bool SMMUv3DeviceInterface::atsRecvTimingReq | ( | PacketPtr | pkt | ) |
Definition at line 189 of file smmu_v3_deviceifc.cc.
References SMMUTranslationProcess::beginTransaction(), csprintf(), deviceNeedsRetry, DPRINTF, SMMUTranslRequest::fromPacket(), Packet::getAddr(), Packet::getSize(), Packet::headerDelay, SimObject::name(), Packet::payloadDelay, SMMUv3::runProcessTiming(), smmu, SMMUTranslationProcess, and xlateSlotsRemaining.
Referenced by SMMUATSDevicePort::recvTimingReq().
bool SMMUv3DeviceInterface::atsRecvTimingResp | ( | PacketPtr | pkt | ) |
Definition at line 214 of file smmu_v3_deviceifc.cc.
References DPRINTF, Packet::getAddr(), Packet::getSize(), Packet::headerDelay, Packet::payloadDelay, Packet::popSenderState(), SMMUv3::runProcessTiming(), and smmu.
Referenced by SMMUATSMemoryPort::recvTimingResp().
void SMMUv3DeviceInterface::atsSendDeviceRetry | ( | ) |
Definition at line 237 of file smmu_v3_deviceifc.cc.
References atsDevicePort, DPRINTF, and ResponsePort::sendRetryReq().
|
overridevirtual |
Draining is the process of clearing out the states of SimObjects.These are the SimObjects that are partially executed or are partially in flight.
Draining is mostly used before forking and creating a check point.
This function notifies an object that it needs to drain its state.
If the object does not need further simulation to drain internal buffers, it returns DrainState::Drained and automatically switches to the Drained state. If the object needs more simulation, it returns DrainState::Draining and automatically enters the Draining state. Other return values are invalid.
Implements Drainable.
Definition at line 254 of file smmu_v3_deviceifc.cc.
References Drained, Draining, params(), and xlateSlotsRemaining.
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 SimObject.
Definition at line 92 of file smmu_v3_deviceifc.cc.
References atsDevicePort, atsMemPort, devicePort, SimObject::getPort(), and SimObject::name().
|
inline |
Definition at line 130 of file smmu_v3_deviceifc.hh.
References SimObject::_params.
Referenced by drain().
Definition at line 123 of file smmu_v3_deviceifc.cc.
References ArmISA::a, ACTION_SEND_RESP, SMMUTranslationProcess::beginTransaction(), csprintf(), devicePort, DPRINTF, SMMUTranslRequest::fromPacket(), Packet::getAddr(), Port::getPeer(), Packet::getSize(), SimObject::name(), SMMUv3::runProcessAtomic(), and smmu.
Referenced by SMMUDevicePort::recvAtomic().
bool SMMUv3DeviceInterface::recvTimingReq | ( | PacketPtr | pkt | ) |
Definition at line 139 of file smmu_v3_deviceifc.cc.
References SMMUTranslationProcess::beginTransaction(), csprintf(), deviceNeedsRetry, devicePort, DPRINTF, SMMUTranslRequest::fromPacket(), Packet::getAddr(), Port::getPeer(), Packet::getSize(), Packet::headerDelay, Packet::isWrite(), SimObject::name(), Packet::payloadDelay, portWidth, SMMUv3::runProcessTiming(), smmu, SMMUTranslationProcess, wrBufSlotsRemaining, and xlateSlotsRemaining.
Referenced by SMMUDevicePort::recvTimingReq().
void SMMUv3DeviceInterface::schedAtsTimingResp | ( | PacketPtr | pkt | ) |
Definition at line 112 of file smmu_v3_deviceifc.cc.
References atsDeviceNeedsRetry, atsDevicePort, atsSendDeviceRetryEvent, Clocked::nextCycle(), QueuedResponsePort::schedTimingResp(), and EventManager::schedule().
Referenced by SMMUv3::runProcessTiming().
void SMMUv3DeviceInterface::schedTimingResp | ( | PacketPtr | pkt | ) |
Definition at line 106 of file smmu_v3_deviceifc.cc.
References devicePort, Clocked::nextCycle(), and QueuedResponsePort::schedTimingResp().
Referenced by SMMUv3::runProcessTiming().
void SMMUv3DeviceInterface::scheduleDeviceRetry | ( | ) |
Definition at line 244 of file smmu_v3_deviceifc.cc.
References deviceNeedsRetry, DPRINTF, Clocked::nextCycle(), EventManager::schedule(), Event::scheduled(), and sendDeviceRetryEvent.
void SMMUv3DeviceInterface::sendDeviceRetry | ( | ) |
Definition at line 231 of file smmu_v3_deviceifc.cc.
References devicePort, and ResponsePort::sendRetryReq().
Referenced by SMMUDeviceRetryEvent::process().
void SMMUv3DeviceInterface::sendRange | ( | ) |
Definition at line 80 of file smmu_v3_deviceifc.cc.
References devicePort, fatal, Port::getPeer(), inform, Port::isConnected(), and ResponsePort::sendRangeChange().
|
inline |
Definition at line 137 of file smmu_v3_deviceifc.hh.
References smmu.
|
friend |
Definition at line 58 of file smmu_v3_deviceifc.hh.
Referenced by atsRecvTimingReq(), and recvTimingReq().
bool SMMUv3DeviceInterface::atsDeviceNeedsRetry |
Definition at line 111 of file smmu_v3_deviceifc.hh.
Referenced by schedAtsTimingResp().
SMMUATSDevicePort SMMUv3DeviceInterface::atsDevicePort |
Definition at line 76 of file smmu_v3_deviceifc.hh.
Referenced by atsSendDeviceRetry(), getPort(), and schedAtsTimingResp().
SMMUATSMemoryPort SMMUv3DeviceInterface::atsMemPort |
Definition at line 77 of file smmu_v3_deviceifc.hh.
Referenced by getPort().
EventWrapper< SMMUv3DeviceInterface, &SMMUv3DeviceInterface::atsSendDeviceRetry> SMMUv3DeviceInterface::atsSendDeviceRetryEvent |
Definition at line 116 of file smmu_v3_deviceifc.hh.
Referenced by schedAtsTimingResp().
std::list<SMMUTranslationProcess *> SMMUv3DeviceInterface::dependentReads[SMMU_MAX_TRANS_ID] |
Definition at line 92 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::hazardIdHold(), SMMUTranslationProcess::hazardIdRegister(), and SMMUTranslationProcess::hazardIdRelease().
SMMUSignal SMMUv3DeviceInterface::dependentReqRemoved |
Definition at line 94 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::hazardIdHold(), and SMMUTranslationProcess::hazardIdRelease().
std::list<SMMUTranslationProcess *> SMMUv3DeviceInterface::dependentWrites[SMMU_MAX_TRANS_ID] |
Definition at line 93 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::hazardIdHold(), SMMUTranslationProcess::hazardIdRegister(), and SMMUTranslationProcess::hazardIdRelease().
bool SMMUv3DeviceInterface::deviceNeedsRetry |
Definition at line 110 of file smmu_v3_deviceifc.hh.
Referenced by atsRecvTimingReq(), recvTimingReq(), and scheduleDeviceRetry().
SMMUDevicePort* SMMUv3DeviceInterface::devicePort |
Definition at line 75 of file smmu_v3_deviceifc.hh.
Referenced by getPort(), recvAtomic(), recvTimingReq(), schedTimingResp(), sendDeviceRetry(), and sendRange().
SMMUSemaphore SMMUv3DeviceInterface::devicePortSem |
Definition at line 68 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::main().
SMMUSignal SMMUv3DeviceInterface::duplicateReqRemoved |
Definition at line 90 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::hazard4kHold(), and SMMUTranslationProcess::hazard4kRelease().
std::list<SMMUTranslationProcess *> SMMUv3DeviceInterface::duplicateReqs |
Definition at line 89 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::hazard4kCheck(), SMMUTranslationProcess::hazard4kHold(), SMMUTranslationProcess::hazard4kRegister(), and SMMUTranslationProcess::hazard4kRelease().
SMMUTLB* SMMUv3DeviceInterface::mainTLB |
Definition at line 63 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), SMMUTranslationProcess::ifcTLBUpdate(), and ~SMMUv3DeviceInterface().
const bool SMMUv3DeviceInterface::mainTLBEnable |
Definition at line 66 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), and SMMUTranslationProcess::ifcTLBUpdate().
const Cycles SMMUv3DeviceInterface::mainTLBLat |
Definition at line 73 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup().
SMMUSemaphore SMMUv3DeviceInterface::mainTLBSem |
Definition at line 70 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBLookup(), and SMMUTranslationProcess::ifcTLBUpdate().
SMMUTLB* SMMUv3DeviceInterface::microTLB |
Definition at line 62 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), SMMUTranslationProcess::microTLBUpdate(), and ~SMMUv3DeviceInterface().
const bool SMMUv3DeviceInterface::microTLBEnable |
Definition at line 65 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), and SMMUTranslationProcess::microTLBUpdate().
const Cycles SMMUv3DeviceInterface::microTLBLat |
Definition at line 72 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup().
SMMUSemaphore SMMUv3DeviceInterface::microTLBSem |
Definition at line 69 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::microTLBLookup(), and SMMUTranslationProcess::microTLBUpdate().
unsigned SMMUv3DeviceInterface::pendingMemAccesses |
Definition at line 84 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::SMMUTranslationProcess(), and SMMUTranslationProcess::~SMMUTranslationProcess().
const unsigned SMMUv3DeviceInterface::portWidth |
Definition at line 80 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::completeTransaction(), SMMUTranslationProcess::main(), and recvTimingReq().
const bool SMMUv3DeviceInterface::prefetchEnable |
Definition at line 86 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBUpdate(), and SMMUTranslationProcess::issuePrefetch().
const bool SMMUv3DeviceInterface::prefetchReserveLastWay |
Definition at line 87 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::ifcTLBUpdate().
SMMUDeviceRetryEvent SMMUv3DeviceInterface::sendDeviceRetryEvent |
Definition at line 113 of file smmu_v3_deviceifc.hh.
Referenced by scheduleDeviceRetry().
SMMUv3* SMMUv3DeviceInterface::smmu |
Definition at line 61 of file smmu_v3_deviceifc.hh.
Referenced by atsRecvAtomic(), atsRecvTimingReq(), atsRecvTimingResp(), recvAtomic(), recvTimingReq(), and setSMMU().
unsigned SMMUv3DeviceInterface::wrBufSlotsRemaining |
Definition at line 82 of file smmu_v3_deviceifc.hh.
Referenced by SMMUTranslationProcess::completeTransaction(), and recvTimingReq().
unsigned SMMUv3DeviceInterface::xlateSlotsRemaining |
Definition at line 83 of file smmu_v3_deviceifc.hh.
Referenced by atsRecvTimingReq(), SMMUTranslationProcess::completePrefetch(), SMMUTranslationProcess::completeTransaction(), drain(), SMMUTranslationProcess::issuePrefetch(), recvTimingReq(), and SMMUTranslationProcess::SMMUTranslationProcess().