From f6066c9ba1c5a38ae9c3a1a28488edd4aa68bb69 Mon Sep 17 00:00:00 2001 From: Reza Arbab Date: Fri, 13 Jul 2018 16:02:43 -0500 Subject: npu2/hw-procedures: Enable parity and credit overflow checks Enable these error checking features by setting the appropriate bits in our one-off initialization of each "NTL Misc Config 2" register. The exception is NDL RX parity checking, which should be disabled during the link training procedures. Signed-off-by: Reza Arbab Reviewed-by: Andrew Donnellan Signed-off-by: Stewart Smith (cherry picked from commit 041d69bb1a7084778d63a846d109c148c7a0009a) Signed-off-by: Stewart Smith --- include/npu2-regs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') diff --git a/include/npu2-regs.h b/include/npu2-regs.h index f67af97..7eb9d46 100644 --- a/include/npu2-regs.h +++ b/include/npu2-regs.h @@ -269,6 +269,10 @@ void npu2_scom_write(uint64_t gcid, uint64_t scom_base, /* NTL block registers */ #define NPU2_NTL_MISC_CFG2(ndev) NPU2_NTL_REG_OFFSET(ndev, 0x000) #define NPU2_NTL_MISC_CFG2_BRICK_ENABLE PPC_BIT(0) +#define NPU2_NTL_MISC_CFG2_NDL_RX_PARITY_ENA PPC_BIT(16) +#define NPU2_NTL_MISC_CFG2_NDL_TX_PARITY_ENA PPC_BIT(17) +#define NPU2_NTL_MISC_CFG2_NDL_PRI_PARITY_ENA PPC_BIT(18) +#define NPU2_NTL_MISC_CFG2_RCV_CREDIT_OVERFLOW_ENA PPC_BIT(19) #define NPU2_NTL_MISC_CFG3(ndev) NPU2_NTL_REG_OFFSET(ndev, 0x008) #define NPU2_NTL_ERR_HOLD1(ndev) NPU2_NTL_REG_OFFSET(ndev, 0x010) #define NPU2_NTL_ERR_MASK1(ndev) NPU2_NTL_REG_OFFSET(ndev, 0x018) -- cgit v1.1