gem5 v24.0.0.0
|
#include <amdgpu_nbio.hh>
Public Member Functions | |
AMDGPUNbio () | |
void | setGPUDevice (AMDGPUDevice *gpu_device) |
void | readMMIO (PacketPtr pkt, Addr offset) |
void | writeMMIO (PacketPtr pkt, Addr offset) |
bool | readFrame (PacketPtr pkt, Addr offset) |
void | writeFrame (PacketPtr pkt, Addr offset) |
Private Types | |
using | GPURegMap = std::unordered_map<uint64_t, uint32_t> |
Private Attributes | |
AMDGPUDevice * | gpuDevice |
uint64_t | mm_index_reg = 0 |
uint32_t | pcie_index_reg = 0 |
uint32_t | pcie_index2_reg = 0 |
std::unordered_map< uint32_t, uint32_t > | triggered_reads |
Addr | psp_ring = 0 |
Addr | psp_ring_dev_addr = 0 |
Addr | psp_ring_listen_addr = 0 |
int | psp_ring_size = 0 |
int | psp_ring_value = 0 |
GPURegMap | regs |
Definition at line 93 of file amdgpu_nbio.hh.
|
private |
Definition at line 129 of file amdgpu_nbio.hh.
gem5::AMDGPUNbio::AMDGPUNbio | ( | ) |
Definition at line 41 of file amdgpu_nbio.cc.
References AMDGPU_MP0_SMN_C2PMSG_64, and triggered_reads.
Definition at line 199 of file amdgpu_nbio.cc.
References gem5::ArmISA::offset, psp_ring_dev_addr, psp_ring_value, and gem5::Packet::setUintX().
Referenced by gem5::AMDGPUDevice::readFrame().
Definition at line 54 of file amdgpu_nbio.cc.
References AMDGPU_MM_DATA, AMDGPU_MP0_SMN_C2PMSG_35, AMDGPU_MP1_SMN_C2PMSG_90, AMDGPU_PCIE_DATA, AMDGPU_PCIE_DATA2, AMDGPU_PCIE_INDEX, AMDGPU_PCIE_INDEX2, DPRINTF, gem5::Packet::getAddr(), gem5::AMDGPUDevice::getGfxVersion(), gem5::AMDGPUDevice::getRegVal(), gpuDevice, MI100_INV_ENG17_ACK2, MI100_INV_ENG17_ACK3, MI100_INV_ENG17_SEM2, MI100_INV_ENG17_SEM3, MI200_INV_ENG17_ACK2, MI200_INV_ENG17_SEM2, mm_index_reg, gem5::ArmISA::offset, pcie_index2_reg, pcie_index_reg, regs, gem5::Packet::setLE(), triggered_reads, VEGA10_INV_ENG17_ACK1, VEGA10_INV_ENG17_ACK2, VEGA10_INV_ENG17_SEM1, and VEGA10_INV_ENG17_SEM2.
Referenced by gem5::AMDGPUDevice::readMMIO().
void gem5::AMDGPUNbio::setGPUDevice | ( | AMDGPUDevice * | gpu_device | ) |
Definition at line 48 of file amdgpu_nbio.cc.
References gpuDevice.
Referenced by gem5::AMDGPUDevice::AMDGPUDevice().
Definition at line 212 of file amdgpu_nbio.cc.
References DPRINTF, gem5::Packet::getLE(), gem5::Packet::getSize(), gem5::AMDGPUVM::getSysAddrRangeLow(), gem5::Packet::getUintX(), gem5::AMDGPUDevice::getVM(), gpuDevice, gem5::ArmISA::offset, panic, psp_ring_dev_addr, and psp_ring_listen_addr.
Referenced by gem5::AMDGPUDevice::writeFrame().
Definition at line 134 of file amdgpu_nbio.cc.
References AMDGPU_MM_DATA, AMDGPU_MM_INDEX, AMDGPU_MM_INDEX_HI, AMDGPU_MP0_SMN_C2PMSG_35, AMDGPU_MP0_SMN_C2PMSG_64, AMDGPU_MP0_SMN_C2PMSG_69, AMDGPU_MP0_SMN_C2PMSG_70, AMDGPU_MP0_SMN_C2PMSG_71, AMDGPU_MP0_SMN_C2PMSG_81, AMDGPU_PCIE_DATA, AMDGPU_PCIE_DATA2, AMDGPU_PCIE_INDEX, AMDGPU_PCIE_INDEX2, DPRINTF, gem5::Packet::getLE(), gem5::Packet::getSize(), gem5::AMDGPUVM::getSysAddrRangeLow(), gem5::AMDGPUDevice::getVM(), gpuDevice, gem5::insertBits(), mm_index_reg, gem5::ArmISA::offset, pcie_index2_reg, pcie_index_reg, psp_ring, psp_ring_listen_addr, psp_ring_size, regs, gem5::AMDGPUDevice::setRegVal(), and triggered_reads.
Referenced by gem5::AMDGPUDevice::writeMMIO().
|
private |
Definition at line 107 of file amdgpu_nbio.hh.
Referenced by readMMIO(), setGPUDevice(), writeFrame(), and writeMMIO().
|
private |
Definition at line 112 of file amdgpu_nbio.hh.
Referenced by readMMIO(), and writeMMIO().
|
private |
Definition at line 114 of file amdgpu_nbio.hh.
Referenced by readMMIO(), and writeMMIO().
|
private |
Definition at line 113 of file amdgpu_nbio.hh.
Referenced by readMMIO(), and writeMMIO().
|
private |
Definition at line 120 of file amdgpu_nbio.hh.
Referenced by writeMMIO().
|
private |
Definition at line 121 of file amdgpu_nbio.hh.
Referenced by readFrame(), and writeFrame().
|
private |
Definition at line 122 of file amdgpu_nbio.hh.
Referenced by writeFrame(), and writeMMIO().
|
private |
Definition at line 123 of file amdgpu_nbio.hh.
Referenced by writeMMIO().
|
private |
Definition at line 124 of file amdgpu_nbio.hh.
Referenced by readFrame().
|
private |
Definition at line 130 of file amdgpu_nbio.hh.
Referenced by readMMIO(), and writeMMIO().
|
private |
Definition at line 115 of file amdgpu_nbio.hh.
Referenced by AMDGPUNbio(), readMMIO(), and writeMMIO().