From owner-aic7xxx Sun Jun 28 01:39:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA17118 for aic7xxx-outgoing; Sun, 28 Jun 1998 01:39:32 -0700 (PDT) (envelope-from owner-aic7xxx@FreeBSD.ORG) Received: from mailhost.internatif.org (uucp@nizan.internatif.org [193.105.79.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA17113 for ; Sun, 28 Jun 1998 01:39:28 -0700 (PDT) (envelope-from stephane@sources.org) Received: from (uucp@localhost) by mailhost.internatif.org (8.8.5/jtpda-5.2-unoff-a) with UUCP id KAA01648 for aic7xxx@FreeBSD.ORG; Sun, 28 Jun 1998 10:39:16 +0200 Received: from ludwigV.sources.org (stephane@localhost [127.0.0.1]) by ludwigV.sources.org (8.8.8/8.8.8/Debian/GNU) with ESMTP id KAA02037 for ; Sun, 28 Jun 1998 10:37:25 +0200 Message-Id: <199806280837.KAA02037@ludwigV.sources.org> X-Mailer: exmh version 2.0.2 2/24/98 From: Stephane Bortzmeyer To: aic7xxx@FreeBSD.ORG Subject: Re: Linux 2.0.34 and aic7xxx v5.0.1[49] driver In-reply-to: <9806171613.AA25505@hbsrx.com> (Tom Pinkl 's message of Wed, 17 Jun 1998 12:13:25 EDT) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: Sun, 28 Jun 1998 10:37:24 +0200 Sender: owner-aic7xxx@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wednesday 17 June 1998, at 12 h 13, the keyboard of Tom Pinkl wrote: > I'm having problems with the new aic7xxx driver as shipped with > Linux kernel version 2.0.34. As others have reported on this > list, it doesn't recognize all of the attached devices. I saw no reply, neither I had one from the author (which, I assume, is busy enough). Anyone know if there has been progress recently? The driver on dialnet doesn't seem updated. Here is my problem, as reported to the author. It's almost the same as Tom Pinkl's one: I want to report my experience with your new driver, 5.0.14 (shipped with Linux 2.0.34) and 5.0.19 (taken from your FTP server, ftp.dialnet.net). Before your patches, I used Linux 2.0.33 with the "old" aic7xxx driver. It seems everything was fine (I just had a problem with the CD writer Ricoh but I'm not sure it was aic7xxx-related). In 2.0.34, it no longer works: when the kernel boots, it initializes the driver (it's in the kernel, not in a module), prints the two hard disks and then has problems. Sometimes, it boots but do not detect my two CD-ROM drives. Sometimes, it loops forever, spitting out SCSI messages. I tried: - patching the 2.0.34 kernel from 5.0.14 to 5.0.19: same thing. - compiling with egcs and gcc: same thing. - retro-patching 2.0.34 with the driver from 2.0.33: it works fine, so I assume the problem is in the driver, not in 2.0.34. My configuration: Dell Optiplex Gxa, Pentium Pro, Adaptec Ultra card. Two hard disks, one CD-ROM reader (NEC), one CD writer (Ricoh). Here are the messages from the old driver (I cannot easily get the messages from the new driver since it doesn't boot most of the time): aic7xxx: at PCI 11 aic7xxx: Warning - detected auto-termination. Please verify driver detected settings and use manual termination if necessary. aic7xxx: BIOS enabled, IO Port 0xe800, IO Mem 0xfafff000, IRQ 11, Revision B aic7xxx: Wide Channel, SCSI ID 7, 16/16 SCBs, QFull 16, QMask 0x1f scsi0 : Adaptec AHA274x/284x/294x (EISA/VLB/PCI-Fast SCSI) 4.1.1/3.2.1 scsi : 1 host. scsi0: Scanning channel A for devices. Vendor: WDIGTL Model: WDE4360-1807A3 Rev: 1.80 Type: Direct-Access ANSI SCSI revision: 02 Detected scsi disk sda at scsi0, channel 0, id 0, lun 0 Vendor: WDIGTL Model: WDE4360-1807A3 Rev: 1.80 Type: Direct-Access ANSI SCSI revision: 02 Detected scsi disk sdb at scsi0, channel 0, id 1, lun 0 Vendor: NEC Model: CD-ROM DRIVE:464 Rev: 1.04 Type: CD-ROM ANSI SCSI revision: 02 Vendor: RICOH Model: MP6200S Rev: 2.03 Type: CD-ROM ANSI SCSI revision: 02 scsi : detected 2 SCSI disks total. SCSI device sda: hdwr sector= 512 bytes. Sectors= 8388314 [4095 MB] [4.1 GB] SCSI device sdb: hdwr sector= 512 bytes. Sectors= 8388314 [4095 MB] [4.1 GB] Here is /proc/scsi/aic7xxx/0: Adaptec AIC7xxx driver version: 4.1.1/3.2.1 Compile Options: AIC7XXX_RESET_DELAY : 15 AIC7XXX_TAGGED_QUEUEING: Disabled AIC7XXX_PAGE_ENABLE : Disabled AIC7XXX_PROC_STATS : Enabled Adapter Configuration: SCSI Adapter: Adaptec AHA-294X Ultra SCSI host adapter (AIC-788x chipset) Host Bus: Wide Base IO: 0xe800 Base IO Memory: 0xfafff000 IRQ: 11 SCBs: Used 4, HW 16, Page 16 Interrupts: 5928 Serial EEPROM: True Extended Translation: Enabled SCSI Bus Reset: Enabled Ultra SCSI: Disabled Disconnect Enable Flags: 0xffff Statistics: CHAN#A (TGT 0 LUN 0): nxfers 2414 (1947 read;467 written) blks(512) rd=9846; blks(512) wr=1202 < 512 512-1K 1-2K 2-4K 4-8K 8-16K 16-32K 32-64K 64-128K >128K Reads: 1 96 1261 72 259 249 7 2 0 0 Writes: 0 0 364 96 7 0 0 0 0 0 CHAN#A (TGT 1 LUN 0): nxfers 3400 (3068 read;332 written) blks(512) rd=22534; blks(512) wr=880 < 512 512-1K 1-2K 2-4K 4-8K 8-16K 16-32K 32-64K 64-128K >128K Reads: 1 0 1706 80 536 715 16 12 2 0 Writes: 0 0 267 53 12 0 0 0 0 0 Here is the relevant part of /proc/pci: Bus 2, device 11, function 0: SCSI storage controller: Adaptec AIC-7881U (rev 0). Medium devsel. Fast back-to-back capable. IRQ 11. Master Capable. Latency=32. Min Gnt=8.Max Lat=8. I/O at 0xe800. Non-prefetchable 32 bit memory at 0xfafff000. >From the new driver, I get the following messages (sorry, they are not litteral, but copied from a paper): [Hard disks detected, just as above.] 5:0 [The CD reader] refusing wide negociation... 8 bits transfer Aborting command due to timeout  [And sometimes: ] Bad scbptr 16 during SELTO Should I post on the AIC7XXX mailing list? I'm of course ready to perform more experiments if it can help you. Yours, Stephane Bortzmeyer http://www.internatif.org/bortzmeyer/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe aic7xxx" in the body of the message