Subject: port-sparc/2537: SCSI disks fail on Sparc ELC with lots of "dma0:" and "esp" errors.
To: None <gnats-bugs@NetBSD.ORG>
From: None <cato@df.lth.se>
List: netbsd-bugs
Date: 06/10/1996 08:23:34
>Number:         2537
>Category:       port-sparc
>Synopsis:       SCSI disks fail on Sparc ELC with lots of "dma0:" and "esp" errors.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 10 11:35:02 1996
>Last-Modified:
>Originator:     Krister Walfridsson
>Organization:
>Release:        NetBSD-current
>Environment:
On sparc sun4c (ELC) NetBSD1.1 and NetBSD-current, SCSI disks
>Description:
SCSI disks fail on Sparc ELC with lots of "dma0:" and "esp" errors.
Bad flag ESPCFG2_FE set for ESP100A chips.
>How-To-Repeat:
NetBSD + SCSI disk + boot = Error.

>Fix:
Apply patch below on NetBSD-current: sys/arch/sparc/dev/esp.c

*** esp.c.old   Mon Jun 10 13:12:50 1996
--- esp.c       Mon Jun 10 14:02:31 1996
***************
*** 230,236 ****
                printf(": ESP100");
                sc->sc_rev = ESP100;
        } else {
!               sc->sc_cfg2 = ESPCFG2_SCSI2 | ESPCFG2_FE;
                ESP_WRITE_REG(sc, ESP_CFG2, sc->sc_cfg2);
                sc->sc_cfg3 = 0;
                ESP_WRITE_REG(sc, ESP_CFG3, sc->sc_cfg3);
--- 230,236 ----
                printf(": ESP100");
                sc->sc_rev = ESP100;
        } else {
!               sc->sc_cfg2 = ESPCFG2_SCSI2;
                ESP_WRITE_REG(sc, ESP_CFG2, sc->sc_cfg2);
                sc->sc_cfg3 = 0;
                ESP_WRITE_REG(sc, ESP_CFG3, sc->sc_cfg3);


>Audit-Trail:
>Unformatted: