diff options
author | Steve Murphree <smurph@cvs.openbsd.org> | 2000-12-29 03:51:42 +0000 |
---|---|---|
committer | Steve Murphree <smurph@cvs.openbsd.org> | 2000-12-29 03:51:42 +0000 |
commit | def167c2f4138eaf69bad895e8632977f829cdc9 (patch) | |
tree | 5f4a87ca35467e8b6d7a70edf84e980dd6a742e0 /sys | |
parent | f436779b8220e1e0bb1b39509a9925cd2d23c0ef (diff) |
Suppress PCI bus error messages on i386. They are not fatal and are usually
caused by another device on the PCI bus. So we won't print them. Just ACK them and go.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/ahc_pci.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/pci/ahc_pci.c b/sys/dev/pci/ahc_pci.c index a5778bf0ae1..572efdfd0d5 100644 --- a/sys/dev/pci/ahc_pci.c +++ b/sys/dev/pci/ahc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahc_pci.c,v 1.19 2000/07/03 22:18:37 smurph Exp $ */ +/* $OpenBSD: ahc_pci.c,v 1.20 2000/12/29 03:51:41 smurph Exp $ */ /* $NetBSD: ahc_pci.c,v 1.9 1996/10/21 22:56:24 thorpej Exp $ */ /* @@ -58,10 +58,15 @@ /* * XXX memory-mapped is busted on some i386 on-board chips. - * for i386, we don't even try it. + * for i386, we don't even try it. Also, suppress the damn + * PCI bus errors messages on i386. They are not fatal, and are + * usually caused by some other device on the PCI bus. But some + * ahc cards won't work without ACKing them. So just ACK and go! + * XXX- smurph */ #ifndef i386 #define AHC_ALLOW_MEMIO +#define AHC_SHOW_PCI_ERRORS #endif /* @@ -1352,10 +1357,13 @@ struct ahc_softc *ahc; status1 = pci_conf_read(pd->pc, pd->tag, PCI_COMMAND_STATUS_REG); +/* define AHC_SHOW_PCI_ERRORS to get painful errors on your i386 console */ +#ifdef AHC_SHOW_PCI_ERRORS if (status1 & DPE) { printf("%s: Data Parity Error Detected during address " "or write data phase\n", ahc_name(ahc)); } +#endif if (status1 & SSE) { printf("%s: Signal System Error Detected\n", ahc_name(ahc)); } |