2001-04-17 18:42:50

by Markus Schaber

[permalink] [raw]
Subject: AHA-154X/1535 not recognized any more

Hello,

In my computer, I use an old ISA PNP SCSI host adapter, where I connectend
an external Iomega ZIP plus - this strange device (PPA and SCSI on the
same connector) doesn't like to share its SCSI-Bus with other devices -
thus I need two host adapters for two devices :-(

Now I have the problem that kernels 2.4.2 and 2.4.3 don't recognize this
adapter any more, while all 2.2-kernels I used (I currently remember
2.2.19, 2.2.18 and debian-2.2.17pre6) work with it without problems.

The BIOS message states it is an AHA 1540CP/1542CP BIOS V1.2, Win98SE
recognizes it as an AHA-154X/AHA-1535 Plug and Play SCSI Adapter, and runs
it with IRQ 10 and DMA 7.

According to dmesg, the 2.2.X kernels recognize it as an AHA 1542, whereas
the 2.4 series says that isapnp found an aha1535, but no driver is loaded.

pnpdump from isapnptools-1.21 recognizes it as an ADP1542 - even when
running with an 2.4.3-kernel.

I have put both dmesg-outputs and some other hopefully debugging output on
the web at http://schabi.de/scsi/ - I didn't want to post those files on
the mailing list, but if some of don't have http access, I'll happily mail
you those files personally.

Now I want to know whether this is a bug in the kernel (and where to
search to eventually fix it) or a misconfiguration in my host.

If you need some other info, or want me to run some tests, feel free to
mail me. It might even be possible to borrow the card to someone, as I'll
by a second hand IDE ZIP tomorrow, and then I could spare the card for
some weeks.

Thanks a lot,
markus

PS: I subscribed to the kernel list, so you don't have to BCC your answers
to me.


2001-04-17 19:58:43

by Alan

[permalink] [raw]
Subject: Re: AHA-154X/1535 not recognized any more

> Now I have the problem that kernels 2.4.2 and 2.4.3 don't recognize this
> adapter any more, while all 2.2-kernels I used (I currently remember
> 2.2.19, 2.2.18 and debian-2.2.17pre6) work with it without problems.

Load the module with isapnp=1. It defaults to not scanning isapnp boards which
strikes me as odd. Let me know if that fixes it if so I think I'll tweak the
default

2001-04-18 11:03:20

by Markus Schaber

[permalink] [raw]
Subject: Re: AHA-154X/1535 not recognized any more



Alan Cox wrote:
>
> > Now I have the problem that kernels 2.4.2 and 2.4.3 don't recognize this
> > adapter any more, while all 2.2-kernels I used (I currently remember
> > 2.2.19, 2.2.18 and debian-2.2.17pre6) work with it without problems.
>
> Load the module with isapnp=1. It defaults to not scanning isapnp boards which
> strikes me as odd. Let me know if that fixes it if so I think I'll tweak the
> default

This gives me the following message:

lunix:/lib/modules/2.4.3# modprobe aha1542 isapnp=1
/lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: init_module: No such
device
Hint: insmod errors can be caused by incorrect module parameters,
including invalid IO or IRQ parameters
/lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: insmod
/lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o failed
/lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: insmod aha1542 failed

markus
--
Markus Schaber -- http://www.schabi.de/ -- ICQ: 22042130
+-------------------------------------------------------------+
| Allgemeine Sig-Verletzung 0815/4711 <nicht OK> <Erbrechen> |
+-------------------------------------------------------------+

2001-04-18 12:30:24

by Alan

[permalink] [raw]
Subject: Re: AHA-154X/1535 not recognized any more

> > Load the module with isapnp=1. It defaults to not scanning isapnp boards which
> > strikes me as odd. Let me know if that fixes it if so I think I'll tweak the
> > default
>
> This gives me the following message:
>
> lunix:/lib/modules/2.4.3# modprobe aha1542 isapnp=1
> /lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: init_module: No such
> device
> Hint: insmod errors can be caused by incorrect module parameters,
> including invalid IO or IRQ parameters

Ok if you use the old style usermode isapnp tools to configure it and then
force aha1542 to use the right io, irq to find it does it then work ?

2001-04-18 15:25:22

by Markus Schaber

[permalink] [raw]
Subject: Re: AHA-154X/1535 not recognized any more

Hello,

On Wed, 18 Apr 2001, Alan Cox wrote:

> Ok if you use the old style usermode isapnp tools to configure it and then
> force aha1542 to use the right io, irq to find it does it then work ?

Well, as this device is already configured by the bios, I just tried
to load it giving the right IO port, and got the following message:

lunix:/home/schabi# modprobe aha1542 io=0x330
/lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: invalid parameter parm_io
/lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: insmod
/lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o failed
/lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: insmod aha1542 failed

It seems as the driver doesn't accept a given IO port as parameter.

Using isapnptools (which I never had to use before), I got the following
error message:

lunix:~# isapnp pnpconfig.txt
Board 1 has Identity 08 0f 6d b9 45 42 15 90 04: ADP1542 Serial No 258849093 [checksum 08]
pnptext:60 -- Fatal - IO range check attempted while device activated
pnptext:60 -- Fatal - Error occurred executing request '<IORESCHECK> ' --- further action aborted

/proc/isapnp also states that the device is active, but no ports, irq, dma
and memory is mapped.

I put the pnpconfig.txt and the contents of /proc/isapnp also onto
http://schabi.de/scsi/.

In some other tests, I compiled the kernel without Plug and Play support.

The module loaded without any parameters (and didn't accept an parm_io
value) when typing modprobe aha1542. As expected by me, it didn't make
any difference whether I told my bios that there's an pnp-OS installed or
not, as the Host adapter is a bootable device and so initialized both
ways. Pnpdump had the same output, as far as I saw.

I also retried a statically compiled driver (no module) without isapnp
(the combination my 2.2.19 kernel used), and it also worked as expected.

So this is clearly a isapnp triggered problem.

Another point: I compile my kernel with the debian command "make-kpkg
kernel-image", and then install the created kernel .deb - I hope this
doesn't make any difference with my problem.

markus


2001-04-18 15:46:55

by Rafael E. Herrera

[permalink] [raw]
Subject: Re: AHA-154X/1535 not recognized any more

Markus Schaber wrote:
>
> Hello,
>
> On Wed, 18 Apr 2001, Alan Cox wrote:
>
> > Ok if you use the old style usermode isapnp tools to configure it and then
> > force aha1542 to use the right io, irq to find it does it then work ?
>
> Well, as this device is already configured by the bios, I just tried
> to load it giving the right IO port, and got the following message:
>
> lunix:/home/schabi# modprobe aha1542 io=0x330
> /lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: invalid parameter parm_io
> /lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: insmod
> /lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o failed
> /lib/modules/2.4.3/kernel/drivers/scsi/aha1542.o: insmod aha1542 failed

The parameter format from the source code is:

/*
* LILO/Module params:
aha1542=<PORTBASE>[,<BUSON>,<BUSOFF>[,<DMASPEED>]]
*
* Where: <PORTBASE> is any of the valid AHA addresses:
* 0x130, 0x134, 0x230, 0x234, 0x330, 0x334
* <BUSON> is the time (in microsecs) that AHA spends on the
AT-bus
* when transferring data. 1542A power-on default is
11us,
* valid values are in range: 2..15 (decimal)
* <BUSOFF> is the time that AHA spends OFF THE BUS after while
* it is transferring data (not to monopolize the bus).
* Power-on default is 4us, valid range: 1..64
microseconds.
* <DMASPEED> Default is jumper selected (1542A: on the J1),
* but experimenter can alter it with this.
* Valid values: 5, 6, 7, 8, 10 (MB/s)
* Factory default is 5 MB/s.
*/

> lunix:~# isapnp pnpconfig.txt
> Board 1 has Identity 08 0f 6d b9 45 42 15 90 04: ADP1542 Serial No 258849093 [checksum 08]
> pnptext:60 -- Fatal - IO range check attempted while device activated
> pnptext:60 -- Fatal - Error occurred executing request '<IORESCHECK> ' --- further action aborted

I've a pnp sound card that fails to configure with a similar error
message when a (CHECK) entry was found in an (IO ...) block. Removing
those entries solved the problem. Try this in your pnpconfig.txt:

(IO 0 (SIZE 4) (BASE 0x0330))

--
Rafael

2001-04-18 16:07:17

by Alan

[permalink] [raw]
Subject: Re: AHA-154X/1535 not recognized any more

> Well, as this device is already configured by the bios, I just tried
> to load it giving the right IO port, and got the following message:

The kernel PnP will deconfigure it

> Board 1 has Identity 08 0f 6d b9 45 42 15 90 04: ADP1542 Serial No 258849093 [checksum 08]
> pnptext:60 -- Fatal - IO range check attempted while device activated
> pnptext:60 -- Fatal - Error occurred executing request '<IORESCHECK> ' --- further action aborted

It thinks it hasnt got a good location for it. You could try making it nocheck
if it cant find I/O space for it but thats not ideal.

The module parameters are

aha1542=io, irq, busff, dmaspeed


2001-04-20 12:08:14

by Markus Schaber

[permalink] [raw]
Subject: Re: AHA-154X/1535 not recognized any more

On Wed, 18 Apr 2001, Alan Cox wrote:

> > Well, as this device is already configured by the bios, I just tried
> > to load it giving the right IO port, and got the following message:
>
> The kernel PnP will deconfigure it

Ah, interesting.

> The module parameters are
>
> aha1542=io, irq, busff, dmaspeed

I recompiled the kernel with isapnp-support and statically compiled
driver. I then typed aha1542=0x330 at the lilo prompt, but the card wasn't
recognized (see dmesg_pnp_bootparam.txt on http://schabi.de/scsi/).

isapnp will initialize the card when the check entry is removed, but
doesn't activate the driver. I'll next test with modularized driver, and
the isapnp tools.

markus

2001-04-20 12:28:39

by Markus Schaber

[permalink] [raw]
Subject: Re: AHA-154X/1535 not recognized any more

On Wed, 18 Apr 2001, Rafael E. Herrera wrote:

> > lunix:~# isapnp pnpconfig.txt
> > Board 1 has Identity 08 0f 6d b9 45 42 15 90 04: ADP1542 Serial No 258849093 [checksum 08]
> > pnptext:60 -- Fatal - IO range check attempted while device activated
> > pnptext:60 -- Fatal - Error occurred executing request '<IORESCHECK> ' --- further action aborted
>
> I've a pnp sound card that fails to configure with a similar error
> message when a (CHECK) entry was found in an (IO ...) block. Removing
> those entries solved the problem. Try this in your pnpconfig.txt:
>
> (IO 0 (SIZE 4) (BASE 0x0330))

In this case, isapnp configures the card.

Using a modularized kernel, modprobe also loads the driver without any
further parameters:

lunix:/home/schabi/public_html/scsi# /rescue/sbin/isapnp pnpconfig_nocheck.txt
Board 1 has Identity 08 0f 6d b9 45 42 15 90 04: ADP1542 Serial No
258849093 [checksum 08]
ADP1542/258849093[0]{SCSI Host Adapter }: Port 0x330; IRQ10 DMA0 ---
Enabled OK
lunix:/home/schabi/public_html/scsi# modprobe aha1542
lunix:/home/schabi/public_html/scsi#
ls /proc/scsi
advansys aha1542 ide-scsi scsi sg
lunix:/home/schabi/public_html/scsi# cat /proc/scsi/scsi
Attached devices:
Host: scsi0 Channel: 00 Id: 03 Lun: 00
Vendor: YAMAHA Model: CRW8424S Rev: 1.0j
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
Vendor: IOMEGA Model: ZIP 100 Rev: 03.H
Type: Direct-Access ANSI SCSI revision: ffffffff
Host: scsi1 Channel: 00 Id: 01 Lun: 00
Vendor: SAMSUNG Model: CD-ROM SCR-3231 Rev: S104
Type: CD-ROM ANSI SCSI revision: 02
Host: scsi2 Channel: 00 Id: 06 Lun: 00
Vendor: IOMEGA Model: ZIP 100 PLUS Rev: J.66
Type: Direct-Access ANSI SCSI revision: 02

So the isapnp tools can configure the card correctly.

markus