gem5 v24.0.0.0
Loading...
Searching...
No Matches
amdgpu_nbio.hh File Reference
#include <unordered_map>
#include "base/types.hh"
#include "mem/packet.hh"

Go to the source code of this file.

Classes

class  gem5::AMDGPUNbio
 

Namespaces

namespace  gem5
 Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
 

Macros

#define AMDGPU_MM_INDEX   0x00000
 MMIO offsets for NBIO.
 
#define AMDGPU_MM_INDEX_HI   0x00018
 
#define AMDGPU_MM_DATA   0x00004
 
#define AMDGPU_PCIE_INDEX   0x00030
 
#define AMDGPU_PCIE_INDEX2   0x00038
 
#define AMDGPU_PCIE_DATA   0x00034
 
#define AMDGPU_PCIE_DATA2   0x0003c
 
#define AMDGPU_MP0_SMN_C2PMSG_33   0x58184
 
#define AMDGPU_MP0_SMN_C2PMSG_35   0x5818c
 
#define AMDGPU_MP0_SMN_C2PMSG_64   0x58200
 
#define AMDGPU_MP0_SMN_C2PMSG_69   0x58214
 
#define AMDGPU_MP0_SMN_C2PMSG_70   0x58218
 
#define AMDGPU_MP0_SMN_C2PMSG_71   0x5821c
 
#define AMDGPU_MP0_SMN_C2PMSG_81   0x58244
 
#define AMDGPU_MP1_SMN_C2PMSG_90   0x58a68
 
#define VEGA10_INV_ENG17_ACK1   0x0a318
 
#define VEGA10_INV_ENG17_ACK2   0x69c18
 
#define VEGA10_INV_ENG17_SEM1   0x0a288
 
#define VEGA10_INV_ENG17_SEM2   0x69b88
 
#define MI100_INV_ENG17_ACK1   0x0a318
 
#define MI100_INV_ENG17_ACK2   0x6a918
 
#define MI100_INV_ENG17_ACK3   0x76918
 
#define MI100_INV_ENG17_SEM1   0x0a288
 
#define MI100_INV_ENG17_SEM2   0x6a888
 
#define MI100_INV_ENG17_SEM3   0x76888
 
#define MI200_INV_ENG17_ACK1   0x0a318
 
#define MI200_INV_ENG17_ACK2   0x6b018
 
#define MI200_INV_ENG17_SEM1   0x0a288
 
#define MI200_INV_ENG17_SEM2   0x6af88
 

Macro Definition Documentation

◆ AMDGPU_MM_DATA

#define AMDGPU_MM_DATA   0x00004

Definition at line 58 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO(), and gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MM_INDEX

#define AMDGPU_MM_INDEX   0x00000

MMIO offsets for NBIO.

NBIO handles initialization such as device discovery and psp functions. Values taken from:

https://github.com/RadeonOpenCompute/ROCK-Kernel-Driver/blob/roc-4.3.x/ drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c

The addresses in the file are dword addresses. Here they are converted to byte addresses so gem5 does not need to do any shifting.

Definition at line 56 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MM_INDEX_HI

#define AMDGPU_MM_INDEX_HI   0x00018

Definition at line 57 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MP0_SMN_C2PMSG_33

#define AMDGPU_MP0_SMN_C2PMSG_33   0x58184

Definition at line 66 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUDevice::AMDGPUDevice().

◆ AMDGPU_MP0_SMN_C2PMSG_35

#define AMDGPU_MP0_SMN_C2PMSG_35   0x5818c

Definition at line 67 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO(), and gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MP0_SMN_C2PMSG_64

#define AMDGPU_MP0_SMN_C2PMSG_64   0x58200

Definition at line 68 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::AMDGPUNbio(), and gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MP0_SMN_C2PMSG_69

#define AMDGPU_MP0_SMN_C2PMSG_69   0x58214

Definition at line 69 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MP0_SMN_C2PMSG_70

#define AMDGPU_MP0_SMN_C2PMSG_70   0x58218

Definition at line 70 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MP0_SMN_C2PMSG_71

#define AMDGPU_MP0_SMN_C2PMSG_71   0x5821c

Definition at line 71 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MP0_SMN_C2PMSG_81

#define AMDGPU_MP0_SMN_C2PMSG_81   0x58244

Definition at line 72 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_MP1_SMN_C2PMSG_90

#define AMDGPU_MP1_SMN_C2PMSG_90   0x58a68

Definition at line 73 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ AMDGPU_PCIE_DATA

#define AMDGPU_PCIE_DATA   0x00034

Definition at line 62 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO(), and gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_PCIE_DATA2

#define AMDGPU_PCIE_DATA2   0x0003c

Definition at line 63 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO(), and gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_PCIE_INDEX

#define AMDGPU_PCIE_INDEX   0x00030

Definition at line 60 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO(), and gem5::AMDGPUNbio::writeMMIO().

◆ AMDGPU_PCIE_INDEX2

#define AMDGPU_PCIE_INDEX2   0x00038

Definition at line 61 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO(), and gem5::AMDGPUNbio::writeMMIO().

◆ MI100_INV_ENG17_ACK1

#define MI100_INV_ENG17_ACK1   0x0a318

Definition at line 81 of file amdgpu_nbio.hh.

◆ MI100_INV_ENG17_ACK2

#define MI100_INV_ENG17_ACK2   0x6a918

Definition at line 82 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ MI100_INV_ENG17_ACK3

#define MI100_INV_ENG17_ACK3   0x76918

Definition at line 83 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ MI100_INV_ENG17_SEM1

#define MI100_INV_ENG17_SEM1   0x0a288

Definition at line 84 of file amdgpu_nbio.hh.

◆ MI100_INV_ENG17_SEM2

#define MI100_INV_ENG17_SEM2   0x6a888

Definition at line 85 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ MI100_INV_ENG17_SEM3

#define MI100_INV_ENG17_SEM3   0x76888

Definition at line 86 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ MI200_INV_ENG17_ACK1

#define MI200_INV_ENG17_ACK1   0x0a318

Definition at line 88 of file amdgpu_nbio.hh.

◆ MI200_INV_ENG17_ACK2

#define MI200_INV_ENG17_ACK2   0x6b018

Definition at line 89 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ MI200_INV_ENG17_SEM1

#define MI200_INV_ENG17_SEM1   0x0a288

Definition at line 90 of file amdgpu_nbio.hh.

◆ MI200_INV_ENG17_SEM2

#define MI200_INV_ENG17_SEM2   0x6af88

Definition at line 91 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ VEGA10_INV_ENG17_ACK1

#define VEGA10_INV_ENG17_ACK1   0x0a318

Definition at line 76 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ VEGA10_INV_ENG17_ACK2

#define VEGA10_INV_ENG17_ACK2   0x69c18

Definition at line 77 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ VEGA10_INV_ENG17_SEM1

#define VEGA10_INV_ENG17_SEM1   0x0a288

Definition at line 78 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().

◆ VEGA10_INV_ENG17_SEM2

#define VEGA10_INV_ENG17_SEM2   0x69b88

Definition at line 79 of file amdgpu_nbio.hh.

Referenced by gem5::AMDGPUNbio::readMMIO().


Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0