You are not logged in.

#1 2013-05-14 17:00:40

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

[SOLVED] Linux kernel 3.9.2-1 bug - hp_wmi dmesg errors (hp nx9420)

My laptop is hp nx9420, the RAM and hard drive are pretty much new and are surely fine, and I'm using 64-bit Arch. The No Execute bit has always been enabled.
Upon upgrading my system, which pulled the kernel package linux-3.9.2-1, and after a reboot, there were problems regarding the boot process and it appears it's a bug connected with hp-wmi. Also, my system can't properly unmount the root partition and reboot/shutdown.

Part of dmesg

[    6.218925] ------------[ cut here ]------------
[    6.218982] kernel BUG at net/rfkill/core.c:244!
[    6.219024] invalid opcode: 0000 [#1] PREEMPT SMP 
[    6.219085] Modules linked in: iTCO_vendor_support mac80211 yenta_socket(+) tg3 hp_wmi(+) snd_hda_intel(+) ptp lpc_ich snd_hda_codec sparse_keymap pps_core cfg80211 microcode snd_hwdep pcmcia_rsrc libphy snd_pcm pcmcia_core pcspkr evdev hp_accel psmouse serio_raw lis3lv02d rfkill input_polldev snd_page_alloc snd_timer fan snd intel_agp intel_gtt soundcore thermal ac wmi video button battery acpi_cpufreq mperf tpm_tis(+) tpm tpm_bios processor sg ext4 crc16 mbcache jbd2 hid_a4tech usbhid hid sd_mod ata_generic pata_acpi ahci libahci ata_piix libata scsi_mod ehci_pci uhci_hcd ehci_hcd usbcore usb_common radeon i2c_algo_bit drm_kms_helper ttm drm i2c_core
[    6.219946] CPU 0 
[    6.219970] Pid: 134, comm: systemd-udevd Not tainted 3.9.2-1-ARCH #1 Hewlett-Packard HP Compaq nx9420 (RH442ET#ABD)/309F
[    6.220062] RIP: 0010:[<ffffffffa05897af>]  [<ffffffffa05897af>] rfkill_set_hw_state+0x9f/0xb0 [rfkill]
[    6.220150] RSP: 0018:ffff88007af6fb60  EFLAGS: 00010246
[    6.220196] RAX: 0000000000000001 RBX: 0000000000000000 RCX: 0000000000000018
[    6.220255] RDX: 0000000000061b00 RSI: 0000000000000001 RDI: 0000000000000000
[    6.220313] RBP: ffff88007af6fb80 R08: 0000000000016fa0 R09: ffff88007f616fa0
[    6.220371] R10: ffffea0001e98780 R11: ffffffffa07170ee R12: ffff88007c3bfc10
[    6.220429] R13: ffff88007c3bfc00 R14: 0000000000000000 R15: ffffffffa0718560
[    6.220489] FS:  00007f9d419ca780(0000) GS:ffff88007f600000(0000) knlGS:0000000000000000
[    6.220556] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    6.220604] CR2: 0000000001f7c000 CR3: 000000007af0a000 CR4: 00000000000007f0
[    6.220663] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[    6.220721] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[    6.220781] Process systemd-udevd (pid: 134, threadinfo ffff88007af6e000, task ffff88007c3e8860)
[    6.220850] Stack:
[    6.220870]  0000000000000000 ffff88007c3bfc10 ffff88007c3bfc00 0000000000000000
[    6.220954]  ffff88007af6fbb0 ffffffffa071a25a 0602122900000022 ffff88007c3bfc10
[    6.221036]  ffffffffa0718428 ffff88007c3bfc00 ffff88007af6fbe0 ffffffff8135978c
[    6.221120] Call Trace:
[    6.221151]  [<ffffffffa071a25a>] hp_wmi_bios_setup+0x25a/0x3a0 [hp_wmi]
[    6.221213]  [<ffffffff8135978c>] platform_drv_probe+0x3c/0x70
[    6.221266]  [<ffffffff81356d6a>] ? driver_sysfs_add+0x7a/0xb0
[    6.221325]  [<ffffffff81357407>] driver_probe_device+0x87/0x3a0
[    6.223365]  [<ffffffff813577f3>] __driver_attach+0x93/0xa0
[    6.223365]  [<ffffffff81357760>] ? __device_attach+0x40/0x40
[    6.223365]  [<ffffffff81355403>] bus_for_each_dev+0x63/0xa0
[    6.223365]  [<ffffffff81356e8e>] driver_attach+0x1e/0x20
[    6.223365]  [<ffffffff81356a28>] bus_add_driver+0x1f8/0x2b0
[    6.223365]  [<ffffffff81357e81>] driver_register+0x71/0x150
[    6.223365]  [<ffffffff813594e6>] platform_driver_register+0x46/0x50
[    6.223365]  [<ffffffff813595ab>] platform_driver_probe+0x1b/0xa0
[    6.223365]  [<ffffffffa071a55e>] hp_wmi_init+0x1be/0x1fb [hp_wmi]
[    6.223365]  [<ffffffffa071a3a0>] ? hp_wmi_bios_setup+0x3a0/0x3a0 [hp_wmi]
[    6.223365]  [<ffffffff8100210a>] do_one_initcall+0x10a/0x160
[    6.223365]  [<ffffffff810bdac6>] load_module+0x1b46/0x2640
[    6.223365]  [<ffffffff8128da20>] ? ddebug_proc_write+0xf0/0xf0
[    6.223365]  [<ffffffff810be662>] sys_init_module+0xa2/0xf0
[    6.223365]  [<ffffffff814d975d>] system_call_fastpath+0x1a/0x1f
[    6.223365] Code: 48 ff ff ff 80 7b 24 00 74 d2 41 83 e5 01 45 38 ec 74 c9 48 8d bb a0 03 00 00 e8 ed bb ae e0 5b 41 5c 41 5d 44 89 f0 41 5e 5d c3 <0f> 0b 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66 
[    6.223365] RIP  [<ffffffffa05897af>] rfkill_set_hw_state+0x9f/0xb0 [rfkill]
[    6.223365]  RSP <ffff88007af6fb60>
[    6.269418] ---[ end trace d433dd1cfe38fec2 ]---

