Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"BUG: scheduling while atomic" when reading LED status #3

Open
ghost opened this issue Jun 20, 2013 · 2 comments
Open

"BUG: scheduling while atomic" when reading LED status #3

ghost opened this issue Jun 20, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 20, 2013

Hey,

I've programmed the M1-MR keys to do some stuff and light up when pressed using a simple shell script and xbindkeys, however I've noticed an issue when reading the bitmask from led_keys or led_macro. Doing so gets me the following nice messages in dmesg, twice:

[  448.158523] BUG: scheduling while atomic: cat/2439/0x00000002
[  448.158525] Modules linked in: nvidia(PO) usb_storage drm wmi edac_core edac_mce_amd psmouse snd_hda_codec_hdmi serio_raw kvm_amd sp5100_tco evdev r8169 i2c_piix4 hid_generic i2c_core mii kvm microcode pcspkr button snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_pcm snd_page_alloc snd_timer snd soundcore it87 hwmon_vid k10temp nfs lockd sunrpc fscache msr cpufreq_userspace cpufreq_powersave acpi_cpufreq mperf processor cpufreq_stats sg ext4 crc16 mbcache jbd2 sr_mod cdrom sd_mod ahci libahci libata ohci_hcd ehci_pci ehci_hcd scsi_mod xhci_hcd hid_lg_g710_plus(O) usbhid hid usbcore usb_common
[  448.158563] Pid: 2439, comm: cat Tainted: P        W  O 3.9.6-2-ck #1
[  448.158564] Call Trace:
[  448.158569]  [] __schedule_bug+0x4d/0x5b
[  448.158573]  [] schedule+0xecf/0x1040
[  448.158579]  [] ? ohci_urb_enqueue+0x1c7/0xa20 [ohci_hcd]
[  448.158588]  [] ? usb_hcd_submit_urb+0xa3/0x8e0 [usbcore]
[  448.158595]  [] schedule_timeout+0x134/0x2a0
[  448.158599]  [] ? call_timer_fn+0x1a0/0x1a0
[  448.158603]  [] wait_for_common+0xcd/0x180
[  448.158607]  [] ? wake_up_process+0x40/0x40
[  448.158611]  [] wait_for_completion_timeout+0x13/0x20
[  448.158617]  [] lg_g710_plus_show_led_macro+0x7c/0xc0 [hid_lg_g710_plus]
[  448.158621]  [] dev_attr_show+0x20/0x60
[  448.158626]  [] sysfs_read_file+0x9a/0x1a0
[  448.158630]  [] vfs_read+0x96/0x180
[  448.158633]  [] sys_read+0x49/0xa0
[  448.158637]  [] system_call_fastpath+0x1a/0x1f

This doesn't seem to be a major problem though, it's just those messages that appear.
PS: I'm using the AUR package and linux-ck 3.9.6.

@Wattos
Copy link
Owner

Wattos commented Jul 4, 2013

Hmm, its difficult to say. I think it simply times out. Could you try increasing the timeout ? It is defined in hid-lg-g710-plus.c under WAIT_TIME_OUT

@AlexanderS
Copy link

I have a similar problem. But the kernel oopses with "killing interrupt". The read hangs for a few seconds and the kernel oops. Is the keyboard so slow in responding or is this a different problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants