Skip to contentSkip to conversation

Not enough IRQs for multiple PCMCIA cards

DISCUSSION Chris Howells 2 participants 3 messages May 10, 2003 2 messages not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm having huge problems trying to get enough IRQs for me to be able to use a PCMCIA modem (D-Link 560) and a Wifi card (Netgear MA401) simultaneously.

Basically, after PCI devices have been assigned IRQs there is only one free IRQ which can be allocated to a PCMCIA card. If I disable some stuff like the onboard serial and parallel ports, PCI devices get assigned the IRQs that I have just disabled, which is of absolutely no use.

For example, if I plug my modem in, it gets assigned IRQ 7. If I remove it, and plug the Wifi card in, it gets assigned IRQ 7. If I put both in simultaneously, the last one to be inserted does not get an IRQ.

I have tried with ACPI enabled and with pci=noacpi.

Regrettably, my BIOS (Award Asus L3800C BIOS) does not give me any control how IRQs are designed or PnP OS settings.

Currently, the IRQs look something like this:

chris@galadriel:~> cat /proc/interrupts
CPU0

  0:     255219          XT-PIC  timer
  1:      11434          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  3:          6          XT-PIC  eth0, usb-uhci
  5:     163935          XT-PIC  usb-uhci, Ricoh Co Ltd RL5c476 II,
radeon@PCI:1:0:0
  7:      56829          XT-PIC  serial
  8:          2          XT-PIC  rtc
  9:         17          XT-PIC  acpi
 11:      29726          XT-PIC  Intel 82801CA-ICH3, Ricoh Co Ltd
RL5c476 II (#2)
 12:         75          XT-PIC  PS/2 Mouse
 14:      20172          XT-PIC  ide0
 15:         88          XT-PIC  ide1

(this is with the serial and parallel ports disabled in an attempt to free some IRQs, which is something that I do not want to have set permanently).

Thanks for any ideas
- --
Cheers, Chris Howells -- [email protected], [email protected]
Web: http://chrishowells.co.uk, PGP ID: 33795A2C
KDE: http://www.koffice.org, http://printing.kde.org, http://usability.kde.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD8DBQE+vExMF8Iu1zN5WiwRAteVAJ9K2mj+vnwWfX6RKZ/qM1IE+bUi0gCeI75e cmFCA1Icv4qEZFCl0l2Gl8c=
=y+hM
-----END PGP SIGNATURE-----

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com

A message that is not in the archive (sent off-list or not yet received): 200305100148.12713.chrish-puGfsi27rH1aa/[email protected]

#2 lore raw
Quoted 1 line · On Sat, 10 May 2003 01:48:07 +0100 Chris Howells…

Hi,

Hi!

Quoted 3 lines

I'm having huge problems trying to get enough IRQs for me to be able to use a PCMCIA modem (D-Link 560) and a Wifi card (Netgear MA401) simultaneously.

For the record:
I have exactly the same problem.

[...]

Quoted 9 lines

For example, if I plug my modem in, it gets assigned IRQ 7. If I remove it, and plug the Wifi card in, it gets assigned IRQ 7. If I put both in simultaneously, the last one to be inserted does not get an IRQ.

I have tried with ACPI enabled and with pci=noacpi.

Regrettably, my BIOS (Award Asus L3800C BIOS) does not give me any control how IRQs are designed or PnP OS settings.

I have even the same machine :)

[...]

Quoted 1 line

Thanks for any ideas

OK.
It is quite important to know a litle more about your setup. Why?
I have tried with several kernels, pcmcia packages and configurations. Some worked, some not.
Do you use kernel pcmcia or the PCMCIA drivers from pcmcia-cs?
I currently use kernel pcmcia which currently does not work with twi
cards.

Which PCMCIA (cardbus) chipset driver do you use?
I strongly recommend to use the kernel yenta socket driver! This gives
best results with cardbus cards.

Some earlier kernel version with ACPI patch applied worked with pci=noacpi but this seems to have almost no effect on more recent kernels. I currently use 2.4.21-pre4 with ACPI 20030228.

Then there are some problems with certain PCMCIA drivers. In theory they should be able to share the one assigned interrupt. The serial_cs driver does so AFAIK. But many other drivers don't, like ide_cs. So some combinations may work, some not.

