Re: What breaks aic7xxx in post 2.6.12-rc2 ?

K.R. Foley
2005-05-19T11:28:20Z

James Bottomley wrote:
> On Wed, 2005-05-18 at 22:07 -0500, K.R. Foley wrote:
>
>>This also solves my problem that I reported in this thread
>>http://marc.theaimsgroup.com/?l=linux-scsi&m=111422854418964&w=2
>
>
> OK, I think the patch below is the extract of this. Could you see if it
> works by simply patching vanilla 2.6.12-rc4 with no other SCSI patches
> (if it does, I'll push it for 2.6.12 final).
>
> James
<snip>

James,

Below is what I get WHEN IT BOOTS. There are also a couple more logs and
notes in between.

#########################################################################
May 19 06:04:22 porky kernel: scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI
HBA DRIVER, Rev 6.2.36
May 19 06:04:22 porky kernel: <Adaptec aic7899 Ultra160 SCSI
adapter>
May 19 06:04:22 porky kernel: aic7899: Ultra160 Wide Channel A,
SCSI Id=7, 32/253 SCBs
May 19 06:04:22 porky kernel:
May 19 06:04:22 porky kernel: Vendor: QUANTUM Model:
ATLAS10K2-TY092L Rev: DA40
May 19 06:04:22 porky kernel: Type: Direct-Access
ANSI SCSI revision: 03
May 19 06:04:22 porky kernel: scsi0:A:0:0: Tagged Queuing enabled. Depth 32
May 19 06:04:22 porky kernel: target0:0:0: Beginning Domain Validation
May 19 06:04:22 porky kernel: (scsi0:A:0): 6.600MB/s transfers (16bit)
May 19 06:04:22 porky kernel: (scsi0:A:0): 80.000MB/s transfers
(40.000MHz, offset 127, 16bit)
May 19 06:04:22 porky kernel: target0:0:0: Ending Domain Validation
May 19 06:04:22 porky kernel: scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI
HBA DRIVER, Rev 6.2.36
May 19 06:04:22 porky kernel: <Adaptec aic7899 Ultra160 SCSI
adapter>
May 19 06:04:22 porky kernel: aic7899: Ultra160 Wide Channel B,
SCSI Id=7, 32/253 SCBs
May 19 06:04:22 porky kernel:
May 19 06:04:22 porky kernel: Vendor: SEAGATE Model: SX118273LC
Rev: 6679
May 19 06:04:22 porky kernel: Type: Direct-Access
ANSI SCSI revision: 02
May 19 06:04:22 porky kernel: scsi1:A:0:0: Tagged Queuing enabled. Depth 32
May 19 06:04:22 porky kernel: target1:0:0: Beginning Domain Validation
May 19 06:04:22 porky kernel: (scsi1:A:0): 6.600MB/s transfers (16bit)
May 19 06:04:22 porky kernel: (scsi1:A:0:0): parity error detected in
Data-in phase. SEQADDR(0x1a6) SCSIRATE(0x80)
May 19 06:04:22 porky kernel: (scsi1:A:0:0): parity error detected in
Message-in phase. SEQADDR(0x1a6) SCSIRATE(0x80)
May 19 06:04:22 porky kernel: (scsi1:A:0:0): Unexpected busfree in
Message-out phase
May 19 06:04:22 porky kernel: SEQADDR == 0x16b
May 19 06:04:22 porky kernel: target1:0:0: Wide Transfers Fail
May 19 06:04:22 porky kernel: (scsi1:A:0): 3.300MB/s transfers
May 19 06:04:22 porky kernel: target1:0:0: Domain Validation skipping
write tests
May 19 06:04:22 porky kernel: (scsi1:A:0): 20.000MB/s transfers
(20.000MHz, offset 15)
May 19 06:04:22 porky kernel: target1:0:0: Ending Domain Validation
May 19 06:04:22 porky kernel: SCSI device sda: 17783239 512-byte hdwr
sectors (9105 MB)
May 19 06:04:22 porky kernel: SCSI device sda: drive cache: write back
May 19 06:04:22 porky kernel: SCSI device sda: 17783239 512-byte hdwr
sectors (9105 MB)
May 19 06:04:22 porky kernel: SCSI device sda: drive cache: write back
May 19 06:04:22 porky kernel: sda: sda1 sda2 sda3
May 19 06:04:22 porky kernel: Attached scsi disk sda at scsi0, channel
0, id 0, lun 0
May 19 06:04:22 porky kernel: SCSI device sdb: 35566480 512-byte hdwr
sectors (18210 MB)
May 19 06:04:22 porky kernel: SCSI device sdb: drive cache: write through
May 19 06:04:22 porky kernel: SCSI device sdb: 35566480 512-byte hdwr
sectors (18210 MB)
May 19 06:04:22 porky kernel: SCSI device sdb: drive cache: write through
May 19 01:04:03 porky rc.sysinit: -e
May 19 06:04:22 porky kernel: sdb: sdb1
May 19 01:04:04 porky udevsend[1251]: starting udevd daemon
May 19 06:04:22 porky kernel: Attached scsi disk sdb at scsi1, channel
0, id 0, lun 0
May 19 01:04:05 porky scsi.agent[1263]: disk at
/devices/pci0000:00/0000:00:1e.0/0000:04:05.0/host0/target0:0:0/0:0:0:0
May 19 06:04:23 porky kernel: Attached scsi generic sg0 at scsi0,
channel 0, id 0, lun 0, type 0
May 19 01:04:05 porky scsi.agent[1288]: disk at
/devices/pci0000:00/0000:00:1e.0/0000:04:05.1/host1/target1:0:0/1:0:0:0
May 19 06:04:23 porky kernel: Attached scsi generic sg1 at scsi1,
channel 0, id 0, lun 0, type 0

###############################################################################

Even with the patch that you posted last night something still isn't
quite right. Notice in the output below that the faster drive is setup
at 80MB/s instead of 160MB/s. It's like going back to the days before
U160 stuff worked properly :)

###############################################################################
May 18 21:56:25 porky kernel: scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI
HBA DRIVER, Rev 6.2.36
May 18 21:56:25 porky kernel: <Adaptec aic7899 Ultra160 SCSI
adapter>
May 18 21:56:25 porky kernel: aic7899: Ultra160 Wide Channel A,
SCSI Id=7, 32/253 SCBs
May 18 21:56:25 porky kernel:
May 18 21:56:25 porky kernel: Vendor: QUANTUM Model:
ATLAS10K2-TY092L Rev: DA40
May 18 21:56:25 porky kernel: Type: Direct-Access
ANSI SCSI revision: 03
May 18 21:56:25 porky kernel: scsi0:A:0:0: Tagged Queuing enabled. Depth 32
May 18 21:56:25 porky kernel: target0:0:0: Beginning Domain Validation
May 18 21:56:25 porky kernel: WIDTH IS 1
May 18 21:56:25 porky kernel: (scsi0:A:0): 6.600MB/s transfers (16bit)
May 18 21:56:25 porky kernel: (scsi0:A:0): 80.000MB/s transfers
(40.000MHz, offset 127, 16bit)
May 18 21:56:25 porky kernel: target0:0:0: Ending Domain Validation
May 18 21:56:25 porky kernel: scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI
HBA DRIVER, Rev 6.2.36
May 18 21:56:25 porky kernel: <Adaptec aic7899 Ultra160 SCSI
adapter>
May 18 21:56:25 porky kernel: aic7899: Ultra160 Wide Channel B,
SCSI Id=7, 32/253 SCBs
May 18 21:56:25 porky kernel:
May 18 21:56:25 porky kernel: Vendor: SEAGATE Model: SX118273LC
Rev: 6679
May 18 21:56:25 porky kernel: Type: Direct-Access
ANSI SCSI revision: 02
May 18 21:56:25 porky kernel: scsi1:A:0:0: Tagged Queuing enabled. Depth 32
May 18 21:56:25 porky kernel: target1:0:0: Beginning Domain Validation
May 18 21:56:25 porky kernel: target1:0:0: Domain Validation skipping
write tests
May 18 21:56:25 porky kernel: (scsi1:A:0): 20.000MB/s transfers
(20.000MHz, offset 15)
May 18 21:56:25 porky kernel: target1:0:0: Ending Domain Validation
May 18 21:56:25 porky kernel: SCSI device sda: 17783239 512-byte hdwr
sectors (9105 MB)
May 18 21:56:25 porky kernel: SCSI device sda: drive cache: write back
May 18 21:56:25 porky kernel: SCSI device sda: 17783239 512-byte hdwr
sectors (9105 MB)
May 18 21:56:25 porky kernel: SCSI device sda: drive cache: write back
May 18 21:56:25 porky kernel: sda: sda1 sda2 sda3
May 18 21:56:25 porky kernel: Attached scsi disk sda at scsi0, channel
0, id 0, lun 0
May 18 21:56:25 porky kernel: SCSI device sdb: 35566480 512-byte hdwr
sectors (18210 MB)
May 18 21:56:25 porky kernel: SCSI device sdb: drive cache: write through
May 18 16:56:04 porky rc.sysinit: -e
May 18 21:56:25 porky kernel: SCSI device sdb: 35566480 512-byte hdwr
sectors (18210 MB)
May 18 16:56:06 porky udevsend[1281]: starting udevd daemon
May 18 21:56:25 porky kernel: SCSI device sdb: drive cache: write through
May 18 16:56:06 porky scsi.agent[1293]: disk at
/devices/pci0000:00/0000:00:1e.0/0000:04:05.0/host0/target0:0:0/0:0:0:0
May 18 21:56:25 porky kernel: sdb: sdb1
May 18 16:56:06 porky scsi.agent[1318]: disk at
/devices/pci0000:00/0000:00:1e.0/0000:04:05.1/host1/target1:0:0/1:0:0:0
May 18 21:56:25 porky kernel: Attached scsi disk sdb at scsi1, channel
0, id 0, lun 0
May 18 16:56:06 porky udevsend[1334]: starting udevd daemon
May 18 21:56:25 porky kernel: Attached scsi generic sg0 at scsi0,
channel 0, id 0, lun 0, type 0
May 18 16:56:11 porky start_udev: Starting udev: succeeded
May 18 21:56:25 porky kernel: Attached scsi generic sg1 at scsi1,
channel 0, id 0, lun 0, type 0

#################################################################################

And then finally the output this morning of booting 2.6.12-rc2 (with RT
patches applied, which is irrelevant to this conversation). This one
does properly setup all of the drives.

#################################################################################
May 19 05:52:00 porky kernel: scsi0 : Adaptec AIC7XXX EISA/VLB/PCI SCSI
HBA DRIVER, Rev 6.2.36
May 19 05:52:00 porky kernel: <Adaptec aic7899 Ultra160 SCSI
adapter>
May 19 05:52:00 porky kernel: aic7899: Ultra160 Wide Channel A,
SCSI Id=7, 32/253 SCBs
May 19 05:52:00 porky kernel:
May 19 05:52:00 porky kernel: (scsi0:A:0): 160.000MB/s transfers
(80.000MHz DT, offset 127, 16bit)
May 19 05:52:00 porky kernel: Vendor: QUANTUM Model:
ATLAS10K2-TY092L Rev: DA40
May 19 05:52:00 porky kernel: Type: Direct-Access
ANSI SCSI revision: 03
May 19 05:52:00 porky kernel: scsi0:A:0:0: Tagged Queuing enabled. Depth 32
May 19 05:52:00 porky kernel: scsi1 : Adaptec AIC7XXX EISA/VLB/PCI SCSI
HBA DRIVER, Rev 6.2.36
May 19 05:52:00 porky kernel: <Adaptec aic7899 Ultra160 SCSI
adapter>
May 19 05:52:00 porky kernel: aic7899: Ultra160 Wide Channel B,
SCSI Id=7, 32/253 SCBs
May 19 05:52:00 porky kernel:
May 19 05:52:00 porky kernel: (scsi1:A:0): 20.000MB/s transfers
(20.000MHz, offset 15)
May 19 05:52:00 porky kernel: Vendor: SEAGATE Model: SX118273LC
Rev: 6679
May 19 05:52:00 porky netfs: Mounting other filesystems: succeeded
May 19 05:52:00 porky kernel: Type: Direct-Access
ANSI SCSI revision: 02
May 19 05:52:00 porky kernel: scsi1:A:0:0: Tagged Queuing enabled. Depth 32
May 19 05:52:00 porky kernel: SCSI device sda: 17783239 512-byte hdwr
sectors (9105 MB)
May 19 05:52:00 porky kernel: SCSI device sda: drive cache: write back
May 19 05:52:00 porky kernel: SCSI device sda: 17783239 512-byte hdwr
sectors (9105 MB)
May 19 05:52:00 porky kernel: SCSI device sda: drive cache: write back
May 19 05:52:00 porky kernel: sda: sda1 sda2 sda3
May 19 05:52:00 porky kernel: Attached scsi disk sda at scsi0, channel
0, id 0, lun 0

--
kr