This is the pstree upon boot and login, the tee process is suspicious:

systemd
  |-dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
  |-login     
  |   `-bash
  |       `-startx /usr/bin/startx
  |           `-xinit /home/max/.xinitrc -- /etc/X11/xinit/xserverrc :0 -auth /tmp/serverauth.DAEGu5rgzr
  |               |-X -nolisten tcp :0 -auth /tmp/serverauth.DAEGu5rgzr vt1
  |               |  `-{X}
  |               `-openbox
  |                   |-lxterminal
  |                   |   |-bash
  |                   |   |   `-pstree -a
  |                   |   |-gnome-pty-helper
  |                   |   `-{lxterminal}
  |                   `-tint2
  |-systemd-journal
  |-systemd-logind
  |-systemd-udevd
  `-tee /sys/bus/platform/devices/hp-wmi/power/control

And this is my boot parameters from Syslinux:

LABEL arch
	MENU LABEL Arch Linux
	LINUX ../vmlinuz-linux
	APPEND root=/dev/sda1 ro init=/usr/lib/systemd/systemd consoleblank=0 quiet
	INITRD ../initramfs-linux.img

I removed the powerdown package thinking it was the culprit, but it isn't.
Currently, I solved this problem by downgrading to an older kernel.

What could possibly be the cause?

Last edited by bjornoslav (2013-06-01 15:10:29)


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#2 2013-05-31 15:50:04

andrej.podzimek
Member
From: Zürich, Switzerland
Registered: 2005-04-10
Posts: 115

Re: [SOLVED] Linux kernel 3.9.2-1 bug - hp_wmi dmesg errors (hp nx9420)

Also reproduced with a vanilla kernel:

[   11.793548] Kernel BUG at f82f054a [verbose debug info unavailable]
[   11.793630] invalid opcode: 0000 [#1] PREEMPT SMP 
[   11.793694] Modules linked in: kvm_intel hp_wmi(+) sparse_keymap kvm e100 psmouse arc4 snd_hda_codec_conexant snd_hda_intel mii fan snd_hda_codec yenta_socket lpc_ich iwl3945 evdev snd_hwdep snd_pcm snd_page_alloc snd_timer snd iwlegacy thermal mfd_core mac80211 wmi soundcore battery ac rtc_cmos cfg80211 rfkill pcmcia_rsrc pcmcia_core rng_core cuse fuse nfs lockd sunrpc fscache autofs4 sr_mod cdrom dm_mod ehci_pci uhci_hcd ehci_hcd usbcore ata_piix usb_common ipv6 ext4 sd_mod crc16 mbcache crc_t10dif jbd2 ahci libahci libata cpufreq_ondemand acpi_cpufreq mperf processor freq_table coretemp hwmon
[   11.794367] Pid: 1577, comm: systemd-udevd Not tainted 3.9.4-AP+ #29 Hewlett-Packard HP 530 Notebook PC(KP477AA#AKB)/30D5
[   11.794439] EIP: 0060:[<f82f054a>] EFLAGS: 00010246 CPU: 1
[   11.794476] EIP is at rfkill_set_hw_state+0x7a/0x80 [rfkill]
[   11.794510] EAX: 00000000 EBX: 00000000 ECX: 00000018 EDX: 00000001
[   11.794548] ESI: f501940c EDI: f5019400 EBP: c1261a20 ESP: f5353d74
[   11.794587]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[   11.794619] CR0: 8005003b CR2: 094768e8 CR3: 35216000 CR4: 000007d0
[   11.794658] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[   11.794696] DR6: ffff0ff0 DR7: 00000400
[   11.794718] Process systemd-udevd (pid: 1577, ti=f5352000 task=f5952800 task.ti=f5352000)
[   11.794770] Stack:
[   11.794778]  00000000 f501940c f5019400 c1261a20 f812e232 f88263c8 00000003 00000f29
[   11.794863]  f501940c f8827014 f5019400 c1263286 f501940c f8827014 f8827014 c1261854
[   11.794946]  f5807fc0 f501940c f8827014 c12632e1 f501940c f8827014 f5019440 c1261a91
[   11.795030] Call Trace:
[   11.795048]  [<c1261a20>] ? __device_attach+0x30/0x30
[   11.795081]  [<f812e232>] ? hp_wmi_bios_setup+0x232/0x34f [hp_wmi]
[   11.795121]  [<c1263286>] ? platform_drv_probe+0x26/0x50
[   11.795154]  [<c1261854>] ? driver_probe_device+0x54/0x1f0
[   11.795188]  [<c12632e1>] ? platform_match+0x31/0x70
[   11.795218]  [<c1261a91>] ? __driver_attach+0x71/0x80
[   11.795249]  [<c12600cf>] ? bus_for_each_dev+0x3f/0x70
[   11.795281]  [<c1261466>] ? driver_attach+0x16/0x20
[   11.795311]  [<c1261a20>] ? __device_attach+0x30/0x30
[   11.795342]  [<c126112f>] ? bus_add_driver+0x19f/0x250
[   11.795374]  [<c1261fb3>] ? driver_register+0x63/0x130
[   11.795405]  [<c126317f>] ? platform_driver_probe+0xf/0x80
[   11.795440]  [<f812e4e4>] ? hp_wmi_init+0x195/0xcb1 [hp_wmi]
[   11.795476]  [<f812e34f>] ? hp_wmi_bios_setup+0x34f/0x34f [hp_wmi]
[   11.795515]  [<c10011f2>] ? do_one_initcall+0x102/0x150
[   11.795548]  [<c1026ff1>] ? set_memory_ro+0x31/0x40
[   11.795579]  [<c10767bc>] ? set_section_ro_nx+0x5c/0x60
[   11.795612]  [<c1078a42>] ? load_module+0x17f2/0x1de0
[   11.795645]  [<c10790ff>] ? sys_finit_module+0x4f/0x60
[   11.796769]  [<c133c1be>] ? sysenter_do_call+0x12/0x26
[   11.796769] Code: 00 89 d8 e8 89 ff ff ff 80 7b 14 00 74 dc 89 f8 89 f2 83 e0 01 38 c2 74 d1 8d 83 cc 01 00 00 e8 ad 06 d5 c8 89 e8 5b 5e 5f 5d c3 <0f> 0b 8d 74 26 00 8b 40 78 80 78 f4 00 75 07 f3 c3 90 8d 74 26
[   11.796769] EIP: [<f82f054a>] rfkill_set_hw_state+0x7a/0x80 [rfkill] SS:ESP 0068:f5353d74

Quite obviously, this is related to HP laptops. Perhaps blacklisting the hp_wmi module could solve it. However, that module might be related to the extra buttons and/or to reporting the state of the hardware rfkill switch...

Last edited by andrej.podzimek (2013-05-31 15:52:03)

Offline

#3 2013-06-01 14:27:17

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: [SOLVED] Linux kernel 3.9.2-1 bug - hp_wmi dmesg errors (hp nx9420)

Thank you very much, I shall try again with the stock kernel, since I've compiler the realtime version from AUR (3.8.11) and am using it without any problems.


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

#4 2013-06-01 14:39:38

bjornoslav
Member
Registered: 2011-11-01
Posts: 137

Re: [SOLVED] Linux kernel 3.9.2-1 bug - hp_wmi dmesg errors (hp nx9420)

Blacklisting the hp_wmi module solved the problem of the appearing error message. Thank you very much!
The extra buttons work, as far as I can see everything seems fine. Power management via powerdown works perfectly.
The WiFi/RF kill switch works properly.

Last edited by bjornoslav (2013-06-01 14:40:41)


asus ux303la, core i5@1.6ghz, 8 gb ram, 500gb hdd, hd4400 gpu, crux x64 with openbox

Offline

Board footer

Powered by FluxBB