gem5 v24.0.0.0
|
#include <hsa_packet_processor.hh>
Classes | |
struct | dma_series_ctx |
Calls getCurrentEntry once the queueEntry has been dmaRead. More... | |
class | QueueProcessEvent |
class | RQLEntry |
class | SignalState |
Public Types | |
typedef HSAPacketProcessorParams | Params |
Public Types inherited from gem5::DmaVirtDevice | |
typedef void(DmaDevice::* | DmaFnPtr) (Addr, int, Event *, uint8_t *, Tick) |
Public Types inherited from gem5::DmaDevice | |
typedef DmaDeviceParams | Params |
Public Types inherited from gem5::PioDevice | |
using | Params = PioDeviceParams |
Public Types inherited from gem5::ClockedObject | |
using | Params = ClockedObjectParams |
Parameters of ClockedObject. | |
Public Types inherited from gem5::SimObject | |
typedef SimObjectParams | Params |
Public Member Functions | |
HSAQueueDescriptor * | getQueueDesc (uint32_t queId) |
class RQLEntry * | getRegdListEntry (uint32_t queId) |
uint64_t | inFlightPkts (uint32_t queId) |
HSAPacketProcessor (const Params &p) | |
~HSAPacketProcessor () | |
TranslationGenPtr | translate (Addr vaddr, Addr size) override |
Function used to translate a range of addresses from virtual to physical addresses. | |
void | setDeviceQueueDesc (uint64_t hostReadIndexPointer, uint64_t basePointer, uint64_t queue_id, uint32_t size, int doorbellSize, GfxVersion gfxVersion, Addr offset=0, uint64_t rd_idx=0) |
void | unsetDeviceQueueDesc (uint64_t queue_id, int doorbellSize) |
void | setDevice (GPUCommandProcessor *dev) |
void | setGPUDevice (AMDGPUDevice *gpu_device) |
void | updateReadIndex (int, uint32_t) |
void | getCommandsFromHost (int pid, uint32_t rl_idx) |
HWScheduler * | hwScheduler () |
virtual Tick | read (Packet *) override |
virtual Tick | write (Packet *) override |
virtual AddrRangeList | getAddrRanges () const override |
Every PIO device is obliged to provide an implementation that returns the address ranges the device responds to. | |
void | finishPkt (void *pkt, uint32_t rl_idx) |
void | finishPkt (void *pkt) |
void | schedAQLProcessing (uint32_t rl_idx) |
void | schedAQLProcessing (uint32_t rl_idx, Tick delay) |
void | sendAgentDispatchCompletionSignal (void *pkt, hsa_signal_value_t signal) |
void | sendCompletionSignal (hsa_signal_value_t signal) |
void | updateReadDispIdDma () |
this event is used to update the read_disp_id field (the read pointer) of the MQD, which is how the host code knows the status of the HQD's read pointer | |
void | cmdQueueCmdDma (HSAPacketProcessor *hsaPP, int pid, bool isRead, uint32_t ix_start, unsigned num_pkts, dma_series_ctx *series_ctx, void *dest_4debug) |
void | handleReadDMA () |
Public Member Functions inherited from gem5::DmaVirtDevice | |
DmaVirtDevice (const Params &p) | |
virtual | ~DmaVirtDevice () |
void | dmaReadVirt (Addr host_addr, unsigned size, DmaCallback *cb, void *data, Tick delay=0) |
Initiate a DMA read from virtual address host_addr. | |
void | dmaWriteVirt (Addr host_addr, unsigned size, DmaCallback *b, void *data, Tick delay=0) |
Initiate a DMA write from virtual address host_addr. | |
void | dmaVirt (DmaFnPtr dmaFn, Addr host_addr, unsigned size, DmaCallback *cb, void *data, Tick delay=0) |
Initiate a call to DmaDevice using DmaFnPtr do a DMA starting from virtual address host_addr for size number of bytes on the data. | |
Public Member Functions inherited from gem5::DmaDevice | |
DmaDevice (const Params &p) | |
virtual | ~DmaDevice ()=default |
void | dmaWrite (Addr addr, int size, Event *event, uint8_t *data, uint32_t sid, uint32_t ssid, Tick delay=0) |
void | dmaWrite (Addr addr, int size, Event *event, uint8_t *data, Tick delay=0) |
void | dmaRead (Addr addr, int size, Event *event, uint8_t *data, uint32_t sid, uint32_t ssid, Tick delay=0) |
void | dmaRead (Addr addr, int size, Event *event, uint8_t *data, Tick delay=0) |
bool | dmaPending () const |
void | init () override |
init() is called after all C++ SimObjects have been created and all ports are connected. | |
Addr | cacheBlockSize () const |
Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) override |
Get a port with a given name and index. | |
Public Member Functions inherited from gem5::PioDevice | |
PioDevice (const Params &p) | |
virtual | ~PioDevice () |
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. | |
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 | resetStats () |
Callback to reset stats. | |
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 (const std::string &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 |
Public Attributes | |
int | numHWQueues |
Addr | pioAddr |
Addr | pioSize |
Tick | pioDelay |
const Tick | pktProcessDelay |
Public Attributes inherited from gem5::ClockedObject | |
PowerState * | powerState |
Protected Types | |
typedef void(DmaDevice::* | DmaFnPtr) (Addr, int, Event *, uint8_t *, Tick) |
Protected Member Functions | |
Q_STATE | processPkt (void *pkt, uint32_t rl_idx, Addr host_pkt_addr) |
void | displayQueueDescriptor (int pid, uint32_t rl_idx) |
Protected Member Functions inherited from gem5::PioDevice | |
virtual Tick | read (PacketPtr pkt)=0 |
Pure virtual function that the device must implement. | |
virtual Tick | write (PacketPtr pkt)=0 |
Pure virtual function that the device must implement. | |
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. | |
Protected Attributes | |
GPUCommandProcessor * | gpu_device |
HWScheduler * | hwSchdlr |
AMDGPUDevice * | gpuDevice |
VegaISA::Walker * | walker |
std::vector< class RQLEntry * > | regdQList |
Protected Attributes inherited from gem5::DmaDevice | |
DmaPort | dmaPort |
Protected Attributes inherited from gem5::PioDevice | |
System * | sys |
PioPort< PioDevice > | pioPort |
The pioPort that handles the requests for us and provides us requests that it sees. | |
Protected Attributes inherited from gem5::SimObject | |
const SimObjectParams & | _params |
Cached copy of the object parameters. | |
Protected Attributes inherited from gem5::EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. | |
Friends | |
class | HWScheduler |
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. | |
Definition at line 239 of file hsa_packet_processor.hh.
|
protected |
Definition at line 243 of file hsa_packet_processor.hh.
typedef HSAPacketProcessorParams gem5::HSAPacketProcessor::Params |
Definition at line 338 of file hsa_packet_processor.hh.
gem5::HSAPacketProcessor::HSAPacketProcessor | ( | const Params & | p | ) |
Definition at line 76 of file hsa_packet_processor.cc.
References DPRINTF, gem5::ArmISA::i, and gem5::MipsISA::p.
gem5::HSAPacketProcessor::~HSAPacketProcessor | ( | ) |
Definition at line 89 of file hsa_packet_processor.cc.
References regdQList.
void gem5::HSAPacketProcessor::cmdQueueCmdDma | ( | HSAPacketProcessor * | hsaPP, |
int | pid, | ||
bool | isRead, | ||
uint32_t | ix_start, | ||
unsigned | num_pkts, | ||
dma_series_ctx * | series_ctx, | ||
void * | dest_4debug ) |
Definition at line 232 of file hsa_packet_processor.cc.
References gem5::AQLRingBuffer::dispIdx(), gem5::HSAQueueDescriptor::dmaInProgress, DPRINTF, gem5::HSAPacketProcessor::dma_series_ctx::pkts_2_go, gem5::AQLRingBuffer::rdIdx(), regdQList, gem5::HSAPacketProcessor::dma_series_ctx::rl_idx, schedAQLProcessing(), and gem5::AQLRingBuffer::wrIdx().
Referenced by getCommandsFromHost().
|
protected |
Definition at line 578 of file hsa_packet_processor.cc.
References gem5::HSAQueueDescriptor::basePointer, gem5::HSAQueueDescriptor::doorbellPointer, DPRINTF, gem5::HSAQueueDescriptor::numElts, gem5::HSAQueueDescriptor::readIndex, regdQList, and gem5::HSAQueueDescriptor::writeIndex.
|
inline |
Definition at line 360 of file hsa_packet_processor.hh.
References finishPkt().
Referenced by finishPkt().
void gem5::HSAPacketProcessor::finishPkt | ( | void * | pkt, |
uint32_t | rl_idx ) |
Definition at line 667 of file hsa_packet_processor.cc.
References DPRINTF, getCommandsFromHost(), gem5::HSAQueueDescriptor::isEmpty(), gem5::HSAQueueDescriptor::numElts, gem5::HSAQueueDescriptor::readIndex, regdQList, schedAQLProcessing(), gem5::HSAQueueDescriptor::spaceUsed(), gem5::HSAQueueDescriptor::stalledOnDmaBufAvailability, updateReadIndex(), and gem5::HSAQueueDescriptor::writeIndex.
Referenced by gem5::GPUCommandProcessor::dispatchKernelObject(), gem5::GPUDispatcher::notifyWgCompl(), processPkt(), gem5::GPUCommandProcessor::submitAgentDispatchPkt(), and gem5::GPUCommandProcessor::submitVendorPkt().
|
overridevirtual |
Every PIO device is obliged to provide an implementation that returns the address ranges the device responds to.
Implements gem5::PioDevice.
Definition at line 128 of file hsa_packet_processor.cc.
References pioAddr, pioSize, and gem5::RangeSize().
void gem5::HSAPacketProcessor::getCommandsFromHost | ( | int | pid, |
uint32_t | rl_idx ) |
Definition at line 496 of file hsa_packet_processor.cc.
References gem5::AQLRingBuffer::allocEntry(), cmdQueueCmdDma(), gem5::HSAQueueDescriptor::dmaInProgress, gem5::DmaVirtDevice::dmaReadVirt(), gem5::HSAQueueDescriptor::doorbellPointer, DPRINTF, gem5::AQLRingBuffer::numObjs(), gem5::HSAQueueDescriptor::numObjs(), gem5::HSAQueueDescriptor::objSize(), gem5::AQLRingBuffer::ptr(), gem5::HSAQueueDescriptor::ptr(), gem5::HSAQueueDescriptor::readIndex, regdQList, gem5::AQLRingBuffer::saveHostDispAddr(), gem5::HSAQueueDescriptor::spaceUsed(), gem5::HSAQueueDescriptor::stalledOnDmaBufAvailability, gem5::AQLRingBuffer::wrIdx(), and gem5::HSAQueueDescriptor::writeIndex.
Referenced by finishPkt(), gem5::HWScheduler::scheduleAndWakeupMappedQ(), updateReadIndex(), and gem5::HWScheduler::write().
|
inline |
Definition at line 315 of file hsa_packet_processor.hh.
References regdQList.
Referenced by gem5::GPUCommandProcessor::initABI(), and gem5::GPUCommandProcessor::ReadDispIdOffsetDmaEvent().
|
inline |
Definition at line 320 of file hsa_packet_processor.hh.
References regdQList.
Referenced by gem5::HWScheduler::addQCntxt(), gem5::HWScheduler::findEmptyHWQ(), gem5::HWScheduler::isRLQIdle(), gem5::HWScheduler::removeQCntxt(), and gem5::HWScheduler::unregisterQueue().
void gem5::HSAPacketProcessor::handleReadDMA | ( | ) |
|
inline |
Definition at line 353 of file hsa_packet_processor.hh.
References hwSchdlr.
Referenced by gem5::AMDGPUDevice::writeDoorbell().
|
inline |
Definition at line 326 of file hsa_packet_processor.hh.
References regdQList.
Referenced by gem5::HWScheduler::isRLQIdle(), and gem5::GPUCommandProcessor::MQDDmaEvent().
|
protected |
Definition at line 283 of file hsa_packet_processor.cc.
References gem5::HSAPacketProcessor::SignalState::allRead, gem5::BLOCKED_BBIT, gem5::BLOCKED_BPKT, gem5::HSAPacketProcessor::SignalState::discardRead, gem5::DmaVirtDevice::dmaReadVirt(), DPRINTF, fatal, finishPkt(), gpu_device, gem5::HSAPacketProcessor::SignalState::handleReadDMA(), HSA_PACKET_TYPE_AGENT_DISPATCH, HSA_PACKET_TYPE_BARRIER_AND, HSA_PACKET_TYPE_BARRIER_OR, HSA_PACKET_TYPE_INVALID, HSA_PACKET_TYPE_KERNEL_DISPATCH, HSA_PACKET_TYPE_VENDOR_SPECIFIC, gem5::ArmISA::i, IS_BARRIER, NumSignalsPerBarrier, gem5::HSAPacketProcessor::SignalState::pendingReads, PKT_TYPE, regdQList, gem5::HSAPacketProcessor::SignalState::resetSigVals(), sendAgentDispatchCompletionSignal(), gem5::GPUCommandProcessor::sendCompletionSignal(), gem5::GPUCommandProcessor::submitAgentDispatchPkt(), gem5::GPUCommandProcessor::submitDispatchPkt(), gem5::GPUCommandProcessor::submitVendorPkt(), gem5::UNBLOCKED, and gem5::HSAPacketProcessor::SignalState::values.
Referenced by gem5::HSAPacketProcessor::QueueProcessEvent::process().
Definition at line 170 of file hsa_packet_processor.cc.
References gem5::Packet::makeAtomicResponse(), pioDelay, and gem5::Packet::setBadAddress().
void gem5::HSAPacketProcessor::schedAQLProcessing | ( | uint32_t | rl_idx | ) |
Definition at line 277 of file hsa_packet_processor.cc.
References pktProcessDelay, and schedAQLProcessing().
Referenced by cmdQueueCmdDma(), finishPkt(), gem5::HSAPacketProcessor::QueueProcessEvent::process(), schedAQLProcessing(), and gem5::HWScheduler::scheduleAndWakeupMappedQ().
void gem5::HSAPacketProcessor::schedAQLProcessing | ( | uint32_t | rl_idx, |
Tick | delay ) |
Definition at line 263 of file hsa_packet_processor.cc.
References gem5::HSAPacketProcessor::RQLEntry::aqlProcessEvent, gem5::curTick(), DPRINTF, regdQList, gem5::EventManager::schedule(), and gem5::Event::scheduled().
void gem5::HSAPacketProcessor::sendAgentDispatchCompletionSignal | ( | void * | pkt, |
hsa_signal_value_t | signal ) |
HACK: The semantics of the HSA signal is to decrement the current signal value. I'm going to cheat here and read out the value from main memory using functional access, and then just DMA the decremented value. The reason for this is that the DMASequencer does not support atomic operations.
Definition at line 709 of file hsa_packet_processor.cc.
References gem5::DmaVirtDevice::dmaWriteVirt(), DPRINTF, gem5::PioDevice::sys, and gem5::System::threads.
Referenced by processPkt().
void gem5::HSAPacketProcessor::sendCompletionSignal | ( | hsa_signal_value_t | signal | ) |
HACK: The semantics of the HSA signal is to decrement the current signal value. I'm going to cheat here and read out the value from main memory using functional access, and then just DMA the decremented value. The reason for this is that the DMASequencer does not support atomic operations.
Definition at line 739 of file hsa_packet_processor.cc.
References gem5::DmaVirtDevice::dmaWriteVirt(), DPRINTF, gem5::PioDevice::sys, and gem5::System::threads.
void gem5::HSAPacketProcessor::setDevice | ( | GPUCommandProcessor * | dev | ) |
Definition at line 642 of file hsa_packet_processor.cc.
References gpu_device.
Referenced by gem5::GPUCommandProcessor::GPUCommandProcessor().
void gem5::HSAPacketProcessor::setDeviceQueueDesc | ( | uint64_t | hostReadIndexPointer, |
uint64_t | basePointer, | ||
uint64_t | queue_id, | ||
uint32_t | size, | ||
int | doorbellSize, | ||
GfxVersion | gfxVersion, | ||
Addr | offset = 0, | ||
uint64_t | rd_idx = 0 ) |
Definition at line 112 of file hsa_packet_processor.cc.
References DPRINTF, hwSchdlr, gem5::ArmISA::offset, and gem5::HWScheduler::registerNewQueue().
Referenced by gem5::GPUComputeDriver::allocateQueue(), gem5::PM4PacketProcessor::processMQD(), and gem5::PM4PacketProcessor::unserialize().
void gem5::HSAPacketProcessor::setGPUDevice | ( | AMDGPUDevice * | gpu_device | ) |
Definition at line 97 of file hsa_packet_processor.cc.
References gpu_device, gpuDevice, gem5::VegaISA::Walker::setDevRequestor(), gem5::AMDGPUDevice::vramRequestorId(), and walker.
Referenced by gem5::AMDGPUDevice::AMDGPUDevice().
|
overridevirtual |
Function used to translate a range of addresses from virtual to physical addresses.
All classes inheriting from DmaVirtDevice must define this.
vaddr | Virtual address of the start of the range |
size | Size of the range in bytes |
Implements gem5::DmaVirtDevice.
Definition at line 178 of file hsa_packet_processor.cc.
References gem5::FullSystem, gem5::AMDGPUDevice::getVM(), gpuDevice, gem5::PioDevice::sys, gem5::System::threads, gem5::MipsISA::vaddr, and walker.
void gem5::HSAPacketProcessor::unsetDeviceQueueDesc | ( | uint64_t | queue_id, |
int | doorbellSize ) |
Definition at line 106 of file hsa_packet_processor.cc.
References hwSchdlr, and gem5::HWScheduler::unregisterQueue().
Referenced by gem5::GPUComputeDriver::ioctl().
void gem5::HSAPacketProcessor::updateReadDispIdDma | ( | ) |
this event is used to update the read_disp_id field (the read pointer) of the MQD, which is how the host code knows the status of the HQD's read pointer
Definition at line 202 of file hsa_packet_processor.cc.
References DPRINTF.
Referenced by updateReadIndex().
void gem5::HSAPacketProcessor::updateReadIndex | ( | int | pid, |
uint32_t | rl_idx ) |
Definition at line 208 of file hsa_packet_processor.cc.
References gem5::DmaVirtDevice::dmaWriteVirt(), DPRINTF, getCommandsFromHost(), gem5::HSAQueueDescriptor::hostReadIndexPtr, gem5::HSAQueueDescriptor::isEmpty(), gem5::HSAQueueDescriptor::numElts, gem5::AQLRingBuffer::rdIdx(), gem5::AQLRingBuffer::rdIdxPtr(), gem5::HSAQueueDescriptor::readIndex, regdQList, gem5::HSAQueueDescriptor::spaceUsed(), updateReadDispIdDma(), gem5::AQLRingBuffer::wrIdx(), and gem5::HSAQueueDescriptor::writeIndex.
Referenced by finishPkt().
Definition at line 140 of file hsa_packet_processor.cc.
References gem5::GPUComputeDriver::doorbellSize(), DPRINTF, gem5::GPUCommandProcessor::driver(), fatal, gem5::Packet::getAddr(), gem5::Packet::getLE(), gem5::Packet::getSize(), gpu_device, hwSchdlr, gem5::Packet::makeAtomicResponse(), pioAddr, pioDelay, pioSize, and gem5::HWScheduler::write().
|
friend |
Definition at line 241 of file hsa_packet_processor.hh.
|
protected |
Definition at line 244 of file hsa_packet_processor.hh.
Referenced by processPkt(), setDevice(), setGPUDevice(), and write().
|
protected |
Definition at line 246 of file hsa_packet_processor.hh.
Referenced by setGPUDevice(), and translate().
|
protected |
Definition at line 245 of file hsa_packet_processor.hh.
Referenced by hwScheduler(), setDeviceQueueDesc(), unsetDeviceQueueDesc(), and write().
int gem5::HSAPacketProcessor::numHWQueues |
Definition at line 332 of file hsa_packet_processor.hh.
Referenced by gem5::HWScheduler::findEmptyHWQ(), gem5::HWScheduler::findNextIdleRLQ(), and gem5::HWScheduler::updateRRVars().
Addr gem5::HSAPacketProcessor::pioAddr |
Definition at line 333 of file hsa_packet_processor.hh.
Referenced by getAddrRanges(), gem5::GPUComputeDriver::ioctl(), gem5::GPUComputeDriver::mmap(), and write().
Tick gem5::HSAPacketProcessor::pioDelay |
Definition at line 335 of file hsa_packet_processor.hh.
Addr gem5::HSAPacketProcessor::pioSize |
Definition at line 334 of file hsa_packet_processor.hh.
Referenced by getAddrRanges(), and write().
const Tick gem5::HSAPacketProcessor::pktProcessDelay |
Definition at line 336 of file hsa_packet_processor.hh.
Referenced by schedAQLProcessing().
|
protected |
Definition at line 308 of file hsa_packet_processor.hh.
Referenced by cmdQueueCmdDma(), displayQueueDescriptor(), finishPkt(), getCommandsFromHost(), getQueueDesc(), getRegdListEntry(), inFlightPkts(), gem5::HSAPacketProcessor::QueueProcessEvent::process(), processPkt(), schedAQLProcessing(), gem5::HWScheduler::scheduleAndWakeupMappedQ(), updateReadIndex(), and ~HSAPacketProcessor().
|
protected |
Definition at line 247 of file hsa_packet_processor.hh.
Referenced by setGPUDevice(), and translate().