mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-28 23:24:50 +00:00
![]() Power source notify handler is getting registered even when none of the
PMF feature in enabled leading to a crash.
...
[ 22.592162] Call Trace:
[ 22.592164] <TASK>
[ 22.592164] ? rcu_note_context_switch+0x5e0/0x660
[ 22.592166] ? __warn+0x81/0x130
[ 22.592171] ? rcu_note_context_switch+0x5e0/0x660
[ 22.592172] ? report_bug+0x171/0x1a0
[ 22.592175] ? prb_read_valid+0x1b/0x30
[ 22.592177] ? handle_bug+0x3c/0x80
[ 22.592178] ? exc_invalid_op+0x17/0x70
[ 22.592179] ? asm_exc_invalid_op+0x1a/0x20
[ 22.592182] ? rcu_note_context_switch+0x5e0/0x660
[ 22.592183] ? acpi_ut_delete_object_desc+0x86/0xb0
[ 22.592186] ? acpi_ut_update_ref_count.part.0+0x22d/0x930
[ 22.592187] __schedule+0xc0/0x1410
[ 22.592189] ? ktime_get+0x3c/0xa0
[ 22.592191] ? lapic_next_event+0x1d/0x30
[ 22.592193] ? hrtimer_start_range_ns+0x25b/0x350
[ 22.592196] schedule+0x5e/0xd0
[ 22.592197] schedule_hrtimeout_range_clock+0xbe/0x140
[ 22.592199] ? __pfx_hrtimer_wakeup+0x10/0x10
[ 22.592200] usleep_range_state+0x64/0x90
[ 22.592203] amd_pmf_send_cmd+0x106/0x2a0 [amd_pmf bddfe0fe3712aaa99acce3d5487405c5213c6616]
[ 22.592207] amd_pmf_update_slider+0x56/0x1b0 [amd_pmf bddfe0fe3712aaa99acce3d5487405c5213c6616]
[ 22.592210] amd_pmf_set_sps_power_limits+0x72/0x80 [amd_pmf bddfe0fe3712aaa99acce3d5487405c5213c6616]
[ 22.592213] amd_pmf_pwr_src_notify_call+0x49/0x90 [amd_pmf bddfe0fe3712aaa99acce3d5487405c5213c6616]
[ 22.592216] notifier_call_chain+0x5a/0xd0
[ 22.592218] atomic_notifier_call_chain+0x32/0x50
...
Fix this by moving the registration of source change notify handler only
when SPS(Static Slider) is advertised as supported.
Reported-by: Allen Zhong <allen@atr.me>
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217571
Fixes:
|
||
---|---|---|
.. | ||
amd | ||
dell | ||
hp | ||
intel | ||
x86-android-tablets | ||
acer-wireless.c | ||
acer-wmi.c | ||
acerhdf.c | ||
adv_swbutton.c | ||
amilo-rfkill.c | ||
apple-gmux.c | ||
asus-laptop.c | ||
asus-nb-wmi.c | ||
asus-tf103c-dock.c | ||
asus-wireless.c | ||
asus-wmi.c | ||
asus-wmi.h | ||
barco-p50-gpio.c | ||
classmate-laptop.c | ||
compal-laptop.c | ||
dual_accel_detect.h | ||
eeepc-laptop.c | ||
eeepc-wmi.c | ||
firmware_attributes_class.c | ||
firmware_attributes_class.h | ||
fujitsu-laptop.c | ||
fujitsu-tablet.c | ||
gigabyte-wmi.c | ||
gpd-pocket-fan.c | ||
hdaps.c | ||
huawei-wmi.c | ||
ibm_rtl.c | ||
ideapad-laptop.c | ||
ideapad-laptop.h | ||
intel_ips.c | ||
intel_ips.h | ||
intel_scu_ipc.c | ||
intel_scu_ipcutil.c | ||
intel_scu_pcidrv.c | ||
intel_scu_pltdrv.c | ||
intel_scu_wdt.c | ||
Kconfig | ||
lenovo-ymc.c | ||
lenovo-yogabook-wmi.c | ||
lg-laptop.c | ||
Makefile | ||
meraki-mx100.c | ||
mlx-platform.c | ||
msi-ec.c | ||
msi-ec.h | ||
msi-laptop.c | ||
msi-wmi.c | ||
mxm-wmi.c | ||
nvidia-wmi-ec-backlight.c | ||
p2sb.c | ||
panasonic-laptop.c | ||
pcengines-apuv2.c | ||
pmc_atom.c | ||
samsung-laptop.c | ||
samsung-q10.c | ||
serial-multi-instantiate.c | ||
simatic-ipc.c | ||
sony-laptop.c | ||
system76_acpi.c | ||
think-lmi.c | ||
think-lmi.h | ||
thinkpad_acpi.c | ||
topstar-laptop.c | ||
toshiba-wmi.c | ||
toshiba_acpi.c | ||
toshiba_bluetooth.c | ||
toshiba_haps.c | ||
touchscreen_dmi.c | ||
uv_sysfs.c | ||
winmate-fm07-keys.c | ||
wireless-hotkey.c | ||
wmi-bmof.c | ||
wmi.c | ||
xiaomi-wmi.c | ||
xo1-rfkill.c | ||
xo15-ebook.c |