[aha152_cs] (scsi0:x:0) command sent incompletely (1/12) (was: Re: Bug#348782)

Philippe Bourcier buffalo.phil at free.fr
Mon Apr 24 07:23:34 EDT 2006


    hi all,

  I looked at an old bug regarding my scsi hardware:

On Wed, Mar 08, 2006 at 11:00:43PM +0100, Philippe Bourcier wrote:
> Package: linux-image-2.6-686
> Version: 2.6.15-8
> Followup-For: Bug #348782
[...]
> debian 2.6.15-8 doesn't resolve:
> 
> I have a scsi tower (2*dd, cdrom reader, cdrom burner) connected to my
> laptop with a pcmcia card:
> Adaptec, Inc. - APA-1460 SCSI Host Adapter
> when I keep the tower shuted, everything is ok: I can boot with the card
> inserted
> when I power on the tower, the boot crash:
> (I copy the message by hand)
> 
> BUG: soft lockup detected on CPUU#0!
> Pid: 4, comm:        events/0
> EIP: 0060 [<c0121d40>]CPU:0
> EIP is at worker_thread+0x129/0x19f
>   EFLAGS: 00000246 Not tainted (2.6.15-1-686)
> EAX: c8c83084  EBX: c8c83084  ECX: c8c83080  EDX: c8c83084
> ESI: c7ff59a0  EDI: 00000246  EBP: 00000000  DS: 0076  ES:007b
> CR0: 8005003b  CR2: bfd25124  CR3: 076e3000  CR4: 00000240
> [<c8c7c31a>] run+0x0/0x3b [aha152_cs]
> [<c0113708>] default_wake_function+0x0/0x12
> [<c0121c17>] worker_thread+0x0/0x19f
> [<c0124bd0>] kthread+0x68/0x95
> [<c0124b68>] kthread+0x68/0x95
> [<c01012a9>] kernel_thread_helper+0x5/0xb
> 
[...]
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers unstable
>   APT policy: (500, 'unstable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.15-1-686
> Locale: LANG=en_US.UTF-8, LC_CTYPE=fr_FR.UTF-8 at euro (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
> 
> Versions of packages linux-image-2.6-686 depends on:
> ii  linux-image-2.6.15-1-686      2.6.15-8   Linux kernel 2.6.15 image on PPro/
> 
> linux-image-2.6-686 recommends no packages.
> 
> -- no debconf information

now, it "seems" to work...
just (scsi0:0:0) command sent incompletely (1/12)
and (scsi0:1:0) command sent incompletely (1/12)
annoys me; am I wrong?

$ uname -a
Linux ile 2.6.16-1-686 #2 Thu Apr 20 20:35:02 UTC 2006 i686
GNU/Linux
$ dmesg 
Linux version 2.6.16-1-686 (Debian 2.6.16-9) (waldi at debian.org)
(gcc version 4.0.3 (Debian 4.0.3-1)) #2 Thu Apr 20 20:35:02 UTC
2006
[...]
PCI: Found IRQ 11 for device 0000:00:03.0
Yenta: CardBus bridge found at 0000:00:03.0 [0000:0000]
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:03.0, mfunc 0xcba97543, devctl 0x62
Yenta: ISA IRQ mask 0x06b8, PCI irq 11
Socket status: 30000010
PCI: Found IRQ 11 for device 0000:00:03.1
Yenta: CardBus bridge found at 0000:00:03.1 [0000:0000]
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:00:03.1, mfunc 0xcba97543, devctl 0x62
[...]
Yenta: ISA IRQ mask 0x06b8, PCI irq 11
Socket status: 30000010
[...]
pccard: PCMCIA card inserted into slot 0
pccard: PCMCIA card inserted into slot 1
[...]
cs: IO port probe 0x100-0x4ff: excluding 0x220-0x22f 0x300-0x307
0x378-0x37f 0x388-0x38f
cs: IO port probe 0x100-0x4ff: excluding 0x220-0x22f 0x300-0x307
0x378-0x37f 0x388-0x38f
cs: IO port probe 0x800-0x8ff: excluding 0x800-0x807
cs: IO port probe 0xc00-0xcff: clean.
cs: IO port probe 0xa00-0xaff: clean.
usb 1-1.4: configuration #1 chosen from 1 choice
cs: memory probe 0xa0000000-0xa0ffffff: clean.
pcmcia: registering new device pcmcia0.0
cs: IO port probe 0x800-0x8ff: excluding 0x800-0x807
cs: IO port probe 0xc00-0xcff: clean.
cs: IO port probe 0xa00-0xaff: clean.
cs: memory probe 0xa0000000-0xa0ffffff: excluding
0xa0000000-0xa00fffff
pcmcia: registering new device pcmcia1.0
[...]
SCSI subsystem initialized
aha152x: resetting bus...
aha152x0: vital data: rev=1, io=0x340 (0x340/0x340), irq=3,
scsiid=7, reconnect=enabled, parity=enabled, synchronous=enabled,
delay=100, extended translation=disabled
aha152x0: trying software interrupt, ok.
scsi0 : Adaptec 152x SCSI driver; $Revision: 2.7 $
(scsi0:0:0) Synchronous Data Transfer Request period = 200 ns
offset = 8 
  Vendor: IBM       Model: DNES-309170       Rev: SA30
  Type:   Direct-Access                      ANSI SCSI revision:
03
(scsi0:0:0) command sent incompletely (1/12)
(scsi0:1:0) Synchronous Data Transfer Request period = 200 ns
offset = 8 
  Vendor: IBM       Model: DNES-309170       Rev: SA30
  Type:   Direct-Access                      ANSI SCSI revision:
03
(scsi0:1:0) command sent incompletely (1/12)
(scsi0:2:0) Synchronous Data Transfer Request period = 200 ns
offset = 8 
  Vendor: PLEXTOR   Model: CD-ROM PX-40TS    Rev: 1.10
  Type:   CD-ROM                             ANSI SCSI revision:
02
(scsi0:3:0) Synchronous Data Transfer Request period = 200 ns
offset = 8 
  Vendor: YAMAHA    Model: CRW8424S          Rev: 1.0d
  Type:   CD-ROM                             ANSI SCSI revision:
02
[...]
SCSI device sda: 17916240 512-byte hdwr sectors (9173 MB)
ts: Compaq touchscreen protocol output
sda: Write Protect is off
sda: Mode Sense: c3 00 00 08
SCSI device sda: drive cache: write back
SCSI device sda: 17916240 512-byte hdwr sectors (9173 MB)
sda: Write Protect is off
sda: Mode Sense: c3 00 00 08
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3
sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 17916240 512-byte hdwr sectors (9173 MB)
sdb: Write Protect is off
sdb: Mode Sense: c3 00 00 08
SCSI device sdb: drive cache: write back
SCSI device sdb: 17916240 512-byte hdwr sectors (9173 MB)
sdb: Write Protect is off
sdb: Mode Sense: c3 00 00 08
SCSI device sdb: drive cache: write back
 sdb: sdb1
sd 0:0:1:0: Attached scsi disk sdb
sr0: scsi3-mmc drive: 0x/0x caddy
sr 0:0:2:0: Attached scsi CD-ROM sr0
sr1: scsi3-mmc drive: 24x/16x writer cd/rw xa/form2 cdda tray
sr 0:0:3:0: Attached scsi CD-ROM sr1
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:1:0: Attached scsi generic sg1 type 0
sr 0:0:2:0: Attached scsi generic sg2 type 5
sr 0:0:3:0: Attached scsi generic sg3 type 5
Device not ready. Make sure there is a disc in the drive.
Device not ready. Make sure there is a disc in the drive.
Device not ready. Make sure there is a disc in the drive.
[...]
$ sudo lshw -businfo
Bus info        Device       Class      Description
===================================================
[...]
                scsi0        storage    
scsi at 0:0.0.0    /dev/sda     disk       DNES-309170
scsi at 0:0.0.0,1  /dev/sda1    disk       FAT16 partition
scsi at 0:0.0.0,2  /dev/sda2    disk       HPFS/NTFS partition
scsi at 0:0.0.0,3  /dev/sda3    disk       HPFS/NTFS partition
scsi at 0:0.1.0    /dev/sdb     disk       DNES-309170
scsi at 0:0.1.0,1  /dev/sdb1    disk       Linux filesystem
partition
scsi at 0:0.2.0    /dev/cdrom2  disk       CD-ROM PX-40TS
                /dev/cdrom2  disk       
scsi at 0:0.3.0    /dev/cdrom1  disk       CRW8424S
                /dev/cdrom1  disk       
[...]
$ lspci -vv
[...]
0000:00:03.0 CardBus bridge: Texas Instruments PCI1250 (rev 02)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 168, Cache Line Size: 0x08 (32 bytes)
        Interrupt: pin A routed to IRQ 11
        Region 0: Memory at 18010000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=00, secondary=01, subordinate=04, sec-latency=176
        Memory window 0: 10000000-11fff000 (prefetchable)
        Memory window 1: 12000000-13fff000
        I/O window 0: 00001800-000018ff
        I/O window 1: 00001c00-00001cff
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
        16-bit legacy interface ports at 0001

0000:00:03.1 CardBus bridge: Texas Instruments PCI1250 (rev 02)
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
        Latency: 168, Cache Line Size: 0x08 (32 bytes)
        Interrupt: pin B routed to IRQ 11
        Region 0: Memory at 18011000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=00, secondary=05, subordinate=08, sec-latency=176
        Memory window 0: 14000000-15fff000 (prefetchable)
        Memory window 1: 16000000-17fff000
        I/O window 0: 00002000-000020ff
        I/O window 1: 00002400-000024ff
        BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
        16-bit legacy interface ports at 0001
[...]
$ cat /proc/interrupts
           CPU0       
  0:    2012276          XT-PIC  timer
  1:       3606          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  3:       2009          XT-PIC  aha152x
  5:          3          XT-PIC  soundblaster
  7:          6          XT-PIC  parport0
  8:          4          XT-PIC  rtc
  9:        120          XT-PIC  pcmcia1.0
 11:      18157          XT-PIC  yenta, yenta, uhci_hcd:usb1
 12:        102          XT-PIC  i8042
 14:      12307          XT-PIC  ide0
 15:      17571          XT-PIC  ide1
NMI:          0 
LOC:          0 
ERR:          0
MIS:          0
$ sudo cardctl ident
[...]
Socket 0:
  product info: "Adaptec, Inc.", "APA-1460 SCSI Host Adapter",
"Version 0.01"
  manfid: 0x012f, 0x0002
[...]
~/tmp$ sudo ./cbdump 
00:03.0 CardBus bridge: Texas Instruments PCI1250
  -- generic cardbus config registers
  Vendor ID                      [00] : 0x104c
  Device ID                      [02] : 0xac16
  PCI command                    [04] : 0x0007
  Base address                   [10] : 0x18010000
  Memory Base 0                  [1c] : 0x10000000
  Memory Limit 0                 [20] : 0x11fff000
  Memory Base 1                  [24] : 0x12000000
  Memory Limit 1                 [28] : 0x13fff000
  IO Base 0                      [2c] : 0x00001800
  IO Limit 0                     [30] : 0x000018fc
  IO Base 1                      [34] : 0x00001c00
  IO Limit 1                     [38] : 0x00001cfc
  Bridge control                 [3e] : 0x05c0
  Subsystem vendor ID            [40] : 0x0000
  Subsystem device ID            [42] : 0x0000
  Legacy mode base               [44] : 0x0001
  -- TI specific config registers
  System control                 [80] : 0x0844f061
  IRQ Mux                        [8c] : 0xcba97523
  Retry                          [90] : 0xc0
  Card control                   [91] : 0x83
  Device control                 [92] : 0x62
  Diagnostic                     [93] : 0x61
  -- cardbus registers
  CB_SOCKET_EVENT                [00] : 0x00000000
  CB_SOCKET_MASK                 [04] : 0x00000006
  CB_SOCKET_STATE                [08] : 0x30000459
  CB_SOCKET_FORCE                [0c] : 0x00000000
  CB_SOCKET_CONTROL              [10] : 0x00000020
  CB_SOCKET_POWER                [20] : 0x00000000
  -- exca registers
  I365_IDENT                     [00] : 0x84
  I365_STATUS                    [01] : 0x7f
  I365_POWER                     [02] : 0x90
  I365_INTCTL                    [03] : 0x73
  I365_CSC                       [04] : 0x00
  I365_CSCINT                    [05] : 0x08
  I365_ADDRWIN                   [06] : 0x41
  I365_IOCTL                     [07] : 0x02
  I365_GENCTL                    [16] : 0x00c0
  I365_GBLCTL                    [1e] : 0x0000
  I365_IO0_START                 [08] : 0x0340
  I365_IO0_STOP                  [0a] : 0x035f
  I365_IO1_START                 [0c] : 0x0000
  I365_IO1_STOP                  [0e] : 0x0001
  I365_MEM0_START                [10] : 0x0000
  I365_MEM0_STOP                 [12] : 0x8000
  I365_MEM0_OFF                  [14] : 0x4002
  I365_MEM0_PAGE                 [40] : 0xa0
  I365_MEM1_START                [18] : 0x0000
  I365_MEM1_STOP                 [1a] : 0x0000
  I365_MEM1_OFF                  [1c] : 0x0000
  I365_MEM1_PAGE                 [41] : 0x00
  I365_MEM2_START                [20] : 0x0000
  I365_MEM2_STOP                 [22] : 0x0000
  I365_MEM2_OFF                  [24] : 0x0000
  I365_MEM2_PAGE                 [42] : 0x00
  I365_MEM3_START                [28] : 0x0000
  I365_MEM3_STOP                 [2a] : 0x0000
  I365_MEM3_OFF                  [2c] : 0x0000
  I365_MEM3_PAGE                 [43] : 0x00
  I365_MEM4_START                [30] : 0x0000
  I365_MEM4_STOP                 [32] : 0x0000
  I365_MEM4_OFF                  [34] : 0x0000
  I365_MEM4_PAGE                 [44] : 0x00

00:03.1 CardBus bridge: Texas Instruments PCI1250
  -- generic cardbus config registers
  Vendor ID                      [00] : 0x104c
  Device ID                      [02] : 0xac16
  PCI command                    [04] : 0x0007
  Base address                   [10] : 0x18011000
  Memory Base 0                  [1c] : 0x14000000
  Memory Limit 0                 [20] : 0x15fff000
  Memory Base 1                  [24] : 0x16000000
  Memory Limit 1                 [28] : 0x17fff000
  IO Base 0                      [2c] : 0x00002000
  IO Limit 0                     [30] : 0x000020fc
  IO Base 1                      [34] : 0x00002400
  IO Limit 1                     [38] : 0x000024fc
  Bridge control                 [3e] : 0x05c0
  Subsystem vendor ID            [40] : 0x0000
  Subsystem device ID            [42] : 0x0000
  Legacy mode base               [44] : 0x0001
  -- TI specific config registers
  System control                 [80] : 0x0844f061
  IRQ Mux                        [8c] : 0xcba97523
  Retry                          [90] : 0xc0
  Card control                   [91] : 0x83
  Device control                 [92] : 0x62
  Diagnostic                     [93] : 0x61
  -- cardbus registers
  CB_SOCKET_EVENT                [00] : 0x00000000
  CB_SOCKET_MASK                 [04] : 0x00000006
  CB_SOCKET_STATE                [08] : 0x30000459
  CB_SOCKET_FORCE                [0c] : 0x00000000
  CB_SOCKET_CONTROL              [10] : 0x00000020
  CB_SOCKET_POWER                [20] : 0x00000000
  -- exca registers
  I365_IDENT                     [00] : 0x84
  I365_STATUS                    [01] : 0x6f
  I365_POWER                     [02] : 0x90
  I365_INTCTL                    [03] : 0x79
  I365_CSC                       [04] : 0x00
  I365_CSCINT                    [05] : 0x08
  I365_ADDRWIN                   [06] : 0x41
  I365_IOCTL                     [07] : 0x01
  I365_GENCTL                    [16] : 0x00c0
  I365_GBLCTL                    [1e] : 0x0000
  I365_IO0_START                 [08] : 0x0310
  I365_IO0_STOP                  [0a] : 0x031f
  I365_IO1_START                 [0c] : 0x0000
  I365_IO1_STOP                  [0e] : 0x0001
  I365_MEM0_START                [10] : 0x0100
  I365_MEM0_STOP                 [12] : 0x8100
  I365_MEM0_OFF                  [14] : 0x7f00
  I365_MEM0_PAGE                 [40] : 0xa0
  I365_MEM1_START                [18] : 0x0000
  I365_MEM1_STOP                 [1a] : 0x0000
  I365_MEM1_OFF                  [1c] : 0x0000
  I365_MEM1_PAGE                 [41] : 0x00
  I365_MEM2_START                [20] : 0x0000
  I365_MEM2_STOP                 [22] : 0x0000
  I365_MEM2_OFF                  [24] : 0x0000
  I365_MEM2_PAGE                 [42] : 0x00
  I365_MEM3_START                [28] : 0x0000
  I365_MEM3_STOP                 [2a] : 0x0000
  I365_MEM3_OFF                  [2c] : 0x0000
  I365_MEM3_PAGE                 [43] : 0x00
  I365_MEM4_START                [30] : 0x0000
  I365_MEM4_STOP                 [32] : 0x0000
  I365_MEM4_OFF                  [34] : 0x0000
  I365_MEM4_PAGE                 [44] : 0x00

  ask if you need more,

    hope this will help,
-- 
                                           /             \
                                          ((__-^^-,-^^-__))
 .''`.          Philippe BOURCIER          `-_---' `---_-'  .-.
: :' :  http://bourcier.philippe.online.fr  `--|o` 'o|--'   /V\
`. `'                                          \  `  /     // \\
  `-   Linux Counter registered user #290012    ): :(     /(   )\
                                                :o_o:      ^^-^^
                                                 "-"



More information about the linux-pcmcia mailing list