aha152x_cs : no SCSI devices found

2002-08-01
2002-08-12
  • Charles Bueche

    Charles Bueche - 2002-08-01

    Hi,

    I have a Adaptec SlimSCSI model APA-1450A. It was once working under Mandrake. Now, I'm trying to make it work with an old Fujitsu Lifebook 656TX running gentoo linux. The problem is that it doesn't detect any SCSI devices.

    The bios is set to "Cardbus" for pcmcia slots. I use "pci=biosirq" as kernel option.

    The syslog entry at boot , witout card (line begining filtered for clarity) :
    -----------
    Linux PCMCIA Card Services 3.1.34
      kernel build: 2.4.19-gentoo-r7 #1 Sat Jul 13 19:06:10 MEST 2002
      options:  [pci] [cardbus] [apm]
    Intel ISA/PCI/CardBus PCIC probe:
    PCI: Found IRQ 9 for device 00:13.0
    PCI: Found IRQ 9 for device 00:13.1
      TI 1131 rev 01 PCI-to-CardBus at slot 00:13, mem 0x10000000
        host opts [0]: [ring] [pci + serial irq] [pci irq 9] [lat 64/176] [bus 4/7]
        host opts [1]: [ring] [pci + serial irq] [pci irq 9] [lat 64/176] [bus 8/11]
        ISA irqs (scanned) = 3,4,7,10,11,15 PCI status changes
    eth0: Setting full-duplex based on MII#1 link partner capability of 05e1.
    -----------

    the syslog entry at physical card insertion :
    -----------
    cs: memory probe 0xa0000000-0xa0ffffff: clean.
    cs: IO port probe 0x0100-0x04ff: excluding 0x220-0x22f 0x330-0x337 0x388-0x38f 0x3c0-0x3df 0x4d0-0x4d7
    cs: IO port probe 0x0230-0x032f: clean.
    cs: IO port probe 0x0338-0x0387: clean.
    cs: IO port probe 0x0390-0x03bf: clean.
    cs: IO port probe 0x03e0-0x04cf: clean.
    cs: IO port probe 0x04d8-0x04ff: clean.
    cs: IO port probe 0x0800-0x08ff: clean.
    cs: IO port probe 0x0a00-0x0aff: clean.
    cs: IO port probe 0x0c00-0x0cff: clean.
    aha152x: processing commandline: ok
    aha152x: BIOS test: passed, detected 1 controller(s)
    aha152x: resetting bus...
    aha152x0: vital data: rev=1, io=0x340 (0x340/0x340), irq=10, scsiid=7, reconnect=enabled, parity=enabled, synchronous=disabled, delay=5000, extended translation=disabled
    aha152x0: trying software interrupt, lost.
    aha152x_cs: no SCSI devices found
    Trying to free nonexistent resource <00000340-0000035f>
    -----------

    I have augmented the delay up to 50 seconds without result. On the bus, I have a HP CD writer model 9200plus. It never get recognized.

    in /etc/modules.autoload, sr_mod is mentionned, and I see it in lsmod output as well.

    Hints appreciated...

    Charles

     
    • David Hinds

      David Hinds - 2002-08-06

      It looks like you've got a problem with irq 10 ("trying software interrupt, lost").

      Exclude it in /etc/pcmcia/config.opts and try again.

      - Dave

       
    • Charles Bueche

      Charles Bueche - 2002-08-08

      Hi David, nice to see you here :-)

      I tried your suggestion, by disabling irqs and trying other ones, but no better. Then, I tried the same card on another Gentoo laptop to exclude HW problems, no better. Then, I booted this other laptop with Mandrake 8.2, and it worked immediately. The messages are:

      Aug  8 09:01:56 big kernel: cs: memory probe 0xa0000000-0xa0ffffff: clean.
      Aug  8 09:01:58 big kernel: cs: IO port probe 0x0100-0x04ff: excluding 0x4d0-0x4d7
      Aug  8 09:01:58 big kernel: cs: IO port probe 0x04d8-0x04ff: clean.
      Aug  8 09:01:58 big kernel: cs: IO port probe 0x0a00-0x0aff: clean.
      Aug  8 09:01:58 big kernel: cs: IO port probe 0x0c00-0x0cff: clean.
      Aug  8 09:01:58 big kernel: aha152x: processing commandline: ok
      Aug  8 09:01:58 big kernel: aha152x: BIOS test: passed, detected 1 controller(s)
      Aug  8 09:01:58 big kernel: aha152x: resetting bus...
      Aug  8 09:01:58 big kernel: aha152x0: vital data: rev=1, io=0x340 (0x340/0x340), irq=10, scsiid=7, reconnect=enabl
      ed, parity=enabled, synchronous=disabled, delay=100, extended translation=disabled
      Aug  8 09:01:58 big kernel: aha152x0: trying software interrupt, ok.
      Aug  8 09:01:58 big kernel: scsi0 : Adaptec 152x SCSI driver; $Revision: 2.4 $
      Aug  8 09:01:59 big kernel:   Vendor: PLEXTOR   Model: CD-R   PX-W124TS  Rev: 1.05
      Aug  8 09:01:59 big kernel:   Type:   CD-ROM                             ANSI SCSI revision: 02
      Aug  8 09:01:59 big kernel: Attached scsi CD-ROM sr0 at scsi0, channel 0, id 4, lun 0
      Aug  8 09:01:59 big kernel: sr0: scsi3-mmc drive: 32x/32x writer cd/rw xa/form2 cdda tray
      Aug  8 09:02:09 big kernel: cdrom: open failed.

      The same irq setting on Gentoo failed. I will now play with the native pcmcia-cs package on Gentoo to see where the bug is. I assume it's in the customizations of pcmcia-cs done by gentoo maintainer.

      I will report my tries here, and cross-post them to gentoo laptop forum.

      Charles

       
    • Charles Bueche

      Charles Bueche - 2002-08-12

      Hi,

      after a lot of tests, I suspected aha152x.c, and tried an old version, which worked perfectly. I contacted the driver author (Jrgen E. Fischer), and he explained that the driver version 2.5 was for kernel 2.5, and that the backport submitted to the kernel 2.4 maintainer was buggy and needed a patch.

      Wth his authorization, here is the patch. It is meant to be applied against aha152x.c version 2.5.

      http://home.bueche.ch/upload/aha152x.c-2.4-v2.5.diff

      Thanks for your help, regards,
      Charles

       

Log in to post a comment.