All of lore.kernel.org
 help / color / mirror / Atom feed
* mx28: bad unlock balance detected
@ 2015-11-26 16:18 ` Fabio Estevam
  0 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2015-11-26 16:18 UTC (permalink / raw)
  To: Mark Brown; +Cc: Marek Vašut, alsa-devel, linux-arm-kernel, Sascha Hauer

Hi,

Running linux-next 20151126 on a mx28evk leads to the following bug:

sgtl5000 0-000a: sgtl5000 revision 0x11
sgtl5000 0-000a: Using internal LDO instead of VDDD

=====================================
[ BUG: bad unlock balance detected! ]
4.4.0-rc2-next-20151126-00001-g44eb6b2 #156 Not tainted
-------------------------------------
kworker/u2:0/6 is trying to release lock (&rdev->mutex) at:
[<c02e7858>] regulator_get_voltage+0x30/0x44
but there are no more locks to release!

other info that might help us debug this:
5 locks held by kworker/u2:0/6:
 #0:  ("%s""deferwq"){++++.+}, at: [<c002f1f8>] process_one_work+0x10c/0x49c
 #1:  (deferred_probe_work){+.+.+.}, at: [<c002f1f8>]
process_one_work+0x10c/0x49c
 #2:  (&dev->mutex){......}, at: [<c03197bc>] __device_attach+0x20/0x108
 #3:  (client_mutex){+.+.+.}, at: [<c042dc34>]
snd_soc_register_card+0x280/0x1108
 #4:  (&card->mutex){+.+.+.}, at: [<c042dc40>]
snd_soc_register_card+0x28c/0x1108

stack backtrace:
CPU: 0 PID: 6 Comm: kworker/u2:0 Not tainted
4.4.0-rc2-next-20151126-00001-g44eb6b2 #156
Hardware name: Freescale MXS (Device Tree)
Workqueue: deferwq deferred_probe_work_func
[<c000eea0>] (unwind_backtrace) from [<c000cfa0>] (show_stack+0x10/0x14)
[<c000cfa0>] (show_stack) from [<c0049350>]
(print_unlock_imbalance_bug+0xac/0xdc)
[<c0049350>] (print_unlock_imbalance_bug) from [<c004c2f8>]
(lock_release+0x2a4/0x38c)
[<c004c2f8>] (lock_release) from [<c0513e70>]
(__mutex_unlock_slowpath+0x7c/0x15c)
[<c0513e70>] (__mutex_unlock_slowpath) from [<c02e7858>]
(regulator_get_voltage+0x30/0x44)
[<c02e7858>] (regulator_get_voltage) from [<c043c200>]
(sgtl5000_probe+0x1c0/0x5f0)
[<c043c200>] (sgtl5000_probe) from [<c0428a74>]
(snd_soc_codec_drv_probe+0x14/0x18)
[<c0428a74>] (snd_soc_codec_drv_probe) from [<c042cd54>]
(soc_probe_component+0x200/0x330)
[<c042cd54>] (soc_probe_component) from [<c042e178>]
(snd_soc_register_card+0x7c4/0x1108)
[<c042e178>] (snd_soc_register_card) from [<c0439cdc>]
(devm_snd_soc_register_card+0x30/0x70)
[<c0439cdc>] (devm_snd_soc_register_card) from [<c043d1cc>]
(mxs_sgtl5000_probe+0xc8/0x138)
[<c043d1cc>] (mxs_sgtl5000_probe) from [<c031b1fc>]
(platform_drv_probe+0x50/0xac)
[<c031b1fc>] (platform_drv_probe) from [<c0319ab0>]
(driver_probe_device+0x1e4/0x2b0)
[<c0319ab0>] (driver_probe_device) from [<c03180d8>]
(bus_for_each_drv+0x44/0x8c)
[<c03180d8>] (bus_for_each_drv) from [<c0319840>] (__device_attach+0xa4/0x108)
[<c0319840>] (__device_attach) from [<c0318f84>] (bus_probe_device+0x88/0x90)
[<c0318f84>] (bus_probe_device) from [<c0319370>]
(deferred_probe_work_func+0x64/0x94)
[<c0319370>] (deferred_probe_work_func) from [<c002f290>]
(process_one_work+0x1a4/0x49c)
[<c002f290>] (process_one_work) from [<c002f5e8>] (worker_thread+0x28/0x468)
[<c002f5e8>] (worker_thread) from [<c0034dbc>] (kthread+0xc0/0xdc)
[<c0034dbc>] (kthread) from [<c000a2ec>] (ret_from_fork+0x14/0x28)
mxs-sgtl5000 sound: sgtl5000 <-> 80042000.saif mapping ok

By inspecting the sgtl5000 codec driver I could not find where this
"bad unlock balance" is happening.

Any ideas?

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 8+ messages in thread

* mx28: bad unlock balance detected
@ 2015-11-26 16:18 ` Fabio Estevam
  0 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2015-11-26 16:18 UTC (permalink / raw)
  To: linux-arm-kernel

