[SPM] Clean up obsolete SPM logics and refine some SPM-related definition (#157)

* Clean up obsolete SPM logics
* Add PERFCOUNTER_SELECT1 to CounterRegInfo
* Add RLC_SPM_PERFMON_SAMPLE_DELAY_MAX

[ROCm/aqlprofile commit: 6f236ffb5f]
This commit is contained in:
Ma, Bing
2025-07-18 15:26:44 -07:00
committad av GitHub
förälder 126e46153c
incheckning a75174f855
20 ändrade filer med 546 tillägg och 1224 borttagningar
+6 -2
Visa fil
@@ -80,13 +80,17 @@ struct CounterRegInfo {
Register register_addr_lo;
// counter register address high
Register register_addr_hi;
// counter select1 register address (for SPM)
Register select1_addr;
};
struct BlockDelayInfo {
Register reg;
uint32_t val;
const uint32_t* val; // Layout: val[SA][SE][instance]
};
#define BLOCK_DELAY_NONE { REG_32B_NULL, nullptr }
struct counter_des_t;
// GPU Block info definition
@@ -108,7 +112,7 @@ struct GpuBlockInfo {
// Block attributes mask
uint32_t attr;
// Block delay info
const BlockDelayInfo* delay_info;
BlockDelayInfo delay_info;
// SPM block id
uint32_t spm_block_id;
};