Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LIRC Issue when moving to 2.6.27-r7 [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ctd.mh3
n00b
n00b


Joined: 14 May 2008
Posts: 35
Location: Minnesota, USA

PostPosted: Thu Jan 01, 2009 1:10 pm    Post subject: LIRC Issue when moving to 2.6.27-r7 [solved] Reply with quote

Hey there,

My gentoo system was stable until a couple days ago when I moved from 2.6.24-r3 to 2.6.27-7. I am guessing it might be related to some kernel config options.

When I boot up I get a message saying "udevd-event run_program /sbin/modprobe abnormal exit". The booting continues until the system attempts to load lirc_atiusb. It then hangs. Here are the snippets from dmesg:

Code:

Freeing unused kernel memory: 296k freed
lirc_dev: IR Remote Control driver registered, major 61
lirc_atiusb: USB remote driver for LIRC $Revision: 1.69 $
lirc_atiusb: Paul Miller <pmiller9@users.sourceforge.net>
lirc_dev: lirc_register_plugin: sample_rate: 0
BUG: unable to handle kernel NULL pointer dereference at 0000000000000000
IP: [<ffffffff803608bf>] vsnprintf+0x582/0x5be
PGD 7c941067 PUD 7c900067 PMD 0
Oops: 0000 [1] SMP
CPU 1
Modules linked in: lirc_atiusb(+) snd_pcm lirc_dev snd_timer snd_page_alloc
Pid: 831, comm: modprobe Not tainted 2.6.27-gentoo-r7 #7
RIP: 0010:[<ffffffff803608bf>]  [<ffffffff803608bf>] vsnprintf+0x582/0x5be
RSP: 0018:ffff88007c9df908  EFLAGS: 00010206
RAX: 0000000000000000 RBX: ffff88007cd2fc00 RCX: ffff88007c9dfac8
RDX: 0000000000000000 RSI: 0000000000000014 RDI: ffff88007cd2fd30
RBP: ffff88007c9dfac8 R08: 0000000000000000 R09: ffff88007c9dfac8
R10: 0000000000000000 R11: 00001a1c7c8dfe10 R12: ffff88007cd2fd30
R13: 0000000003d00000 R14: ffff88007cca3088 R15: ffff88007cd2fd44
FS:  00007f4a82a3c6f0(0000) GS:ffff88007d809580(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 000000007c97d000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process modprobe (pid: 831, threadinfo ffff88007c9de000, task ffff88007da8e420)
Stack:  ffffffff802d62d5 0000000000000010 0000000000000202 ffff88007c9df938
 0000000000000000 0000000000000014 ffff88007cd2fd30 0000000000000000
 ffff880001018940 ffffffff8035b0d1 ffff88007c9dfa88 ffffffff802272ab
Call Trace:
 [<ffffffff802d62d5>] ? search_by_key+0x6a1/0xc15
 [<ffffffff8035b0d1>] ? __next_cpu+0x19/0x26
 [<ffffffff802272ab>] ? find_busiest_group+0x256/0x71c
 [<ffffffff8035faf5>] ? number+0x10e/0x201
 [<ffffffff80243a6a>] ? up+0xe/0x36
 [<ffffffff8022f89b>] ? release_console_sem+0x17b/0x195
 [<ffffffff803bf1b3>] ? device_create_vargs+0x92/0xc6
 [<ffffffff803bf221>] ? device_create+0x3a/0x42
 [<ffffffff80360659>] ? vsnprintf+0x31c/0x5be
 [<ffffffff8035b750>] ? idr_get_empty_slot+0x17d/0x269
 [<ffffffff80243ae1>] ? down+0xe/0x36
 [<ffffffffa000b1d7>] ? lirc_register_plugin+0x31a/0x3ef [lirc_dev]
 [<ffffffffa0022529>] ? 0xffffffffa0022529
 [<ffffffff8035b932>] ? ida_get_new_above+0xf6/0x182
 [<ffffffff8028eeef>] ? find_inode+0x28/0x6d
 [<ffffffff8028eda6>] ? iput+0x27/0x60
 [<ffffffff802bebb6>] ? sysfs_addrm_finish+0x62/0x1ea
 [<ffffffff802be8f2>] ? __sysfs_add_one+0x66/0x6f
 [<ffffffff8040b65d>] ? usb_match_one_id+0x26/0x82
 [<ffffffff8040c4d4>] ? usb_probe_interface+0xdf/0x10b
 [<ffffffff803c0b2b>] ? driver_probe_device+0xd7/0x164
 [<ffffffff803c0bfe>] ? __driver_attach+0x46/0x6d
 [<ffffffff803c0bb8>] ? __driver_attach+0x0/0x6d
 [<ffffffff803c02c7>] ? bus_for_each_dev+0x44/0x6f
 [<ffffffff803c06fd>] ? bus_add_driver+0xb4/0x203
 [<ffffffff803c0e5b>] ? driver_register+0x8d/0x101
 [<ffffffff8040bb91>] ? usb_register_driver+0x7e/0xe0
 [<ffffffff8022c87d>] ? check_preempt_wakeup+0x11c/0x127
 [<ffffffffa0026000>] ? init_module+0x0/0xa0 [lirc_atiusb]
 [<ffffffffa0026085>] ? init_module+0x85/0xa0 [lirc_atiusb]
 [<ffffffff80209041>] ? _stext+0x41/0x116
 [<ffffffff8022927f>] ? try_to_wake_up+0x1ae/0x1c0
 [<ffffffff8024f352>] ? sys_init_module+0x9e/0x1ac
 [<ffffffff8020b22b>] ? system_call_fastpath+0x16/0x1b


Code: c6 02 48 63 c2 48 0f 45 d0 45 89 c1 4c 89 fe 45 89 e8 4c 89 e7 44 89 34 24 e8 35 f1 ff ff 49 89 c4 48 ff 44 24 38 48 8b 44 24 38 <8a> 00 84 c0 0f 85 f4
 fa ff ff 48 83 7c 24 28 00 74 11 4d 39 fc
RIP  [<ffffffff803608bf>] vsnprintf+0x582/0x5be
 RSP <ffff88007c9df908>
CR2: 0000000000000000
---[ end trace 5fec90fc02f286da ]---


I then booted into an old kernel and commented out lirc_dev and lirc_atiusb in /etc/modules.autoload.d/kernel-2.6. I was then able to boot into 2.6.27-r7. I then:
Code:

modprobe lirc_dev
modprobe lirc_atiusb

The system then freezes. I can Ctrl-C to break out of it.

Per http://www.gentoo-wiki.info/LIRC, I do have "Loadable module support->Module unloading" and "Device Drivers->Input device support->Event interface" enabled in my kernel config.



Any ideas?


Thanks
Mike


Last edited by ctd.mh3 on Thu Jan 01, 2009 8:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Thu Jan 01, 2009 2:11 pm    Post subject: Reply with quote

I think you need lirc 0.8.4 for 2.6.27 kernel.
Back to top
View user's profile Send private message
tld
Veteran
Veteran


Joined: 09 Dec 2003
Posts: 1836

PostPosted: Thu Jan 01, 2009 6:18 pm    Post subject: Reply with quote

Yup...just ran into this on my mythtv frontend. I had to add run the ~x86 lirc 0.8.4 in order to get lirc_serial to work. The odd thing was that with 0.8.3 lsmod showed lirc_serial as loaded even though I got errors about loading it, and lircd wouldn't start. Not sure what that was about.

Tom
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5918

PostPosted: Thu Jan 01, 2009 7:10 pm    Post subject: Reply with quote

guys, is there a possibility that if you use lirc on a laptop can you post your lspci?
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
ctd.mh3
n00b
n00b


Joined: 14 May 2008
Posts: 35
Location: Minnesota, USA

PostPosted: Thu Jan 01, 2009 8:23 pm    Post subject: Update to lirc Reply with quote

I now do see the change comments for 0.8.4 lirc

Code:

*lirc-0.8.4 (12 Oct 2008)

12 Oct 2008; Matthias Schwarzott <zzam@gentoo.org>
+files/lirc-0.8.4-imon-pad2keys.patch, lirc-0.8.0-r8.ebuild,
+lirc-0.8.4.ebuild:
Version bumped. This adds Kernel 2.6.27 compatibility. Added driver
options irlink, commandir, ite8709 and samsung, Bug #221727. Removed
portaudio patch. Shorten description of lirc-0.8.0-r8.


I assumed it was a kernel config thing, my bust.


I did have lirc-0.8.3-r3 installed.

Added "app-misc/lirc ~amd64" to /etc/portage/packages.keywords since my systems is amd64 based.

Ran "emerge -av lirc" again which installed lirc-0.8.4 as expected.

Booted back into 2.6.27-r3 with my lirc modules commented out in /etc/modules.autoload.d/kernel-2.6.

Ran "module-rebuild rebuild"

Ran "modprobe lirc_dev" then "modprobe lirc_atiusb". No issues.

Reenabled lirc_dev and lirc_atiusb in /etc/modules.autoload.d/kernel-2.6.

Rebooted into 2.6.27-r3. No issues.

Thanks a bunch.

Mike


Sorry I am not using a laptop, since my system is a desktop also used for mythfrontend.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum