[BUG][2.6.8.1] Something wrong with ISAPnP and serial driver

From: Denis Zaitsev
Date: Sat Oct 09 2004 - 14:54:33 EST


I'm transiting myself to the 2.6 kernel base. And I have a persisting
problem with my ISA Courier modem. It is set into the PnP mode thru
its jumpers and it works just fine under 2.4 kernels. And under
2.6.8.1 it doesn't work for the set of reasons.

First. The new kernel detects it thru the startup:

isapnp: Scanning for PnP cards...
isapnp: Card 'USRobotics Courier V.Everything'
isapnp: 1 Plug & Play card detected total

But the modem isn't activated. After a boot I have:

cat /sys/devices/pnp1/01:01/01:01.00/resources
state = disabled

and /dev/tts/2 device is just died (I'm using devfs for a while).

Then I try to activate it as described in the Documentation/pnp.txt:

echo auto > /sys/devices/pnp1/01:01/01:01.00/resources

cat /sys/devices/pnp1/01:01/01:01.00/resources
state = disabled
io 0x3e8-0x3ef
irq 5

So, both the irq and io have been assigned correctly, but the card is
still disabled.

Then I try:

echo activate > /sys/devices/pnp1/01:01/01:01.00/resources

cat /sys/devices/pnp1/01:01/01:01.00/resources
state = active
io 0x3e8-0x3ef
irq 5

Ok, some result has been achieved. Then I load the serial modules:
8250 and 8250_pnp (in that order). If I load them before the
activating of the card, I have nothing (of course?). So, I load them
after that, but some interesting things happen here too: 8250 module
finds the modem, but 8250_pnp finds the other two serial ports which
are in the motherboard. I wonder: these ports are the embedded ones,
they are not PnP, so why they are detected by the pnp module? And,
from the other hand, why the PnP card is detected by the non-pnp
module?

But nevertheless, some result are already here: it seems that
/dev/tts/2 has come to life - stty -F /dev/tts/2 starts to work.

But after that nobody can conversate with the modem: mgetty, ppp's
chat, minicom - all of them have a timeouts waiting for a respond from
the modem. And what else do I have:

cat /proc/tty/driver/serial
serinfo:1.0 driver revision:
0: uart:16550A port:000003F8 irq:4 tx:8 rx:208 fe:4 brk:7
1: uart:16550A port:000002F8 irq:3 tx:1959289 rx:11505900 RTS|CTS|DTR|DSR|CD
2: uart:16550A port:000003E8 irq:4 tx:0 rx:0 CTS|DSR
3: uart:unknown port:000002E8 irq:3
4: uart:unknown port:00000000 irq:0
5: uart:unknown port:00000000 irq:0
6: uart:unknown port:00000000 irq:0
7: uart:unknown port:00000000 irq:0

According to this info, the ttyS2 device have an irq 4 assigned
vs. irq 5 from the /sys/.../resources. I don't know, may be it is the
problem itself. BTW, the first two serial ports work - there is a
mouse at the ttyS0 and the external modem at the ttyS1.

So, this all looks like some error in the PnP-sysfs-serial chain, but
I'm absolutely unsure. May be it is the devfs-related problem?


And all the above in short:

1) The 2.6 kernel doesn't activate the ISA PnP modem at the boot,
while the 2.4 one always does.

2) The 8250 driver finds the PnP card's port, while the 8250_pnp finds
the non-PnP ports.

3) The /proc/tty/driver/serial file contains an incorrect information
about the IRQ assigned to the PnP port.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/