From nobody  Sun Aug 10 19:30:06 1997
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.5/8.8.5) id TAA02226;
          Sun, 10 Aug 1997 19:30:06 -0700 (PDT)
Message-Id: <199708110230.TAA02226@hub.freebsd.org>
Date: Sun, 10 Aug 1997 19:30:06 -0700 (PDT)
From: samr7@netcom.com
To: freebsd-gnats-submit@freebsd.org
Subject: pci/ncr.c doesn't detect Diamond Fireport card
X-Send-Pr-Version: www-1.0

>Number:         4268
>Category:       kern
>Synopsis:       pci/ncr.c doesn't detect Diamond Fireport card
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 10 19:40:01 PDT 1997
>Closed-Date:    Mon Aug 11 01:33:22 PDT 1997
>Last-Modified:  Mon Aug 11 01:40:00 PDT 1997
>Originator:     Sam Revitch
>Release:        2.2.2-RELEASE
>Organization:
>Environment:
FreeBSD vision 2.2.2-RELEASE FreeBSD 2.2.2-RELEASE #0: Sun Aug 10 18:34:52 GMT 1997     root@vision:/usr/src/sys/compile/VISION  i386

>Description:
The Diamond FirePort 40 SCSI adapter, which is based around the
NCR/Symbios 53C875 SCSI controller, is not properly detected and
configured at boot.  IMHO, this is due to their alteration of the PCI
device ID, from 0x000F to 0x008F.
>How-To-Repeat:
Boot machine with FirePort 40 adapter installed
>Fix:
In pci/ncr.c, next to the PCI device/vendor identifier for the
standard 53C875-based card:
#define NCR_875_ID      (0x000f1000ul)

A second one should be added:
#define NCR_875J_ID     (0x008f1000ul)

(875J chosen because the chip was labeled '53C875J', although this
might not mean anything at all)

Further down in the file, switch cases for the newly added definition
should be inserted where appropriate, such to make it perform as though
the card was detected as an NCR_875_ID.

I have had no problems using my SCSI disk under FreeBSD with this hack
performed on the kernel.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: se 
State-Changed-When: Mon Aug 11 01:33:22 PDT 1997 
State-Changed-Why:  
This has been fixed in -current and 2.2-stable long ago: 
/sys/pci/ncr.c rev. 1.98 and 1.82.2.7 respectively. 

From: Stefan Esser <se@FreeBSD.ORG>
To: samr7@netcom.com
Cc: freebsd-gnats-submit@freebsd.org, Stefan Esser <se@freebsd.org>
Subject: Re: kern/4268: pci/ncr.c doesn't detect Diamond Fireport card
Date: Mon, 11 Aug 1997 10:33:56 +0200

 On Aug 10, samr7@netcom.com wrote:
 > >Description:
 > The Diamond FirePort 40 SCSI adapter, which is based around the
 > NCR/Symbios 53C875 SCSI controller, is not properly detected and
 > configured at boot.  IMHO, this is due to their alteration of the PCI
 > device ID, from 0x000F to 0x008F.
 
 This has long been fixed in -current and 2.2-stable. I 
 have now way to fix the version on your 2.2-CD, though :)
 
 > >Fix:
 > In pci/ncr.c, next to the PCI device/vendor identifier for the
 > standard 53C875-based card:
 > #define NCR_875_ID      (0x000f1000ul)
 > 
 > A second one should be added:
 > #define NCR_875J_ID     (0x008f1000ul)
 > 
 > (875J chosen because the chip was labeled '53C875J', although this
 > might not mean anything at all)
 > 
 > Further down in the file, switch cases for the newly added definition
 > should be inserted where appropriate, such to make it perform as though
 > the card was detected as an NCR_875_ID.
 > 
 > I have had no problems using my SCSI disk under FreeBSD with this hack
 > performed on the kernel.
 
 There apparently are two versions of the 875 (with slightly
 different features, which don't affect compatibility under
 the driver). For that reason, adding the device ID is not
 just a "hack", it's the correct solution.
 
 Regards, STefan
>Unformatted:
