Subject: port-amiga/2492: CyberStorm MK I SCSI module and flsc
To: None <gnats-bugs@NetBSD.ORG>
From: Matthias Scheler <tron@sandra.owl.de>
List: netbsd-bugs
Date: 05/31/1996 22:20:44
>Number:         2492
>Category:       port-amiga
>Synopsis:       CyberStorm MK I SCSI module and flsc
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 31 16:35:03 1996
>Last-Modified:
>Originator:     Matthias Scheler
>Organization:
Matthias Scheler
tron@sandra.owl.de
>Release:        1.2_ALPHA
>Environment:
NetBSD lyssa 1.2_ALPHA NetBSD 1.2_ALPHA (LYSSA) #3: Fri May 31 22:04:47 MET DST 1996     tron@lyssa:/usr/src/sys/arch/amiga/compile/LYSSA amiga

>Description:
The SCSI module for the CyberSCSI MK I with old ROMs (< 7.x) uses the same
product and manufactor id like the Z3 Fastlane. As a result of this "flsc"
recognizes it as a Fastlane and hangs when it tries to initialize it. But
because the SCSI module uses Zorro II space the driver can distinguish
both cards by checking the address. The included fix uses this method.

>How-To-Repeat:
Boot a kernel on an Amiga with such a SCSI module.

>Fix:
*** src/sys/arch/amiga/dev/flsc.c.orig	Mon Apr 22 13:44:44 1996
--- src/sys/arch/amiga/dev/flsc.c	Fri May 31 22:03:12 1996
*************** flscmatch(pdp, match, auxp)
*** 108,114 ****
  		return(0);
  
  	zap = auxp;
! 	if (zap->manid == 0x2140 && zap->prodid == 11)
  		return(1);
  
  	return(0);
--- 108,118 ----
  		return(0);
  
  	zap = auxp;
! 	if (zap->manid == 0x2140 && zap->prodid == 11 &&
! /*
!  * avoid SCSI modules for the CyberStorm MK I with ROMs < 7.x
!  */
!             (u_long)zap->pa >= ZTHREEBASE )
  		return(1);
  
  	return(0);
>Audit-Trail:
>Unformatted: