Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix spinlock bad magic error on enablng debug macro. FAN rising trip_level:1 cur_temp:50000 trip_temps[2]:63000 BUG: spinlock bad magic on CPU#0, kworker/u17:0/1591 lock: 0xffffffc7d0c07c78, .magic: 00000000, .owner: <none>/-1, .owner_cpu: 0 CPU: 0 PID: 1591 Comm: kworker/u17:0 Not tainted 4.9.230-rt148-tegra #1 Hardware name: Jetson-AGX (DT) Workqueue: thermal-fan-est therm_fan_est_work_func Call trace: [<ffffff800808b318>] dump_backtrace+0x0/0x198 [<ffffff800808b8d4>] show_stack+0x24/0x30 [<ffffff800844f69c>] dump_stack+0xa0/0xc4 [<ffffff80081137d4>] spin_dump+0x84/0xb0 [<ffffff80081138c4>] do_raw_spin_lock+0xc4/0x100 [<ffffff8008f60068>] _raw_spin_lock_irqsave+0x38/0x48 [<ffffff8008f5e744>] rt_mutex_slowlock.constprop.6+0x54/0xd0 [<ffffff8008f5ea94>] rt_mutex_lock_state+0x5c/0x88 [<ffffff8008f5eae4>] rt_mutex_lock+0x24/0x30 [<ffffff8008f608d8>] _mutex_lock+0x20/0x30 [<ffffff8008b767c4>] fan_update_target_pwm+0x54/0x248 [<ffffff8008b76fd4>] pwm_fan_set_cur_state+0x174/0x198 [<ffffff8008b624ec>] thermal_cdev_update+0xa4/0x200 [<ffffff8008b6ae20>] pid_thermal_gov_throttle+0x2b0/0x3d0 [<ffffff8008b641bc>] handle_thermal_trip+0x84/0x258 [<ffffff8008b644cc>] thermal_zone_device_update+0x104/0x220 [<ffffff80087cca74>] therm_fan_est_work_func+0x344/0x3b0 [<ffffff80080d0d8c>] process_one_work+0x1cc/0x4b0 [<ffffff80080d11d0>] worker_thread+0x160/0x510 [<ffffff80080d79ac>] kthread+0xec/0xf0 [<ffffff80080830a0>] ret_from_fork+0x10/0x30 Bug 3227296 Bug 200695596 Signed-off-by: Sumit Gupta <[email protected]> Change-Id: I63d2b6316ccbe5b6843e90bcd377cc4cb16da24b Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2496144 GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <[email protected]> Reviewed-by: mobile promotions <[email protected]> Reviewed-by: Bibek Basu <[email protected]> Reviewed-by: svc-mobile-coverity <[email protected]>
- Loading branch information