Hi,

Running linux-next 20151126 on a mx28evk leads to the following bug:

sgtl5000 0-000a: sgtl5000 revision 0x11
sgtl5000 0-000a: Using internal LDO instead of VDDD

=====================================
[ BUG: bad unlock balance detected! ]
4.4.0-rc2-next-20151126-00001-g44eb6b2 #156 Not tainted
-------------------------------------
kworker/u2:0/6 is trying to release lock (&rdev->mutex) at:
[<c02e7858>] regulator_get_voltage+0x30/0x44
but there are no more locks to release!

other info that might help us debug this:
5 locks held by kworker/u2:0/6:
 #0:  ("%s""deferwq"){++++.+}, at: [<c002f1f8>] process_one_work+0x10c/0x49c
 #1:  (deferred_probe_work){+.+.+.}, at: [<c002f1f8>]
process_one_work+0x10c/0x49c
 #2:  (&dev->mutex){......}, at: [<c03197bc>] __device_attach+0x20/0x108
 #3:  (client_mutex){+.+.+.}, at: [<c042dc34>]
snd_soc_register_card+0x280/0x1108
 #4:  (&card->mutex){+.+.+.}, at: [<c042dc40>]
snd_soc_register_card+0x28c/0x1108

stack backtrace:
CPU: 0 PID: 6 Comm: kworker/u2:0 Not tainted
4.4.0-rc2-next-20151126-00001-g44eb6b2 #156
Hardware name: Freescale MXS (Device Tree)
Workqueue: deferwq deferred_probe_work_func
[<c000eea0>] (unwind_backtrace) from [<c000cfa0>] (show_stack+0x10/0x14)
[<c000cfa0>] (show_stack) from [<c0049350>]
(print_unlock_imbalance_bug+0xac/0xdc)
[<c0049350>] (print_unlock_imbalance_bug) from [<c004c2f8>]
(lock_release+0x2a4/0x38c)
[<c004c2f8>] (lock_release) from [<c0513e70>]
(__mutex_unlock_slowpath+0x7c/0x15c)
[<c0513e70>] (__mutex_unlock_slowpath) from [<c02e7858>]
(regulator_get_voltage+0x30/0x44)
[<c02e7858>] (regulator_get_voltage) from [<c043c200>]
(sgtl5000_probe+0x1c0/0x5f0)
[<c043c200>] (sgtl5000_probe) from [<c0428a74>]
(snd_soc_codec_drv_probe+0x14/0x18)
[<c0428a74>] (snd_soc_codec_drv_probe) from [<c042cd54>]
(soc_probe_component+0x200/0x330)
[<c042cd54>] (soc_probe_component) from [<c042e178>]
(snd_soc_register_card+0x7c4/0x1108)
[<c042e178>] (snd_soc_register_card) from [<c0439cdc>]
(devm_snd_soc_register_card+0x30/0x70)
[<c0439cdc>] (devm_snd_soc_register_card) from [<c043d1cc>]
(mxs_sgtl5000_probe+0xc8/0x138)
[<c043d1cc>] (mxs_sgtl5000_probe) from [<c031b1fc>]
(platform_drv_probe+0x50/0xac)
[<c031b1fc>] (platform_drv_probe) from [<c0319ab0>]
(driver_probe_device+0x1e4/0x2b0)
[<c0319ab0>] (driver_probe_device) from [<c03180d8>]
(bus_for_each_drv+0x44/0x8c)
[<c03180d8>] (bus_for_each_drv) from [<c0319840>] (__device_attach+0xa4/0x108)
[<c0319840>] (__device_attach) from [<c0318f84>] (bus_probe_device+0x88/0x90)
[<c0318f84>] (bus_probe_device) from [<c0319370>]
(deferred_probe_work_func+0x64/0x94)
[<c0319370>] (deferred_probe_work_func) from [<c002f290>]
(process_one_work+0x1a4/0x49c)
[<c002f290>] (process_one_work) from [<c002f5e8>] (worker_thread+0x28/0x468)
[<c002f5e8>] (worker_thread) from [<c0034dbc>] (kthread+0xc0/0xdc)
[<c0034dbc>] (kthread) from [<c000a2ec>] (ret_from_fork+0x14/0x28)
mxs-sgtl5000 sound: sgtl5000 <-> 80042000.saif mapping ok

By inspecting the sgtl5000 codec driver I could not find where this
"bad unlock balance" is happening.

Any ideas?

Thanks,

Fabio Estevam

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mx28: bad unlock balance detected
  2015-11-26 16:18 ` Fabio Estevam
@ 2015-11-26 20:45   ` Fabio Estevam
  -1 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2015-11-26 20:45 UTC (permalink / raw)
  To: Mark Brown
  Cc: Marek Vašut, Olof Johansson, alsa-devel, linux-arm-kernel,
	Sascha Hauer

On Thu, Nov 26, 2015 at 2:18 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi,
>
> Running linux-next 20151126 on a mx28evk leads to the following bug:
>
> sgtl5000 0-000a: sgtl5000 revision 0x11
> sgtl5000 0-000a: Using internal LDO instead of VDDD
>
> =====================================
> [ BUG: bad unlock balance detected! ]
> 4.4.0-rc2-next-20151126-00001-g44eb6b2 #156 Not tainted
> -------------------------------------
> kworker/u2:0/6 is trying to release lock (&rdev->mutex) at:
> [<c02e7858>] regulator_get_voltage+0x30/0x44
> but there are no more locks to release!

This warning started appearing in linux-next 20151123 according to these logs:
http://arm-soc.lixom.net/bootlogs/next/next-20151123/wandboard-arm-imx_v6_v7_defconfig.html

Haven't run git bisect yet.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* mx28: bad unlock balance detected
@ 2015-11-26 20:45   ` Fabio Estevam
  0 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2015-11-26 20:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Nov 26, 2015 at 2:18 PM, Fabio Estevam <festevam@gmail.com> wrote:
> Hi,
>
> Running linux-next 20151126 on a mx28evk leads to the following bug:
>
> sgtl5000 0-000a: sgtl5000 revision 0x11
> sgtl5000 0-000a: Using internal LDO instead of VDDD
>
> =====================================
> [ BUG: bad unlock balance detected! ]
> 4.4.0-rc2-next-20151126-00001-g44eb6b2 #156 Not tainted
> -------------------------------------
> kworker/u2:0/6 is trying to release lock (&rdev->mutex) at:
> [<c02e7858>] regulator_get_voltage+0x30/0x44
> but there are no more locks to release!

This warning started appearing in linux-next 20151123 according to these logs:
http://arm-soc.lixom.net/bootlogs/next/next-20151123/wandboard-arm-imx_v6_v7_defconfig.html

Haven't run git bisect yet.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mx28: bad unlock balance detected
  2015-11-26 16:18 ` Fabio Estevam
@ 2015-11-27 12:11   ` Mark Brown
  -1 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2015-11-27 12:11 UTC (permalink / raw)
  To: Fabio Estevam
  Cc: Marek Vašut, alsa-devel, linux-arm-kernel, Sascha Hauer


[-- Attachment #1.1: Type: text/plain, Size: 476 bytes --]

On Thu, Nov 26, 2015 at 02:18:04PM -0200, Fabio Estevam wrote:
> Hi,
> 
> Running linux-next 20151126 on a mx28evk leads to the following bug:
> 
> sgtl5000 0-000a: sgtl5000 revision 0x11
> sgtl5000 0-000a: Using internal LDO instead of VDDD
> 
> =====================================
> [ BUG: bad unlock balance detected! ]
> 4.4.0-rc2-next-20151126-00001-g44eb6b2 #156 Not tainted

This should be fixed in the next -next, Arnd noticed a problem with his
code.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 176 bytes --]

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 8+ messages in thread

* mx28: bad unlock balance detected
@ 2015-11-27 12:11   ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2015-11-27 12:11 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Nov 26, 2015 at 02:18:04PM -0200, Fabio Estevam wrote:
> Hi,
> 
> Running linux-next 20151126 on a mx28evk leads to the following bug:
> 
> sgtl5000 0-000a: sgtl5000 revision 0x11
> sgtl5000 0-000a: Using internal LDO instead of VDDD
> 
> =====================================
> [ BUG: bad unlock balance detected! ]
> 4.4.0-rc2-next-20151126-00001-g44eb6b2 #156 Not tainted

This should be fixed in the next -next, Arnd noticed a problem with his
code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20151127/d94668ce/attachment.sig>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: mx28: bad unlock balance detected
  2015-11-27 12:11   ` Mark Brown
@ 2015-12-03 17:45     ` Fabio Estevam
  -1 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2015-12-03 17:45 UTC (permalink / raw)
  To: Mark Brown; +Cc: Marek Vašut, alsa-devel, linux-arm-kernel, Sascha Hauer

On Fri, Nov 27, 2015 at 10:11 AM, Mark Brown <broonie@kernel.org> wrote:
> On Thu, Nov 26, 2015 at 02:18:04PM -0200, Fabio Estevam wrote:
>> Hi,
>>
>> Running linux-next 20151126 on a mx28evk leads to the following bug:
>>
>> sgtl5000 0-000a: sgtl5000 revision 0x11
>> sgtl5000 0-000a: Using internal LDO instead of VDDD
>>
>> =====================================
>> [ BUG: bad unlock balance detected! ]
>> 4.4.0-rc2-next-20151126-00001-g44eb6b2 #156 Not tainted
>
> This should be fixed in the next -next, Arnd noticed a problem with his
> code.

That's correct. linux-next 20151202 does not show the problem, thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

* mx28: bad unlock balance detected
@ 2015-12-03 17:45     ` Fabio Estevam
  0 siblings, 0 replies; 8+ messages in thread
From: Fabio Estevam @ 2015-12-03 17:45 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Nov 27, 2015 at 10:11 AM, Mark Brown <broonie@kernel.org> wrote:
> On Thu, Nov 26, 2015 at 02:18:04PM -0200, Fabio Estevam wrote:
>> Hi,
>>
>> Running linux-next 20151126 on a mx28evk leads to the following bug:
>>
>> sgtl5000 0-000a: sgtl5000 revision 0x11
>> sgtl5000 0-000a: Using internal LDO instead of VDDD
>>
>> =====================================
>> [ BUG: bad unlock balance detected! ]
>> 4.4.0-rc2-next-20151126-00001-g44eb6b2 #156 Not tainted
>
> This should be fixed in the next -next, Arnd noticed a problem with his
> code.

That's correct. linux-next 20151202 does not show the problem, thanks.

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-12-03 17:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-26 16:18 mx28: bad unlock balance detected Fabio Estevam
2015-11-26 16:18 ` Fabio Estevam
2015-11-26 20:45 ` Fabio Estevam
2015-11-26 20:45   ` Fabio Estevam
2015-11-27 12:11 ` Mark Brown
2015-11-27 12:11   ` Mark Brown
2015-12-03 17:45   ` Fabio Estevam
2015-12-03 17:45     ` Fabio Estevam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.