"PM / wakeup: Show wakeup sources stats in sysfs" causes boot warnings
From: Qian Cai
Date: Tue Aug 13 2019 - 17:33:03 EST
The linux-next commit "PM / wakeup: Show wakeup sources stats in sysfs" [1]
introduced some baddies during boot on several x86 servers. Reverted the commit
fixed the issue.
[1] https://lore.kernel.org/lkml/20190807014846.143949-4-trong@xxxxxxxxxxx/
[ÂÂÂ39.195053][ÂÂÂÂT1] serio: i8042 KBD port at 0x60,0x64 irq 1
[ÂÂÂ39.197347][ÂÂÂÂT1] kobject_add_internal failed for wakeup (error: -2 parent:
serio0)
[ÂÂÂ39.199845][ÂÂÂÂT1] INFO: trying to register non-static key.
[ÂÂÂ39.201582][ÂÂÂÂT1] the code is fine but needs lockdep annotation.
[ÂÂÂ39.203477][ÂÂÂÂT1] turning off the locking correctness validator.
[ÂÂÂ39.205399][ÂÂÂÂT1] CPU: 12 PID: 1 Comm: swapper/0 Not tainted 5.3.0-rc4-
next-20190813 #3
[ÂÂÂ39.207938][ÂÂÂÂT1] Hardware name: HP ProLiant XL420 Gen9/ProLiant XL420
Gen9, BIOS U19 12/27/2015
[ÂÂÂ39.210606][ÂÂÂÂT1] Call Trace:
[ÂÂÂ39.210606][ÂÂÂÂT1]ÂÂdump_stack+0x62/0x9a
[ÂÂÂ39.210606][ÂÂÂÂT1]ÂÂregister_lock_class+0x95a/0x960
[ÂÂÂ39.210606][ÂÂÂÂT1]ÂÂ? __platform_driver_probe+0xcd/0x230
[ÂÂÂ39.210606][ÂÂÂÂT1]ÂÂ? __platform_create_bundle+0xc0/0xe0
[ÂÂÂ39.210606][ÂÂÂÂT1]ÂÂ? i8042_init+0x4ec/0x578
[ÂÂÂ39.210606][ÂÂÂÂT1]ÂÂ? do_one_initcall+0xfe/0x45a
[ÂÂÂ39.219571][ÂÂÂÂT1]ÂÂ? kernel_init_freeable+0x614/0x6a7
[ÂÂÂ39.219571][ÂÂÂÂT1]ÂÂ? kernel_init+0x11/0x138
[ÂÂÂ39.219571][ÂÂÂÂT1]ÂÂ? ret_from_fork+0x35/0x40
[ÂÂÂ39.219571][ÂÂÂÂT1]ÂÂ? is_dynamic_key+0xf0/0xf0
[ÂÂÂ39.219571][ÂÂÂÂT1]ÂÂ? rwlock_bug.part.0+0x60/0x60
[ÂÂÂ39.219571][ÂÂÂÂT1]ÂÂ? __debug_check_no_obj_freed+0x8e/0x250
[ÂÂÂ39.219571][ÂÂÂÂT1]ÂÂ__lock_acquire.isra.13+0x5f/0x830
[ÂÂÂ39.229491][ÂÂÂÂT1]ÂÂ? __debug_check_no_obj_freed+0x152/0x250
[ÂÂÂ39.229491][ÂÂÂÂT1]ÂÂlock_acquire+0x107/0x220
[ÂÂÂ39.229491][ÂÂÂÂT1]ÂÂ? __pm_relax.part.2+0x21/0xa0
[ÂÂÂ39.229491][ÂÂÂÂT1]ÂÂ_raw_spin_lock_irqsave+0x35/0x50
[ÂÂÂ39.229491][ÂÂÂÂT1]ÂÂ? __pm_relax.part.2+0x21/0xa0
[ÂÂÂ39.229491][ÂÂÂÂT1]ÂÂ__pm_relax.part.2+0x21/0xa0
[ÂÂÂ39.239588][ÂÂÂÂT1]ÂÂwakeup_source_destroy.part.3+0x18/0x190
[ÂÂÂ39.239588][ÂÂÂÂT1]ÂÂwakeup_source_register+0x43/0x50
[ÂÂÂ39.239588][ÂÂÂÂT1]ÂÂdevice_wakeup_enable+0x76/0x170
[ÂÂÂ39.239588][ÂÂÂÂT1]ÂÂdevice_set_wakeup_enable+0x13/0x20
[ÂÂÂ39.239588][ÂÂÂÂT1]ÂÂi80probe+0x921/0xa45
[ÂÂÂ39.339546][ÂÂÂÂT1]ÂÂ? i8042_toggle_aux+0xeb/0xeb
[ÂÂÂ39.349486][ÂÂÂÂT1]ÂÂ? kernfs_create_link+0xce/0x100
[ÂÂÂ39.349486][ÂÂÂÂT1]ÂÂ? sysfs_do_create_link_sd+0x7b/0xe0
[ÂÂÂ39.349486][ÂÂÂÂT1]ÂÂ? acpi_dev_pm_attach+0x31/0xf0
[ÂÂÂ39.349486][ÂÂÂÂT1]ÂÂplatform_drv_probe+0x51/0xe0
[ÂÂÂ39.349486][ÂÂÂÂT1]ÂÂreally_probe+0x1a2/0x630
[ÂÂÂ39.349486][ÂÂÂÂT1]ÂÂ? device_driver_attach+0xa0/0xa0
[ÂÂÂ39.349486][ÂÂÂÂT1]ÂÂdriver_probe_device+0xcd/0x1f0
[ÂÂÂ39.359562][ÂÂÂÂT1]ÂÂ? device_driver_attach+0xa0/0xa0
[ÂÂÂ39.359562][ÂÂÂÂT1]ÂÂdevice_driver_attach+0x8f/0xa0
[ÂÂÂ39.359562][ÂÂÂÂT1]ÂÂ__driver_attach+0xc7/0x1a0
[ÂÂÂ39.359562][ÂÂÂÂT1]ÂÂbus_for_each_dev+0xfe/0x160
[ÂÂÂ39.359562][ÂÂÂÂT1]ÂÂ? subsys_dev_iter_init+0x80/0x80
[ÂÂÂ39.359562][ÂÂÂÂT1]ÂÂ? __kasan_check_read+0x11/0x20
[ÂÂÂ39.359562][ÂÂÂÂT1]ÂÂ? _raw_spin_unlock+0x27/0x40
[ÂÂÂ39.369488][ÂÂÂÂT1]ÂÂdriver_attach+0x2b/0x30
[ÂÂÂ39.369488][ÂÂÂÂT1]ÂÂbus_add_driver+0x298/0x350
[ÂÂÂ39.369488][ÂÂÂÂT1]ÂÂdriver_register+0xdc/0x1d0
[ÂÂÂ39.369488][ÂÂÂÂT1]ÂÂ? i8042_toggle_aux+0xeb/0xeb
[ÂÂÂ39.369488][ÂÂÂÂT1]ÂÂ__platform_driver_probe+0xcd/0x230
[ÂÂÂ39.3ÂÂ__platform_create_bundle+0xc0/0xe0
[ÂÂÂ39.769489][ÂÂÂÂT1]ÂÂ? i8042_toggle_aux+0xeb/0xeb
[ÂÂÂ39.779556][ÂÂÂÂT1]ÂÂ? i8042_probe+0xa45/0xa45
[ÂÂÂ39.779556][ÂÂÂÂT1]ÂÂi8042_init+0x4ec/0x578
[ÂÂÂ39.779556][ÂÂÂÂT1]ÂÂ? i8042_probe+0xa45/0xa45
[ÂÂÂ39.779556][ÂÂÂÂT1]ÂÂ? netdev_run_todo+0x2f/0x4a0
[ÂÂÂ39.779556][ÂÂÂÂT1]ÂÂ? qdisc_create_dflt+0xf0/0xf0
[ÂÂÂ39.779556][ÂÂÂÂT1]ÂÂ? net_olddevs_init+0x67/0x67
[ÂÂÂ39.779556][ÂÂÂÂT1]ÂÂ? i8042_probe+0xa45/0xa45
[ÂÂÂ39.789486][ÂÂÂÂT1]ÂÂdo_one_initcall+0xfe/0x45a
[ÂÂÂ39.789486][ÂÂÂÂT1]ÂÂ? initcall_blacklisted+0x150/0x150
[ÂÂÂ39.789486][ÂÂÂÂT1]ÂÂ? __kasan_check_write+0x14/0x20
[ÂÂÂ39.789486][ÂÂÂÂT1]ÂÂ? up_write+0xee/0x2a0
[ÂÂÂ39.789486][ÂÂÂÂT1]ÂÂkernel_init_freeable+0x614/0x6a7
[ÂÂÂ39.789486][ÂÂÂÂT1]ÂÂ? rest_init+0x188/0x188
[ÂÂÂ39.789486][ÂÂÂÂT1]ÂÂkernel_init+0x11/0x138
[ÂÂÂ39.799563][ÂÂÂÂT1]ÂÂ? rest_init+0x188/0x188
[ÂÂÂ39.799563][ÂÂÂÂT1]ÂÂret_from_fork+0x35/0x40
[ÂÂÂ39.803412][ÂÂÂÂT1] serio: i8042 AUX port at 0x60,0x64 irq 12