This whole situation is, like you said, very unsatisfying :( It is a real pain that there is no decent APIC in uniprocessor systems in order to have more than those shitty 15 IRQs... it's a shame... x86 hardware is really crappy at times but there is not much of an alternative especially for notebooks :( (Oh oh ... no flame war start please!)

Quoted 1 line

Cheers, Chris Howells -- [email protected], [email protected]

CU
nils faerber

Signature · 10 lines
kernel concepts          Tel: +49-271-771091-12
Dreisbachstr. 24         Fax: +49-271-771091-19
D-57250 Netphen          D1 : +49-170-2729106
--


-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.com

A message that is not in the archive (sent off-list or not yet received): 20030510160610.4cb621e6.nils-t93Ne7XHvje5bSeCtf/[email protected]

#4 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Nils,

Quoted 2 lines · Nils Faerber

For the record:
I have exactly the same problem.

Whew, in some ways that's a relief :)

Quoted 4 lines
Quoted 2 lines

Regrettably, my BIOS (Award Asus L3800C BIOS) does not give me any control how IRQs are designed or PnP OS settings.

I have even the same machine :)

Yeah, I remember you helped answer a few questions of mine when I was thinking of buying the machine. I don't know if this particular machine is bad at controlling IRQ settings, or if all machines these days have such problems.

Quoted 5 lines

OK.
It is quite important to know a litle more about your setup. Why?
I have tried with several kernels, pcmcia packages and configurations. Some worked, some not.

I'm currently using SuSE 8.2 with the stock SuSE 8.2 2.4.20-4GB kernel. I'm using the pcmcia-cs provided with SuSE 8.2 as well, and I've tried with both the orinoco and hostap drivers.

chris@galadriel:~> rpm -qa | grep pcmcia
pcmcia-3.2.3-47

Quoted 1 line

Do you use kernel pcmcia or the PCMCIA drivers from pcmcia-cs?

I'm using kernel PCMCIA, I've tried pcmcia-cs (just a matter of changing a setting in /etc/sysconfig/pcmcia on SuSE), but it didn't help.

Quoted 6 lines

I currently use kernel pcmcia which currently does not work with twi
cards.

Which PCMCIA (cardbus) chipset driver do you use?
I strongly recommend to use the kernel yenta socket driver! This gives
best results with cardbus cards.

I must admit I haven't really tried any different kernels. I wonder if upgrading to 2.4.21-pre would help....

chris@galadriel:~> /sbin/lsmod | grep yenta
yenta_socket            9760   2
pcmcia_core            41824   0 [serial_cs hostap_cs ds yenta_socket]
Quoted 3 lines

Some earlier kernel version with ACPI patch applied worked with pci=noacpi but this seems to have almost no effect on more recent kernels. I currently use 2.4.21-pre4 with ACPI 20030228.

Yeah, using ACPI for IRQ routing seems to work sometimes, though only very rarely. Is there any reason why it doesn't seem possible to control the way that ACPI allocates IRQs?

Quoted 4 lines

Then there are some problems with certain PCMCIA drivers. In theory they should be able to share the one assigned interrupt. The serial_cs driver does so AFAIK. But many other drivers don't, like ide_cs. So some combinations may work, some not.

Ah, that's interesting. What kind of devices can serial_cs share IRQs with? PCI devices? How do I make it do that? Does it do it by default?

Quoted 1 line

This whole situation is, like you said, very unsatisfying :(

Yes, indeed. Previously it worked _sometimes_ (finding a valid IRQ to use) but it's stopped working now, I don't know why.

It's quite frustrating that Windows XP manages to handle IRQ allocation in a more satisfactory manner. (e.g. it gives the PCMCIA cards their own IRQ while making more of the PCI devices share their own IRQs).

Quoted 1 line

It is a real pain that there is no decent APIC in uniprocessor systems

I must admit I'm not too familiar with APICs. Does the Asus laptop have one at all?

Quoted 4 lines

in order to have more than those shitty 15 IRQs... it's a shame... x86 hardware is really crappy at times but there is not much of an alternative especially for notebooks :( (Oh oh ... no flame war start please!)

Yeah. I'm pretty sure my next laptop will be a Apple PowerBook :) Having a laptop which doesn't overheat if I use it on the bed will also be a novelty :)

- --
Cheers, Chris Howells -- [email protected], [email protected]
Web: http://chrishowells.co.uk, PGP ID: 33795A2C
KDE: http://www.koffice.org, http://printing.kde.org, http://usability.kde.org

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)

iD4DBQE+vS93F8Iu1zN5WiwRAtRRAJinMjTl0KjtqYx7vEDgtoEnEx49AJ4misgZ Py/oxp12CUb7r54meWBqnA==
=+C0Q
-----END PGP SIGNATURE-----

-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara The only event dedicated to issues related to Linux enterprise solutions www.enterpriselinuxforum.com