[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#338089: New aic7xxx driver fails spectacularly on 2940UW



James Bottomley <James.Bottomley@SteelEye.com> wrote:
> Can you try with the attached patch, which will force DV to ignore
> the echo buffer write tests?

I'll certainly try.

The kernel I was using was a prebuilt Debian kernel. I'm not sure how
to rebuild it from source. Horms, if you could point me in the right
direction, I'll give it a try. 

For now, I've built a kernel using the linux-source-2.6.14 package
(version 2.6.14-2). It's massively stripped down so that it compiles in
a semi-reasonable amount of time on this very slow PC.

Strangely, this one boots. It throws out a lot of error messages, but
it boots. I'll attach the configuration and the log here.

Is there still any need to try this patch?

> --- a/drivers/scsi/scsi_transport_spi.c
> +++ b/drivers/scsi/scsi_transport_spi.c
> @@ -816,8 +816,10 @@ spi_dv_device_internal(struct scsi_devic
>  	 * do the SPI pattern write tests */
>  
>  	len = 0;
> +#if 0
>  	if (scsi_device_dt(sdev))
>  		len = spi_dv_device_get_echo_buffer(sdev, buffer);
> +#endif
>  
>   retry:

The boot log shows that execution is getting past there, to line 846:

 target0:0:0: Domain Validation skipping write tests

Sorry for the confusion. Let me know what I should try next.

-- graham

Attachment: config-2.6.14-test1
Description: 2957028909-config-2.6.14-test1

Linux version 2.6.14-test1 () (root@testbox) (gcc version 4.0.3 20051023 (prerelease) (Debian 4.0.2-3)) #1 Sun Nov 13 15:45:23 EST 2005
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 0000000017ffd000 (usable)
 BIOS-e820: 0000000017ffd000 - 0000000017fff000 (ACPI data)
 BIOS-e820: 0000000017fff000 - 0000000018000000 (ACPI NVS)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
383MB LOWMEM available.
On node 0 totalpages: 98301
  DMA zone: 4096 pages, LIFO batch:1
  Normal zone: 94205 pages, LIFO batch:31
  HighMem zone: 0 pages, LIFO batch:1
DMI 2.0 present.
Allocating PCI resources starting at 20000000 (gap: 18000000:e7ff0000)
Built 1 zonelists
Kernel command line: root=/dev/sda3 ro
Local APIC disabled by BIOS -- you can enable it with "lapic"
mapped APIC to ffffd000 (01302000)
Initializing CPU#0
PID hash table entries: 2048 (order: 11, 32768 bytes)
Detected 501.231 MHz processor.
Using tsc for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 386876k/393204k available (1440k kernel code, 5728k reserved, 475k data, 144k init, 0k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 1003.66 BogoMIPS (lpj=2007329)
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 0183f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: After vendor identify, caps: 0183f9ff 00000000 00000000 00000000 00000000 00000000 00000000
CPU: L1 I cache: 16K, L1 D cache: 16K
CPU: L2 cache: 128K
CPU: After all inits, caps: 0183f9ff 00000000 00000000 00000040 00000000 00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
mtrr: v2.0 (20020519)
CPU: Intel Celeron (Mendocino) stepping 05
Enabling fast FPU save and restore... done.
Checking 'hlt' instruction... OK.
softlockup thread 0 started up.
NET: Registered protocol family 16
PCI: PCI BIOS revision 2.10 entry at 0xf06d0, last bus=1
PCI: Using configuration type 1
Linux Plug and Play Support v0.97 (c) Adam Belay
PnPBIOS: Scanning system for PnP BIOS support...
PnPBIOS: Found PnP BIOS installation structure at 0xc00fd1a0
PnPBIOS: PnP BIOS version 1.0, entry 0xf0000:0xd1d0, dseg 0xf0000
PnPBIOS: 15 nodes reported by PnP BIOS; 15 recorded by driver
SCSI subsystem initialized
PCI: Probing PCI hardware
PCI: Probing PCI hardware (bus 00)
PCI quirk: region e400-e43f claimed by PIIX4 ACPI
PCI quirk: region e800-e81f claimed by PIIX4 SMB
PIIX4 devres B PIO at 0290-0297
Boot video device is 0000:01:00.0
PCI: Using IRQ router PIIX/ICH [8086/7110] at 0000:00:04.0
pnp: 00:0f: ioport range 0x290-0x297 has been reserved
pnp: 00:0f: ioport range 0xe400-0xe43f has been reserved
pnp: 00:0f: ioport range 0xe800-0xe83f could not be reserved
PCI: Bridge: 0000:00:01.0
  IO window: disabled.
  MEM window: d6000000-d7dfffff
  PREFETCH window: d7f00000-e3ffffff
Initializing Cryptographic API
Limiting direct PCI/PCI transfers.
isapnp: Scanning for PnP cards...
pnp: SB audio device quirk - increasing port range
isapnp: Card 'Creative SB16 PnP'
isapnp: 1 Plug & Play card detected total
PNP: PS/2 Controller [PNP0303,PNP0f13] at 0x60,0x64 irq 1,12
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
io scheduler noop registered
PCI: Found IRQ 9 for device 0000:00:0a.0
ahc_pci:0:10:0: hardware scb 64 bytes; kernel scb 52 bytes; ahc_dma 8 bytes
scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI HBA DRIVER, Rev 7.0
        <Adaptec 2940 Ultra SCSI adapter>
        aic7880: Ultra Wide Channel A, SCSI Id=7, 16/253 SCBs

  Vendor: IBM       Model: DDYS-T09170N      Rev: S80D
  Type:   Direct-Access                      ANSI SCSI revision: 03
scsi0:A:0:0: Tagged Queuing enabled.  Depth 8
 target0:0:0: Beginning Domain Validation
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0xc0
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x20
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x3
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x2
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x3
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT PHASEMIS in Message-in phase
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x2
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x3
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: Asserting ATN for response
scsi0:A:0:0: INITIATOR_MSG_IN PHASEMIS in Message-out phase
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x3
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x45
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x0
scsi0:A:0:0: INITIATOR_MSG_OUT PHASEMIS in Message-in phase
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x3
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x45
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x0
 target0:0:0: wide asynchronous.
scsi0:A:0:0: INITIATOR_MSG_IN PHASEMIS in Command phase
(scsi0:A:0:0): SCB 2: requests Check Status
(scsi0:A:0:0): Sending Sense
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x80
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x2
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x3
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT PHASEMIS in Message-in phase
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x2
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x3
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: Asserting ATN for response
scsi0:A:0:0: INITIATOR_MSG_IN PHASEMIS in Message-out phase
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x3
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x45
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x0
scsi0:A:0:0: INITIATOR_MSG_OUT PHASEMIS in Message-in phase
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x3
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x45
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x0
scsi0:A:0:0: INITIATOR_MSG_IN PHASEMIS in Command phase
Copied 32 bytes of sense data:
0x70 0x0 0x6 0x0 0x0 0x0 0x0 0x18 0x0 0x0 0x0 0x0 0x29 0x2 0x0 0x0 
0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 
 target0:0:0: Domain Validation skipping write tests
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0xc0
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x20
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x3
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x3
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x1
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0xc
scsi0:A:0:0: INITIATOR_MSG_OUT byte 0x8
scsi0:A:0:0: INITIATOR_MSG_OUT PHASEMIS in Message-in phase
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x3
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x1
scsi0:A:0:0: INITIATOR_MSG_IN byte 0xc
scsi0:A:0:0: INITIATOR_MSG_IN byte 0x8
 target0:0:0: FAST-20 WIDE SCSI 40.0 MB/s ST (50 ns, offset 8)
scsi0:A:0:0: INITIATOR_MSG_IN PHASEMIS in Command phase
 target0:0:0: Ending Domain Validation
(scsi0:A:0:0): Handled Residual of 4080 bytes
(scsi0:A:1:0): Saw Selection Timeout for SCB 0x2
(scsi0:A:2:0): Saw Selection Timeout for SCB 0x3
(scsi0:A:3:0): Saw Selection Timeout for SCB 0x2
(scsi0:A:4:0): Saw Selection Timeout for SCB 0x3
(scsi0:A:5:0): Saw Selection Timeout for SCB 0x2
(scsi0:A:6:0): Saw Selection Timeout for SCB 0x3
(scsi0:A:8:0): Saw Selection Timeout for SCB 0x2
(scsi0:A:9:0): Saw Selection Timeout for SCB 0x3
(scsi0:A:10:0): Saw Selection Timeout for SCB 0x2
(scsi0:A:11:0): Saw Selection Timeout for SCB 0x3
(scsi0:A:12:0): Saw Selection Timeout for SCB 0x2
(scsi0:A:13:0): Saw Selection Timeout for SCB 0x3
(scsi0:A:14:0): Saw Selection Timeout for SCB 0x2
(scsi0:A:15:0): Saw Selection Timeout for SCB 0x3
SCSI device sda: 17916240 512-byte hdwr sectors (9173 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 17916240 512-byte hdwr sectors (9173 MB)
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3 sda4 < sda5 >
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
mice: PS/2 mouse device common for all mice
NET: Registered protocol family 2
input: AT Translated Set 2 keyboard on isa0060/serio0
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 4, 65536 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
Using IPI Shortcut mode
kjournald starting.  Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly.
Freeing unused kernel memory: 144k freed
Adding 257004k swap on /dev/sda1.  Priority:-1 extents:1 across:257004k
EXT3 FS on sda3, internal journal
Real Time Clock Driver v1.12
Generic RTC Driver v1.07
Linux agpgart interface v0.101 (c) Dave Jones
PCI: Found IRQ 9 for device 0000:00:0b.0
3c59x: Donald Becker and others. www.scyld.com/network/vortex.html
0000:00:0b.0: 3Com PCI 3c905C Tornado at 0xb800. Vers LK1.1.19
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.3
PCI: Found IRQ 9 for device 0000:00:04.2
uhci_hcd 0000:00:04.2: UHCI Host Controller
uhci_hcd 0000:00:04.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:04.2: irq 9, io base 0x0000d400
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
agpgart: Detected an Intel 440LX Chipset.
agpgart: AGP aperture is 64M @ 0xe4000000
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3 [PCSPP,TRISTATE,COMPAT,EPP,ECP,DMA]
Floppy drive(s): fd0 is 1.44M
FDC 0 is a post-1991 82077
input: ImExPS/2 Logitech Wheel Mouse on isa0060/serio1
PCI: Found IRQ 9 for device 0000:00:0b.0
NET: Registered protocol family 17
nvidia: module license 'NVIDIA' taints kernel.
NVRM: loading NVIDIA Linux x86 NVIDIA Kernel Module  1.0-7174  Tue Mar 22 06:44:39 PST 2005
agpgart: Found an AGP 1.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 2x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 2x mode
agpgart: Found an AGP 1.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V2 device at 0000:00:00.0 into 2x mode
agpgart: Putting AGP V2 device at 0000:01:00.0 into 2x mode
PIIX4: IDE controller at PCI slot 0000:00:04.1
PIIX4: chipset revision 1
PIIX4: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xd800-0xd807, BIOS settings: hda:pio, hdb:pio
    ide1: BM-DMA at 0xd808-0xd80f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
Probing IDE interface ide1...
hdc: HL-DT-ST GCE-8526B, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
Probing IDE interface ide0...
hdc: ATAPI 52X CD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
sb: can't grab port 0xdc
Sound Blaster 16+ soundcard #0 not found at 0xdc or device busy
pnp: Device 01:01.00 activated.

Reply to: