Finley Xiao
5775fd4bb7
Revert "UPSTREAM: PM / OPP: Don't expose srcu_head to register notifiers"
This reverts commit 8bc82dbbf9.
BUG: sleeping function called from invalid context at kernel/locking/mutex.c:620
in_atomic(): 0, irqs_disabled(): 0, pid: 532, name: insmod
3 locks held by insmod/532:
#0: (&dev->mutex){......}, at: [<ffffff8008346f7c>] __driver_attach+0x94/0x98
#1: (&dev->mutex){......}, at: [<ffffff8008346f24>] __driver_attach+0x3c/0x98
#2: (rcu_read_lock){......}, at: [<ffffff8008356714>] dev_pm_opp_register_notifier+0x0/0x98
CPU: 0 PID: 532 Comm: insmod Tainted: G O 4.4.189 #1190
Hardware name: Rockchip RK1808 EVB V10 Board (DT)
Call trace:
[<ffffff8008087664>] dump_backtrace+0x0/0x1cc
[<ffffff8008087844>] show_stack+0x14/0x1c
[<ffffff800824e990>] dump_stack+0x94/0xbc
[<ffffff80080b7394>] ___might_sleep+0x108/0x118
[<ffffff80080b7414>] __might_sleep+0x70/0x80
[<ffffff8008693e78>] mutex_lock_nested+0x3c/0x358
[<ffffff80080b3cd0>] srcu_notifier_chain_register+0x50/0x6c
[<ffffff80083567a8>] dev_pm_opp_register_notifier+0x94/0x98
[<ffffff80084c5264>] devm_devfreq_register_opp_notifier+0x48/0x88
[<ffffff80006aa18c>] gckDevfreq_Init+0x200/0x2b4 [galcore]
[<ffffff80006a9780>] gpu_probe+0x4dc/0x5e8 [galcore]
[<ffffff8008348764>] platform_drv_probe+0x54/0xa8
[<ffffff8008346e04>] driver_probe_device+0x18c/0x270
[<ffffff8008346f38>] __driver_attach+0x50/0x98
[<ffffff800834541c>] bus_for_each_dev+0x80/0x90
[<ffffff80083468f4>] driver_attach+0x20/0x28
[<ffffff8008346560>] bus_add_driver+0x194/0x1d8
[<ffffff8008347818>] driver_register+0x98/0xd0
[<ffffff80083486bc>] __platform_driver_register+0x48/0x50
[<ffffff80006df070>] gpu_init+0x70/0x1000 [galcore]
[<ffffff8008083054>] do_one_initcall+0x70/0x178
[<ffffff8008115fd0>] do_init_module+0x58/0x1b8
[<ffffff80081015e4>] load_module+0x16e0/0x1c30
[<ffffff8008101cfc>] SyS_finit_module+0x7c/0x88
[<ffffff8008082ef0>] el0_svc_naked+0x24/0x28
Change-Id: I0067c119084b88edd980c52c9c9be8317fd25017
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2019-09-18 08:44:49 +08:00
..
2019-09-18 08:44:49 +08:00
2017-09-01 18:56:00 +08:00
2019-07-22 17:31:10 +08:00
2017-06-17 06:39:36 +02:00
2017-07-21 07:44:59 +02:00
2018-01-31 12:06:08 +01:00
2017-11-08 10:06:28 +01:00
2019-03-23 08:59:43 +01:00