Lines Matching +full:- +full:1 +full:ul
1 // SPDX-License-Identifier: GPL-2.0
49 env = lf_subpackets->env[ev7_lf_env_index(ev_packets[i].type)]; in marvel_print_680_frame()
56 env->cabinet, in marvel_print_680_frame()
57 env->drawer); in marvel_print_680_frame()
58 printk("%s Module Type: 0x%x - Unit ID 0x%x - " in marvel_print_680_frame()
61 env->module_type, in marvel_print_680_frame()
62 env->unit_id, in marvel_print_680_frame()
63 env->condition); in marvel_print_680_frame()
77 if (lf_subpackets->env[i]) in marvel_process_680_frame()
95 "1 cycle (1 or 2 flit packet)", in marvel_print_err_cyc()
104 #define IO7__ERR_CYC__ODD_FLT (1UL << 0) in marvel_print_err_cyc()
105 #define IO7__ERR_CYC__EVN_FLT (1UL << 1) in marvel_print_err_cyc()
108 #define IO7__ERR_CYC__LOC (1UL << 5) in marvel_print_err_cyc()
142 static char *clk_names[] = { "_h[0]", "_h[1]", "_n[0]", "_n[1]" }; in marvel_print_po7_uncrr_sym()
149 static char *port_names[] = { "Port 0", "Port 1", in marvel_print_po7_uncrr_sym()
161 #define IO7__PO7_UNCRR_SYM__CDT_OVF_TO__REQ (1UL << 24) in marvel_print_po7_uncrr_sym()
162 #define IO7__PO7_UNCRR_SYM__CDT_OVF_TO__RIO (1UL << 25) in marvel_print_po7_uncrr_sym()
163 #define IO7__PO7_UNCRR_SYM__CDT_OVF_TO__WIO (1UL << 26) in marvel_print_po7_uncrr_sym()
164 #define IO7__PO7_UNCRR_SYM__CDT_OVF_TO__BLK (1UL << 27) in marvel_print_po7_uncrr_sym()
165 #define IO7__PO7_UNCRR_SYM__CDT_OVF_TO__NBK (1UL << 28) in marvel_print_po7_uncrr_sym()
166 #define IO7__PO7_UNCRR_SYM__OVF__READIO (1UL << 29) in marvel_print_po7_uncrr_sym()
167 #define IO7__PO7_UNCRR_SYM__OVF__WRITEIO (1UL << 30) in marvel_print_po7_uncrr_sym()
168 #define IO7__PO7_UNCRR_SYM__OVF__FWD (1UL << 31) in marvel_print_po7_uncrr_sym()
184 #define IO7__STRV_VTR__IS_MSI (1UL << 9) in marvel_print_po7_uncrr_sym()
233 int lost = scratch & (1UL << 4); in marvel_print_po7_uncrr_sym()
235 for (i = 0; i < 8; i++, scratch >>= 1) { in marvel_print_po7_uncrr_sym()
236 if (!(scratch & 1)) in marvel_print_po7_uncrr_sym()
247 for (i = 0; i < 8; i++, scratch >>= 1) { in marvel_print_po7_uncrr_sym()
248 if (!(scratch & 1)) in marvel_print_po7_uncrr_sym()
289 #define IO7__PO7_UGBGE_SYM__VALID (1UL << 63) in marvel_print_po7_ugbge_sym()
317 "%s Source Port: %lld - Dest PID: %lld - OpCode: %s\n", in marvel_print_po7_ugbge_sym()
335 #define IO7__PO7_ERRSUM__CR_SBE (1UL << 32) in marvel_print_po7_err_sum()
336 #define IO7__PO7_ERRSUM__CR_SBE2 (1UL << 33) in marvel_print_po7_err_sum()
337 #define IO7__PO7_ERRSUM__CR_PIO_WBYTE (1UL << 34) in marvel_print_po7_err_sum()
338 #define IO7__PO7_ERRSUM__CR_CSR_NXM (1UL << 35) in marvel_print_po7_err_sum()
339 #define IO7__PO7_ERRSUM__CR_RPID_ACV (1UL << 36) in marvel_print_po7_err_sum()
340 #define IO7__PO7_ERRSUM__CR_RSP_NXM (1UL << 37) in marvel_print_po7_err_sum()
341 #define IO7__PO7_ERRSUM__CR_ERR_RESP (1UL << 38) in marvel_print_po7_err_sum()
342 #define IO7__PO7_ERRSUM__CR_CLK_DERR (1UL << 39) in marvel_print_po7_err_sum()
343 #define IO7__PO7_ERRSUM__CR_DAT_DBE (1UL << 40) in marvel_print_po7_err_sum()
344 #define IO7__PO7_ERRSUM__CR_DAT_GRBG (1UL << 41) in marvel_print_po7_err_sum()
345 #define IO7__PO7_ERRSUM__MAF_TO (1UL << 42) in marvel_print_po7_err_sum()
346 #define IO7__PO7_ERRSUM__UGBGE (1UL << 43) in marvel_print_po7_err_sum()
347 #define IO7__PO7_ERRSUM__UN_MAF_LOST (1UL << 44) in marvel_print_po7_err_sum()
348 #define IO7__PO7_ERRSUM__UN_PKT_OVF (1UL << 45) in marvel_print_po7_err_sum()
349 #define IO7__PO7_ERRSUM__UN_CDT_OVF (1UL << 46) in marvel_print_po7_err_sum()
350 #define IO7__PO7_ERRSUM__UN_DEALLOC (1UL << 47) in marvel_print_po7_err_sum()
351 #define IO7__PO7_ERRSUM__BH_CDT_TO (1UL << 51) in marvel_print_po7_err_sum()
352 #define IO7__PO7_ERRSUM__BH_CLK_HDR (1UL << 52) in marvel_print_po7_err_sum()
353 #define IO7__PO7_ERRSUM__BH_DBE_HDR (1UL << 53) in marvel_print_po7_err_sum()
354 #define IO7__PO7_ERRSUM__BH_GBG_HDR (1UL << 54) in marvel_print_po7_err_sum()
355 #define IO7__PO7_ERRSUM__BH_BAD_CMD (1UL << 55) in marvel_print_po7_err_sum()
356 #define IO7__PO7_ERRSUM__HLT_INT (1UL << 56) in marvel_print_po7_err_sum()
357 #define IO7__PO7_ERRSUM__HP_INT (1UL << 57) in marvel_print_po7_err_sum()
358 #define IO7__PO7_ERRSUM__CRD_INT (1UL << 58) in marvel_print_po7_err_sum()
359 #define IO7__PO7_ERRSUM__STV_INT (1UL << 59) in marvel_print_po7_err_sum()
360 #define IO7__PO7_ERRSUM__HRD_INT (1UL << 60) in marvel_print_po7_err_sum()
361 #define IO7__PO7_ERRSUM__BH_SUM (1UL << 61) in marvel_print_po7_err_sum()
362 #define IO7__PO7_ERRSUM__ERR_LST (1UL << 62) in marvel_print_po7_err_sum()
363 #define IO7__PO7_ERRSUM__ERR_VALID (1UL << 63) in marvel_print_po7_err_sum()
371 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_SBE) { in marvel_print_po7_err_sum()
374 (io->po7_error_sum & IO7__PO7_ERRSUM__CR_SBE2) in marvel_print_po7_err_sum()
376 marvel_print_po7_crrct_sym(io->po7_crrct_sym); in marvel_print_po7_err_sum()
382 if (io->po7_error_sum & IO7__PO7_ERRSUM__HLT_INT) in marvel_print_po7_err_sum()
384 if (io->po7_error_sum & IO7__PO7_ERRSUM__HP_INT) { in marvel_print_po7_err_sum()
389 if (io->po7_error_sum & IO7__PO7_ERRSUM__CRD_INT) in marvel_print_po7_err_sum()
392 if (io->po7_error_sum & IO7__PO7_ERRSUM__STV_INT) { in marvel_print_po7_err_sum()
396 if (io->po7_error_sum & IO7__PO7_ERRSUM__HRD_INT) { in marvel_print_po7_err_sum()
405 if (!(io->po7_error_sum & IO7__PO7_ERRSUM__ERR_VALID)) in marvel_print_po7_err_sum()
416 if (!(io->po7_error_sum & (IO7__PO7_ERRSUM__CR_PIO_WBYTE | in marvel_print_po7_err_sum()
423 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_PIO_WBYTE) in marvel_print_po7_err_sum()
425 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_CSR_NXM) in marvel_print_po7_err_sum()
426 printk("%s PIO to non-existent CSR\n", err_print_prefix); in marvel_print_po7_err_sum()
427 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_RPID_ACV) in marvel_print_po7_err_sum()
430 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_RSP_NXM) in marvel_print_po7_err_sum()
433 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_ERR_RESP) in marvel_print_po7_err_sum()
435 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_CLK_DERR) in marvel_print_po7_err_sum()
437 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_DAT_DBE) in marvel_print_po7_err_sum()
440 if (io->po7_error_sum & IO7__PO7_ERRSUM__CR_DAT_GRBG) in marvel_print_po7_err_sum()
443 if (io->po7_error_sum & IO7__PO7_ERRSUM__UGBGE) { in marvel_print_po7_err_sum()
446 marvel_print_po7_ugbge_sym(io->po7_ugbge_sym); in marvel_print_po7_err_sum()
448 if (io->po7_error_sum & IO7__PO7_ERRSUM__UN_MAF_LOST) in marvel_print_po7_err_sum()
451 if (io->po7_error_sum & IO7__PO7_ERRSUM__UN_PKT_OVF) in marvel_print_po7_err_sum()
453 if (io->po7_error_sum & IO7__PO7_ERRSUM__UN_CDT_OVF) in marvel_print_po7_err_sum()
455 if (io->po7_error_sum & IO7__PO7_ERRSUM__UN_DEALLOC) in marvel_print_po7_err_sum()
462 if (io->po7_error_sum & IO7__PO7_ERRSUM__MAF_TO) in marvel_print_po7_err_sum()
465 if (io->po7_error_sum & IO7__PO7_ERRSUM__BH_CDT_TO) in marvel_print_po7_err_sum()
467 if (io->po7_error_sum & IO7__PO7_ERRSUM__BH_CLK_HDR) in marvel_print_po7_err_sum()
470 if (io->po7_error_sum & IO7__PO7_ERRSUM__BH_DBE_HDR) in marvel_print_po7_err_sum()
473 if (io->po7_error_sum & IO7__PO7_ERRSUM__BH_GBG_HDR) in marvel_print_po7_err_sum()
476 if (io->po7_error_sum & IO7__PO7_ERRSUM__BH_BAD_CMD) in marvel_print_po7_err_sum()
480 if (io->po7_error_sum & IO7__PO7_ERRSUM__ERR_LST) in marvel_print_po7_err_sum()
484 "%s Cycle 1: %016llx\n" in marvel_print_po7_err_sum()
487 err_print_prefix, io->po7_err_pkt0, in marvel_print_po7_err_sum()
488 err_print_prefix, io->po7_err_pkt1); in marvel_print_po7_err_sum()
495 marvel_print_po7_uncrr_sym(io->po7_uncrr_sym, uncrr_sym_valid); in marvel_print_po7_err_sum()
508 #define IO7__POX_TLBERR__ERR_VALID (1UL << 63) in marvel_print_pox_tlb_err()
520 "%s - %s\n" in marvel_print_pox_tlb_err()
521 "%s - Addr: 0x%016llx\n", in marvel_print_pox_tlb_err()
568 sprintf(message, "Bridge - Master Abort"); in marvel_print_pox_spl_cmplt()
571 sprintf(message, "Bridge - Target Abort"); in marvel_print_pox_spl_cmplt()
574 sprintf(message, "Bridge - Uncorrectable Write Data Error"); in marvel_print_pox_spl_cmplt()
614 #define IO7__POX_TRANSUM__DAC (1UL << 50) in marvel_print_pox_trans_sum()
619 #define IO7__POX_TRANSUM__ERR_VALID (1UL << 63) in marvel_print_pox_trans_sum()
625 "%s Command: 0x%llx - %s\n" in marvel_print_pox_trans_sum()
627 "%s PCI-X Master Slot: 0x%llx\n", in marvel_print_pox_trans_sum()
642 #define IO7__POX_ERRSUM__AGP_REQQ_OVFL (1UL << 4) in marvel_print_pox_err()
643 #define IO7__POX_ERRSUM__AGP_SYNC_ERR (1UL << 5) in marvel_print_pox_err()
644 #define IO7__POX_ERRSUM__MRETRY_TO (1UL << 6) in marvel_print_pox_err()
645 #define IO7__POX_ERRSUM__PCIX_UX_SPL (1UL << 7) in marvel_print_pox_err()
646 #define IO7__POX_ERRSUM__PCIX_SPLIT_TO (1UL << 8) in marvel_print_pox_err()
647 #define IO7__POX_ERRSUM__PCIX_DISCARD_SPL (1UL << 9) in marvel_print_pox_err()
648 #define IO7__POX_ERRSUM__DMA_RD_TO (1UL << 10) in marvel_print_pox_err()
649 #define IO7__POX_ERRSUM__CSR_NXM_RD (1UL << 11) in marvel_print_pox_err()
650 #define IO7__POX_ERRSUM__CSR_NXM_WR (1UL << 12) in marvel_print_pox_err()
651 #define IO7__POX_ERRSUM__DMA_TO (1UL << 13) in marvel_print_pox_err()
652 #define IO7__POX_ERRSUM__ALL_MABORTS (1UL << 14) in marvel_print_pox_err()
653 #define IO7__POX_ERRSUM__MABORT (1UL << 15) in marvel_print_pox_err()
656 #define IO7__POX_ERRSUM__PT_TABORT (1UL << 16) in marvel_print_pox_err()
657 #define IO7__POX_ERRSUM__PM_TABORT (1UL << 17) in marvel_print_pox_err()
660 #define IO7__POX_ERRSUM__SERR (1UL << 18) in marvel_print_pox_err()
661 #define IO7__POX_ERRSUM__ADDRERR_STB (1UL << 19) in marvel_print_pox_err()
662 #define IO7__POX_ERRSUM__DETECTED_SERR (1UL << 20) in marvel_print_pox_err()
663 #define IO7__POX_ERRSUM__PERR (1UL << 21) in marvel_print_pox_err()
664 #define IO7__POX_ERRSUM__DATAERR_STB_NIOW (1UL << 22) in marvel_print_pox_err()
665 #define IO7__POX_ERRSUM__DETECTED_PERR (1UL << 23) in marvel_print_pox_err()
666 #define IO7__POX_ERRSUM__PM_PERR (1UL << 24) in marvel_print_pox_err()
667 #define IO7__POX_ERRSUM__PT_SCERROR (1UL << 26) in marvel_print_pox_err()
668 #define IO7__POX_ERRSUM__HUNG_BUS (1UL << 28) in marvel_print_pox_err()
672 #define IO7__POX_ERRSUM__TLB_ERR (1UL << 59) in marvel_print_pox_err()
673 #define IO7__POX_ERRSUM__ERR_VALID (1UL << 63) in marvel_print_pox_err()
715 printk("%s Address or PCI-X Attribute Parity Error\n", in marvel_print_pox_err()
735 marvel_print_pox_spl_cmplt(port->pox_spl_cmplt); in marvel_print_pox_err()
744 "TLB - Invalid WR transaction", in marvel_print_pox_err()
745 "TLB - Invalid RD transaction", in marvel_print_pox_err()
746 "DMA - WR error (see north port)", in marvel_print_pox_err()
747 "DMA - RD error (see north port)", in marvel_print_pox_err()
748 "PPR - WR error (see north port)", in marvel_print_pox_err()
749 "PPR - RD error (see north port)" in marvel_print_pox_err()
754 if (upe_error & (1 << i)) in marvel_print_pox_err()
764 marvel_print_pox_trans_sum(port->pox_trans_sum); in marvel_print_pox_err()
771 marvel_print_pox_tlb_err(port->pox_tlb_err); in marvel_print_pox_err()
800 struct ev7_pal_io_subpacket *io = lf_subpackets->io; in marvel_find_io7_with_error()
818 err_sum |= io7->csrs->PO7_ERROR_SUM.csr; in marvel_find_io7_with_error()
820 if (!io7->ports[i].enabled) in marvel_find_io7_with_error()
822 err_sum |= io7->ports[i].csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error()
828 if (err_sum & (1UL << 63)) in marvel_find_io7_with_error()
843 io->io_asic_rev = io7->csrs->IO_ASIC_REV.csr; in marvel_find_io7_with_error()
844 io->io_sys_rev = io7->csrs->IO_SYS_REV.csr; in marvel_find_io7_with_error()
845 io->io7_uph = io7->csrs->IO7_UPH.csr; in marvel_find_io7_with_error()
846 io->hpi_ctl = io7->csrs->HPI_CTL.csr; in marvel_find_io7_with_error()
847 io->crd_ctl = io7->csrs->CRD_CTL.csr; in marvel_find_io7_with_error()
848 io->hei_ctl = io7->csrs->HEI_CTL.csr; in marvel_find_io7_with_error()
849 io->po7_error_sum = io7->csrs->PO7_ERROR_SUM.csr; in marvel_find_io7_with_error()
850 io->po7_uncrr_sym = io7->csrs->PO7_UNCRR_SYM.csr; in marvel_find_io7_with_error()
851 io->po7_crrct_sym = io7->csrs->PO7_CRRCT_SYM.csr; in marvel_find_io7_with_error()
852 io->po7_ugbge_sym = io7->csrs->PO7_UGBGE_SYM.csr; in marvel_find_io7_with_error()
853 io->po7_err_pkt0 = io7->csrs->PO7_ERR_PKT[0].csr; in marvel_find_io7_with_error()
854 io->po7_err_pkt1 = io7->csrs->PO7_ERR_PKT[1].csr; in marvel_find_io7_with_error()
857 io7_ioport_csrs *csrs = io7->ports[i].csrs; in marvel_find_io7_with_error()
859 if (!io7->ports[i].enabled) in marvel_find_io7_with_error()
862 io->ports[i].pox_err_sum = csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error()
863 io->ports[i].pox_tlb_err = csrs->POx_TLB_ERR.csr; in marvel_find_io7_with_error()
864 io->ports[i].pox_spl_cmplt = csrs->POx_SPL_COMPLT.csr; in marvel_find_io7_with_error()
865 io->ports[i].pox_trans_sum = csrs->POx_TRANS_SUM.csr; in marvel_find_io7_with_error()
866 io->ports[i].pox_first_err = csrs->POx_FIRST_ERR.csr; in marvel_find_io7_with_error()
867 io->ports[i].pox_mult_err = csrs->POx_MULT_ERR.csr; in marvel_find_io7_with_error()
868 io->ports[i].pox_dm_source = csrs->POx_DM_SOURCE.csr; in marvel_find_io7_with_error()
869 io->ports[i].pox_dm_dest = csrs->POx_DM_DEST.csr; in marvel_find_io7_with_error()
870 io->ports[i].pox_dm_size = csrs->POx_DM_SIZE.csr; in marvel_find_io7_with_error()
871 io->ports[i].pox_dm_ctrl = csrs->POx_DM_CTRL.csr; in marvel_find_io7_with_error()
878 * 1). POx_TLB_ERR is an exception and must be explicitly in marvel_find_io7_with_error()
881 csrs->POx_TLB_ERR.csr = io->ports[i].pox_tlb_err; in marvel_find_io7_with_error()
882 csrs->POx_ERR_SUM.csr = io->ports[i].pox_err_sum; in marvel_find_io7_with_error()
884 csrs->POx_ERR_SUM.csr; in marvel_find_io7_with_error()
890 io7->csrs->PO7_ERROR_SUM.csr = io->po7_error_sum; in marvel_find_io7_with_error()
892 io7->csrs->PO7_ERROR_SUM.csr; in marvel_find_io7_with_error()
897 lf_subpackets->io_pid = io7->pe; in marvel_find_io7_with_error()
908 struct ev7_pal_io_subpacket *io = lf_subpackets->io; in marvel_process_io_error()
912 #define MARVEL_IO_ERR_VALID(x) ((x) & (1UL << 63)) in marvel_process_io_error()
914 if (!lf_subpackets->logout || !lf_subpackets->io) in marvel_process_io_error()
920 * 1) a uniprocessor kernel in marvel_process_io_error()
933 if ((lf_subpackets->io->po7_error_sum & (1UL << 32)) || in marvel_process_io_error()
934 ((lf_subpackets->io->po7_error_sum | in marvel_process_io_error()
935 lf_subpackets->io->ports[0].pox_err_sum | in marvel_process_io_error()
936 lf_subpackets->io->ports[1].pox_err_sum | in marvel_process_io_error()
937 lf_subpackets->io->ports[2].pox_err_sum | in marvel_process_io_error()
938 lf_subpackets->io->ports[3].pox_err_sum) & (1UL << 63))) { in marvel_process_io_error()
949 * We have an IO7 indicating an error - we're going to report it in marvel_process_io_error()
959 err_print_prefix, lf_subpackets->io_pid); in marvel_process_io_error()
964 if (lf_subpackets->io->po7_error_sum & IO7__PO7_ERRSUM__ERR_MASK) { in marvel_process_io_error()
976 err_print_prefix, io->po7_error_sum, in marvel_process_io_error()
977 err_print_prefix, io->po7_uncrr_sym, in marvel_process_io_error()
978 err_print_prefix, io->po7_crrct_sym, in marvel_process_io_error()
979 err_print_prefix, io->po7_ugbge_sym, in marvel_process_io_error()
980 err_print_prefix, io->po7_err_pkt0, in marvel_process_io_error()
981 err_print_prefix, io->po7_err_pkt1); in marvel_process_io_error()
989 if (!MARVEL_IO_ERR_VALID(io->ports[i].pox_err_sum)) in marvel_process_io_error()
994 lf_subpackets->io_pid, i, io->ports[i].pox_err_sum); in marvel_process_io_error()
995 marvel_print_pox_err(io->ports[i].pox_err_sum, &io->ports[i]); in marvel_process_io_error()
998 err_print_prefix, io->ports[i].pox_first_err); in marvel_process_io_error()
999 marvel_print_pox_err(io->ports[i].pox_first_err, in marvel_process_io_error()
1000 &io->ports[i]); in marvel_process_io_error()
1019 if (lf_subpackets->logout && in marvel_process_logout_frame()
1020 (lf_subpackets->logout->rbox_int & 0x20000400ul)) in marvel_process_logout_frame()
1024 * Probing behind PCI-X bridges can cause machine checks on in marvel_process_logout_frame()
1033 * C_ADDR<42> = 1 (I/O) in marvel_process_logout_frame()
1036 if (lf_subpackets->ev7 && in marvel_process_logout_frame()
1037 (lf_subpackets->ev7->c_stat == 0x14) && in marvel_process_logout_frame()
1038 !(lf_subpackets->ev7->c_sts & 0x8) && in marvel_process_logout_frame()
1039 ((lf_subpackets->ev7->c_addr & 0x400ff000000ul) in marvel_process_logout_frame()
1081 /* Don't know it - pass it up. */ in marvel_machine_check()
1102 if (process_frame && lf_subpackets && lf_subpackets->logout) { in marvel_machine_check()
1111 if (!lf_subpackets->io) in marvel_machine_check()
1112 lf_subpackets->io = &scratch_io_packet; in marvel_machine_check()
1119 lf_subpackets->io_pid = lf_subpackets->logout->whami; in marvel_machine_check()
1136 el_print_timestamp(&lf_subpackets->logout->timestamp); in marvel_machine_check()
1137 process_frame(lf_subpackets, 1); in marvel_machine_check()
1141 /* Unknown - dump the annotated subpackets. */ in marvel_machine_check()