gem5  v20.1.0.0
Public Member Functions | Private Attributes | List of all members
GPUCommandProcessor::MQDDmaEvent Class Reference

Perform a DMA read of the MQD that corresponds to a hardware queue descriptor (HQD). More...

Inheritance diagram for GPUCommandProcessor::MQDDmaEvent:
DmaCallback Drainable

Public Member Functions

 MQDDmaEvent (GPUCommandProcessor &gpu_cmd_proc, HSAQueueEntry *task)
 
void process () override
 Callback function invoked on completion of all chunks. More...
 
- Public Member Functions inherited from DmaCallback
virtual const std::string name () const
 
DrainState drain () override
 DmaPort ensures that all oustanding DMA accesses have completed before it finishes draining. More...
 
EventgetChunkEvent ()
 Request a chunk event. More...
 
- 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...
 

Private Attributes

GPUCommandProcessorgpuCmdProc
 
HSAQueueEntry_task
 

Additional Inherited Members

- Protected Member Functions inherited from DmaCallback
 DmaCallback ()
 
virtual ~DmaCallback ()
 
- 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 Attributes inherited from DmaCallback
int count
 

Detailed Description

Perform a DMA read of the MQD that corresponds to a hardware queue descriptor (HQD).

We store a copy of the MQD in the HSAQueueEntry object so we can send a copy of it along with a dispatch packet, which is needed to initialize register state.

Definition at line 145 of file gpu_command_processor.hh.

Constructor & Destructor Documentation

◆ MQDDmaEvent()

GPUCommandProcessor::MQDDmaEvent::MQDDmaEvent ( GPUCommandProcessor gpu_cmd_proc,
HSAQueueEntry task 
)
inline

Definition at line 148 of file gpu_command_processor.hh.

Member Function Documentation

◆ process()

void GPUCommandProcessor::MQDDmaEvent::process ( )
inlineoverridevirtual

Callback function invoked on completion of all chunks.

Implements DmaCallback.

Definition at line 154 of file gpu_command_processor.hh.

References _task, GPUCommandProcessor::dispatchPkt(), and gpuCmdProc.

Member Data Documentation

◆ _task

HSAQueueEntry* GPUCommandProcessor::MQDDmaEvent::_task
private

Definition at line 161 of file gpu_command_processor.hh.

Referenced by process().

◆ gpuCmdProc

GPUCommandProcessor& GPUCommandProcessor::MQDDmaEvent::gpuCmdProc
private

Definition at line 160 of file gpu_command_processor.hh.

Referenced by process().


The documentation for this class was generated from the following file:

Generated on Wed Sep 30 2020 14:02:25 for gem5 by doxygen 1.8.17