Lines Matching +full:mc +full:- +full:bus
1 // SPDX-License-Identifier: GPL-2.0
3 * ip22-berr.c: Bus error handling.
5 * Copyright (C) 2002, 2003 Ladislav Michl (ladis@linux-mips.org)
16 #include <asm/sgi/mc.h>
27 static unsigned int hpc3_berr_stat; /* Bus error interrupt status */
32 cpu_err_addr = sgimc->cerr; in save_and_clear_buserr()
33 cpu_err_stat = sgimc->cstat; in save_and_clear_buserr()
34 gio_err_addr = sgimc->gerr; in save_and_clear_buserr()
35 gio_err_stat = sgimc->gstat; in save_and_clear_buserr()
36 extio_stat = ip22_is_fullhouse() ? sgioc->extio : (sgint->errstat << 4); in save_and_clear_buserr()
37 hpc3_berr_stat = hpc3c0->bestat; in save_and_clear_buserr()
39 sgimc->cstat = sgimc->gstat = 0; in save_and_clear_buserr()
48 printk(KERN_ERR "MC Bus Error\n"); in print_buserr()
50 printk(KERN_ERR "HPC3 Bus Error 0x%x:<id=0x%x,%s,lane=0x%x>\n", in print_buserr()
57 printk(KERN_ERR "EISA Bus Error\n"); in print_buserr()
83 * MC sends an interrupt whenever bus or parity errors occur. In addition,
84 * if the error happened during a CPU read, it also asserts the bus error
85 * pin on the R4K. Code in bus error handler save the MC bus error registers
96 printk(KERN_ALERT "%s bus error, epc == %0*lx, ra == %0*lx\n", in ip22_be_interrupt()
97 (regs->cp0_cause & 4) ? "Data" : "Instruction", in ip22_be_interrupt()
98 field, regs->cp0_epc, field, regs->regs[31]); in ip22_be_interrupt()