diff options
author | Reza Arbab <arbab@linux.ibm.com> | 2018-07-13 16:02:43 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-07-17 01:13:17 -0500 |
commit | 041d69bb1a7084778d63a846d109c148c7a0009a (patch) | |
tree | c78630372c8bcd01b8f46b36071d1f4b869821f4 /hw/npu2.c | |
parent | c2493fd0ce30dd4204cf4cec2e9c4496201a0cf1 (diff) | |
download | talos-skiboot-041d69bb1a7084778d63a846d109c148c7a0009a.tar.gz talos-skiboot-041d69bb1a7084778d63a846d109c148c7a0009a.zip |
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 <arbab@linux.ibm.com>
Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/npu2.c')
-rw-r--r-- | hw/npu2.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1404,7 +1404,10 @@ static void npu2_probe_phb(struct dt_node *dn) xscom_write_mask(gcid, 0x50112f1, PPC_BIT(41), PPC_BIT(41)); xscom_write_mask(gcid, 0x50114f1, PPC_BIT(41), PPC_BIT(41)); - val = NPU2_NTL_MISC_CFG2_BRICK_ENABLE; + val = NPU2_NTL_MISC_CFG2_BRICK_ENABLE | + NPU2_NTL_MISC_CFG2_NDL_TX_PARITY_ENA | + NPU2_NTL_MISC_CFG2_NDL_PRI_PARITY_ENA | + NPU2_NTL_MISC_CFG2_RCV_CREDIT_OVERFLOW_ENA; xscom_write_mask(gcid, 0x5011110, val, val); xscom_write_mask(gcid, 0x5011130, val, val); xscom_write_mask(gcid, 0x5011310, val, val); |