From owner-freebsd-scsi Wed Dec 20 11:36:48 1995 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id LAA11853 for freebsd-scsi-outgoing; Wed, 20 Dec 1995 11:36:48 -0800 (PST) Received: from localhost.cdrom.com (localhost.cdrom.com [127.0.0.1]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id LAA11829 Wed, 20 Dec 1995 11:36:43 -0800 (PST) Message-Id: <199512201936.LAA11829@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: Host localhost.cdrom.com [127.0.0.1] didn't use HELO protocol To: Scott Mace cc: hackers@freebsd.org, scsi@freebsd.org Subject: Re: AHA2940W problem. In-reply-to: Your message of "Wed, 20 Dec 1995 10:44:13 CST." <199512201644.KAA04924@metal.ops.neosoft.com> Date: Wed, 20 Dec 1995 11:36:42 -0800 From: "Justin T. Gibbs" Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk >I'm having a problem with an AHA2940W with a AIC7870P chip on it. > >It only probes 16 SCBs (is this normal?). And periodically I get: As far as I know, the 7870 chips only have 16SCBs. > >/kernel: ahc_scsi_cmd0: more than 256 DMA segs >/kernel: sd0: oops not queued >/kernel: biodone: buffer already done DMA segs != SCBs. Each SCB has 256 possiblle DMA segs == ~1MB of data (give or take an initial page offset or only a partially used last page). Since a buffer maxes out at 64k, the driver should never encounter an I/O that consumes this many segs. Perhaps you are attempting to read/write to a tape drive with a really large block size? >I forced the driver (sys/i386/scsi/aic7xxx.c) to walk the SCBs >and when I did this I get 255 SCBs. I think that the aic7870 will only look at the first 4 bits of the SCBPTR register if EXTSCB is not turned on. Forcing the walk just confuses the driver since it usally only performs the walk if EXTSCB is turned on. It looks like the Ultra cards may come with external SCB SRAM, but I haven't fully confirmed this. I'll look through my data books later tonight to make sure that the probe is doing the right thing there. > > Scott -- Justin T. Gibbs =========================================== FreeBSD: Turning PCs into workstations ===========================================