Subject: port-amiga/1282: updated 53c710 driver (SCSI minphys)
To: None <gnats-bugs@gnats.netbsd.org>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 07/26/1995 17:35:38
>Number: 1282
>Category: port-amiga
>Synopsis: updated 53c710 driver (SCSI minphys)
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: gnats-admin (GNATS administrator)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Jul 26 14:35:01 1995
>Last-Modified:
>Originator: Bernd Ernesti
>Organization:
>Release: NetBSD-current 25-07-95
>Environment:
System: NetBSD arresum 1.0A NetBSD 1.0A (VEEGO) #165: Wed Jul 26 17:16:59 MET DST 1995 bernd@arresum:/src/sys/arch/amiga/compile/VEEGO amiga
>Description:
the siop driver (53c710) wasn't updated after the recent scsi driver
change
>How-To-Repeat:
make an kernel and boot with an 53c710 controller and you get an
panic for vmapbuf
>Fix:
Apply this diff:
*** sys/arch/amiga/dev/siop.c-orig Mon Feb 13 12:08:46 1995
--- sys/arch/amiga/dev/siop.c Wed Jul 26 17:16:14 1995
***************
*** 157,169 ****
/*
* default minphys routine for siop based controllers
*/
! void
siop_minphys(bp)
struct buf *bp;
{
/*
* no max transfer at this level
*/
}
/*
--- 157,170 ----
/*
* default minphys routine for siop based controllers
*/
! u_int
siop_minphys(bp)
struct buf *bp;
{
/*
* no max transfer at this level
*/
+ return (minphys(bp));
}
/*
*** sys/arch/amiga/dev/siopvar.h-orig Mon Feb 13 12:08:47 1995
--- sys/arch/amiga/dev/siopvar.h Wed Jul 26 17:16:03 1995
***************
*** 148,154 ****
#define STS_INTERMED 0x10 /* Intermediate status sent */
#define STS_EXT 0x80 /* Extended status valid */
! void siop_minphys __P((struct buf *bp));
int siop_scsicmd __P((struct scsi_xfer *));
#endif /* _SIOPVAR_H */
--- 148,154 ----
#define STS_INTERMED 0x10 /* Intermediate status sent */
#define STS_EXT 0x80 /* Extended status valid */
! u_int siop_minphys __P((struct buf *bp));
int siop_scsicmd __P((struct scsi_xfer *));
#endif /* _SIOPVAR_H */
>Audit-Trail:
>Unformatted: