diff options
author | tmm <tmm@FreeBSD.org> | 2003-09-04 15:25:10 +0000 |
---|---|---|
committer | tmm <tmm@FreeBSD.org> | 2003-09-04 15:25:10 +0000 |
commit | 6b36b31ebad4a971f11b826046ecd62def189631 (patch) | |
tree | 221fca05089ec419b6bffd5afd6a0c121220ea23 /sys/sparc64/pci/psycho.c | |
parent | 82aeb9fc856d7c45903f5b5a6a613167c959ac57 (diff) | |
download | FreeBSD-src-6b36b31ebad4a971f11b826046ecd62def189631.zip FreeBSD-src-6b36b31ebad4a971f11b826046ecd62def189631.tar.gz |
- Clear the CE AFSR bits which indicate the error condition when handling
a correctable DMA error. Failing to do so can cause the error interrupt
to be triggered over and over again.
- Clean up the comments for UEAFSR_* constants, fix a typo (UEAFSR_BLK is
(1 << 23), not (1 << 22)), and add two more. Also, add similar constants
for the CE AFSR bits.
Diffstat (limited to 'sys/sparc64/pci/psycho.c')
-rw-r--r-- | sys/sparc64/pci/psycho.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sparc64/pci/psycho.c b/sys/sparc64/pci/psycho.c index 2752ca4..b6cbfbe 100644 --- a/sys/sparc64/pci/psycho.c +++ b/sys/sparc64/pci/psycho.c @@ -745,12 +745,14 @@ psycho_ce(void *arg) struct psycho_softc *sc = (struct psycho_softc *)arg; u_int64_t afar, afsr; - PSYCHO_WRITE8(sc, PSR_CE_INT_CLR, 0); afar = PSYCHO_READ8(sc, PSR_CE_AFA); afsr = PSYCHO_READ8(sc, PSR_CE_AFS); /* It's correctable. Dump the regs and continue. */ device_printf(sc->sc_dev, "correctable DMA error AFAR %#lx " "AFSR %#lx\n", (u_long)afar, (u_long)afsr); + /* Clear the error bits that we caught. */ + PSYCHO_WRITE8(sc, PSR_CE_AFS, afsr & CEAFSR_ERRMASK); + PSYCHO_WRITE8(sc, PSR_CE_INT_CLR, 0); } static void |