Hi,
IGEPv5, Slackware ARM -current, armhf, gcc 5.4.0, vanilla 4.11.0-rc1.
devpts on /dev/pts type devpts (rw,mode=0620,gid=5) [ 16.158356] [ 16.159917] ====================================================== [ 16.166380] [ INFO: possible circular locking dependency detected ] [ 16.172943] 4.11.0-rc1 #1 Not tainted [ 16.176767] ------------------------------------------------------- [ 16.183319] tee/549 is trying to acquire lock: [ 16.187966] (cooling_list_lock){+.+...}, at: [<bf174e38>] cpufreq_thermal_notifier+0x24/0xc8 [thermal_sys] [ 16.198184] [ 16.198184] but task is already holding lock: [ 16.204282] ((cpufreq_policy_notifier_list).rwsem){++++..}, at: [<c015d928>] __blocking_notifier_call_chain+0x2c/0x60 [ 16.215489] [ 16.215489] which lock already depends on the new lock. [ 16.215489] [ 16.224046] [ 16.224046] the existing dependency chain (in reverse order) is: [ 16.231873] [ 16.231873] -> #1 ((cpufreq_policy_notifier_list).rwsem){++++..}: [ 16.239808] blocking_notifier_chain_register+0x20/0xdc [ 16.245838] __cpufreq_cooling_register+0x340/0x550 [thermal_sys] [ 16.252762] cpufreq_ready+0x6c/0xc0 [cpufreq_dt] [ 16.258226] cpufreq_online+0x340/0x630 [ 16.262780] cpufreq_add_dev+0xac/0xd0 [ 16.267241] subsys_interface_register+0x98/0xdc [ 16.272614] cpufreq_register_driver+0x144/0x1d4 [ 16.277993] dt_cpufreq_probe+0x84/0x104 [cpufreq_dt] [ 16.283821] platform_drv_probe+0x4c/0xb0 [ 16.288565] driver_probe_device+0x204/0x2dc [ 16.293576] __driver_attach+0xc0/0xc4 [ 16.298036] bus_for_each_dev+0x6c/0xa0 [ 16.302594] bus_add_driver+0x18c/0x214 [ 16.307149] driver_register+0x78/0xf8 [ 16.311610] do_one_initcall+0x3c/0x170 [ 16.316168] do_init_module+0x5c/0x1f8 [ 16.320634] load_module+0x1e8c/0x2530 [ 16.325094] SyS_finit_module+0xa4/0xb8 [ 16.329650] ret_fast_syscall+0x0/0x1c [ 16.334112] [ 16.334112] -> #0 (cooling_list_lock){+.+...}: [ 16.340312] __mutex_lock+0x44/0x908 [ 16.344594] mutex_lock_nested+0x1c/0x24 [ 16.349262] cpufreq_thermal_notifier+0x24/0xc8 [thermal_sys] [ 16.355815] notifier_call_chain+0x44/0x84 [ 16.360646] __blocking_notifier_call_chain+0x48/0x60 [ 16.366473] blocking_notifier_call_chain+0x18/0x20 [ 16.372122] cpufreq_set_policy+0x68/0x1dc [ 16.376954] store_scaling_governor+0x60/0x80 [ 16.382055] store+0x68/0x8c [ 16.385610] kernfs_fop_write+0xf4/0x1f8 [ 16.390257] __vfs_write+0x1c/0x114 [ 16.394451] vfs_write+0xa0/0x168 [ 16.398462] SyS_write+0x3c/0x90 [ 16.402375] ret_fast_syscall+0x0/0x1c [ 16.406833] [ 16.406833] other info that might help us debug this: [ 16.406833] [ 16.415203] Possible unsafe locking scenario: [ 16.415203] [ 16.421394] CPU0 CPU1 [ 16.426128] ---- ---- [ 16.430858] lock((cpufreq_policy_notifier_list).rwsem); [ 16.436510] lock(cooling_list_lock); [ 16.443072] lock((cpufreq_policy_notifier_list).rwsem); [ 16.451356] lock(cooling_list_lock); [ 16.455282] [ 16.455282] *** DEADLOCK *** [ 16.455282] [ 16.461476] 6 locks held by tee/549: [ 16.465207] #0: (sb_writers#7){.+.+.+}, at: [<c02b1e80>] vfs_write+0x148/0x168 [ 16.472952] #1: (&of->mutex){+.+.+.}, at: [<c0334108>] kernfs_fop_write+0xb8/0x1f8 [ 16.481060] #2: (s_active#91){.+.+.+}, at: [<c0334110>] kernfs_fop_write+0xc0/0x1f8 [ 16.489267] #3: (cpu_hotplug.dep_map){++++++}, at: [<c0138220>] get_online_cpus+0x28/0xa4 [ 16.498023] #4: (&policy->rwsem){+.+.+.}, at: [<c06520f0>] store+0x54/0x8c [ 16.505409] #5: ((cpufreq_policy_notifier_list).rwsem){++++..}, at: [<c015d928>] __blocking_notifier_call_chain+0x2c/0x60 [ 16.517065] [ 16.517065] stack backtrace: [ 16.521619] CPU: 1 PID: 549 Comm: tee Not tainted 4.11.0-rc1 #1 [ 16.527805] Hardware name: Generic OMAP5 (Flattened Device Tree) [ 16.534088] [<c0110184>] (unwind_backtrace) from [<c010c310>] (show_stack+0x10/0x14) [ 16.542186] [<c010c310>] (show_stack) from [<c04b059c>] (dump_stack+0xb0/0xe4) [ 16.549739] [<c04b059c>] (dump_stack) from [<c0198910>] (print_circular_bug+0x1c8/0x30c) [ 16.558202] [<c0198910>] (print_circular_bug) from [<c019bdd8>] (__lock_acquire+0x1704/0x17d0) [ 16.567214] [<c019bdd8>] (__lock_acquire) from [<c019c2a8>] (lock_acquire+0xd0/0x238) [ 16.575410] [<c019c2a8>] (lock_acquire) from [<c0804728>] (__mutex_lock+0x44/0x908) [ 16.583417] [<c0804728>] (__mutex_lock) from [<c0805008>] (mutex_lock_nested+0x1c/0x24) [ 16.591817] [<c0805008>] (mutex_lock_nested) from [<bf174e38>] (cpufreq_thermal_notifier+0x24/0xc8 [thermal_sys]) [ 16.602572] [<bf174e38>] (cpufreq_thermal_notifier [thermal_sys]) from [<c015d494>] (notifier_call_chain+0x44/0x84) [ 16.613509] [<c015d494>] (notifier_call_chain) from [<c015d944>] (__blocking_notifier_call_chain+0x48/0x60) [ 16.623688] [<c015d944>] (__blocking_notifier_call_chain) from [<c015d974>] (blocking_notifier_call_chain+0x18/0x20) [ 16.634683] [<c015d974>] (blocking_notifier_call_chain) from [<c0653594>] (cpufreq_set_policy+0x68/0x1dc) [ 16.644692] [<c0653594>] (cpufreq_set_policy) from [<c0653840>] (store_scaling_governor+0x60/0x80) [ 16.654056] [<c0653840>] (store_scaling_governor) from [<c0652104>] (store+0x68/0x8c) [ 16.662238] [<c0652104>] (store) from [<c0334144>] (kernfs_fop_write+0xf4/0x1f8) [ 16.669967] [<c0334144>] (kernfs_fop_write) from [<c02b059c>] (__vfs_write+0x1c/0x114) [ 16.678244] [<c02b059c>] (__vfs_write) from [<c02b1dd8>] (vfs_write+0xa0/0x168) [ 16.685882] [<c02b1dd8>] (vfs_write) from [<c02b2c24>] (SyS_write+0x3c/0x90) [ 16.693260] [<c02b2c24>] (SyS_write) from [<c0107820>] (ret_fast_syscall+0x0/0x1c) Enabled CPU frequency scaling governor: ondemand