summaryrefslogtreecommitdiffstats
path: root/hw/npu2.c
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.ibm.com>2018-07-13 16:02:43 -0500
committerStewart Smith <stewart@linux.ibm.com>2018-07-17 01:13:17 -0500
commit041d69bb1a7084778d63a846d109c148c7a0009a (patch)
treec78630372c8bcd01b8f46b36071d1f4b869821f4 /hw/npu2.c
parentc2493fd0ce30dd4204cf4cec2e9c4496201a0cf1 (diff)
downloadtalos-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.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/hw/npu2.c b/hw/npu2.c
index 231bd6eb..ef2d4a98 100644
--- a/hw/npu2.c
+++ b/hw/npu2.c
@@ -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);
OpenPOWER on IntegriCloud