Serial port IRQ sharing on Linux

1

I was never able to use two serial ports for I/O on Linux that shared the same IRQ, although the serial driver has "IRQ sharing" enabled.

Some BIOS simply don't have enough IRQs to give to each port, and devices don't work (for more than simple output only communication) if the IRQ is shared. As an example, I now have a board with 8 serial ports (4 internal) and the BIOS only allows to assign 4 IRQs (and I need all ports).

It mostly works if one of the ports sharing the IRQ is not in use, but as soon as that port is put to use, both start behaving badly.

What could I be doing wrong? Is it even possible?

nlucas

Posted 2011-10-26T13:08:02.733

Reputation: 179

It should work perfectly. What is the actual symptom? And what board are you using? – David Schwartz – 2011-10-26T13:51:12.010

What board is that? Doesn't it have a driver for linux included? I had an 8-port board over 10 years ago (I think even ISA, I still have it in the cellar somewhere), and it used only 1 irq. – ott-- – 2011-10-26T13:55:47.097

This specific board is Atom based, but I never made it work on any PC board I tried. – nlucas – 2011-10-26T14:11:01.790

The symptoms vary widely from board to board, but usually they just stop receiving input or «freeze» output. – nlucas – 2011-10-26T14:12:14.173

ott: they are standard serial ports, no special driver is required other than the generic one. This happens even with 2 ports with shared IRQ connected directly to the board chipset. – nlucas – 2011-10-26T14:34:18.383

This has been officially supported since Linux 2.2, and if all ports are on the same physical device, it should definitely work. (On different physical devices or very old pre-PCI devices, you may encounter trouble if the hardware doesn't support IRQ sharing.) – David Schwartz – 2011-10-26T15:15:09.500

So my question would be: does modern PC commodity hardware support IRQ sharing? I know it should be supported, but I also know I never made it to work with any cheap PC motherboard I tried. – nlucas – 2011-10-26T15:44:42.587

No answers