linux-zen-desktop/drivers/accel/habanalabs/gaudi2/gaudi2_coresight.c

2721 lines
103 KiB
C
Raw Normal View History

2023-08-30 17:31:07 +02:00
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright 2019-2022 HabanaLabs, Ltd.
* All Rights Reserved.
*/
#include "gaudi2_coresight_regs.h"
#include <uapi/drm/habanalabs_accel.h>
#define GAUDI2_PLDM_CORESIGHT_TIMEOUT_USEC (CORESIGHT_TIMEOUT_USEC * 2000)
#define SPMU_MAX_COUNTERS 6
#define COMPONENT_ID_INVALID ((u32)(-1))
#define MAX_BMONS_PER_UNIT 8
enum gaudi2_hif_hmmu_id {
HMMU_ID_DCORE0_HMMU0,
HMMU_ID_DCORE0_HMMU1,
HMMU_ID_DCORE0_HMMU2,
HMMU_ID_DCORE0_HMMU3,
HMMU_ID_DCORE1_HMMU0,
HMMU_ID_DCORE1_HMMU1,
HMMU_ID_DCORE1_HMMU2,
HMMU_ID_DCORE1_HMMU3,
HMMU_ID_DCORE2_HMMU0,
HMMU_ID_DCORE2_HMMU1,
HMMU_ID_DCORE2_HMMU2,
HMMU_ID_DCORE2_HMMU3,
HMMU_ID_DCORE3_HMMU0,
HMMU_ID_DCORE3_HMMU1,
HMMU_ID_DCORE3_HMMU2,
HMMU_ID_DCORE3_HMMU3,
HMMU_ID_SIZE,
};
enum gaudi2_xbar_edge_id {
XBAR_EDGE_ID_DCORE0,
XBAR_EDGE_ID_DCORE1,
XBAR_EDGE_ID_DCORE2,
XBAR_EDGE_ID_DCORE3,
XBAR_EDGE_ID_SIZE
};
/**
* struct component_config_offsets - per cs_dbg unit - view off all related components indices
* @funnel_id: funnel id - index in debug_funnel_regs
* @etf_id: etf id - index in debug_etf_regs
* @stm_id: stm id - index in debug_stm_regs
* @spmu_id: spmu_id - index in debug_spmu_regs
* @bmon_count: number of bmons per unit
* @bmon_ids: array of bmon id (max size - MAX_BMONS_PER_UNIT) index in debug_bmon_regs
*/
struct component_config_offsets {
u32 funnel_id;
u32 etf_id;
u32 stm_id;
u32 spmu_id;
u32 bmon_count;
u32 bmon_ids[MAX_BMONS_PER_UNIT];
};
static u64 debug_stm_regs[GAUDI2_STM_LAST + 1] = {
[GAUDI2_STM_DCORE0_TPC0_EML] = mmDCORE0_TPC0_EML_STM_BASE,
[GAUDI2_STM_DCORE0_TPC1_EML] = mmDCORE0_TPC1_EML_STM_BASE,
[GAUDI2_STM_DCORE0_TPC2_EML] = mmDCORE0_TPC2_EML_STM_BASE,
[GAUDI2_STM_DCORE0_TPC3_EML] = mmDCORE0_TPC3_EML_STM_BASE,
[GAUDI2_STM_DCORE0_TPC4_EML] = mmDCORE0_TPC4_EML_STM_BASE,
[GAUDI2_STM_DCORE0_TPC5_EML] = mmDCORE0_TPC5_EML_STM_BASE,
[GAUDI2_STM_DCORE0_TPC6_EML] = mmDCORE0_TPC6_EML_STM_BASE,
[GAUDI2_STM_DCORE1_TPC0_EML] = mmDCORE1_TPC0_EML_STM_BASE,
[GAUDI2_STM_DCORE1_TPC1_EML] = mmDCORE1_TPC1_EML_STM_BASE,
[GAUDI2_STM_DCORE1_TPC2_EML] = mmDCORE1_TPC2_EML_STM_BASE,
[GAUDI2_STM_DCORE1_TPC3_EML] = mmDCORE1_TPC3_EML_STM_BASE,
[GAUDI2_STM_DCORE1_TPC4_EML] = mmDCORE1_TPC4_EML_STM_BASE,
[GAUDI2_STM_DCORE1_TPC5_EML] = mmDCORE1_TPC5_EML_STM_BASE,
[GAUDI2_STM_DCORE2_TPC0_EML] = mmDCORE2_TPC0_EML_STM_BASE,
[GAUDI2_STM_DCORE2_TPC1_EML] = mmDCORE2_TPC1_EML_STM_BASE,
[GAUDI2_STM_DCORE2_TPC2_EML] = mmDCORE2_TPC2_EML_STM_BASE,
[GAUDI2_STM_DCORE2_TPC3_EML] = mmDCORE2_TPC3_EML_STM_BASE,
[GAUDI2_STM_DCORE2_TPC4_EML] = mmDCORE2_TPC4_EML_STM_BASE,
[GAUDI2_STM_DCORE2_TPC5_EML] = mmDCORE2_TPC5_EML_STM_BASE,
[GAUDI2_STM_DCORE3_TPC0_EML] = mmDCORE3_TPC0_EML_STM_BASE,
[GAUDI2_STM_DCORE3_TPC1_EML] = mmDCORE3_TPC1_EML_STM_BASE,
[GAUDI2_STM_DCORE3_TPC2_EML] = mmDCORE3_TPC2_EML_STM_BASE,
[GAUDI2_STM_DCORE3_TPC3_EML] = mmDCORE3_TPC3_EML_STM_BASE,
[GAUDI2_STM_DCORE3_TPC4_EML] = mmDCORE3_TPC4_EML_STM_BASE,
[GAUDI2_STM_DCORE3_TPC5_EML] = mmDCORE3_TPC5_EML_STM_BASE,
[GAUDI2_STM_DCORE0_HMMU0_CS] = mmDCORE0_HMMU0_CS_STM_BASE,
[GAUDI2_STM_DCORE0_HMMU1_CS] = mmDCORE0_HMMU1_CS_STM_BASE,
[GAUDI2_STM_DCORE0_HMMU2_CS] = mmDCORE0_HMMU2_CS_STM_BASE,
[GAUDI2_STM_DCORE0_HMMU3_CS] = mmDCORE0_HMMU3_CS_STM_BASE,
[GAUDI2_STM_DCORE0_MME_CTRL] = mmDCORE0_MME_CTRL_STM_BASE,
[GAUDI2_STM_DCORE0_MME_SBTE0] = mmDCORE0_MME_SBTE0_STM_BASE,
[GAUDI2_STM_DCORE0_MME_SBTE1] = mmDCORE0_MME_SBTE1_STM_BASE,
[GAUDI2_STM_DCORE0_MME_SBTE2] = mmDCORE0_MME_SBTE2_STM_BASE,
[GAUDI2_STM_DCORE0_MME_SBTE3] = mmDCORE0_MME_SBTE3_STM_BASE,
[GAUDI2_STM_DCORE0_MME_SBTE4] = mmDCORE0_MME_SBTE4_STM_BASE,
[GAUDI2_STM_DCORE0_MME_ACC] = mmDCORE0_MME_ACC_STM_BASE,
[GAUDI2_STM_DCORE0_SM] = mmDCORE0_SM_STM_BASE,
[GAUDI2_STM_DCORE0_EDMA0_CS] = mmDCORE0_EDMA0_CS_STM_BASE,
[GAUDI2_STM_DCORE0_EDMA1_CS] = mmDCORE0_EDMA1_CS_STM_BASE,
[GAUDI2_STM_DCORE0_VDEC0_CS] = mmDCORE0_VDEC0_CS_STM_BASE,
[GAUDI2_STM_DCORE0_VDEC1_CS] = mmDCORE0_VDEC1_CS_STM_BASE,
[GAUDI2_STM_DCORE1_HMMU0_CS] = mmDCORE1_HMMU0_CS_STM_BASE,
[GAUDI2_STM_DCORE1_HMMU1_CS] = mmDCORE1_HMMU1_CS_STM_BASE,
[GAUDI2_STM_DCORE1_HMMU2_CS] = mmDCORE1_HMMU2_CS_STM_BASE,
[GAUDI2_STM_DCORE1_HMMU3_CS] = mmDCORE1_HMMU3_CS_STM_BASE,
[GAUDI2_STM_DCORE1_MME_CTRL] = mmDCORE1_MME_CTRL_STM_BASE,
[GAUDI2_STM_DCORE1_MME_SBTE0] = mmDCORE1_MME_SBTE0_STM_BASE,
[GAUDI2_STM_DCORE1_MME_SBTE1] = mmDCORE1_MME_SBTE1_STM_BASE,
[GAUDI2_STM_DCORE1_MME_SBTE2] = mmDCORE1_MME_SBTE2_STM_BASE,
[GAUDI2_STM_DCORE1_MME_SBTE3] = mmDCORE1_MME_SBTE3_STM_BASE,
[GAUDI2_STM_DCORE1_MME_SBTE4] = mmDCORE1_MME_SBTE4_STM_BASE,
[GAUDI2_STM_DCORE1_MME_ACC] = mmDCORE1_MME_ACC_STM_BASE,
[GAUDI2_STM_DCORE1_SM] = mmDCORE1_SM_STM_BASE,
[GAUDI2_STM_DCORE1_EDMA0_CS] = mmDCORE1_EDMA0_CS_STM_BASE,
[GAUDI2_STM_DCORE1_EDMA1_CS] = mmDCORE1_EDMA1_CS_STM_BASE,
[GAUDI2_STM_DCORE1_VDEC0_CS] = mmDCORE1_VDEC0_CS_STM_BASE,
[GAUDI2_STM_DCORE1_VDEC1_CS] = mmDCORE1_VDEC1_CS_STM_BASE,
[GAUDI2_STM_DCORE2_HMMU0_CS] = mmDCORE2_HMMU0_CS_STM_BASE,
[GAUDI2_STM_DCORE2_HMMU1_CS] = mmDCORE2_HMMU1_CS_STM_BASE,
[GAUDI2_STM_DCORE2_HMMU2_CS] = mmDCORE2_HMMU2_CS_STM_BASE,
[GAUDI2_STM_DCORE2_HMMU3_CS] = mmDCORE2_HMMU3_CS_STM_BASE,
[GAUDI2_STM_DCORE2_MME_CTRL] = mmDCORE2_MME_CTRL_STM_BASE,
[GAUDI2_STM_DCORE2_MME_SBTE0] = mmDCORE2_MME_SBTE0_STM_BASE,
[GAUDI2_STM_DCORE2_MME_SBTE1] = mmDCORE2_MME_SBTE1_STM_BASE,
[GAUDI2_STM_DCORE2_MME_SBTE2] = mmDCORE2_MME_SBTE2_STM_BASE,
[GAUDI2_STM_DCORE2_MME_SBTE3] = mmDCORE2_MME_SBTE3_STM_BASE,
[GAUDI2_STM_DCORE2_MME_SBTE4] = mmDCORE2_MME_SBTE4_STM_BASE,
[GAUDI2_STM_DCORE2_MME_ACC] = mmDCORE2_MME_ACC_STM_BASE,
[GAUDI2_STM_DCORE2_SM] = mmDCORE2_SM_STM_BASE,
[GAUDI2_STM_DCORE2_EDMA0_CS] = mmDCORE2_EDMA0_CS_STM_BASE,
[GAUDI2_STM_DCORE2_EDMA1_CS] = mmDCORE2_EDMA1_CS_STM_BASE,
[GAUDI2_STM_DCORE2_VDEC0_CS] = mmDCORE2_VDEC0_CS_STM_BASE,
[GAUDI2_STM_DCORE2_VDEC1_CS] = mmDCORE2_VDEC1_CS_STM_BASE,
[GAUDI2_STM_DCORE3_HMMU0_CS] = mmDCORE3_HMMU0_CS_STM_BASE,
[GAUDI2_STM_DCORE3_HMMU1_CS] = mmDCORE3_HMMU1_CS_STM_BASE,
[GAUDI2_STM_DCORE3_HMMU2_CS] = mmDCORE3_HMMU2_CS_STM_BASE,
[GAUDI2_STM_DCORE3_HMMU3_CS] = mmDCORE3_HMMU3_CS_STM_BASE,
[GAUDI2_STM_DCORE3_MME_CTRL] = mmDCORE3_MME_CTRL_STM_BASE,
[GAUDI2_STM_DCORE3_MME_SBTE0] = mmDCORE3_MME_SBTE0_STM_BASE,
[GAUDI2_STM_DCORE3_MME_SBTE1] = mmDCORE3_MME_SBTE1_STM_BASE,
[GAUDI2_STM_DCORE3_MME_SBTE2] = mmDCORE3_MME_SBTE2_STM_BASE,
[GAUDI2_STM_DCORE3_MME_SBTE3] = mmDCORE3_MME_SBTE3_STM_BASE,
[GAUDI2_STM_DCORE3_MME_SBTE4] = mmDCORE3_MME_SBTE4_STM_BASE,
[GAUDI2_STM_DCORE3_MME_ACC] = mmDCORE3_MME_ACC_STM_BASE,
[GAUDI2_STM_DCORE3_SM] = mmDCORE3_SM_STM_BASE,
[GAUDI2_STM_DCORE3_EDMA0_CS] = mmDCORE3_EDMA0_CS_STM_BASE,
[GAUDI2_STM_DCORE3_EDMA1_CS] = mmDCORE3_EDMA1_CS_STM_BASE,
[GAUDI2_STM_DCORE3_VDEC0_CS] = mmDCORE3_VDEC0_CS_STM_BASE,
[GAUDI2_STM_DCORE3_VDEC1_CS] = mmDCORE3_VDEC1_CS_STM_BASE,
[GAUDI2_STM_PCIE] = mmPCIE_STM_BASE,
[GAUDI2_STM_PSOC] = mmPSOC_STM_BASE,
[GAUDI2_STM_PSOC_ARC0_CS] = mmPSOC_ARC0_CS_STM_BASE,
[GAUDI2_STM_PSOC_ARC1_CS] = mmPSOC_ARC1_CS_STM_BASE,
[GAUDI2_STM_PDMA0_CS] = mmPDMA0_CS_STM_BASE,
[GAUDI2_STM_PDMA1_CS] = mmPDMA1_CS_STM_BASE,
[GAUDI2_STM_CPU] = mmCPU_STM_BASE,
[GAUDI2_STM_PMMU_CS] = mmPMMU_CS_STM_BASE,
[GAUDI2_STM_ROT0_CS] = mmROT0_CS_STM_BASE,
[GAUDI2_STM_ROT1_CS] = mmROT1_CS_STM_BASE,
[GAUDI2_STM_ARC_FARM_CS] = mmARC_FARM_CS_STM_BASE,
[GAUDI2_STM_KDMA_CS] = mmKDMA_CS_STM_BASE,
[GAUDI2_STM_PCIE_VDEC0_CS] = mmPCIE_VDEC0_CS_STM_BASE,
[GAUDI2_STM_PCIE_VDEC1_CS] = mmPCIE_VDEC1_CS_STM_BASE,
[GAUDI2_STM_HBM0_MC0_CS] = mmHBM0_MC0_CS_STM_BASE,
[GAUDI2_STM_HBM0_MC1_CS] = mmHBM0_MC1_CS_STM_BASE,
[GAUDI2_STM_HBM1_MC0_CS] = mmHBM1_MC0_CS_STM_BASE,
[GAUDI2_STM_HBM1_MC1_CS] = mmHBM1_MC1_CS_STM_BASE,
[GAUDI2_STM_HBM2_MC0_CS] = mmHBM2_MC0_CS_STM_BASE,
[GAUDI2_STM_HBM2_MC1_CS] = mmHBM2_MC1_CS_STM_BASE,
[GAUDI2_STM_HBM3_MC0_CS] = mmHBM3_MC0_CS_STM_BASE,
[GAUDI2_STM_HBM3_MC1_CS] = mmHBM3_MC1_CS_STM_BASE,
[GAUDI2_STM_HBM4_MC0_CS] = mmHBM4_MC0_CS_STM_BASE,
[GAUDI2_STM_HBM4_MC1_CS] = mmHBM4_MC1_CS_STM_BASE,
[GAUDI2_STM_HBM5_MC0_CS] = mmHBM5_MC0_CS_STM_BASE,
[GAUDI2_STM_HBM5_MC1_CS] = mmHBM5_MC1_CS_STM_BASE,
[GAUDI2_STM_NIC0_DBG_0] = mmNIC0_DBG_STM_0_BASE,
[GAUDI2_STM_NIC0_DBG_1] = mmNIC0_DBG_STM_1_BASE,
[GAUDI2_STM_NIC1_DBG_0] = mmNIC1_DBG_STM_0_BASE,
[GAUDI2_STM_NIC1_DBG_1] = mmNIC1_DBG_STM_1_BASE,
[GAUDI2_STM_NIC2_DBG_0] = mmNIC2_DBG_STM_0_BASE,
[GAUDI2_STM_NIC2_DBG_1] = mmNIC2_DBG_STM_1_BASE,
[GAUDI2_STM_NIC3_DBG_0] = mmNIC3_DBG_STM_0_BASE,
[GAUDI2_STM_NIC3_DBG_1] = mmNIC3_DBG_STM_1_BASE,
[GAUDI2_STM_NIC4_DBG_0] = mmNIC4_DBG_STM_0_BASE,
[GAUDI2_STM_NIC4_DBG_1] = mmNIC4_DBG_STM_1_BASE,
[GAUDI2_STM_NIC5_DBG_0] = mmNIC5_DBG_STM_0_BASE,
[GAUDI2_STM_NIC5_DBG_1] = mmNIC5_DBG_STM_1_BASE,
[GAUDI2_STM_NIC6_DBG_0] = mmNIC6_DBG_STM_0_BASE,
[GAUDI2_STM_NIC6_DBG_1] = mmNIC6_DBG_STM_1_BASE,
[GAUDI2_STM_NIC7_DBG_0] = mmNIC7_DBG_STM_0_BASE,
[GAUDI2_STM_NIC7_DBG_1] = mmNIC7_DBG_STM_1_BASE,
[GAUDI2_STM_NIC8_DBG_0] = mmNIC8_DBG_STM_0_BASE,
[GAUDI2_STM_NIC8_DBG_1] = mmNIC8_DBG_STM_1_BASE,
[GAUDI2_STM_NIC9_DBG_0] = mmNIC9_DBG_STM_0_BASE,
[GAUDI2_STM_NIC9_DBG_1] = mmNIC9_DBG_STM_1_BASE,
[GAUDI2_STM_NIC10_DBG_0] = mmNIC10_DBG_STM_0_BASE,
[GAUDI2_STM_NIC10_DBG_1] = mmNIC10_DBG_STM_1_BASE,
[GAUDI2_STM_NIC11_DBG_0] = mmNIC11_DBG_STM_0_BASE,
[GAUDI2_STM_NIC11_DBG_1] = mmNIC11_DBG_STM_1_BASE
};
static u64 debug_etf_regs[GAUDI2_ETF_LAST + 1] = {
[GAUDI2_ETF_DCORE0_TPC0_EML] = mmDCORE0_TPC0_EML_ETF_BASE,
[GAUDI2_ETF_DCORE0_TPC1_EML] = mmDCORE0_TPC1_EML_ETF_BASE,
[GAUDI2_ETF_DCORE0_TPC2_EML] = mmDCORE0_TPC2_EML_ETF_BASE,
[GAUDI2_ETF_DCORE0_TPC3_EML] = mmDCORE0_TPC3_EML_ETF_BASE,
[GAUDI2_ETF_DCORE0_TPC4_EML] = mmDCORE0_TPC4_EML_ETF_BASE,
[GAUDI2_ETF_DCORE0_TPC5_EML] = mmDCORE0_TPC5_EML_ETF_BASE,
[GAUDI2_ETF_DCORE0_TPC6_EML] = mmDCORE0_TPC6_EML_ETF_BASE,
[GAUDI2_ETF_DCORE1_TPC0_EML] = mmDCORE1_TPC0_EML_ETF_BASE,
[GAUDI2_ETF_DCORE1_TPC1_EML] = mmDCORE1_TPC1_EML_ETF_BASE,
[GAUDI2_ETF_DCORE1_TPC2_EML] = mmDCORE1_TPC2_EML_ETF_BASE,
[GAUDI2_ETF_DCORE1_TPC3_EML] = mmDCORE1_TPC3_EML_ETF_BASE,
[GAUDI2_ETF_DCORE1_TPC4_EML] = mmDCORE1_TPC4_EML_ETF_BASE,
[GAUDI2_ETF_DCORE1_TPC5_EML] = mmDCORE1_TPC5_EML_ETF_BASE,
[GAUDI2_ETF_DCORE2_TPC0_EML] = mmDCORE2_TPC0_EML_ETF_BASE,
[GAUDI2_ETF_DCORE2_TPC1_EML] = mmDCORE2_TPC1_EML_ETF_BASE,
[GAUDI2_ETF_DCORE2_TPC2_EML] = mmDCORE2_TPC2_EML_ETF_BASE,
[GAUDI2_ETF_DCORE2_TPC3_EML] = mmDCORE2_TPC3_EML_ETF_BASE,
[GAUDI2_ETF_DCORE2_TPC4_EML] = mmDCORE2_TPC4_EML_ETF_BASE,
[GAUDI2_ETF_DCORE2_TPC5_EML] = mmDCORE2_TPC5_EML_ETF_BASE,
[GAUDI2_ETF_DCORE3_TPC0_EML] = mmDCORE3_TPC0_EML_ETF_BASE,
[GAUDI2_ETF_DCORE3_TPC1_EML] = mmDCORE3_TPC1_EML_ETF_BASE,
[GAUDI2_ETF_DCORE3_TPC2_EML] = mmDCORE3_TPC2_EML_ETF_BASE,
[GAUDI2_ETF_DCORE3_TPC3_EML] = mmDCORE3_TPC3_EML_ETF_BASE,
[GAUDI2_ETF_DCORE3_TPC4_EML] = mmDCORE3_TPC4_EML_ETF_BASE,
[GAUDI2_ETF_DCORE3_TPC5_EML] = mmDCORE3_TPC5_EML_ETF_BASE,
[GAUDI2_ETF_DCORE0_HMMU0_CS] = mmDCORE0_HMMU0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE0_HMMU1_CS] = mmDCORE0_HMMU1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE0_HMMU2_CS] = mmDCORE0_HMMU2_CS_ETF_BASE,
[GAUDI2_ETF_DCORE0_HMMU3_CS] = mmDCORE0_HMMU3_CS_ETF_BASE,
[GAUDI2_ETF_DCORE0_MME_CTRL] = mmDCORE0_MME_CTRL_ETF_BASE,
[GAUDI2_ETF_DCORE0_MME_SBTE0] = mmDCORE0_MME_SBTE0_ETF_BASE,
[GAUDI2_ETF_DCORE0_MME_SBTE1] = mmDCORE0_MME_SBTE1_ETF_BASE,
[GAUDI2_ETF_DCORE0_MME_SBTE2] = mmDCORE0_MME_SBTE2_ETF_BASE,
[GAUDI2_ETF_DCORE0_MME_SBTE3] = mmDCORE0_MME_SBTE3_ETF_BASE,
[GAUDI2_ETF_DCORE0_MME_SBTE4] = mmDCORE0_MME_SBTE4_ETF_BASE,
[GAUDI2_ETF_DCORE0_MME_ACC] = mmDCORE0_MME_ACC_ETF_BASE,
[GAUDI2_ETF_DCORE0_SM] = mmDCORE0_SM_ETF_BASE,
[GAUDI2_ETF_DCORE0_EDMA0_CS] = mmDCORE0_EDMA0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE0_EDMA1_CS] = mmDCORE0_EDMA1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE0_VDEC0_CS] = mmDCORE0_VDEC0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE0_VDEC1_CS] = mmDCORE0_VDEC1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE1_HMMU0_CS] = mmDCORE1_HMMU0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE1_HMMU1_CS] = mmDCORE1_HMMU1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE1_HMMU2_CS] = mmDCORE1_HMMU2_CS_ETF_BASE,
[GAUDI2_ETF_DCORE1_HMMU3_CS] = mmDCORE1_HMMU3_CS_ETF_BASE,
[GAUDI2_ETF_DCORE1_MME_CTRL] = mmDCORE1_MME_CTRL_ETF_BASE,
[GAUDI2_ETF_DCORE1_MME_SBTE0] = mmDCORE1_MME_SBTE0_ETF_BASE,
[GAUDI2_ETF_DCORE1_MME_SBTE1] = mmDCORE1_MME_SBTE1_ETF_BASE,
[GAUDI2_ETF_DCORE1_MME_SBTE2] = mmDCORE1_MME_SBTE2_ETF_BASE,
[GAUDI2_ETF_DCORE1_MME_SBTE3] = mmDCORE1_MME_SBTE3_ETF_BASE,
[GAUDI2_ETF_DCORE1_MME_SBTE4] = mmDCORE1_MME_SBTE4_ETF_BASE,
[GAUDI2_ETF_DCORE1_MME_ACC] = mmDCORE1_MME_ACC_ETF_BASE,
[GAUDI2_ETF_DCORE1_SM] = mmDCORE1_SM_ETF_BASE,
[GAUDI2_ETF_DCORE1_EDMA0_CS] = mmDCORE1_EDMA0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE1_EDMA1_CS] = mmDCORE1_EDMA1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE1_VDEC0_CS] = mmDCORE1_VDEC0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE1_VDEC1_CS] = mmDCORE1_VDEC1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE2_HMMU0_CS] = mmDCORE2_HMMU0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE2_HMMU1_CS] = mmDCORE2_HMMU1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE2_HMMU2_CS] = mmDCORE2_HMMU2_CS_ETF_BASE,
[GAUDI2_ETF_DCORE2_HMMU3_CS] = mmDCORE2_HMMU3_CS_ETF_BASE,
[GAUDI2_ETF_DCORE2_MME_CTRL] = mmDCORE2_MME_CTRL_ETF_BASE,
[GAUDI2_ETF_DCORE2_MME_SBTE0] = mmDCORE2_MME_SBTE0_ETF_BASE,
[GAUDI2_ETF_DCORE2_MME_SBTE1] = mmDCORE2_MME_SBTE1_ETF_BASE,
[GAUDI2_ETF_DCORE2_MME_SBTE2] = mmDCORE2_MME_SBTE2_ETF_BASE,
[GAUDI2_ETF_DCORE2_MME_SBTE3] = mmDCORE2_MME_SBTE3_ETF_BASE,
[GAUDI2_ETF_DCORE2_MME_SBTE4] = mmDCORE2_MME_SBTE4_ETF_BASE,
[GAUDI2_ETF_DCORE2_MME_ACC] = mmDCORE2_MME_ACC_ETF_BASE,
[GAUDI2_ETF_DCORE2_SM] = mmDCORE2_SM_ETF_BASE,
[GAUDI2_ETF_DCORE2_EDMA0_CS] = mmDCORE2_EDMA0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE2_EDMA1_CS] = mmDCORE2_EDMA1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE2_VDEC0_CS] = mmDCORE2_VDEC0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE2_VDEC1_CS] = mmDCORE2_VDEC1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE3_HMMU0_CS] = mmDCORE3_HMMU0_CS_ETF_BASE,
[GAUDI2_ETF_DCORE3_HMMU1_CS] = mmDCORE3_HMMU1_CS_ETF_BASE,
[GAUDI2_ETF_DCORE3_HMMU2_CS] = mmDCORE3_HMMU2_CS_ETF_BASE,
[GAUDI2_ETF_DCORE3_HMMU3_CS] = mmDCORE3_HMMU3_CS_ETF_BASE,
[GAUDI2_ETF_DCORE3_MME_CTRL] = mmDCORE3_MME_CTRL_ETF_BASE,
[GAUDI2_ETF_DCORE3_MME_SBTE0] = mmDCORE3_MME_SBTE0_ETF_BASE,
[GAUDI2_ETF_DCORE3_MME_SBTE1] = mmDCORE3_MME_SBTE1_ETF_BASE,
[GAUDI2_ETF_DCORE3_MME_SBTE2] = mmDCORE3_MME_SBTE2_ETF_BASE,
[GAUDI2_ETF_DCORE3_MME_SBTE3] = mmDCORE3_MME_SBTE3_ETF_BASE,
[GAUDI2_ETF_DCORE3_MME_SBTE4] = mmDCORE3_MME_SBTE4_ETF_BASE,
[GAUDI2_ETF_DCORE3_MME_ACC] = mmDCORE3_MME_ACC_ETF_BASE,
[GAUDI2_ETF_DCORE3_SM] = mmDCORE3_S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_0] = mmNIC6_DBG_ETF_0_BASE,
[GAUDI2_ETF_NIC6_DBG_1] = mmNIC6_DBG_ETF_1_BASE,
[GAUDI2_ETF_NIC7_DBG_0] = mmNIC7_DBG_ETF_0_BASE,
[GAUDI2_ETF_NIC7_DBG_1] = mmNIC7_DBG_ETF_1_BASE,
[GAUDI2_ETF_NIC8_DBG_0] = mmNIC8_DBG_ETF_0_BASE,
[GAUDI2_ETF_NIC8_DBG_1] = mmNIC8_DBG_ETF_1_BASE,
[GAUDI2_ETF_NIC9_DBG_0] = mmNIC9_DBG_ETF_0_BASE,
[GAUDI2_ETF_NIC9_DBG_1] = mmNIC9_DBG_ETF_1_BASE,
[GAUDI2_ETF_NIC10_DBG_0] = mmNIC10_DBG_ETF_0_BASE,
[GAUDI2_ETF_NIC10_DBG_1] = mmNIC10_DBG_ETF_1_BASE,
[GAUDI2_ETF_NIC11_DBG_0] = mmNIC11_DBG_ETF_0_BASE,
[GAUDI2_ETF_NIC11_DBG_1] = mmNIC11_DBG_ETF_1_BASE
};
static u64 debug_funnel_regs[GAUDI2_FUNNEL_LAST + 1] = {
[GAUDI2_FUNNEL_DCORE0_TPC0_EML] = mmDCORE0_TPC0_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE0_TPC1_EML] = mmDCORE0_TPC1_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE0_TPC2_EML] = mmDCORE0_TPC2_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE0_TPC3_EML] = mmDCORE0_TPC3_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE0_TPC4_EML] = mmDCORE0_TPC4_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE0_TPC5_EML] = mmDCORE0_TPC5_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE0_TPC6_EML] = mmDCORE0_TPC6_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE1_TPC0_EML] = mmDCORE1_TPC0_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE1_TPC1_EML] = mmDCORE1_TPC1_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE1_TPC2_EML] = mmDCORE1_TPC2_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE1_TPC3_EML] = mmDCORE1_TPC3_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE1_TPC4_EML] = mmDCORE1_TPC4_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE1_TPC5_EML] = mmDCORE1_TPC5_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE2_TPC0_EML] = mmDCORE2_TPC0_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE2_TPC1_EML] = mmDCORE2_TPC1_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE2_TPC2_EML] = mmDCORE2_TPC2_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE2_TPC3_EML] = mmDCORE2_TPC3_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE2_TPC4_EML] = mmDCORE2_TPC4_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE2_TPC5_EML] = mmDCORE2_TPC5_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE3_TPC0_EML] = mmDCORE3_TPC0_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE3_TPC1_EML] = mmDCORE3_TPC1_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE3_TPC2_EML] = mmDCORE3_TPC2_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE3_TPC3_EML] = mmDCORE3_TPC3_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE3_TPC4_EML] = mmDCORE3_TPC4_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE3_TPC5_EML] = mmDCORE3_TPC5_EML_FUNNEL_BASE,
[GAUDI2_FUNNEL_DCORE0_XFT] = m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mDCORE0_TPC0_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE0_TPC0_EML_2] = mmDCORE0_TPC0_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE0_TPC0_EML_3] = mmDCORE0_TPC0_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE0_TPC1_EML_0] = mmDCORE0_TPC1_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE0_TPC1_EML_1] = mmDCORE0_TPC1_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE0_TPC1_EML_2] = mmDCORE0_TPC1_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE0_TPC1_EML_3] = mmDCORE0_TPC1_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE0_TPC2_EML_0] = mmDCORE0_TPC2_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE0_TPC2_EML_1] = mmDCORE0_TPC2_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE0_TPC2_EML_2] = mmDCORE0_TPC2_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE0_TPC2_EML_3] = mmDCORE0_TPC2_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE0_TPC3_EML_0] = mmDCORE0_TPC3_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE0_TPC3_EML_1] = mmDCORE0_TPC3_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE0_TPC3_EML_2] = mmDCORE0_TPC3_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE0_TPC3_EML_3] = mmDCORE0_TPC3_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE0_TPC4_EML_0] = mmDCORE0_TPC4_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE0_TPC4_EML_1] = mmDCORE0_TPC4_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE0_TPC4_EML_2] = mmDCORE0_TPC4_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE0_TPC4_EML_3] = mmDCORE0_TPC4_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE0_TPC5_EML_0] = mmDCORE0_TPC5_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE0_TPC5_EML_1] = mmDCORE0_TPC5_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE0_TPC5_EML_2] = mmDCORE0_TPC5_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE0_TPC5_EML_3] = mmDCORE0_TPC5_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE0_TPC6_EML_0] = mmDCORE0_TPC6_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE0_TPC6_EML_1] = mmDCORE0_TPC6_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE0_TPC6_EML_2] = mmDCORE0_TPC6_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE0_TPC6_EML_3] = mmDCORE0_TPC6_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE1_TPC0_EML_0] = mmDCORE1_TPC0_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE1_TPC0_EML_1] = mmDCORE1_TPC0_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE1_TPC0_EML_2] = mmDCORE1_TPC0_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE1_TPC0_EML_3] = mmDCORE1_TPC0_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE1_TPC1_EML_0] = mmDCORE1_TPC1_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE1_TPC1_EML_1] = mmDCORE1_TPC1_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE1_TPC1_EML_2] = mmDCORE1_TPC1_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE1_TPC1_EML_3] = mmDCORE1_TPC1_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE1_TPC2_EML_0] = mmDCORE1_TPC2_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE1_TPC2_EML_1] = mmDCORE1_TPC2_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE1_TPC2_EML_2] = mmDCORE1_TPC2_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE1_TPC2_EML_3] = mmDCORE1_TPC2_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE1_TPC3_EML_0] = mmDCORE1_TPC3_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE1_TPC3_EML_1] = mmDCORE1_TPC3_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE1_TPC3_EML_2] = mmDCORE1_TPC3_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE1_TPC3_EML_3] = mmDCORE1_TPC3_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE1_TPC4_EML_0] = mmDCORE1_TPC4_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE1_TPC4_EML_1] = mmDCORE1_TPC4_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE1_TPC4_EML_2] = mmDCORE1_TPC4_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE1_TPC4_EML_3] = mmDCORE1_TPC4_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE1_TPC5_EML_0] = mmDCORE1_TPC5_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE1_TPC5_EML_1] = mmDCORE1_TPC5_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE1_TPC5_EML_2] = mmDCORE1_TPC5_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE1_TPC5_EML_3] = mmDCORE1_TPC5_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE2_TPC0_EML_0] = mmDCORE2_TPC0_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE2_TPC0_EML_1] = mmDCORE2_TPC0_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE2_TPC0_EML_2] = mmDCORE2_TPC0_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE2_TPC0_EML_3] = mmDCORE2_TPC0_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE2_TPC1_EML_0] = mmDCORE2_TPC1_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE2_TPC1_EML_1] = mmDCORE2_TPC1_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE2_TPC1_EML_2] = mmDCORE2_TPC1_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE2_TPC1_EML_3] = mmDCORE2_TPC1_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE2_TPC2_EML_0] = mmDCORE2_TPC2_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE2_TPC2_EML_1] = mmDCORE2_TPC2_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE2_TPC2_EML_2] = mmDCORE2_TPC2_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE2_TPC2_EML_3] = mmDCORE2_TPC2_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE2_TPC3_EML_0] = mmDCORE2_TPC3_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE2_TPC3_EML_1] = mmDCORE2_TPC3_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE2_TPC3_EML_2] = mmDCORE2_TPC3_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE2_TPC3_EML_3] = mmDCORE2_TPC3_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE2_TPC4_EML_0] = mmDCORE2_TPC4_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE2_TPC4_EML_1] = mmDCORE2_TPC4_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE2_TPC4_EML_2] = mmDCORE2_TPC4_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE2_TPC4_EML_3] = mmDCORE2_TPC4_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE2_TPC5_EML_0] = mmDCORE2_TPC5_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE2_TPC5_EML_1] = mmDCORE2_TPC5_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE2_TPC5_EML_2] = mmDCORE2_TPC5_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE2_TPC5_EML_3] = mmDCORE2_TPC5_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE3_TPC0_EML_0] = mmDCORE3_TPC0_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE3_TPC0_EML_1] = mmDCORE3_TPC0_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE3_TPC0_EML_2] = mmDCORE3_TPC0_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE3_TPC0_EML_3] = mmDCORE3_TPC0_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE3_TPC1_EML_0] = mmDCORE3_TPC1_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE3_TPC1_EML_1] = mmDCORE3_TPC1_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE3_TPC1_EML_2] = mmDCORE3_TPC1_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE3_TPC1_EML_3] = mmDCORE3_TPC1_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE3_TPC2_EML_0] = mmDCORE3_TPC2_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE3_TPC2_EML_1] = mmDCORE3_TPC2_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE3_TPC2_EML_2] = mmDCORE3_TPC2_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE3_TPC2_EML_3] = mmDCORE3_TPC2_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE3_TPC3_EML_0] = mmDCORE3_TPC3_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE3_TPC3_EML_1] = mmDCORE3_TPC3_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE3_TPC3_EML_2] = mmDCORE3_TPC3_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE3_TPC3_EML_3] = mmDCORE3_TPC3_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE3_TPC4_EML_0] = mmDCORE3_TPC4_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE3_TPC4_EML_1] = mmDCORE3_TPC4_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE3_TPC4_EML_2] = mmDCORE3_TPC4_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE3_TPC4_EML_3] = mmDCORE3_TPC4_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE3_TPC5_EML_0] = mmDCORE3_TPC5_EML_BUSMON_0_BASE,
[GAUDI2_BMON_DCORE3_TPC5_EML_1] = mmDCORE3_TPC5_EML_BUSMON_1_BASE,
[GAUDI2_BMON_DCORE3_TPC5_EML_2] = mmDCORE3_TPC5_EML_BUSMON_2_BASE,
[GAUDI2_BMON_DCORE3_TPC5_EML_3] = mmDCORE3_TPC5_EML_BUSMON_3_BASE,
[GAUDI2_BMON_DCORE0_HMMU0_0] = mmDCORE0_HMMU0_BMON_0_BASE,
[GAUDI2_BMON_DCORE0_HMMU0_1] = mmDCORE0_HMMU0_BMON_1_BASE,
[GAUDI2_BMON_DCORE0_HMMU0_3] = mmDCORE0_HMMU0_BMON_3_BASE,
[GAUDI2_BMON_DCORE0_HMMU0_2] = mmDCORE0_HMMU0_BMON_2_BASE,
[GAUDI2_BMON_DCORE0_HMMU0_4] = mmDCORE0_HMMU0_BMON_4_BASE,
[GAUDI2_BMON_DCORE0_HMMU1_0] = mmDCORE0_HMMU1_BMON_0_BASE,
[GAUDI2_BMON_DCORE0_HMMU1_1] = mmDCORE0_HMMU1_BMON_1_BASE,
[GAUDI2_BMON_DCORE0_HMMU1_3] = mmDCORE0_HMMU1_BMON_3_BASE,
[GAUDI2_BMON_DCORE0_HMMU1_2] = mmDCORE0_HMMU1_BMON_2_BASE,
[GAUDI2_BMON_DCORE0_HMMU1_4] = mmDCORE0_HMMU1_BMON_4_BASE,
[GAUDI2_BMON_DCORE0_HMMU2_0] = mmDCORE0_HMMU2_BMON_0_BASE,
[GAUDI2_BMON_DCORE0_HMMU2_1] = mmDCORE0_HMMU2_BMON_1_BASE,
[GAUDI2_BMON_DCORE0_HMMU2_3] = mmDCORE0_HMMU2_BMON_3_BASE,
[GAUDI2_BMON_DCORE0_HMMU2_2] = mmDCORE0_HMMU2_BMON_2_BASE,
[GAUDI2_BMON_DCORE0_HMMU2_4] = mmDCORE0_HMMU2_BMON_4_BASE,
[GAUDI2_BMON_DCORE0_HMMU3_0] = mmDCORE0_HMMU3_BMON_0_BASE,
[GAUDI2_BMON_DCORE0_HMMU3_1] = mmDCORE0_HMMU3_BMON_1_BASE,
[GAUDI2_BMON_DCORE0_HMMU3_3] = mmDCORE0_HMMU3_BMON_3_BASE,
[GAUDI2_BMON_DCORE0_HMMU3_2] = mmDCORE0_HMMU3_BMON_2_BASE,
[GAUDI2_BMON_DCORE0_HMMU3_4] = mmDCORE0_HMMU3_BMON_4_BASE,
[GAUDI2_BMON_DCORE0_MME_CTRL_0] = mmDCORE0_MME_CTRL_BMON0_BASE,
[GAUDI2_BMON_DCORE0_MME_CTRL_1] = mmDCORE0_MME_CTRL_BMON1_BASE,
[GAUDI2_BMON_DCORE0_MME_CTRL_2] = mmDCORE0_MME_CTRL_BMON2_BASE,
[GAUDI2_BMON_DCORE0_MME_CTRL_3] = mmDCORE0_MME_CTRL_BMON3_BASE,
[GAUDI2_BMON_DCORE0_MME_SBTE0_0] = mmDCORE0_MME_SBTE0_BMON0_BASE,
[GAUDI2_BMON_DCORE0_MME_SBTE1_0] = mmDCORE0_MME_SBTE1_BMON0_BASE,
[GAUDI2_BMON_DCORE0_MME_SBTE2_0] = mmDCORE0_MME_SBTE2_BMON0_BASE,
[GAUDI2_BMON_DCORE0_MME_SBTE3_0] = mmDCORE0_MME_SBTE3_BMON0_BASE,
[GAUDI2_BMON_DCORE0_MME_SBTE4_0] = mmDCORE0_MME_SBTE4_BMON0_BASE,
[GAUDI2_BMON_DCORE0_MME_ACC_0] = mmDCORE0_MME_ACC_BMON0_BASE,
[GAUDI2_BMON_DCORE0_MME_ACC_1] = mmDCORE0_MME_ACC_BMON1_BASE,
[GAUDI2_BMON_DCORE0_SM] = mmDCORE0_SM_BMON_BASE,
[GAUDI2_BMON_DCORE0_SM_1] = mmDCORE0_SM_BMON1_BASE,
[GAUDI2_BMON_DCORE0_EDMA0_0] = mmDCORE0_EDMA0_BMON_0_BASE,
[GAUDI2_BMON_DCORE0_EDMA0_1] = mmDCORE0_EDMA0_BMON_1_BASE,
[GAUDI2_BMON_DCORE0_EDMA1_0] = mmDCORE0_EDMA1_BMON_0_BASE,
[GAUDI2_BMON_DCORE0_EDMA1_1] = mmDCORE0_EDMA1_BMON_1_BASE,
[GAUDI2_BMON_DCORE0_VDEC0_0] = mmDCORE0_VDEC0_BMON_0_BASE,
[GAUDI2_BMON_DCORE0_VDEC0_1] = mmDCORE0_VDEC0_BMON_1_BASE,
[GAUDI2_BMON_DCORE0_VDEC0_2] = mmDCORE0_VDEC0_BMON_2_BASE,
[GAUDI2_BMON_DCORE0_VDEC1_0] = mmDCORE0_VDEC1_BMON_0_BASE,
[GAUDI2_BMON_DCORE0_VDEC1_1] = mmDCORE0_VDEC1_BMON_1_BASE,
[GAUDI2_BMON_DCORE0_VDEC1_2] = mmDCORE0_VDEC1_BMON_2_BASE,
[GAUDI2_BMON_DCORE1_HMMU0_0] = mmDCORE1_HMMU0_BMON_0_BASE,
[GAUDI2_BMON_DCORE1_HMMU0_1] = mmDCORE1_HMMU0_BMON_1_BASE,
[GAUDI2_BMON_DCORE1_HMMU0_3] = mmDCORE1_HMMU0_BMON_3_BASE,
[GAUDI2_BMON_DCORE1_HMMU0_2] = mmDCORE1_HMMU0_BMON_2_BASE,
[GAUDI2_BMON_DCORE1_HMMU0_4] = mmDCORE1_HMMU0_BMON_4_BASE,
[GAUDI2_BMON_DCORE1_HMMU1_0] = mmDCORE1_HMMU1_BMON_0_BASE,
[GAUDI2_BMON_DCORE1_HMMU1_1] = mmDCORE1_HMMU1_BMON_1_BASE,
[GAUDI2_BMON_DCORE1_HMMU1_3] = mmDCORE1_HMMU1_BMON_3_BASE,
[GAUDI2_BMON_DCORE1_HMMU1_2] = mmDCORE1_HMMU1_BMON_2_BASE,
[GAUDI2_BMON_DCORE1_HMMU1_4] = mmDCORE1_HMMU1_BMON_4_BASE,
[GAUDI2_BMON_DCORE1_HMMU2_0] = mmDCORE1_HMMU2_BMON_0_BASE,
[GAUDI2_BMON_DCORE1_HMMU2_1] = mmDCORE1_HMMU2_BMON_1_BASE,
[GAUDI2_BMON_DCORE1_HMMU2_3] = mmDCORE1_HMMU2_BMON_3_BASE,
[GAUDI2_BMON_DCORE1_HMMU2_2] = mmDCORE1_HMMU2_BMON_2_BASE,
[GAUDI2_BMON_DCORE1_HMMU2_4] = mmDCORE1_HMMU2_BMON_4_BASE,
[GAUDI2_BMON_DCORE1_HMMU3_0] = mmDCORE1_HMMU3_BMON_0_BASE,
[GAUDI2_BMON_DCORE1_HMMU3_1] = mmDCORE1_HMMU3_BMON_1_BASE,
[GAUDI2_BMON_DCORE1_HMMU3_3] = mmDCORE1_HMMU3_BMON_3_BASE,
[GAUDI2_BMON_DCORE1_HMMU3_2] = mmDCORE1_HMMU3_BMON_2_BASE,
[GAUDI2_BMON_DCORE1_HMMU3_4] = mmDCORE1_HMMU3_BMON_4_BASE,
[GAUDI2_BMON_DCORE1_MME_CTRL_0] = mmDCORE1_MME_CTRL_BMON0_BASE,
[GAUDI2_BMON_DCORE1_MME_CTRL_1] = mmDCORE1_MME_CTRL_BMON1_BASE,
[GAUDI2_BMON_DCORE1_MME_CTRL_2] = mmDCORE1_MME_CTRL_BMON2_BASE,
[GAUDI2_BMON_DCORE1_MME_CTRL_3] = mmDCORE1_MME_CTRL_BMON3_BASE,
[GAUDI2_BMON_DCORE1_MME_SBTE0_0] = mmDCORE1_MME_SBTE0_BMON0_BASE,
[GAUDI2_BMON_DCORE1_MME_SBTE1_0] = mmDCORE1_MME_SBTE1_BMON0_BASE,
[GAUDI2_BMON_DCORE1_MME_SBTE2_0] = mmDCORE1_MME_SBTE2_BMON0_BASE,
[GAUDI2_BMON_DCORE1_MME_SBTE3_0] = mmDCORE1_MME_SBTE3_BMON0_BASE,
[GAUDI2_BMON_DCORE1_MME_SBTE4_0] = mmDCORE1_MME_SBTE4_BMON0_BASE,
[GAUDI2_BMON_DCORE1_MME_ACC_0] = mmDCORE1_MME_ACC_BMON0_BASE,
[GAUDI2_BMON_DCORE1_MME_ACC_1] = mmDCORE1_MME_ACC_BMON1_BASE,
[GAUDI2_BMON_DCORE1_SM] = mmDCORE1_SM_BMON_BASE,
[GAUDI2_BMON_DCORE1_SM_1] = mmDCORE1_SM_BMON1_BASE,
[GAUDI2_BMON_DCORE1_EDMA0_0] = mmDCORE1_EDMA0_BMON_0_BASE,
[GAUDI2_BMON_DCORE1_EDMA0_1] = mmDCORE1_EDMA0_BMON_1_BASE,
[GAUDI2_BMON_DCORE1_EDMA1_0] = mmDCORE1_EDMA1_BMON_0_BASE,
[GAUDI2_BMON_DCORE1_EDMA1_1] = mmDCORE1_EDMA1_BMON_1_BASE,
[GAUDI2_BMON_DCORE1_VDEC0_0] = mmDCORE1_VDEC0_BMON_0_BASE,
[GAUDI2_BMON_DCORE1_VDEC0_1] = mmDCORE1_VDEC0_BMON_1_BASE,
[GAUDI2_BMON_DCORE1_VDEC0_2] = mmDCORE1_VDEC0_BMON_2_BASE,
[GAUDI2_BMON_DCORE1_VDEC1_0] = mmDCORE1_VDEC1_BMON_0_BASE,
[GAUDI2_BMON_DCORE1_VDEC1_1] = mmDCORE1_VDEC1_BMON_1_BASE,
[GAUDI2_BMON_DCORE1_VDEC1_2] = mmDCORE1_VDEC1_BMON_2_BASE,
[GAUDI2_BMON_DCORE2_HMMU0_0] = mmDCORE2_HMMU0_BMON_0_BASE,
[GAUDI2_BMON_DCORE2_HMMU0_1] = mmDCORE2_HMMU0_BMON_1_BASE,
[GAUDI2_BMON_DCORE2_HMMU0_3] = mmDCORE2_HMMU0_BMON_3_BASE,
[GAUDI2_BMON_DCORE2_HMMU0_2] = mmDCORE2_HMMU0_BMON_2_BASE,
[GAUDI2_BMON_DCORE2_HMMU0_4] = mmDCORE2_HMMU0_BMON_4_BASE,
[GAUDI2_BMON_DCORE2_HMMU1_0] = mmDCORE2_HMMU1_BMON_0_BASE,
[GAUDI2_BMON_DCORE2_HMMU1_1] = mmDCORE2_HMMU1_BMON_1_BASE,
[GAUDI2_BMON_DCORE2_HMMU1_3] = mmDCORE2_HMMU1_BMON_3_BASE,
[GAUDI2_BMON_DCORE2_HMMU1_2] = mmDCORE2_HMMU1_BMON_2_BASE,
[GAUDI2_BMON_DCORE2_HMMU1_4] = mmDCORE2_HMMU1_BMON_4_BASE,
[GAUDI2_BMON_DCORE2_HMMU2_0] = mmDCORE2_HMMU2_BMON_0_BASE,
[GAUDI2_BMON_DCORE2_HMMU2_1] = mmDCORE2_HMMU2_BMON_1_BASE,
[GAUDI2_BMON_DCORE2_HMMU2_3] = mmDCORE2_HMMU2_BMON_3_BASE,
[GAUDI2_BMON_DCORE2_HMMU2_2] = mmDCORE2_HMMU2_BMON_2_BASE,
[GAUDI2_BMON_DCORE2_HMMU2_4] = mmDCORE2_HMMU2_BMON_4_BASE,
[GAUDI2_BMON_DCORE2_HMMU3_0] = mmDCORE2_HMMU3_BMON_0_BASE,
[GAUDI2_BMON_DCORE2_HMMU3_1] = mmDCORE2_HMMU3_BMON_1_BASE,
[GAUDI2_BMON_DCORE2_HMMU3_3] = mmDCORE2_HMMU3_BMON_3_BASE,
[GAUDI2_BMON_DCORE2_HMMU3_2] = mmDCORE2_HMMU3_BMON_2_BASE,
[GAUDI2_BMON_DCORE2_HMMU3_4] = mmDCORE2_HMMU3_BMON_4_BASE,
[GAUDI2_BMON_DCORE2_MME_CTRL_0] = mmDCORE2_MME_CTRL_BMON0_BASE,
[GAUDI2_BMON_DCORE2_MME_CTRL_1] = mmDCORE2_MME_CTRL_BMON1_BASE,
[GAUDI2_BMON_DCORE2_MME_CTRL_2] = mmDCORE2_MME_CTRL_BMON2_BASE,
[GAUDI2_BMON_DCORE2_MME_CTRL_3] = mmDCORE2_MME_CTRL_BMON3_BASE,
[GAUDI2_BMON_DCORE2_MME_SBTE0_0] = mmDCORE2_MME_SBTE0_BMON0_BASE,
[GAUDI2_BMON_DCORE2_MME_SBTE1_0] = mmDCORE2_MME_SBTE1_BMON0_BASE,
[GAUDI2_BMON_DCORE2_MME_SBTE2_0] = mmDCORE2_MME_SBTE2_BMON0_BASE,
[GAUDI2_BMON_DCORE2_MME_SBTE3_0] = mmDCORE2_MME_SBTE3_BMON0_BASE,
[GAUDI2_BMON_DCORE2_MME_SBTE4_0] = mmDCORE2_MME_SBTE4_BMON0_BASE,
[GAUDI2_BMON_DCORE2_MME_ACC_0] = mmDCORE2_MME_ACC_BMON0_BASE,
[GAUDI2_BMON_DCORE2_MME_ACC_1] = mmDCORE2_MME_ACC_BMON1_BASE,
[GAUDI2_BMON_DCORE2_SM] = mmDCORE2_SM_BMON_BASE,
[GAUDI2_BMON_DCORE2_SM_1] = mmDCORE2_SM_BMON1_BASE,
[GAUDI2_BMON_DCORE2_EDMA0_0] = mmDCORE2_EDMA0_BMON_0_BASE,
[GAUDI2_BMON_DCORE2_EDMA0_1] = mmDCORE2_EDMA0_BMON_1_BASE,
[GAUDI2_BMON_DCORE2_EDMA1_0] = mmDCORE2_EDMA1_BMON_0_BASE,
[GAUDI2_BMON_DCORE2_EDMA1_1] = mmDCORE2_EDMA1_BMON_1_BASE,
[GAUDI2_BMON_DCORE2_VDEC0_0] = mmDCORE2_VDEC0_BMON_0_BASE,
[GAUDI2_BMON_DCORE2_VDEC0_1] = mmDCORE2_VDEC0_BMON_1_BASE,
[GAUDI2_BMON_DCORE2_VDEC0_2] = mmDCORE2_VDEC0_BMON_2_BASE,
[GAUDI2_BMON_DCORE2_VDEC1_0] = mmDCORE2_VDEC1_BMON_0_BASE,
[GAUDI2_BMON_DCORE2_VDEC1_1] = mmDCORE2_VDEC1_BMON_1_BASE,
[GAUDI2_BMON_DCORE2_VDEC1_2] = mmDCORE2_VDEC1_BMON_2_BASE,
[GAUDI2_BMON_DCORE3_HMMU0_0] = mmDCORE3_HMMU0_BMON_0_BASE,
[GAUDI2_BMON_DCORE3_HMMU0_1] = mmDCORE3_HMMU0_BMON_1_BASE,
[GAUDI2_BMON_DCORE3_HMMU0_3] = mmDCORE3_HMMU0_BMON_3_BASE,
[GAUDI2_BMON_DCORE3_HMMU0_2] = mmDCORE3_HMMU0_BMON_2_BASE,
[GAUDI2_BMON_DCORE3_HMMU0_4] = mmDCORE3_HMMU0_BMON_4_BASE,
[GAUDI2_BMON_DCORE3_HMMU1_0] = mmDCORE3_HMMU1_BMON_0_BASE,
[GAUDI2_BMON_DCORE3_HMMU1_1] = mmDCORE3_HMMU1_BMON_1_BASE,
[GAUDI2_BMON_DCORE3_HMMU1_3] = mmDCORE3_HMMU1_BMON_3_BASE,
[GAUDI2_BMON_DCORE3_HMMU1_2] = mmDCORE3_HMMU1_BMON_2_BASE,
[GAUDI2_BMON_DCORE3_HMMU1_4] = mmDCORE3_HMMU1_BMON_4_BASE,
[GAUDI2_BMON_DCORE3_HMMU2_0] = mmDCORE3_HMMU2_BMON_0_BASE,
[GAUDI2_BMON_DCORE3_HMMU2_1] = mmDCORE3_HMMU2_BMON_1_BASE,
[GAUDI2_BMON_DCORE3_HMMU2_3] = mmDCORE3_HMMU2_BMON_3_BASE,
[GAUDI2_BMON_DCORE3_HMMU2_2] = mmDCORE3_HMMU2_BMON_2_BASE,
[GAUDI2_BMON_DCORE3_HMMU2_4] = mmDCORE3_HMMU2_BMON_4_BASE,
[GAUDI2_BMON_DCORE3_HMMU3_0] = mmDCORE3_HMMU3_BMON_0_BASE,
[GAUDI2_BMON_DCORE3_HMMU3_1] = mmDCORE3_HMMU3_BMON_1_BASE,
[GAUDI2_BMON_DCORE3_HMMU3_3] = mmDCORE3_HMMU3_BMON_3_BASE,
[GAUDI2_BMON_DCORE3_HMMU3_2] = mmDCORE3_HMMU3_BMON_2_BASE,
[GAUDI2_BMON_DCORE3_HMMU3_4] = mmDCORE3_HMMU3_BMON_4_BASE,
[GAUDI2_BMON_DCORE3_MME_CTRL_0] = mmDCORE3_MME_CTRL_BMON0_BASE,
[GAUDI2_BMON_DCORE3_MME_CTRL_1] = mmDCORE3_MME_CTRL_BMON1_BASE,
[GAUDI2_BMON_DCORE3_MME_CTRL_2] = mmDCORE3_MME_CTRL_BMON2_BASE,
[GAUDI2_BMON_DCORE3_MME_CTRL_3] = mmDCORE3_MME_CTRL_BMON3_BASE,
[GAUDI2_BMON_DCORE3_MME_SBTE0_0] = mmDCORE3_MME_SBTE0_BMON0_BASE,
[GAUDI2_BMON_DCORE3_MME_SBTE1_0] = mmDCORE3_MME_SBTE1_BMON0_BASE,
[GAUDI2_BMON_DCORE3_MME_SBTE2_0] = mmDCORE3_MME_SBTE2_BMON0_BASE,
[GAUDI2_BMON_DCORE3_MME_SBTE3_0] = mmDCORE3_MME_SBTE3_BMON0_BASE,
[GAUDI2_BMON_DCORE3_MME_SBTE4_0] = mmDCORE3_MME_SBTE4_BMON0_BASE,
[GAUDI2_BMON_DCORE3_MME_ACC_0] = mmDCORE3_MME_ACC_BMON0_BASE,
[GAUDI2_BMON_DCORE3_MME_ACC_1] = mmDCORE3_MME_ACC_BMON1_BASE,
[GAUDI2_BMON_DCORE3_SM] = mmDCORE3_SM_BMON_BASE,
[GAUDI2_BMON_DCORE3_SM_1] = mmDCORE3_SM_BMON1_BASE,
[GAUDI2_BMON_DCORE3_EDMA0_0] = mmDCORE3_EDMA0_BMON_0_BASE,
[GAUDI2_BMON_DCORE3_EDMA0_1] = mmDCORE3_EDMA0_BMON_1_BASE,
[GAUDI2_BMON_DCORE3_EDMA1_0] = mmDCORE3_EDMA1_BMON_0_BASE,
[GAUDI2_BMON_DCORE3_EDMA1_1] = mmDCORE3_EDMA1_BMON_1_BASE,
[GAUDI2_BMON_DCORE3_VDEC0_0] = mmDCORE3_VDEC0_BMON_0_BASE,
[GAUDI2_BMON_DCORE3_VDEC0_1] = mmDCORE3_VDEC0_BMON_1_BASE,
[GAUDI2_BMON_DCORE3_VDEC0_2] = mmDCORE3_VDEC0_BMON_2_BASE,
[GAUDI2_BMON_DCORE3_VDEC1_0] = mmDCORE3_VDEC1_BMON_0_BASE,
[GAUDI2_BMON_DCORE3_VDEC1_1] = mmDCORE3_VDEC1_BMON_1_BASE,
[GAUDI2_BMON_DCORE3_VDEC1_2] = mmDCORE3_VDEC1_BMON_2_BASE,
[GAUDI2_BMON_PCIE_MSTR_WR] = mmPCIE_BMON_MSTR_WR_BASE,
[GAUDI2_BMON_PCIE_MSTR_RD] = mmPCIE_BMON_MSTR_RD_BASE,
[GAUDI2_BMON_PCIE_SLV_WR] = mmPCIE_BMON_SLV_WR_BASE,
[GAUDI2_BMON_PCIE_SLV_RD] = mmPCIE_BMON_SLV_RD_BASE,
[GAUDI2_BMON_PSOC_ARC0_0] = mmPSOC_ARC0_BMON_0_BASE,
[GAUDI2_BMON_PSOC_ARC0_1] = mmPSOC_ARC0_BMON_1_BASE,
[GAUDI2_BMON_PSOC_ARC1_0] = mmPSOC_ARC1_BMON_0_BASE,
[GAUDI2_BMON_PSOC_ARC1_1] = mmPSOC_ARC1_BMON_1_BASE,
[GAUDI2_BMON_PDMA0_0] = mmPDMA0_BMON_0_BASE,
[GAUDI2_BMON_PDMA0_1] = mmPDMA0_BMON_1_BASE,
[GAUDI2_BMON_PDMA1_0] = mmPDMA1_BMON_0_BASE,
[GAUDI2_BMON_PDMA1_1] = mmPDMA1_BMON_1_BASE,
[GAUDI2_BMON_CPU_WR] = mmCPU_WR_BMON_BASE,
[GAUDI2_BMON_CPU_RD] = mmCPU_RD_BMON_BASE,
[GAUDI2_BMON_PMMU_0] = mmPMMU_BMON_0_BASE,
[GAUDI2_BMON_PMMU_1] = mmPMMU_BMON_1_BASE,
[GAUDI2_BMON_PMMU_2] = mmPMMU_BMON_2_BASE,
[GAUDI2_BMON_PMMU_3] = mmPMMU_BMON_3_BASE,
[GAUDI2_BMON_PMMU_4] = mmPMMU_BMON_4_BASE,
[GAUDI2_BMON_ROT0_0] = mmROT0_BMON_0_BASE,
[GAUDI2_BMON_ROT0_1] = mmROT0_BMON_1_BASE,
[GAUDI2_BMON_ROT0_2] = mmROT0_BMON_2_BASE,
[GAUDI2_BMON_ROT0_3] = mmROT0_BMON_3_BASE,
[GAUDI2_BMON_ROT1_0] = mmROT1_BMON_0_BASE,
[GAUDI2_BMON_ROT1_1] = mmROT1_BMON_1_BASE,
[GAUDI2_BMON_ROT1_2] = mmROT1_BMON_2_BASE,
[GAUDI2_BMON_ROT1_3] = mmROT1_BMON_3_BASE,
[GAUDI2_BMON_ARC_FARM_0] = mmARC_FARM_BMON_0_BASE,
[GAUDI2_BMON_ARC_FARM_1] = mmARC_FARM_BMON_1_BASE,
[GAUDI2_BMON_ARC_FARM_2] = mmARC_FARM_BMON_2_BASE,
[GAUDI2_BMON_ARC_FARM_3] = mmARC_FARM_BMON_3_BASE,
[GAUDI2_BMON_KDMA_0] = mmKDMA_BMON_0_BASE,
[GAUDI2_BMON_KDMA_1] = mmKDMA_BMON_1_BASE,
[GAUDI2_BMON_KDMA_2] = mmKDMA_BMON_2_BASE,
[GAUDI2_BMON_KDMA_3] = mmKDMA_BMON_3_BASE,
[GAUDI2_BMON_PCIE_VDEC0_0] = mmPCIE_VDEC0_BMON_0_BASE,
[GAUDI2_BMON_PCIE_VDEC0_1] = mmPCIE_VDEC0_BMON_1_BASE,
[GAUDI2_BMON_PCIE_VDEC0_2] = mmPCIE_VDEC0_BMON_2_BASE,
[GAUDI2_BMON_PCIE_VDEC1_0] = mmPCIE_VDEC1_BMON_0_BASE,
[GAUDI2_BMON_PCIE_VDEC1_1] = mmPCIE_VDEC1_BMON_1_BASE,
[GAUDI2_BMON_PCIE_VDEC1_2] = mmPCIE_VDEC1_BMON_2_BASE,
[GAUDI2_BMON_NIC0_DBG_0_0] = mmNIC0_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC0_DBG_1_0] = mmNIC0_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC0_DBG_2_0] = mmNIC0_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC0_DBG_0_1] = mmNIC0_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC0_DBG_1_1] = mmNIC0_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC0_DBG_2_1] = mmNIC0_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC1_DBG_0_0] = mmNIC1_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC1_DBG_1_0] = mmNIC1_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC1_DBG_2_0] = mmNIC1_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC1_DBG_0_1] = mmNIC1_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC1_DBG_1_1] = mmNIC1_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC1_DBG_2_1] = mmNIC1_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC2_DBG_0_0] = mmNIC2_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC2_DBG_1_0] = mmNIC2_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC2_DBG_2_0] = mmNIC2_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC2_DBG_0_1] = mmNIC2_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC2_DBG_1_1] = mmNIC2_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC2_DBG_2_1] = mmNIC2_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC3_DBG_0_0] = mmNIC3_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC3_DBG_1_0] = mmNIC3_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC3_DBG_2_0] = mmNIC3_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC3_DBG_0_1] = mmNIC3_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC3_DBG_1_1] = mmNIC3_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC3_DBG_2_1] = mmNIC3_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC4_DBG_0_0] = mmNIC4_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC4_DBG_1_0] = mmNIC4_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC4_DBG_2_0] = mmNIC4_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC4_DBG_0_1] = mmNIC4_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC4_DBG_1_1] = mmNIC4_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC4_DBG_2_1] = mmNIC4_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC5_DBG_0_0] = mmNIC5_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC5_DBG_1_0] = mmNIC5_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC5_DBG_2_0] = mmNIC5_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC5_DBG_0_1] = mmNIC5_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC5_DBG_1_1] = mmNIC5_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC5_DBG_2_1] = mmNIC5_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC6_DBG_0_0] = mmNIC6_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC6_DBG_1_0] = mmNIC6_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC6_DBG_2_0] = mmNIC6_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC6_DBG_0_1] = mmNIC6_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC6_DBG_1_1] = mmNIC6_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC6_DBG_2_1] = mmNIC6_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC7_DBG_0_0] = mmNIC7_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC7_DBG_1_0] = mmNIC7_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC7_DBG_2_0] = mmNIC7_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC7_DBG_0_1] = mmNIC7_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC7_DBG_1_1] = mmNIC7_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC7_DBG_2_1] = mmNIC7_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC8_DBG_0_0] = mmNIC8_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC8_DBG_1_0] = mmNIC8_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC8_DBG_2_0] = mmNIC8_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC8_DBG_0_1] = mmNIC8_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC8_DBG_1_1] = mmNIC8_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC8_DBG_2_1] = mmNIC8_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC9_DBG_0_0] = mmNIC9_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC9_DBG_1_0] = mmNIC9_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC9_DBG_2_0] = mmNIC9_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC9_DBG_0_1] = mmNIC9_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC9_DBG_1_1] = mmNIC9_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC9_DBG_2_1] = mmNIC9_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC10_DBG_0_0] = mmNIC10_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC10_DBG_1_0] = mmNIC10_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC10_DBG_2_0] = mmNIC10_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC10_DBG_0_1] = mmNIC10_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC10_DBG_1_1] = mmNIC10_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC10_DBG_2_1] = mmNIC10_DBG_BMON2_1_BASE,
[GAUDI2_BMON_NIC11_DBG_0_0] = mmNIC11_DBG_BMON0_0_BASE,
[GAUDI2_BMON_NIC11_DBG_1_0] = mmNIC11_DBG_BMON1_0_BASE,
[GAUDI2_BMON_NIC11_DBG_2_0] = mmNIC11_DBG_BMON2_0_BASE,
[GAUDI2_BMON_NIC11_DBG_0_1] = mmNIC11_DBG_BMON0_1_BASE,
[GAUDI2_BMON_NIC11_DBG_1_1] = mmNIC11_DBG_BMON1_1_BASE,
[GAUDI2_BMON_NIC11_DBG_2_1] = mmNIC11_DBG_BMON2_1_BASE
};
static u64 debug_spmu_regs[GAUDI2_SPMU_LAST + 1] = {
[GAUDI2_SPMU_DCORE0_TPC0_EML] = mmDCORE0_TPC0_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_TPC1_EML] = mmDCORE0_TPC1_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_TPC2_EML] = mmDCORE0_TPC2_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_TPC3_EML] = mmDCORE0_TPC3_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_TPC4_EML] = mmDCORE0_TPC4_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_TPC5_EML] = mmDCORE0_TPC5_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_TPC6_EML] = mmDCORE0_TPC6_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_TPC0_EML] = mmDCORE1_TPC0_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_TPC1_EML] = mmDCORE1_TPC1_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_TPC2_EML] = mmDCORE1_TPC2_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_TPC3_EML] = mmDCORE1_TPC3_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_TPC4_EML] = mmDCORE1_TPC4_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_TPC5_EML] = mmDCORE1_TPC5_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_TPC0_EML] = mmDCORE2_TPC0_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_TPC1_EML] = mmDCORE2_TPC1_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_TPC2_EML] = mmDCORE2_TPC2_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_TPC3_EML] = mmDCORE2_TPC3_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_TPC4_EML] = mmDCORE2_TPC4_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_TPC5_EML] = mmDCORE2_TPC5_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_TPC0_EML] = mmDCORE3_TPC0_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_TPC1_EML] = mmDCORE3_TPC1_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_TPC2_EML] = mmDCORE3_TPC2_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_TPC3_EML] = mmDCORE3_TPC3_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_TPC4_EML] = mmDCORE3_TPC4_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_TPC5_EML] = mmDCORE3_TPC5_EML_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_HMMU0_CS] = mmDCORE0_HMMU0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_HMMU1_CS] = mmDCORE0_HMMU1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_HMMU2_CS] = mmDCORE0_HMMU2_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_HMMU3_CS] = mmDCORE0_HMMU3_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_MME_CTRL] = mmDCORE0_MME_CTRL_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_MME_SBTE0] = mmDCORE0_MME_SBTE0_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_MME_SBTE1] = mmDCORE0_MME_SBTE1_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_MME_SBTE2] = mmDCORE0_MME_SBTE2_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_MME_SBTE3] = mmDCORE0_MME_SBTE3_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_MME_SBTE4] = mmDCORE0_MME_SBTE4_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_MME_ACC] = mmDCORE0_MME_ACC_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_SM] = mmDCORE0_SM_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_EDMA0_CS] = mmDCORE0_EDMA0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_EDMA1_CS] = mmDCORE0_EDMA1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_VDEC0_CS] = mmDCORE0_VDEC0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE0_VDEC1_CS] = mmDCORE0_VDEC1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_HMMU0_CS] = mmDCORE1_HMMU0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_HMMU1_CS] = mmDCORE1_HMMU1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_HMMU2_CS] = mmDCORE1_HMMU2_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_HMMU3_CS] = mmDCORE1_HMMU3_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_MME_CTRL] = mmDCORE1_MME_CTRL_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_MME_SBTE0] = mmDCORE1_MME_SBTE0_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_MME_SBTE1] = mmDCORE1_MME_SBTE1_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_MME_SBTE2] = mmDCORE1_MME_SBTE2_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_MME_SBTE3] = mmDCORE1_MME_SBTE3_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_MME_SBTE4] = mmDCORE1_MME_SBTE4_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_MME_ACC] = mmDCORE1_MME_ACC_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_SM] = mmDCORE1_SM_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_EDMA0_CS] = mmDCORE1_EDMA0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_EDMA1_CS] = mmDCORE1_EDMA1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_VDEC0_CS] = mmDCORE1_VDEC0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE1_VDEC1_CS] = mmDCORE1_VDEC1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_HMMU0_CS] = mmDCORE2_HMMU0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_HMMU1_CS] = mmDCORE2_HMMU1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_HMMU2_CS] = mmDCORE2_HMMU2_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_HMMU3_CS] = mmDCORE2_HMMU3_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_MME_CTRL] = mmDCORE2_MME_CTRL_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_MME_SBTE0] = mmDCORE2_MME_SBTE0_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_MME_SBTE1] = mmDCORE2_MME_SBTE1_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_MME_SBTE2] = mmDCORE2_MME_SBTE2_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_MME_SBTE3] = mmDCORE2_MME_SBTE3_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_MME_SBTE4] = mmDCORE2_MME_SBTE4_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_MME_ACC] = mmDCORE2_MME_ACC_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_SM] = mmDCORE2_SM_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_EDMA0_CS] = mmDCORE2_EDMA0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_EDMA1_CS] = mmDCORE2_EDMA1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_VDEC0_CS] = mmDCORE2_VDEC0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE2_VDEC1_CS] = mmDCORE2_VDEC1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_HMMU0_CS] = mmDCORE3_HMMU0_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_HMMU1_CS] = mmDCORE3_HMMU1_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_HMMU2_CS] = mmDCORE3_HMMU2_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_HMMU3_CS] = mmDCORE3_HMMU3_CS_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_MME_CTRL] = mmDCORE3_MME_CTRL_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_MME_SBTE0] = mmDCORE3_MME_SBTE0_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_MME_SBTE1] = mmDCORE3_MME_SBTE1_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_MME_SBTE2] = mmDCORE3_MME_SBTE2_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_MME_SBTE3] = mmDCORE3_MME_SBTE3_SPMU_BASE,
[GAUDI2_SPMU_DCORE3_MME_SBTE4] = mmDCORE3_MME_SBTE4_S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_BASE,
[GAUDI2_SPMU_NIC6_DBG_0] = mmNIC6_DBG_SPMU_0_BASE,
[GAUDI2_SPMU_NIC6_DBG_1] = mmNIC6_DBG_SPMU_1_BASE,
[GAUDI2_SPMU_NIC7_DBG_0] = mmNIC7_DBG_SPMU_0_BASE,
[GAUDI2_SPMU_NIC7_DBG_1] = mmNIC7_DBG_SPMU_1_BASE,
[GAUDI2_SPMU_NIC8_DBG_0] = mmNIC8_DBG_SPMU_0_BASE,
[GAUDI2_SPMU_NIC8_DBG_1] = mmNIC8_DBG_SPMU_1_BASE,
[GAUDI2_SPMU_NIC9_DBG_0] = mmNIC9_DBG_SPMU_0_BASE,
[GAUDI2_SPMU_NIC9_DBG_1] = mmNIC9_DBG_SPMU_1_BASE,
[GAUDI2_SPMU_NIC10_DBG_0] = mmNIC10_DBG_SPMU_0_BASE,
[GAUDI2_SPMU_NIC10_DBG_1] = mmNIC10_DBG_SPMU_1_BASE,
[GAUDI2_SPMU_NIC11_DBG_0] = mmNIC11_DBG_SPMU_0_BASE,
[GAUDI2_SPMU_NIC11_DBG_1] = mmNIC11_DBG_SPMU_1_BASE
};
static struct component_config_offsets xbar_edge_binning_cfg_table[XBAR_EDGE_ID_SIZE] = {
[XBAR_EDGE_ID_DCORE0] = {
.funnel_id = GAUDI2_FUNNEL_DCORE0_XBAR_EDGE,
.etf_id = COMPONENT_ID_INVALID,
.stm_id = COMPONENT_ID_INVALID,
.spmu_id = COMPONENT_ID_INVALID,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[XBAR_EDGE_ID_DCORE1] = {
.funnel_id = GAUDI2_FUNNEL_DCORE1_XBAR_EDGE,
.etf_id = COMPONENT_ID_INVALID,
.stm_id = COMPONENT_ID_INVALID,
.spmu_id = COMPONENT_ID_INVALID,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[XBAR_EDGE_ID_DCORE2] = {
.funnel_id = GAUDI2_FUNNEL_DCORE2_XBAR_EDGE,
.etf_id = COMPONENT_ID_INVALID,
.stm_id = COMPONENT_ID_INVALID,
.spmu_id = COMPONENT_ID_INVALID,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[XBAR_EDGE_ID_DCORE3] = {
.funnel_id = GAUDI2_FUNNEL_DCORE3_XBAR_EDGE,
.etf_id = COMPONENT_ID_INVALID,
.stm_id = COMPONENT_ID_INVALID,
.spmu_id = COMPONENT_ID_INVALID,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
};
static struct component_config_offsets hmmu_binning_cfg_table[HMMU_ID_SIZE] = {
[HMMU_ID_DCORE0_HMMU0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE0_HMMU0_CS,
.stm_id = GAUDI2_STM_DCORE0_HMMU0_CS,
.spmu_id = GAUDI2_SPMU_DCORE0_HMMU0_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE0_HMMU0_0,
GAUDI2_BMON_DCORE0_HMMU0_1,
GAUDI2_BMON_DCORE0_HMMU0_2,
GAUDI2_BMON_DCORE0_HMMU0_3,
GAUDI2_BMON_DCORE0_HMMU0_4,
}
},
[HMMU_ID_DCORE0_HMMU1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE0_HMMU1_CS,
.stm_id = GAUDI2_STM_DCORE0_HMMU1_CS,
.spmu_id = GAUDI2_SPMU_DCORE0_HMMU1_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE0_HMMU1_0,
GAUDI2_BMON_DCORE0_HMMU1_1,
GAUDI2_BMON_DCORE0_HMMU1_2,
GAUDI2_BMON_DCORE0_HMMU1_3,
GAUDI2_BMON_DCORE0_HMMU1_4,
}
},
[HMMU_ID_DCORE0_HMMU2] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE0_HMMU2_CS,
.stm_id = GAUDI2_STM_DCORE0_HMMU2_CS,
.spmu_id = GAUDI2_SPMU_DCORE0_HMMU2_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE0_HMMU2_0,
GAUDI2_BMON_DCORE0_HMMU2_1,
GAUDI2_BMON_DCORE0_HMMU2_2,
GAUDI2_BMON_DCORE0_HMMU2_3,
GAUDI2_BMON_DCORE0_HMMU2_4,
}
},
[HMMU_ID_DCORE0_HMMU3] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE0_HMMU3_CS,
.stm_id = GAUDI2_STM_DCORE0_HMMU3_CS,
.spmu_id = GAUDI2_SPMU_DCORE0_HMMU3_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE0_HMMU3_0,
GAUDI2_BMON_DCORE0_HMMU3_1,
GAUDI2_BMON_DCORE0_HMMU3_2,
GAUDI2_BMON_DCORE0_HMMU3_3,
GAUDI2_BMON_DCORE0_HMMU3_4,
}
},
[HMMU_ID_DCORE1_HMMU0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE1_HMMU0_CS,
.stm_id = GAUDI2_STM_DCORE1_HMMU0_CS,
.spmu_id = GAUDI2_SPMU_DCORE1_HMMU0_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE1_HMMU0_0,
GAUDI2_BMON_DCORE1_HMMU0_1,
GAUDI2_BMON_DCORE1_HMMU0_2,
GAUDI2_BMON_DCORE1_HMMU0_3,
GAUDI2_BMON_DCORE1_HMMU0_4,
}
},
[HMMU_ID_DCORE1_HMMU1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE1_HMMU1_CS,
.stm_id = GAUDI2_STM_DCORE1_HMMU1_CS,
.spmu_id = GAUDI2_SPMU_DCORE1_HMMU1_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE1_HMMU1_0,
GAUDI2_BMON_DCORE1_HMMU1_1,
GAUDI2_BMON_DCORE1_HMMU1_2,
GAUDI2_BMON_DCORE1_HMMU1_3,
GAUDI2_BMON_DCORE1_HMMU1_4,
}
},
[HMMU_ID_DCORE1_HMMU2] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE1_HMMU2_CS,
.stm_id = GAUDI2_STM_DCORE1_HMMU2_CS,
.spmu_id = GAUDI2_SPMU_DCORE1_HMMU2_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE1_HMMU2_0,
GAUDI2_BMON_DCORE1_HMMU2_1,
GAUDI2_BMON_DCORE1_HMMU2_2,
GAUDI2_BMON_DCORE1_HMMU2_3,
GAUDI2_BMON_DCORE1_HMMU2_4,
}
},
[HMMU_ID_DCORE1_HMMU3] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE1_HMMU3_CS,
.stm_id = GAUDI2_STM_DCORE1_HMMU3_CS,
.spmu_id = GAUDI2_SPMU_DCORE1_HMMU3_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE1_HMMU3_0,
GAUDI2_BMON_DCORE1_HMMU3_1,
GAUDI2_BMON_DCORE1_HMMU3_2,
GAUDI2_BMON_DCORE1_HMMU3_3,
GAUDI2_BMON_DCORE1_HMMU3_4,
}
},
[HMMU_ID_DCORE2_HMMU0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE2_HMMU0_CS,
.stm_id = GAUDI2_STM_DCORE2_HMMU0_CS,
.spmu_id = GAUDI2_SPMU_DCORE2_HMMU0_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE2_HMMU0_0,
GAUDI2_BMON_DCORE2_HMMU0_1,
GAUDI2_BMON_DCORE2_HMMU0_2,
GAUDI2_BMON_DCORE2_HMMU0_3,
GAUDI2_BMON_DCORE2_HMMU0_4,
}
},
[HMMU_ID_DCORE2_HMMU1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE2_HMMU1_CS,
.stm_id = GAUDI2_STM_DCORE2_HMMU1_CS,
.spmu_id = GAUDI2_SPMU_DCORE2_HMMU1_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE2_HMMU1_0,
GAUDI2_BMON_DCORE2_HMMU1_1,
GAUDI2_BMON_DCORE2_HMMU1_2,
GAUDI2_BMON_DCORE2_HMMU1_3,
GAUDI2_BMON_DCORE2_HMMU1_4,
}
},
[HMMU_ID_DCORE2_HMMU2] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE2_HMMU2_CS,
.stm_id = GAUDI2_STM_DCORE2_HMMU2_CS,
.spmu_id = GAUDI2_SPMU_DCORE2_HMMU2_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE2_HMMU2_0,
GAUDI2_BMON_DCORE2_HMMU2_1,
GAUDI2_BMON_DCORE2_HMMU2_2,
GAUDI2_BMON_DCORE2_HMMU2_3,
GAUDI2_BMON_DCORE2_HMMU2_4,
}
},
[HMMU_ID_DCORE2_HMMU3] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE2_HMMU3_CS,
.stm_id = GAUDI2_STM_DCORE2_HMMU3_CS,
.spmu_id = GAUDI2_SPMU_DCORE2_HMMU3_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE2_HMMU3_0,
GAUDI2_BMON_DCORE2_HMMU3_1,
GAUDI2_BMON_DCORE2_HMMU3_2,
GAUDI2_BMON_DCORE2_HMMU3_3,
GAUDI2_BMON_DCORE2_HMMU3_4,
}
},
[HMMU_ID_DCORE3_HMMU0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE3_HMMU0_CS,
.stm_id = GAUDI2_STM_DCORE3_HMMU0_CS,
.spmu_id = GAUDI2_SPMU_DCORE3_HMMU0_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE3_HMMU0_0,
GAUDI2_BMON_DCORE3_HMMU0_1,
GAUDI2_BMON_DCORE3_HMMU0_2,
GAUDI2_BMON_DCORE3_HMMU0_3,
GAUDI2_BMON_DCORE3_HMMU0_4,
}
},
[HMMU_ID_DCORE3_HMMU1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE3_HMMU1_CS,
.stm_id = GAUDI2_STM_DCORE3_HMMU1_CS,
.spmu_id = GAUDI2_SPMU_DCORE3_HMMU1_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE3_HMMU1_0,
GAUDI2_BMON_DCORE3_HMMU1_1,
GAUDI2_BMON_DCORE3_HMMU1_2,
GAUDI2_BMON_DCORE3_HMMU1_3,
GAUDI2_BMON_DCORE3_HMMU1_4,
}
},
[HMMU_ID_DCORE3_HMMU2] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE3_HMMU2_CS,
.stm_id = GAUDI2_STM_DCORE3_HMMU2_CS,
.spmu_id = GAUDI2_SPMU_DCORE3_HMMU2_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE3_HMMU2_0,
GAUDI2_BMON_DCORE3_HMMU2_1,
GAUDI2_BMON_DCORE3_HMMU2_2,
GAUDI2_BMON_DCORE3_HMMU2_3,
GAUDI2_BMON_DCORE3_HMMU2_4,
}
},
[HMMU_ID_DCORE3_HMMU3] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE3_HMMU3_CS,
.stm_id = GAUDI2_STM_DCORE3_HMMU3_CS,
.spmu_id = GAUDI2_SPMU_DCORE3_HMMU3_CS,
.bmon_count = 5,
.bmon_ids = {
GAUDI2_BMON_DCORE3_HMMU3_0,
GAUDI2_BMON_DCORE3_HMMU3_1,
GAUDI2_BMON_DCORE3_HMMU3_2,
GAUDI2_BMON_DCORE3_HMMU3_3,
GAUDI2_BMON_DCORE3_HMMU3_4,
}
},
};
static struct component_config_offsets hbm_mc0_binning_cfg_table[HBM_ID_SIZE] = {
[HBM_ID0] = {
.funnel_id = GAUDI2_FUNNEL_HBM0_MC0,
.etf_id = GAUDI2_ETF_HBM0_MC0_CS,
.stm_id = GAUDI2_STM_HBM0_MC0_CS,
.spmu_id = GAUDI2_SPMU_HBM0_MC0_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID1] = {
.funnel_id = GAUDI2_FUNNEL_HBM1_MC0,
.etf_id = GAUDI2_ETF_HBM1_MC0_CS,
.stm_id = GAUDI2_STM_HBM1_MC0_CS,
.spmu_id = GAUDI2_SPMU_HBM1_MC0_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID2] = {
.funnel_id = GAUDI2_FUNNEL_HBM2_MC0,
.etf_id = GAUDI2_ETF_HBM2_MC0_CS,
.stm_id = GAUDI2_STM_HBM2_MC0_CS,
.spmu_id = GAUDI2_SPMU_HBM2_MC0_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID3] = {
.funnel_id = GAUDI2_FUNNEL_HBM3_MC0,
.etf_id = GAUDI2_ETF_HBM3_MC0_CS,
.stm_id = GAUDI2_STM_HBM3_MC0_CS,
.spmu_id = GAUDI2_SPMU_HBM3_MC0_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID4] = {
.funnel_id = GAUDI2_FUNNEL_HBM4_MC0,
.etf_id = GAUDI2_ETF_HBM4_MC0_CS,
.stm_id = GAUDI2_STM_HBM4_MC0_CS,
.spmu_id = GAUDI2_SPMU_HBM4_MC0_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID5] = {
.funnel_id = GAUDI2_FUNNEL_HBM5_MC0,
.etf_id = GAUDI2_ETF_HBM5_MC0_CS,
.stm_id = GAUDI2_STM_HBM5_MC0_CS,
.spmu_id = GAUDI2_SPMU_HBM5_MC0_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
};
static struct component_config_offsets hbm_mc1_binning_cfg_table[HBM_ID_SIZE] = {
[HBM_ID0] = {
.funnel_id = GAUDI2_FUNNEL_HBM0_MC1,
.etf_id = GAUDI2_ETF_HBM0_MC1_CS,
.stm_id = GAUDI2_STM_HBM0_MC1_CS,
.spmu_id = GAUDI2_SPMU_HBM0_MC1_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID1] = {
.funnel_id = GAUDI2_FUNNEL_HBM1_MC1,
.etf_id = GAUDI2_ETF_HBM1_MC1_CS,
.stm_id = GAUDI2_STM_HBM1_MC1_CS,
.spmu_id = GAUDI2_SPMU_HBM1_MC1_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID2] = {
.funnel_id = GAUDI2_FUNNEL_HBM2_MC1,
.etf_id = GAUDI2_ETF_HBM2_MC1_CS,
.stm_id = GAUDI2_STM_HBM2_MC1_CS,
.spmu_id = GAUDI2_SPMU_HBM2_MC1_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID3] = {
.funnel_id = GAUDI2_FUNNEL_HBM3_MC1,
.etf_id = GAUDI2_ETF_HBM3_MC1_CS,
.stm_id = GAUDI2_STM_HBM3_MC1_CS,
.spmu_id = GAUDI2_SPMU_HBM3_MC1_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID4] = {
.funnel_id = GAUDI2_FUNNEL_HBM4_MC1,
.etf_id = GAUDI2_ETF_HBM4_MC1_CS,
.stm_id = GAUDI2_STM_HBM4_MC1_CS,
.spmu_id = GAUDI2_SPMU_HBM4_MC1_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
[HBM_ID5] = {
.funnel_id = GAUDI2_FUNNEL_HBM5_MC1,
.etf_id = GAUDI2_ETF_HBM5_MC1_CS,
.stm_id = GAUDI2_STM_HBM5_MC1_CS,
.spmu_id = GAUDI2_SPMU_HBM5_MC1_CS,
.bmon_count = 0,
.bmon_ids = {COMPONENT_ID_INVALID}
},
};
static struct component_config_offsets decoder_binning_cfg_table[DEC_ID_SIZE] = {
[DEC_ID_DCORE0_DEC0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE0_VDEC0_CS,
.stm_id = GAUDI2_STM_DCORE0_VDEC0_CS,
.spmu_id = GAUDI2_SPMU_DCORE0_VDEC0_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_DCORE0_VDEC0_0,
GAUDI2_BMON_DCORE0_VDEC0_1,
GAUDI2_BMON_DCORE0_VDEC0_2,
}
},
[DEC_ID_DCORE0_DEC1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE0_VDEC1_CS,
.stm_id = GAUDI2_STM_DCORE0_VDEC1_CS,
.spmu_id = GAUDI2_SPMU_DCORE0_VDEC1_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_DCORE0_VDEC1_0,
GAUDI2_BMON_DCORE0_VDEC1_1,
GAUDI2_BMON_DCORE0_VDEC1_2,
}
},
[DEC_ID_DCORE1_DEC0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE1_VDEC0_CS,
.stm_id = GAUDI2_STM_DCORE1_VDEC0_CS,
.spmu_id = GAUDI2_SPMU_DCORE1_VDEC0_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_DCORE1_VDEC0_0,
GAUDI2_BMON_DCORE1_VDEC0_1,
GAUDI2_BMON_DCORE1_VDEC0_2,
}
},
[DEC_ID_DCORE1_DEC1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE1_VDEC1_CS,
.stm_id = GAUDI2_STM_DCORE1_VDEC1_CS,
.spmu_id = GAUDI2_SPMU_DCORE1_VDEC1_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_DCORE1_VDEC1_0,
GAUDI2_BMON_DCORE1_VDEC1_1,
GAUDI2_BMON_DCORE1_VDEC1_2,
}
},
[DEC_ID_DCORE2_DEC0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE2_VDEC0_CS,
.stm_id = GAUDI2_STM_DCORE2_VDEC0_CS,
.spmu_id = GAUDI2_SPMU_DCORE2_VDEC0_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_DCORE2_VDEC0_0,
GAUDI2_BMON_DCORE2_VDEC0_1,
GAUDI2_BMON_DCORE2_VDEC0_2,
}
},
[DEC_ID_DCORE2_DEC1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE2_VDEC1_CS,
.stm_id = GAUDI2_STM_DCORE2_VDEC1_CS,
.spmu_id = GAUDI2_SPMU_DCORE2_VDEC1_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_DCORE2_VDEC1_0,
GAUDI2_BMON_DCORE2_VDEC1_1,
GAUDI2_BMON_DCORE2_VDEC1_2,
}
},
[DEC_ID_DCORE3_DEC0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE3_VDEC0_CS,
.stm_id = GAUDI2_STM_DCORE3_VDEC0_CS,
.spmu_id = GAUDI2_SPMU_DCORE3_VDEC0_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_DCORE3_VDEC0_0,
GAUDI2_BMON_DCORE3_VDEC0_1,
GAUDI2_BMON_DCORE3_VDEC0_2,
}
},
[DEC_ID_DCORE3_DEC1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE3_VDEC1_CS,
.stm_id = GAUDI2_STM_DCORE3_VDEC1_CS,
.spmu_id = GAUDI2_SPMU_DCORE3_VDEC1_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_DCORE3_VDEC1_0,
GAUDI2_BMON_DCORE3_VDEC1_1,
GAUDI2_BMON_DCORE3_VDEC1_2,
}
},
[DEC_ID_PCIE_VDEC0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_PCIE_VDEC0_CS,
.stm_id = GAUDI2_STM_PCIE_VDEC0_CS,
.spmu_id = GAUDI2_SPMU_PCIE_VDEC0_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_PCIE_VDEC0_0,
GAUDI2_BMON_PCIE_VDEC0_1,
GAUDI2_BMON_PCIE_VDEC0_2,
}
},
[DEC_ID_PCIE_VDEC1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_PCIE_VDEC1_CS,
.stm_id = GAUDI2_STM_PCIE_VDEC1_CS,
.spmu_id = GAUDI2_SPMU_PCIE_VDEC1_CS,
.bmon_count = 3,
.bmon_ids = {
GAUDI2_BMON_PCIE_VDEC1_0,
GAUDI2_BMON_PCIE_VDEC1_1,
GAUDI2_BMON_PCIE_VDEC1_2,
}
},
};
static struct component_config_offsets edma_binning_cfg_table[EDMA_ID_SIZE] = {
[EDMA_ID_DCORE0_INSTANCE0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE0_EDMA0_CS,
.stm_id = GAUDI2_STM_DCORE0_EDMA0_CS,
.spmu_id = GAUDI2_SPMU_DCORE0_EDMA0_CS,
.bmon_count = 2,
.bmon_ids = {
GAUDI2_BMON_DCORE0_EDMA0_0,
GAUDI2_BMON_DCORE0_EDMA0_1,
}
},
[EDMA_ID_DCORE0_INSTANCE1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE0_EDMA1_CS,
.stm_id = GAUDI2_STM_DCORE0_EDMA1_CS,
.spmu_id = GAUDI2_SPMU_DCORE0_EDMA1_CS,
.bmon_count = 2,
.bmon_ids = {
GAUDI2_BMON_DCORE0_EDMA1_0,
GAUDI2_BMON_DCORE0_EDMA1_1,
}
},
[EDMA_ID_DCORE1_INSTANCE0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE1_EDMA0_CS,
.stm_id = GAUDI2_STM_DCORE1_EDMA0_CS,
.spmu_id = GAUDI2_SPMU_DCORE1_EDMA0_CS,
.bmon_count = 2,
.bmon_ids = {
GAUDI2_BMON_DCORE1_EDMA0_0,
GAUDI2_BMON_DCORE1_EDMA0_1,
}
},
[EDMA_ID_DCORE1_INSTANCE1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE1_EDMA1_CS,
.stm_id = GAUDI2_STM_DCORE1_EDMA1_CS,
.spmu_id = GAUDI2_SPMU_DCORE1_EDMA1_CS,
.bmon_count = 2,
.bmon_ids = {
GAUDI2_BMON_DCORE1_EDMA1_0,
GAUDI2_BMON_DCORE1_EDMA1_1,
}
},
[EDMA_ID_DCORE2_INSTANCE0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE2_EDMA0_CS,
.stm_id = GAUDI2_STM_DCORE2_EDMA0_CS,
.spmu_id = GAUDI2_SPMU_DCORE2_EDMA0_CS,
.bmon_count = 2,
.bmon_ids = {
GAUDI2_BMON_DCORE2_EDMA0_0,
GAUDI2_BMON_DCORE2_EDMA0_1,
}
},
[EDMA_ID_DCORE2_INSTANCE1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE2_EDMA1_CS,
.stm_id = GAUDI2_STM_DCORE2_EDMA1_CS,
.spmu_id = GAUDI2_SPMU_DCORE2_EDMA1_CS,
.bmon_count = 2,
.bmon_ids = {
GAUDI2_BMON_DCORE2_EDMA1_0,
GAUDI2_BMON_DCORE2_EDMA1_1,
}
},
[EDMA_ID_DCORE3_INSTANCE0] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE3_EDMA0_CS,
.stm_id = GAUDI2_STM_DCORE3_EDMA0_CS,
.spmu_id = GAUDI2_SPMU_DCORE3_EDMA0_CS,
.bmon_count = 2,
.bmon_ids = {
GAUDI2_BMON_DCORE3_EDMA0_0,
GAUDI2_BMON_DCORE3_EDMA0_1,
}
},
[EDMA_ID_DCORE3_INSTANCE1] = {
.funnel_id = COMPONENT_ID_INVALID,
.etf_id = GAUDI2_ETF_DCORE3_EDMA1_CS,
.stm_id = GAUDI2_STM_DCORE3_EDMA1_CS,
.spmu_id = GAUDI2_SPMU_DCORE3_EDMA1_CS,
.bmon_count = 2,
.bmon_ids = {
GAUDI2_BMON_DCORE3_EDMA1_0,
GAUDI2_BMON_DCORE3_EDMA1_1,
}
},
};
static struct component_config_offsets tpc_binning_cfg_table[TPC_ID_SIZE] = {
[TPC_ID_DCORE0_TPC0] = {
.funnel_id = GAUDI2_FUNNEL_DCORE0_TPC0_EML,
.etf_id = GAUDI2_ETF_DCORE0_TPC0_EML,
.stm_id = GAUDI2_STM_DCORE0_TPC0_EML,
.spmu_id = GAUDI2_SPMU_DCORE0_TPC0_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE0_TPC0_EML_0,
GAUDI2_BMON_DCORE0_TPC0_EML_1,
GAUDI2_BMON_DCORE0_TPC0_EML_2,
GAUDI2_BMON_DCORE0_TPC0_EML_3,
}
},
[TPC_ID_DCORE0_TPC1] = {
.funnel_id = GAUDI2_FUNNEL_DCORE0_TPC1_EML,
.etf_id = GAUDI2_ETF_DCORE0_TPC1_EML,
.stm_id = GAUDI2_STM_DCORE0_TPC1_EML,
.spmu_id = GAUDI2_SPMU_DCORE0_TPC1_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE0_TPC1_EML_0,
GAUDI2_BMON_DCORE0_TPC1_EML_1,
GAUDI2_BMON_DCORE0_TPC1_EML_2,
GAUDI2_BMON_DCORE0_TPC1_EML_3,
}
},
[TPC_ID_DCORE0_TPC2] = {
.funnel_id = GAUDI2_FUNNEL_DCORE0_TPC2_EML,
.etf_id = GAUDI2_ETF_DCORE0_TPC2_EML,
.stm_id = GAUDI2_STM_DCORE0_TPC2_EML,
.spmu_id = GAUDI2_SPMU_DCORE0_TPC2_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE0_TPC2_EML_0,
GAUDI2_BMON_DCORE0_TPC2_EML_1,
GAUDI2_BMON_DCORE0_TPC2_EML_2,
GAUDI2_BMON_DCORE0_TPC2_EML_3,
}
},
[TPC_ID_DCORE0_TPC3] = {
.funnel_id = GAUDI2_FUNNEL_DCORE0_TPC3_EML,
.etf_id = GAUDI2_ETF_DCORE0_TPC3_EML,
.stm_id = GAUDI2_STM_DCORE0_TPC3_EML,
.spmu_id = GAUDI2_SPMU_DCORE0_TPC3_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE0_TPC3_EML_0,
GAUDI2_BMON_DCORE0_TPC3_EML_1,
GAUDI2_BMON_DCORE0_TPC3_EML_2,
GAUDI2_BMON_DCORE0_TPC3_EML_3,
}
},
[TPC_ID_DCORE0_TPC4] = {
.funnel_id = GAUDI2_FUNNEL_DCORE0_TPC4_EML,
.etf_id = GAUDI2_ETF_DCORE0_TPC4_EML,
.stm_id = GAUDI2_STM_DCORE0_TPC4_EML,
.spmu_id = GAUDI2_SPMU_DCORE0_TPC4_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE0_TPC4_EML_0,
GAUDI2_BMON_DCORE0_TPC4_EML_1,
GAUDI2_BMON_DCORE0_TPC4_EML_2,
GAUDI2_BMON_DCORE0_TPC4_EML_3,
}
},
[TPC_ID_DCORE0_TPC5] = {
.funnel_id = GAUDI2_FUNNEL_DCORE0_TPC5_EML,
.etf_id = GAUDI2_ETF_DCORE0_TPC5_EML,
.stm_id = GAUDI2_STM_DCORE0_TPC5_EML,
.spmu_id = GAUDI2_SPMU_DCORE0_TPC5_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE0_TPC5_EML_0,
GAUDI2_BMON_DCORE0_TPC5_EML_1,
GAUDI2_BMON_DCORE0_TPC5_EML_2,
GAUDI2_BMON_DCORE0_TPC5_EML_3,
}
},
[TPC_ID_DCORE1_TPC0] = {
.funnel_id = GAUDI2_FUNNEL_DCORE1_TPC0_EML,
.etf_id = GAUDI2_ETF_DCORE1_TPC0_EML,
.stm_id = GAUDI2_STM_DCORE1_TPC0_EML,
.spmu_id = GAUDI2_SPMU_DCORE1_TPC0_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE1_TPC0_EML_0,
GAUDI2_BMON_DCORE1_TPC0_EML_1,
GAUDI2_BMON_DCORE1_TPC0_EML_2,
GAUDI2_BMON_DCORE1_TPC0_EML_3,
}
},
[TPC_ID_DCORE1_TPC1] = {
.funnel_id = GAUDI2_FUNNEL_DCORE1_TPC1_EML,
.etf_id = GAUDI2_ETF_DCORE1_TPC1_EML,
.stm_id = GAUDI2_STM_DCORE1_TPC1_EML,
.spmu_id = GAUDI2_SPMU_DCORE1_TPC1_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE1_TPC1_EML_0,
GAUDI2_BMON_DCORE1_TPC1_EML_1,
GAUDI2_BMON_DCORE1_TPC1_EML_2,
GAUDI2_BMON_DCORE1_TPC1_EML_3,
}
},
[TPC_ID_DCORE1_TPC2] = {
.funnel_id = GAUDI2_FUNNEL_DCORE1_TPC2_EML,
.etf_id = GAUDI2_ETF_DCORE1_TPC2_EML,
.stm_id = GAUDI2_STM_DCORE1_TPC2_EML,
.spmu_id = GAUDI2_SPMU_DCORE1_TPC2_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE1_TPC2_EML_0,
GAUDI2_BMON_DCORE1_TPC2_EML_1,
GAUDI2_BMON_DCORE1_TPC2_EML_2,
GAUDI2_BMON_DCORE1_TPC2_EML_3,
}
},
[TPC_ID_DCORE1_TPC3] = {
.funnel_id = GAUDI2_FUNNEL_DCORE1_TPC3_EML,
.etf_id = GAUDI2_ETF_DCORE1_TPC3_EML,
.stm_id = GAUDI2_STM_DCORE1_TPC3_EML,
.spmu_id = GAUDI2_SPMU_DCORE1_TPC3_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE1_TPC3_EML_0,
GAUDI2_BMON_DCORE1_TPC3_EML_1,
GAUDI2_BMON_DCORE1_TPC3_EML_2,
GAUDI2_BMON_DCORE1_TPC3_EML_3,
}
},
[TPC_ID_DCORE1_TPC4] = {
.funnel_id = GAUDI2_FUNNEL_DCORE1_TPC4_EML,
.etf_id = GAUDI2_ETF_DCORE1_TPC4_EML,
.stm_id = GAUDI2_STM_DCORE1_TPC4_EML,
.spmu_id = GAUDI2_SPMU_DCORE1_TPC4_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE1_TPC4_EML_0,
GAUDI2_BMON_DCORE1_TPC4_EML_1,
GAUDI2_BMON_DCORE1_TPC4_EML_2,
GAUDI2_BMON_DCORE1_TPC4_EML_3,
}
},
[TPC_ID_DCORE1_TPC5] = {
.funnel_id = GAUDI2_FUNNEL_DCORE1_TPC5_EML,
.etf_id = GAUDI2_ETF_DCORE1_TPC5_EML,
.stm_id = GAUDI2_STM_DCORE1_TPC5_EML,
.spmu_id = GAUDI2_SPMU_DCORE1_TPC5_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE1_TPC5_EML_0,
GAUDI2_BMON_DCORE1_TPC5_EML_1,
GAUDI2_BMON_DCORE1_TPC5_EML_2,
GAUDI2_BMON_DCORE1_TPC5_EML_3,
}
},
[TPC_ID_DCORE2_TPC0] = {
.funnel_id = GAUDI2_FUNNEL_DCORE2_TPC0_EML,
.etf_id = GAUDI2_ETF_DCORE2_TPC0_EML,
.stm_id = GAUDI2_STM_DCORE2_TPC0_EML,
.spmu_id = GAUDI2_SPMU_DCORE2_TPC0_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE2_TPC0_EML_0,
GAUDI2_BMON_DCORE2_TPC0_EML_1,
GAUDI2_BMON_DCORE2_TPC0_EML_2,
GAUDI2_BMON_DCORE2_TPC0_EML_3,
}
},
[TPC_ID_DCORE2_TPC1] = {
.funnel_id = GAUDI2_FUNNEL_DCORE2_TPC1_EML,
.etf_id = GAUDI2_ETF_DCORE2_TPC1_EML,
.stm_id = GAUDI2_STM_DCORE2_TPC1_EML,
.spmu_id = GAUDI2_SPMU_DCORE2_TPC1_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE2_TPC1_EML_0,
GAUDI2_BMON_DCORE2_TPC1_EML_1,
GAUDI2_BMON_DCORE2_TPC1_EML_2,
GAUDI2_BMON_DCORE2_TPC1_EML_3,
}
},
[TPC_ID_DCORE2_TPC2] = {
.funnel_id = GAUDI2_FUNNEL_DCORE2_TPC2_EML,
.etf_id = GAUDI2_ETF_DCORE2_TPC2_EML,
.stm_id = GAUDI2_STM_DCORE2_TPC2_EML,
.spmu_id = GAUDI2_SPMU_DCORE2_TPC2_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE2_TPC2_EML_0,
GAUDI2_BMON_DCORE2_TPC2_EML_1,
GAUDI2_BMON_DCORE2_TPC2_EML_2,
GAUDI2_BMON_DCORE2_TPC2_EML_3,
}
},
[TPC_ID_DCORE2_TPC3] = {
.funnel_id = GAUDI2_FUNNEL_DCORE2_TPC3_EML,
.etf_id = GAUDI2_ETF_DCORE2_TPC3_EML,
.stm_id = GAUDI2_STM_DCORE2_TPC3_EML,
.spmu_id = GAUDI2_SPMU_DCORE2_TPC3_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE2_TPC3_EML_0,
GAUDI2_BMON_DCORE2_TPC3_EML_1,
GAUDI2_BMON_DCORE2_TPC3_EML_2,
GAUDI2_BMON_DCORE2_TPC3_EML_3,
}
},
[TPC_ID_DCORE2_TPC4] = {
.funnel_id = GAUDI2_FUNNEL_DCORE2_TPC4_EML,
.etf_id = GAUDI2_ETF_DCORE2_TPC4_EML,
.stm_id = GAUDI2_STM_DCORE2_TPC4_EML,
.spmu_id = GAUDI2_SPMU_DCORE2_TPC4_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE2_TPC4_EML_0,
GAUDI2_BMON_DCORE2_TPC4_EML_1,
GAUDI2_BMON_DCORE2_TPC4_EML_2,
GAUDI2_BMON_DCORE2_TPC4_EML_3,
}
},
[TPC_ID_DCORE2_TPC5] = {
.funnel_id = GAUDI2_FUNNEL_DCORE2_TPC5_EML,
.etf_id = GAUDI2_ETF_DCORE2_TPC5_EML,
.stm_id = GAUDI2_STM_DCORE2_TPC5_EML,
.spmu_id = GAUDI2_SPMU_DCORE2_TPC5_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE2_TPC5_EML_0,
GAUDI2_BMON_DCORE2_TPC5_EML_1,
GAUDI2_BMON_DCORE2_TPC5_EML_2,
GAUDI2_BMON_DCORE2_TPC5_EML_3,
}
},
[TPC_ID_DCORE3_TPC0] = {
.funnel_id = GAUDI2_FUNNEL_DCORE3_TPC0_EML,
.etf_id = GAUDI2_ETF_DCORE3_TPC0_EML,
.stm_id = GAUDI2_STM_DCORE3_TPC0_EML,
.spmu_id = GAUDI2_SPMU_DCORE3_TPC0_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE3_TPC0_EML_0,
GAUDI2_BMON_DCORE3_TPC0_EML_1,
GAUDI2_BMON_DCORE3_TPC0_EML_2,
GAUDI2_BMON_DCORE3_TPC0_EML_3,
}
},
[TPC_ID_DCORE3_TPC1] = {
.funnel_id = GAUDI2_FUNNEL_DCORE3_TPC1_EML,
.etf_id = GAUDI2_ETF_DCORE3_TPC1_EML,
.stm_id = GAUDI2_STM_DCORE3_TPC1_EML,
.spmu_id = GAUDI2_SPMU_DCORE3_TPC1_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE3_TPC1_EML_0,
GAUDI2_BMON_DCORE3_TPC1_EML_1,
GAUDI2_BMON_DCORE3_TPC1_EML_2,
GAUDI2_BMON_DCORE3_TPC1_EML_3,
}
},
[TPC_ID_DCORE3_TPC2] = {
.funnel_id = GAUDI2_FUNNEL_DCORE3_TPC2_EML,
.etf_id = GAUDI2_ETF_DCORE3_TPC2_EML,
.stm_id = GAUDI2_STM_DCORE3_TPC2_EML,
.spmu_id = GAUDI2_SPMU_DCORE3_TPC2_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE3_TPC2_EML_0,
GAUDI2_BMON_DCORE3_TPC2_EML_1,
GAUDI2_BMON_DCORE3_TPC2_EML_2,
GAUDI2_BMON_DCORE3_TPC2_EML_3,
}
},
[TPC_ID_DCORE3_TPC3] = {
.funnel_id = GAUDI2_FUNNEL_DCORE3_TPC3_EML,
.etf_id = GAUDI2_ETF_DCORE3_TPC3_EML,
.stm_id = GAUDI2_STM_DCORE3_TPC3_EML,
.spmu_id = GAUDI2_SPMU_DCORE3_TPC3_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE3_TPC3_EML_0,
GAUDI2_BMON_DCORE3_TPC3_EML_1,
GAUDI2_BMON_DCORE3_TPC3_EML_2,
GAUDI2_BMON_DCORE3_TPC3_EML_3,
}
},
[TPC_ID_DCORE3_TPC4] = {
.funnel_id = GAUDI2_FUNNEL_DCORE3_TPC4_EML,
.etf_id = GAUDI2_ETF_DCORE3_TPC4_EML,
.stm_id = GAUDI2_STM_DCORE3_TPC4_EML,
.spmu_id = GAUDI2_SPMU_DCORE3_TPC4_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE3_TPC4_EML_0,
GAUDI2_BMON_DCORE3_TPC4_EML_1,
GAUDI2_BMON_DCORE3_TPC4_EML_2,
GAUDI2_BMON_DCORE3_TPC4_EML_3,
}
},
[TPC_ID_DCORE3_TPC5] = {
.funnel_id = GAUDI2_FUNNEL_DCORE3_TPC5_EML,
.etf_id = GAUDI2_ETF_DCORE3_TPC5_EML,
.stm_id = GAUDI2_STM_DCORE3_TPC5_EML,
.spmu_id = GAUDI2_SPMU_DCORE3_TPC5_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE3_TPC5_EML_0,
GAUDI2_BMON_DCORE3_TPC5_EML_1,
GAUDI2_BMON_DCORE3_TPC5_EML_2,
GAUDI2_BMON_DCORE3_TPC5_EML_3,
}
},
[TPC_ID_DCORE0_TPC6] = {
.funnel_id = GAUDI2_FUNNEL_DCORE0_TPC6_EML,
.etf_id = GAUDI2_ETF_DCORE0_TPC6_EML,
.stm_id = GAUDI2_STM_DCORE0_TPC6_EML,
.spmu_id = GAUDI2_SPMU_DCORE0_TPC6_EML,
.bmon_count = 4,
.bmon_ids = {
GAUDI2_BMON_DCORE0_TPC6_EML_0,
GAUDI2_BMON_DCORE0_TPC6_EML_1,
GAUDI2_BMON_DCORE0_TPC6_EML_2,
GAUDI2_BMON_DCORE0_TPC6_EML_3,
}
}
};
static int gaudi2_coresight_timeout(struct hl_device *hdev, u64 addr,
int position, bool up)
{
int rc;
u32 val, timeout_usec;
if (hdev->pldm)
timeout_usec = GAUDI2_PLDM_CORESIGHT_TIMEOUT_USEC;
else
timeout_usec = CORESIGHT_TIMEOUT_USEC;
rc = hl_poll_timeout(
hdev,
addr,
val,
up ? val & BIT(position) : !(val & BIT(position)),
1000,
timeout_usec);
if (rc)
dev_err(hdev->dev,
"Timeout while waiting for coresight, addr: 0x%llx, position: %d, up: %d\n",
addr, position, up);
return rc;
}
static int gaudi2_unlock_coresight_unit(struct hl_device *hdev,
const u64 base_reg)
{
int rc = 0;
WREG32(base_reg + mmCORESIGHT_UNLOCK_REGISTER_OFFSET, CORESIGHT_UNLOCK);
rc = gaudi2_coresight_timeout(hdev, base_reg + mmCORESIGHT_UNLOCK_STATUS_REGISTER_OFFSET,
1, 0);
if (rc)
dev_err(hdev->dev,
"Failed to unlock register base addr: 0x%llx , position: 1, up: 0\n",
base_reg);
return rc;
}
static int gaudi2_config_stm(struct hl_device *hdev, struct hl_debug_params *params)
{
struct hl_debug_params_stm *input;
u64 base_reg;
u32 frequency;
u32 read_reg;
int rc;
if (params->reg_idx >= ARRAY_SIZE(debug_stm_regs)) {
dev_err(hdev->dev, "Invalid register index in STM\n");
return -EINVAL;
}
base_reg = debug_stm_regs[params->reg_idx];
/*
* in case base reg is 0x0 we ignore this configuration
*/
if (!base_reg)
return 0;
/* check if stub component on pldm
* we check offset 0xCFC STMDMAIDR in case
* return value is 0x0 - hence stub component
*/
read_reg = RREG32(base_reg + mmSTM_STMDMAIDR_OFFSET);
if (hdev->pldm && read_reg == 0x0)
return 0;
rc = gaudi2_unlock_coresight_unit(hdev, base_reg);
if (rc)
return -EIO;
if (params->enable) {
input = params->input;
if (!input)
return -EINVAL;
WREG32(base_reg + mmSTM_STMTCSR_OFFSET, 0x80004);
/* dummy read for pldm to flush outstanding writes */
if (hdev->pldm)
RREG32(base_reg + mmSTM_STMTCSR_OFFSET);
WREG32(base_reg + mmSTM_STMHEMCR_OFFSET, 7);
WREG32(base_reg + mmSTM_STMHEBSR_OFFSET, 0);
WREG32(base_reg + mmSTM_STMHEER_OFFSET, lower_32_bits(input->he_mask));
WREG32(base_reg + mmSTM_STMHEBSR_OFFSET, 1);
WREG32(base_reg + mmSTM_STMHEER_OFFSET, upper_32_bits(input->he_mask));
WREG32(base_reg + mmSTM_STMSPTRIGCSR_OFFSET, 0x10);
WREG32(base_reg + mmSTM_STMSPSCR_OFFSET, 0);
WREG32(base_reg + mmSTM_STMSPER_OFFSET, lower_32_bits(input->sp_mask));
WREG32(base_reg + mmSTM_STMITATBID_OFFSET, input->id);
WREG32(base_reg + mmSTM_STMHEMASTR_OFFSET, 0x80);
frequency = hdev->asic_prop.psoc_timestamp_frequency;
if (frequency == 0)
frequency = input->frequency;
WREG32(base_reg + mmSTM_STMTSFREQR_OFFSET, frequency);
WREG32(base_reg + mmSTM_STMSYNCR_OFFSET, 0x7FF);
WREG32(base_reg + mmSTM_STMTCSR_OFFSET, 0x27 | (input->id << 16));
} else {
WREG32(base_reg + mmSTM_STMTCSR_OFFSET, 4);
WREG32(base_reg + mmSTM_STMHEMCR_OFFSET, 0);
WREG32(base_reg + mmSTM_STMHEBSR_OFFSET, 1);
WREG32(base_reg + mmSTM_STMHEER_OFFSET, 0);
WREG32(base_reg + mmSTM_STMHETER_OFFSET, 0);
WREG32(base_reg + mmSTM_STMHEBSR_OFFSET, 0);
WREG32(base_reg + mmSTM_STMSPTER_OFFSET, 0);
WREG32(base_reg + mmSTM_STMSPER_OFFSET, 0);
WREG32(base_reg + mmSTM_STMHEMASTR_OFFSET, 0x80);
WREG32(base_reg + mmSTM_STMSPTRIGCSR_OFFSET, 0);
WREG32(base_reg + mmSTM_STMSPSCR_OFFSET, 0);
WREG32(base_reg + mmSTM_STMSPMSCR_OFFSET, 0);
WREG32(base_reg + mmSTM_STMTSFREQR_OFFSET, 0);
rc = gaudi2_coresight_timeout(hdev, base_reg + mmSTM_STMTCSR_OFFSET, 23, false);
if (rc) {
dev_err(hdev->dev, "Failed to disable STM on timeout, error %d\n", rc);
return rc;
}
WREG32(base_reg + mmSTM_STMTCSR_OFFSET, 4);
}
return 0;
}
static int gaudi2_config_etf(struct hl_device *hdev, struct hl_debug_params *params)
{
struct hl_debug_params_etf *input;
u64 base_reg;
u32 read_reg;
u32 val;
int rc;
if (params->reg_idx >= ARRAY_SIZE(debug_etf_regs)) {
dev_err(hdev->dev, "Invalid register index in ETF\n");
return -EINVAL;
}
base_reg = debug_etf_regs[params->reg_idx];
/*
* in case base reg is 0x0 we ignore this configuration
*/
if (!base_reg)
return 0;
/* in pldm we need to check if unit is not stub
* for doing do need to read ETF STS register and check
* it is not return 0x0 - in case it does
* it means that this is stub, we ignore this and return 0
* means success
*/
read_reg = RREG32(base_reg + mmETF_STS_OFFSET);
if (hdev->pldm && read_reg == 0x0)
return 0;
rc = gaudi2_unlock_coresight_unit(hdev, base_reg);
if (rc)
return -EIO;
val = RREG32(base_reg + mmETF_FFCR_OFFSET);
val |= 0x1000;
WREG32(base_reg + mmETF_FFCR_OFFSET, val);
val |= 0x40;
WREG32(base_reg + mmETF_FFCR_OFFSET, val);
rc = gaudi2_coresight_timeout(hdev, base_reg + mmETF_FFCR_OFFSET, 6, false);
if (rc) {
dev_err(hdev->dev, "Failed to %s ETF on timeout, error %d\n",
params->enable ? "enable" : "disable", rc);
return rc;
}
rc = gaudi2_coresight_timeout(hdev, base_reg + mmETF_STS_OFFSET, 2, true);
if (rc) {
dev_err(hdev->dev, "Failed to %s ETF on timeout, error %d\n",
params->enable ? "enable" : "disable", rc);
return rc;
}
WREG32(base_reg + mmETF_CTL_OFFSET, 0);
if (params->enable) {
input = params->input;
if (!input)
return -EINVAL;
WREG32(base_reg + mmETF_BUFWM_OFFSET, 0x3FFC);
WREG32(base_reg + mmETF_MODE_OFFSET, input->sink_mode);
WREG32(base_reg + mmETF_FFCR_OFFSET, 0x4001);
WREG32(base_reg + mmETF_PSCR_OFFSET, 0x10);
WREG32(base_reg + mmETF_CTL_OFFSET, 1);
} else {
WREG32(base_reg + mmETF_BUFWM_OFFSET, 0);
WREG32(base_reg + mmETF_MODE_OFFSET, 0);
WREG32(base_reg + mmETF_FFCR_OFFSET, 0);
}
return 0;
}
static int gaudi2_etr_validate_address(struct hl_device *hdev, u64 addr, u64 size)
{
struct asic_fixed_properties *prop = &hdev->asic_prop;
struct gaudi2_device *gaudi2 = hdev->asic_specific;
if (addr > (addr + size)) {
dev_err(hdev->dev, "ETR buffer size %llu overflow\n", size);
return false;
}
if (gaudi2->hw_cap_initialized & HW_CAP_PMMU) {
if (hl_mem_area_inside_range(addr, size,
prop->pmmu.start_addr,
prop->pmmu.end_addr))
return true;
if (hl_mem_area_inside_range(addr, size,
prop->pmmu_huge.start_addr,
prop->pmmu_huge.end_addr))
return true;
if (hl_mem_area_inside_range(addr, size,
prop->dmmu.start_addr,
prop->dmmu.end_addr))
return true;
} else {
if (hl_mem_area_inside_range(addr, size,
prop->dram_user_base_address,
prop->dram_end_address))
return true;
}
if (hl_mem_area_inside_range(addr, size,
prop->sram_user_base_address,
prop->sram_end_address))
return true;
if (!(gaudi2->hw_cap_initialized & HW_CAP_PMMU))
dev_err(hdev->dev, "ETR buffer should be in SRAM/DRAM\n");
return false;
}
static int gaudi2_config_etr(struct hl_device *hdev, struct hl_ctx *ctx,
struct hl_debug_params *params)
{
struct hl_debug_params_etr *input;
u64 msb;
u32 val;
int rc;
rc = gaudi2_unlock_coresight_unit(hdev, mmPSOC_ETR_BASE);
if (rc)
return -EIO;
val = RREG32(mmPSOC_ETR_FFCR);
val |= 0x1000;
WREG32(mmPSOC_ETR_FFCR, val);
val |= 0x40;
WREG32(mmPSOC_ETR_FFCR, val);
rc = gaudi2_coresight_timeout(hdev, mmPSOC_ETR_FFCR, 6, false);
if (rc) {
dev_err(hdev->dev, "Failed to %s ETR on timeout, error %d\n",
params->enable ? "enable" : "disable", rc);
return rc;
}
rc = gaudi2_coresight_timeout(hdev, mmPSOC_ETR_STS, 2, true);
if (rc) {
dev_err(hdev->dev, "Failed to %s ETR on timeout, error %d\n",
params->enable ? "enable" : "disable", rc);
return rc;
}
WREG32(mmPSOC_ETR_CTL, 0);
if (params->enable) {
input = params->input;
if (!input)
return -EINVAL;
if (input->buffer_size == 0) {
dev_err(hdev->dev, "ETR buffer size should be bigger than 0\n");
return -EINVAL;
}
if (!gaudi2_etr_validate_address(hdev, input->buffer_address, input->buffer_size)) {
dev_err(hdev->dev, "ETR buffer address is invalid\n");
return -EINVAL;
}
RMWREG32(mmPSOC_GLOBAL_CONF_TRACE_AWUSER, ctx->asid, MMUBP_ASID_MASK);
RMWREG32(mmPSOC_GLOBAL_CONF_TRACE_ARUSER, ctx->asid, MMUBP_ASID_MASK);
msb = upper_32_bits(input->buffer_address) >> 8;
WREG32(mmPSOC_GLOBAL_CONF_TRACE_ADDR, msb);
WREG32(mmPSOC_ETR_BUFWM, 0x3FFC);
WREG32(mmPSOC_ETR_RSZ, input->buffer_size);
WREG32(mmPSOC_ETR_MODE, input->sink_mode);
/* write the protection bits only if security is disable */
if (!(hdev->fw_components & FW_TYPE_BOOT_CPU)) {
/* make ETR not privileged */
val = FIELD_PREP(PSOC_ETR_AXICTL_PROTCTRLBIT0_MASK, 0);
/* make ETR non-secured (inverted logic) */
val |= FIELD_PREP(PSOC_ETR_AXICTL_PROTCTRLBIT1_MASK, 1);
/* burst size 16 */
val |= FIELD_PREP(PSOC_ETR_AXICTL_WRBURSTLEN_MASK, 0xF);
WREG32(mmPSOC_ETR_AXICTL, val);
}
WREG32(mmPSOC_ETR_DBALO, lower_32_bits(input->buffer_address));
WREG32(mmPSOC_ETR_DBAHI, upper_32_bits(input->buffer_address));
WREG32(mmPSOC_ETR_FFCR, 3);
WREG32(mmPSOC_ETR_PSCR, 0x10);
WREG32(mmPSOC_ETR_CTL, 1);
} else {
WREG32(mmPSOC_ETR_BUFWM, 0);
WREG32(mmPSOC_ETR_RSZ, 0x400);
WREG32(mmPSOC_ETR_DBALO, 0);
WREG32(mmPSOC_ETR_DBAHI, 0);
WREG32(mmPSOC_ETR_PSCR, 0);
WREG32(mmPSOC_ETR_MODE, 0);
WREG32(mmPSOC_ETR_FFCR, 0);
if (params->output_size >= sizeof(u64)) {
u32 rwp, rwphi;
/*
* The trace buffer address is 64 bits wide. The end of
* the buffer is set in the RWP register (lower 32
* bits), and in the RWPHI register (upper 8 bits).
* The 24 msb of the 64-bit address are stored in a
* global configuration register.
*/
rwp = RREG32(mmPSOC_ETR_RWP);
rwphi = RREG32(mmPSOC_ETR_RWPHI) & 0xff;
msb = RREG32(mmPSOC_GLOBAL_CONF_TRACE_ADDR);
*(u64 *) params->output = ((u64) msb << 40) | ((u64) rwphi << 32) | rwp;
}
}
return 0;
}
static int gaudi2_config_funnel(struct hl_device *hdev, struct hl_debug_params *params)
{
u64 base_reg;
u32 val = params->enable ? 0xFFF : 0;
u32 read_reg;
int rc = 0;
if (params->reg_idx >= ARRAY_SIZE(debug_funnel_regs)) {
dev_err(hdev->dev, "Invalid register index in FUNNEL\n");
return -EINVAL;
}
base_reg = debug_funnel_regs[params->reg_idx];
/*
* in case base reg is 0x0 we ignore this configuration
*/
if (!base_reg)
return 0;
/* in pldm we need to check if unit is not stub
* for doing so, need to read DEVID value.
* in case return 0x0 - it means that this is stub,
* we ignore this and return 0 - means success
*/
read_reg = RREG32(base_reg + mmFUNNEL_DEVID_OFFSET);
if (hdev->pldm && read_reg == 0x0)
return 0;
rc = gaudi2_unlock_coresight_unit(hdev, base_reg);
if (rc)
return -EIO;
WREG32(base_reg, val);
return 0;
}
static int gaudi2_config_bmon(struct hl_device *hdev, struct hl_debug_params *params)
{
struct hl_debug_params_bmon *input;
u64 base_reg;
u32 read_reg;
if (params->reg_idx >= ARRAY_SIZE(debug_bmon_regs)) {
dev_err(hdev->dev, "Invalid register index in BMON\n");
return -EINVAL;
}
base_reg = debug_bmon_regs[params->reg_idx];
/*
* in case base reg is 0x0 we ignore this configuration
*/
if (!base_reg)
return 0;
/* in pldm we need to check if unit is not stub
* for doing do need to read Control Register (offset 0x0) and check
* it is not return 0x0 - in case it does
* it means that this is stub, we ignore this and return 0
* means success
*/
read_reg = RREG32(base_reg + mmBMON_CR_OFFSET);
if (hdev->pldm && read_reg == 0x0)
return 0;
WREG32(base_reg + mmBMON_ATTREN_OFFSET, 1);
/* dummy read for pldm to flush outstanding writes */
if (hdev->pldm)
RREG32(base_reg + mmBMON_ATTREN_OFFSET);
/* Write Only Reset AXIMON */
WREG32(base_reg + mmBMON_RESET_OFFSET, 0x1);
if (params->enable) {
input = params->input;
if (!input)
return -EINVAL;
WREG32(base_reg + mmBMON_ADDRL_S0_OFFSET, lower_32_bits(input->start_addr0));
WREG32(base_reg + mmBMON_ADDRH_S0_OFFSET, upper_32_bits(input->start_addr0));
WREG32(base_reg + mmBMON_ADDRL_E0_OFFSET, lower_32_bits(input->addr_mask0));
WREG32(base_reg + mmBMON_ADDRH_E0_OFFSET, upper_32_bits(input->addr_mask0));
WREG32(base_reg + mmBMON_ADDRL_S1_OFFSET, lower_32_bits(input->start_addr1));
WREG32(base_reg + mmBMON_ADDRH_S1_OFFSET, upper_32_bits(input->start_addr1));
WREG32(base_reg + mmBMON_ADDRL_E1_OFFSET, lower_32_bits(input->addr_mask1));
WREG32(base_reg + mmBMON_ADDRH_E1_OFFSET, upper_32_bits(input->addr_mask1));
WREG32(base_reg + mmBMON_ADDRL_S2_OFFSET, lower_32_bits(input->start_addr2));
WREG32(base_reg + mmBMON_ADDRH_S2_OFFSET, upper_32_bits(input->start_addr2));
WREG32(base_reg + mmBMON_ADDRL_E2_OFFSET, lower_32_bits(input->end_addr2));
WREG32(base_reg + mmBMON_ADDRH_E2_OFFSET, upper_32_bits(input->end_addr2));
WREG32(base_reg + mmBMON_ADDRL_S3_OFFSET, lower_32_bits(input->start_addr3));
WREG32(base_reg + mmBMON_ADDRH_S3_OFFSET, upper_32_bits(input->start_addr3));
WREG32(base_reg + mmBMON_ADDRL_E3_OFFSET, lower_32_bits(input->end_addr3));
WREG32(base_reg + mmBMON_ADDRH_E3_OFFSET, upper_32_bits(input->end_addr3));
WREG32(base_reg + mmBMON_IDL_OFFSET, 0x0);
WREG32(base_reg + mmBMON_IDH_OFFSET, 0x0);
WREG32(base_reg + mmBMON_ATTREN_OFFSET, 0);
WREG32(base_reg + mmBMON_BW_WIN_OFFSET, input->bw_win);
WREG32(base_reg + mmBMON_WIN_CAPTURE_OFFSET, input->win_capture);
WREG32(base_reg + mmBMON_REDUCTION_OFFSET, 0x1 | (13 << 8));
WREG32(base_reg + mmBMON_STM_TRC_OFFSET, 0x7 | (input->id << 8));
WREG32(base_reg + mmBMON_CR_OFFSET, input->control);
} else {
WREG32(base_reg + mmBMON_ADDRL_S0_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRH_S0_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRL_E0_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRH_E0_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRL_S1_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRH_S1_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRL_E1_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRH_E1_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRL_S2_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRH_S2_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRL_E2_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRH_E2_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRL_S3_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRH_S3_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRL_E3_OFFSET, 0);
WREG32(base_reg + mmBMON_ADDRH_E3_OFFSET, 0);
WREG32(base_reg + mmBMON_REDUCTION_OFFSET, 0);
WREG32(base_reg + mmBMON_STM_TRC_OFFSET, 0x7 | (0xA << 8));
WREG32(base_reg + mmBMON_CR_OFFSET, 0x77 | 0xf << 24);
}
return 0;
}
static int gaudi2_config_spmu(struct hl_device *hdev, struct hl_debug_params *params)
{
struct hl_debug_params_spmu *input = params->input;
u32 output_arr_len;
u32 cycle_cnt_idx;
u32 overflow_idx;
u32 events_num;
u32 event_mask;
u64 base_reg;
u32 read_reg;
u64 *output;
int i;
if (params->reg_idx >= ARRAY_SIZE(debug_spmu_regs)) {
dev_err(hdev->dev, "Invalid register index in SPMU\n");
return -EINVAL;
}
base_reg = debug_spmu_regs[params->reg_idx];
/*
* in case base reg is 0x0 we ignore this configuration
*/
if (!base_reg)
return 0;
/* in pldm we need to check if unit is not stub
* for doing do need to read PMTRC (at offset 0x200)
* address and check if return value is 0x0 - in case it does
* it means that this is stub, we ignore this and return 0
* means success
*/
read_reg = RREG32(base_reg + mmSPMU_PMCR_EL0_OFFSET);
if (hdev->pldm && read_reg == 0x0)
return 0;
if (params->enable) {
input = params->input;
if (!input)
return -EINVAL;
if (input->event_types_num > SPMU_MAX_COUNTERS) {
dev_err(hdev->dev, "too many event types values for SPMU enable\n");
return -EINVAL;
}
WREG32(base_reg + mmSPMU_PMCR_EL0_OFFSET, 0x41013046);
WREG32(base_reg + mmSPMU_PMCR_EL0_OFFSET, 0x41013040);
/* dummy read for pldm to flush outstanding writes */
if (hdev->pldm)
RREG32(base_reg);
for (i = 0 ; i < input->event_types_num ; i++)
WREG32(base_reg + mmSPMU_PMEVTYPER0_EL0_OFFSET + i * 4,
input->event_types[i]);
WREG32(base_reg + mmSPMU_PMTRC_OFFSET, input->pmtrc_val);
WREG32(base_reg + mmSPMU_TRC_CTRL_HOST_OFFSET, input->trc_ctrl_host_val);
WREG32(base_reg + mmSPMU_TRC_EN_HOST_OFFSET, input->trc_en_host_val);
WREG32(base_reg + mmSPMU_PMCR_EL0_OFFSET, 0x41013041);
/*
* set enabled events mask based on input->event_types_num
*/
event_mask = 0x80000000;
event_mask |= GENMASK(input->event_types_num, 0);
WREG32(base_reg + mmSPMU_PMCNTENSET_EL0_OFFSET, event_mask);
} else {
output = params->output;
output_arr_len = params->output_size / 8;
events_num = output_arr_len - 2;
overflow_idx = output_arr_len - 2;
cycle_cnt_idx = output_arr_len - 1;
WREG32(base_reg + mmSPMU_PMCR_EL0_OFFSET, 0x41013040);
if (output && output_arr_len > 2) {
if (events_num > SPMU_MAX_COUNTERS) {
dev_err(hdev->dev, "too many events values for SPMU disable\n");
return -EINVAL;
}
for (i = 0 ; i < events_num ; i++) {
const u64 performance_counter_offset =
base_reg + mmSPMU_PMEVCNTR0_EL0_OFFSET + (i * 8);
output[i] = RREG32(performance_counter_offset);
}
output[overflow_idx] = RREG32(base_reg + mmSPMU_PMOVSSET_EL0_OFFSET);
output[cycle_cnt_idx] = RREG32(base_reg + mmSPMU_PMCCNTR_H_EL0_OFFSET);
output[cycle_cnt_idx] <<= 32;
output[cycle_cnt_idx] |= RREG32(base_reg + mmSPMU_PMCCNTR_L_EL0_OFFSET);
}
WREG32(base_reg + mmSPMU_PMOVSSET_EL0_OFFSET, 0);
/* clean pmtrc to reset value */
WREG32(base_reg + mmSPMU_PMTRC_OFFSET, 0x100400);
}
return 0;
}
int gaudi2_debug_coresight(struct hl_device *hdev, struct hl_ctx *ctx, void *data)
{
struct hl_debug_params *params = data;
int rc = 0;
switch (params->op) {
case HL_DEBUG_OP_STM:
rc = gaudi2_config_stm(hdev, params);
break;
case HL_DEBUG_OP_ETF:
rc = gaudi2_config_etf(hdev, params);
break;
case HL_DEBUG_OP_ETR:
rc = gaudi2_config_etr(hdev, ctx, params);
break;
case HL_DEBUG_OP_FUNNEL:
rc = gaudi2_config_funnel(hdev, params);
break;
case HL_DEBUG_OP_BMON:
rc = gaudi2_config_bmon(hdev, params);
break;
case HL_DEBUG_OP_SPMU:
rc = gaudi2_config_spmu(hdev, params);
break;
case HL_DEBUG_OP_TIMESTAMP:
/* Do nothing as this opcode is deprecated */
break;
default:
dev_err(hdev->dev, "Unknown coresight id %d\n", params->op);
return -EINVAL;
}
return rc;
}
void gaudi2_halt_coresight(struct hl_device *hdev, struct hl_ctx *ctx)
{
struct hl_debug_params params = {};
int i, rc;
/* in pldm attempting to access stubbed etfs can cause problems */
if (!hdev->pldm)
for (i = GAUDI2_ETF_FIRST ; i <= GAUDI2_ETF_LAST ; i++) {
params.reg_idx = i;
rc = gaudi2_config_etf(hdev, &params);
if (rc)
dev_err(hdev->dev, "halt ETF failed, %d/%d\n", rc, i);
}
rc = gaudi2_config_etr(hdev, ctx, &params);
if (rc)
dev_err(hdev->dev, "halt ETR failed, %d\n", rc);
}
static int gaudi2_coresight_set_disabled_components(struct hl_device *hdev, u32 unit_count,
u32 enabled_mask,
const struct component_config_offsets *binning_table)
{
u32 component_idx = 0;
u32 disabled_mask;
u32 full_mask;
/* in case no unit - no need to do work */
if (!unit_count)
return 0;
full_mask = GENMASK(unit_count - 1, 0);
/* set the disable bits on disabled mask */
disabled_mask = (~enabled_mask) & full_mask;
while (disabled_mask) {
u32 component_mask = 1 << component_idx;
if (component_idx >= unit_count) {
dev_err(hdev->dev, "index is out of range index(%u) >= units_count(%u)\n",
component_idx, unit_count);
return -EINVAL;
}
/*
* in case mask is set, driver need to set to 0x0
* all offsets for the following structures in the appropriate indices:
* debug_funnel_regs - offsets for all cs_dbg FUNNELs
* debug_etf_regs - offsets for all cs_dbg ETFs
* debug_stm_regs - offsets for all cs_dbg STMs
* debug_spmu_regs - offsets for all cs_dbg SPMUs
* debug_bmon_regs - offsets for all cs_dbg BMONs
* when value is set to COMPONENT_ID_INVALID -
* it means there is no such register for current component.
*/
if (disabled_mask & component_mask) {
u32 bmon_idx;
const struct component_config_offsets *binned_component =
&(binning_table[component_idx]);
if (binned_component->funnel_id != COMPONENT_ID_INVALID)
debug_funnel_regs[binned_component->funnel_id] = 0x0;
if (binned_component->etf_id != COMPONENT_ID_INVALID)
debug_etf_regs[binned_component->etf_id] = 0x0;
if (binned_component->stm_id != COMPONENT_ID_INVALID)
debug_stm_regs[binned_component->stm_id] = 0x0;
if (binned_component->spmu_id != COMPONENT_ID_INVALID)
debug_spmu_regs[binned_component->spmu_id] = 0x0;
for (bmon_idx = 0; bmon_idx < binned_component->bmon_count; bmon_idx++)
debug_bmon_regs[binned_component->bmon_ids[bmon_idx]] = 0x0;
/*
* reset enabled bit
*/
disabled_mask &= ~component_mask;
}
component_idx++;
}
return 0;
}
int gaudi2_coresight_init(struct hl_device *hdev)
{
struct asic_fixed_properties *prop = &hdev->asic_prop;
int ret;
/*
* Mask out all the disabled binned offsets.
* so when user request to configure a binned or masked out component,
* driver will ignore programing it ( happens when offset value is set to 0x0 )
* this is being set in gaudi2_coresight_set_disabled_components
*/
/* Set TPC disable components */
ret = gaudi2_coresight_set_disabled_components(hdev, TPC_ID_SIZE, prop->tpc_enabled_mask,
tpc_binning_cfg_table);
if (ret) {
dev_err(hdev->dev, "Failed to set disabled cs_dbg units for tpc coresight\n");
return ret;
}
/* Set decoder disable components */
ret = gaudi2_coresight_set_disabled_components(hdev, DEC_ID_SIZE,
prop->decoder_enabled_mask, decoder_binning_cfg_table);
if (ret) {
dev_err(hdev->dev, "Failed to set disabled cs_dbg units for decoder coresight\n");
return ret;
}
/* Set HBM (MC0 and MC1) disable components */
ret = gaudi2_coresight_set_disabled_components(hdev, HBM_ID_SIZE, prop->dram_enabled_mask,
hbm_mc0_binning_cfg_table);
if (ret) {
dev_err(hdev->dev, "Failed to set disabled cs_dbg units for hbm mc0 coresight\n");
return ret;
}
ret = gaudi2_coresight_set_disabled_components(hdev, HBM_ID_SIZE, prop->dram_enabled_mask,
hbm_mc1_binning_cfg_table);
if (ret) {
dev_err(hdev->dev, "Failed to set disabled cs_dbg units for hbm mc1 coresight\n");
return ret;
}
/* Set HIF_HMMU disable components */
ret = gaudi2_coresight_set_disabled_components(hdev, HMMU_ID_SIZE,
prop->hmmu_hif_enabled_mask, hmmu_binning_cfg_table);
if (ret) {
dev_err(hdev->dev, "Failed to set disabled cs_dbg units for hmmu coresight\n");
return ret;
}
/* Set XBAR_EDGE disable components */
ret = gaudi2_coresight_set_disabled_components(hdev, XBAR_EDGE_ID_SIZE,
prop->xbar_edge_enabled_mask, xbar_edge_binning_cfg_table);
if (ret) {
dev_err(hdev->dev, "Failed to set disabled cs_dbg units for xbar_edge coresight\n");
return ret;
}
/* Set EDMA disable components */
ret = gaudi2_coresight_set_disabled_components(hdev, EDMA_ID_SIZE, prop->edma_enabled_mask,
edma_binning_cfg_table);
if (ret) {
dev_err(hdev->dev, "Failed to set disabled cs_dbg units for edma coresight\n");
return ret;
}
return 0;
}