Files
linux-nv-oot/drivers/devfreq
Ken Chang 655ee7d9db devfreq: wmark: active: set interrupt_driven
Set interrupt_driven to 1 thus cancel_delayed_work_sync() won't be
called in devfreq_monitor_suspend() when handling DEVFREQ_GOV_SUSPEND
event. This will avoid below warning prints when runtime PM is enabled.

[ 22.121071] INFO: trying to register non-static key.
[ 22.126030] the code is fine but needs lockdep annotation.
[ 22.131501] turning off the locking correctness validator.

The backstrace:
[    9.322855] [<ffffff80080d3b04>] flush_work+0x1fc/0x208
[    9.322858] [<ffffff80080d5180>] __cancel_work_timer+0xa0/0x188
[    9.322862] [<ffffff80080d52bc>] cancel_delayed_work_sync+0x24/0x30
[    9.322867] [<ffffff8008ce1da4>] devfreq_monitor_suspend+0x4c/0x80
[    9.322871] [<ffffff8008ce6d7c>] devfreq_watermark_event_handler+0x3b4/0x458
[    9.322874] [<ffffff8008ce1d20>] devfreq_suspend_device+0x60/0x98
[    9.322878] [<ffffff800852dad4>] nvhost_module_runtime_suspend+0x64/0x160
[    9.322883] [<ffffff800878dc64>] pm_generic_runtime_suspend+0x3c/0x58
[    9.322887] [<ffffff800879e478>] genpd_runtime_suspend+0x98/0x230
[    9.322890] [<ffffff8008790004>] __rpm_callback+0x74/0xa0
[    9.322893] [<ffffff8008790064>] rpm_callback+0x34/0x98
[    9.322896] [<ffffff80087906c8>] rpm_suspend+0x100/0x5f0
[    9.322899] [<ffffff80087921d0>] pm_runtime_work+0x80/0xb8
[    9.322902] [<ffffff80080d4054>] process_one_work+0x1e4/0x4b0
[    9.322904] [<ffffff80080d4370>] worker_thread+0x50/0x4c8
[    9.322908] [<ffffff80080daffc>] kthread+0xec/0xf0
[    9.322911] [<ffffff80080838a0>] ret_from_fork+0x10/0x30

Bug 3128395

Change-Id: I15116cd452a062620c01e91f71eecba7d68cde17
Signed-off-by: Ken Chang <kenc@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2418831
(cherry picked from commit b722658b31e1dc622870a9d5f38a8418ef8493ca)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2434773
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Aaron Tian <atian@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
2023-04-04 05:18:03 +00:00
..