|
@@ -568,3 +568,192 @@ marvel_print_pox_spl_cmplt(u64 spl_cmplt)
|
|
|
break;
|
|
|
case 0x101:
|
|
|
sprintf(message, "Bridge - Target Abort");
|
|
|
+ break;
|
|
|
+ case 0x102:
|
|
|
+ sprintf(message, "Bridge - Uncorrectable Write Data Error");
|
|
|
+ break;
|
|
|
+ case 0x200:
|
|
|
+ sprintf(message, "Byte Count Out of Range");
|
|
|
+ break;
|
|
|
+ case 0x201:
|
|
|
+ sprintf(message, "Uncorrectable Split Write Data Error");
|
|
|
+ break;
|
|
|
+ default:
|
|
|
+ sprintf(message, "%08llx\n",
|
|
|
+ EXTRACT(spl_cmplt, IO7__POX_SPLCMPLT__MESSAGE));
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ printk("%s Message: %s\n", err_print_prefix, message);
|
|
|
+}
|
|
|
+
|
|
|
+static void
|
|
|
+marvel_print_pox_trans_sum(u64 trans_sum)
|
|
|
+{
|
|
|
+ static const char * const pcix_cmd[] = {
|
|
|
+ "Interrupt Acknowledge",
|
|
|
+ "Special Cycle",
|
|
|
+ "I/O Read",
|
|
|
+ "I/O Write",
|
|
|
+ "Reserved",
|
|
|
+ "Reserved / Device ID Message",
|
|
|
+ "Memory Read",
|
|
|
+ "Memory Write",
|
|
|
+ "Reserved / Alias to Memory Read Block",
|
|
|
+ "Reserved / Alias to Memory Write Block",
|
|
|
+ "Configuration Read",
|
|
|
+ "Configuration Write",
|
|
|
+ "Memory Read Multiple / Split Completion",
|
|
|
+ "Dual Address Cycle",
|
|
|
+ "Memory Read Line / Memory Read Block",
|
|
|
+ "Memory Write and Invalidate / Memory Write Block"
|
|
|
+ };
|
|
|
+
|
|
|
+#define IO7__POX_TRANSUM__PCI_ADDR__S (0)
|
|
|
+#define IO7__POX_TRANSUM__PCI_ADDR__M (0x3fffffffffffful)
|
|
|
+#define IO7__POX_TRANSUM__DAC (1UL << 50)
|
|
|
+#define IO7__POX_TRANSUM__PCIX_MASTER_SLOT__S (52)
|
|
|
+#define IO7__POX_TRANSUM__PCIX_MASTER_SLOT__M (0xf)
|
|
|
+#define IO7__POX_TRANSUM__PCIX_CMD__S (56)
|
|
|
+#define IO7__POX_TRANSUM__PCIX_CMD__M (0xf)
|
|
|
+#define IO7__POX_TRANSUM__ERR_VALID (1UL << 63)
|
|
|
+
|
|
|
+ if (!(trans_sum & IO7__POX_TRANSUM__ERR_VALID))
|
|
|
+ return;
|
|
|
+
|
|
|
+ printk("%s Transaction Summary:\n"
|
|
|
+ "%s Command: 0x%llx - %s\n"
|
|
|
+ "%s Address: 0x%016llx%s\n"
|
|
|
+ "%s PCI-X Master Slot: 0x%llx\n",
|
|
|
+ err_print_prefix,
|
|
|
+ err_print_prefix,
|
|
|
+ EXTRACT(trans_sum, IO7__POX_TRANSUM__PCIX_CMD),
|
|
|
+ pcix_cmd[EXTRACT(trans_sum, IO7__POX_TRANSUM__PCIX_CMD)],
|
|
|
+ err_print_prefix,
|
|
|
+ EXTRACT(trans_sum, IO7__POX_TRANSUM__PCI_ADDR),
|
|
|
+ (trans_sum & IO7__POX_TRANSUM__DAC) ? " (DAC)" : "",
|
|
|
+ err_print_prefix,
|
|
|
+ EXTRACT(trans_sum, IO7__POX_TRANSUM__PCIX_MASTER_SLOT));
|
|
|
+}
|
|
|
+
|
|
|
+static void
|
|
|
+marvel_print_pox_err(u64 err_sum, struct ev7_pal_io_one_port *port)
|
|
|
+{
|
|
|
+#define IO7__POX_ERRSUM__AGP_REQQ_OVFL (1UL << 4)
|
|
|
+#define IO7__POX_ERRSUM__AGP_SYNC_ERR (1UL << 5)
|
|
|
+#define IO7__POX_ERRSUM__MRETRY_TO (1UL << 6)
|
|
|
+#define IO7__POX_ERRSUM__PCIX_UX_SPL (1UL << 7)
|
|
|
+#define IO7__POX_ERRSUM__PCIX_SPLIT_TO (1UL << 8)
|
|
|
+#define IO7__POX_ERRSUM__PCIX_DISCARD_SPL (1UL << 9)
|
|
|
+#define IO7__POX_ERRSUM__DMA_RD_TO (1UL << 10)
|
|
|
+#define IO7__POX_ERRSUM__CSR_NXM_RD (1UL << 11)
|
|
|
+#define IO7__POX_ERRSUM__CSR_NXM_WR (1UL << 12)
|
|
|
+#define IO7__POX_ERRSUM__DMA_TO (1UL << 13)
|
|
|
+#define IO7__POX_ERRSUM__ALL_MABORTS (1UL << 14)
|
|
|
+#define IO7__POX_ERRSUM__MABORT (1UL << 15)
|
|
|
+#define IO7__POX_ERRSUM__MABORT_MASK (IO7__POX_ERRSUM__ALL_MABORTS|\
|
|
|
+ IO7__POX_ERRSUM__MABORT)
|
|
|
+#define IO7__POX_ERRSUM__PT_TABORT (1UL << 16)
|
|
|
+#define IO7__POX_ERRSUM__PM_TABORT (1UL << 17)
|
|
|
+#define IO7__POX_ERRSUM__TABORT_MASK (IO7__POX_ERRSUM__PT_TABORT | \
|
|
|
+ IO7__POX_ERRSUM__PM_TABORT)
|
|
|
+#define IO7__POX_ERRSUM__SERR (1UL << 18)
|
|
|
+#define IO7__POX_ERRSUM__ADDRERR_STB (1UL << 19)
|
|
|
+#define IO7__POX_ERRSUM__DETECTED_SERR (1UL << 20)
|
|
|
+#define IO7__POX_ERRSUM__PERR (1UL << 21)
|
|
|
+#define IO7__POX_ERRSUM__DATAERR_STB_NIOW (1UL << 22)
|
|
|
+#define IO7__POX_ERRSUM__DETECTED_PERR (1UL << 23)
|
|
|
+#define IO7__POX_ERRSUM__PM_PERR (1UL << 24)
|
|
|
+#define IO7__POX_ERRSUM__PT_SCERROR (1UL << 26)
|
|
|
+#define IO7__POX_ERRSUM__HUNG_BUS (1UL << 28)
|
|
|
+#define IO7__POX_ERRSUM__UPE_ERROR__S (51)
|
|
|
+#define IO7__POX_ERRSUM__UPE_ERROR__M (0xffUL)
|
|
|
+#define IO7__POX_ERRSUM__UPE_ERROR GEN_MASK(IO7__POX_ERRSUM__UPE_ERROR)
|
|
|
+#define IO7__POX_ERRSUM__TLB_ERR (1UL << 59)
|
|
|
+#define IO7__POX_ERRSUM__ERR_VALID (1UL << 63)
|
|
|
+
|
|
|
+#define IO7__POX_ERRSUM__TRANS_SUM__MASK (IO7__POX_ERRSUM__MRETRY_TO | \
|
|
|
+ IO7__POX_ERRSUM__PCIX_UX_SPL | \
|
|
|
+ IO7__POX_ERRSUM__PCIX_SPLIT_TO | \
|
|
|
+ IO7__POX_ERRSUM__DMA_TO | \
|
|
|
+ IO7__POX_ERRSUM__MABORT_MASK | \
|
|
|
+ IO7__POX_ERRSUM__TABORT_MASK | \
|
|
|
+ IO7__POX_ERRSUM__SERR | \
|
|
|
+ IO7__POX_ERRSUM__ADDRERR_STB | \
|
|
|
+ IO7__POX_ERRSUM__PERR | \
|
|
|
+ IO7__POX_ERRSUM__DATAERR_STB_NIOW |\
|
|
|
+ IO7__POX_ERRSUM__DETECTED_PERR | \
|
|
|
+ IO7__POX_ERRSUM__PM_PERR | \
|
|
|
+ IO7__POX_ERRSUM__PT_SCERROR | \
|
|
|
+ IO7__POX_ERRSUM__UPE_ERROR)
|
|
|
+
|
|
|
+ if (!(err_sum & IO7__POX_ERRSUM__ERR_VALID))
|
|
|
+ return;
|
|
|
+
|
|
|
+ /*
|
|
|
+ * First the transaction summary errors
|
|
|
+ */
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__MRETRY_TO)
|
|
|
+ printk("%s IO7 Master Retry Timeout expired\n",
|
|
|
+ err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__PCIX_UX_SPL)
|
|
|
+ printk("%s Unexpected Split Completion\n",
|
|
|
+ err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__PCIX_SPLIT_TO)
|
|
|
+ printk("%s IO7 Split Completion Timeout expired\n",
|
|
|
+ err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__DMA_TO)
|
|
|
+ printk("%s Hung bus during DMA transaction\n",
|
|
|
+ err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__MABORT_MASK)
|
|
|
+ printk("%s Master Abort\n", err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__PT_TABORT)
|
|
|
+ printk("%s IO7 Asserted Target Abort\n", err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__PM_TABORT)
|
|
|
+ printk("%s IO7 Received Target Abort\n", err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__ADDRERR_STB) {
|
|
|
+ printk("%s Address or PCI-X Attribute Parity Error\n",
|
|
|
+ err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__SERR)
|
|
|
+ printk("%s IO7 Asserted SERR\n", err_print_prefix);
|
|
|
+ }
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__PERR) {
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__DATAERR_STB_NIOW)
|
|
|
+ printk("%s IO7 Detected Data Parity Error\n",
|
|
|
+ err_print_prefix);
|
|
|
+ else
|
|
|
+ printk("%s Split Completion Response with "
|
|
|
+ "Parity Error\n", err_print_prefix);
|
|
|
+ }
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__DETECTED_PERR)
|
|
|
+ printk("%s PERR detected\n", err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__PM_PERR)
|
|
|
+ printk("%s PERR while IO7 is master\n", err_print_prefix);
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__PT_SCERROR) {
|
|
|
+ printk("%s IO7 Received Split Completion Error message\n",
|
|
|
+ err_print_prefix);
|
|
|
+ marvel_print_pox_spl_cmplt(port->pox_spl_cmplt);
|
|
|
+ }
|
|
|
+ if (err_sum & IO7__POX_ERRSUM__UPE_ERROR) {
|
|
|
+ unsigned int upe_error = EXTRACT(err_sum,
|
|
|
+ IO7__POX_ERRSUM__UPE_ERROR);
|
|
|
+ int i;
|
|
|
+ static char *upe_errors[] = {
|
|
|
+ "Parity Error on MSI write data",
|
|
|
+ "MSI read (MSI window is write only",
|
|
|
+ "TLB - Invalid WR transaction",
|
|
|
+ "TLB - Invalid RD transaction",
|
|
|
+ "DMA - WR error (see north port)",
|
|
|
+ "DMA - RD error (see north port)",
|
|
|
+ "PPR - WR error (see north port)",
|
|
|
+ "PPR - RD error (see north port)"
|
|
|
+ };
|
|
|
+
|
|
|
+ printk("%s UPE Error:\n", err_print_prefix);
|
|
|
+ for (i = 0; i < 8; i++) {
|
|
|
+ if (upe_error & (1 << i))
|
|
|
+ printk("%s %s\n", err_print_prefix,
|
|
|
+ upe_errors[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ /*
|