FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Kernel

 
 
LinkBack Thread Tools
 
Old 11-15-2011, 07:16 PM
Torsten Crass
 
Default Bug#645811: inux-image-3.0.0-2-686-pae: lirc_serial spuriously claims assigned port and irq to be in use

Hi,

ok, 'twas my fault -- loading lirc_serial with share_irq=1 did the
trick. Hence I ask you to close this bug report.


Thanx, and sorry for bothering you --

Torsten



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4EC2C8AC.1010601@eBiology.de">http://lists.debian.org/4EC2C8AC.1010601@eBiology.de
 
Old 11-16-2011, 04:37 AM
Ben Hutchings
 
Default Bug#645811: inux-image-3.0.0-2-686-pae: lirc_serial spuriously claims assigned port and irq to be in use

On Tue, 2011-11-15 at 21:16 +0100, Torsten Crass wrote:
> Hi,
>
> ok, 'twas my fault -- loading lirc_serial with share_irq=1 did the
> trick. Hence I ask you to close this bug report.

No, this is not your fault. PC serial ports generally can't (and don't)
share IRQs and it should not be necessary to use this parameter.

You originally wrote:
> althoug I disabled serial port /dev/ttyS1 via setserial, lirc_serial
> claims the specified IO port (0x02f8) and IRQ (3) to be in use. However,
> "cat /proc/ioports" and "cat /proc/interrupts" tell otherwise.
[...]
> 3: 0 0 0 0 IO-APIC-edge
> 4: 1 1 0 2 IO-APIC-edge

Although these lines seem to there is no interrupt handler for these
IRQs, the very fact that an IRQ is listed in /proc/interrupts means
there is one. It's just that in this case the name is blank - and that
points to the bug.

I think what you did was something like that:

# modprobe lirc_serial
FATAL: Error inserting lirc_serial ...: Device or resource busy
# modprobe lirc_serial io=0x2f8 irq=3
FATAL: Error inserting lirc_serial ...: Device or resource busy
# dmesg | less
...
# setserial /dev/ttyS1 uart none
# modprobe lirc_serial io=0x2f8 irq=3
FATAL: Error inserting lirc_serial ...: Device or resource busy

On each failure the module:
1. Allocated the IRQ, which succeeded because the serial driver does not
allocate it until the serial device is in use.
2. Attempted to allocate the I/O region, which failed because the
regular serial driver had allocated it.
3. Exited - without releasing the IRQ.

So when you got the configuration right the driver still failed, because
the IRQ was already allocated.

If you get the configuration right first time the driver will work:

# setserial /dev/ttyS1 uart none
# modprobe lirc_serial io=0x2f8 irq=3

I reproduced the failure (and success) in a VM and I have a series of
fixes for the module which I'll apply shortly.

Ben.

--
Ben Hutchings
The world is coming to an end. Please log off.
 
Old 11-16-2011, 12:31 PM
Torsten Crass
 
Default Bug#645811: inux-image-3.0.0-2-686-pae: lirc_serial spuriously claims assigned port and irq to be in use

Ben,


So when you got the configuration right the driver still failed, because
the IRQ was already allocated.


the funny thing is: the lirc_serial driver *does* work when share_irq=1
is added to the parameters specified in
/etc/modprobe.d/lirc_serial.conf. At least, I can now happily use my
remote control to navigate through MythTV.


If you like, I can send you the dmesg ouput of the now working
configuration (but not before tomorrow night, I'm afraid).


Regards --

Torsten



--
To UNSUBSCRIBE, email to debian-kernel-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4EC3BB1A.7030500@eBiology.de">http://lists.debian.org/4EC3BB1A.7030500@eBiology.de
 

Thread Tools




All times are GMT. The time now is 03:51 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org