Enabled RPB for Navi48 (#115)

* Enabled RPB for Navi48

* Fixing RPB addresses

* Removing non-Navi files

* Removing RPB enum not needed
This commit is contained in:
Yang, Chun
2025-07-01 15:05:28 -07:00
committed by GitHub
parent 7710e8bca3
commit 5e99084425
7 changed files with 1655 additions and 14 deletions
+1
View File
@@ -85,6 +85,7 @@ void Gfx12Factory::ConstructTable(const AgentInfo* agent_info) {
block_table_[__BLOCK_ID_HSA(CPC)] = &CpcCounterBlockInfo;
block_table_[__BLOCK_ID_HSA(CPF)] = &CpfCounterBlockInfo;
block_table_[__BLOCK_ID(CPG)] = &CpgCounterBlockInfo;
block_table_[__BLOCK_ID_HSA(RPB)] = &RpbCounterBlockInfo;
block_table_[__BLOCK_ID(GC_UTCL2)] = &GcUtcl2CounterBlockInfo;
block_table_[__BLOCK_ID(GC_VML2)] = &GcVml2CounterBlockInfo;
block_table_[__BLOCK_ID(GC_VML2_SPM)] = &GcVml2SpmCounterBlockInfo;
+1 -1
View File
@@ -52,7 +52,7 @@ void PopulateAql(const uint32_t* ib_packet, packet_t* aql_packet) {
const uint32_t dword_count = sizeof(*aql_packet) / sizeof(uint32_t);
std::ostringstream oss;
oss << "AQL 'IB' size(" << dword_count << ")";
std::clog << std::setw(40) << std::left << "AQL 'IB' size(16)"
std::clog << std::setw(40) << std::right << "AQL 'IB' size(16)"
<< ":";
for (unsigned idx = 0; idx < dword_count; idx++) {
std::clog << " " << std::hex << std::setw(8) << std::setfill('0') << dwords[idx];
+2 -1
View File
@@ -28,6 +28,8 @@
#include "util/reg_offsets.h"
#include "linux/registers/gc/gc_12_0_0_offset.h"
#include "linux/registers/gc/gc_12_0_0_sh_mask.h"
#include "linux/registers/athub/athub_4_1_0_offset.h"
#include "linux/registers/athub/athub_4_1_0_sh_mask.h"
// Rename CP_PERFMON_CNTL_1 to CP_PERFMON_CNTL for better compatibility
// CP_PERFMON_CNTL_1
#define regCP_PERFMON_CNTL_BASE_IDX regCP_PERFMON_CNTL_1_BASE_IDX
@@ -48,4 +50,3 @@ using namespace gfxip::gfx12::gfx1200;
#include "gfxip/gfx12/gfx12_block_table.h"
#endif // _GFX12_DEF_H_