All of lore.kernel.org
 help / color / mirror / Atom feed
* [rtc-linux] rtc: RV8803: BUG: scheduling while atomic
@ 2016-02-03  9:31 dirk.behme
  2016-02-03 11:07 ` [rtc-linux] " Alexandre Belloni
  0 siblings, 1 reply; 4+ messages in thread
From: dirk.behme @ 2016-02-03  9:31 UTC (permalink / raw)
  To: rtc-linux; +Cc: Dirk Behme, Alexandre Belloni, Oleksij Rempel


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

Testing the RV8803 driver [1] we are getting several "BUG: scheduling while 
atomic" [2].

Having a quick look this might be from rv8803_set_time() holding a spinlock 
during the call to i2c_smbus_read_byte_data()?

Any ideas?

Best regards

Dirk

[1] 
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/drivers/rtc/rtc-rv8803.c

[2] 

BUG: scheduling while atomic: dev_rtc_integra/309/0x00000002

Backtrace: 
[<80011bc8>] (dump_backtrace) from [<80011dd0>] (show_stack+0x18/0x1c)
 r6:00000000 r5:90431140 r4:00000000 r3:00400100
[<80011db8>] (show_stack) from [<80508bc0>] (dump_stack+0x74/0xc0)
[<80508b4c>] (dump_stack) from [<805065fc>] (__schedule_bug+0x60/0x7c)
 r4:90431140 r3:200f0093
[<8050659c>] (__schedule_bug) from [<80509dfc>] (__schedule+0x70/0x6d8)
 r4:9fa90440 r3:00000000
[<80509d8c>] (__schedule) from [<8050a4fc>] (schedule+0x98/0x9c)
 r10:92513810 r9:807220c0 r8:00000003 r7:807220c0 r6:ffff988c r5:92513810
 r4:00000001
[<8050a464>] (schedule) from [<803a0620>] (i2c_imx_bus_busy+0x7c/0x94)
[<803a05a4>] (i2c_imx_bus_busy) from [<803a0ce4>] (i2c_imx_xfer+0x200/0x750)
 r8:00000002 r7:00000080 r6:000000a0 r5:91bcfd58 r4:807284d0 r3:00000001
[<803a0ae4>] (i2c_imx_xfer) from [<8039cd2c>] (__i2c_transfer+0x50/0x7c)
 r10:00000002 r9:807220c0 r8:00000002 r7:91bcfd58 r6:ffff988c r5:92513810
 r4:00000000
[<8039ccdc>] (__i2c_transfer) from [<8039e138>] (i2c_transfer+0x74/0x98)
 r9:91bcfd73 r8:00000002 r7:00000000 r6:91bcfd58 r5:00000002 r4:92513810
[<8039e0c4>] (i2c_transfer) from [<8039e5ac>] (i2c_smbus_xfer+0x3a4/0x4f8)
 r6:92513810 r5:00000001 r4:91bcfdfe r3:00000000
[<8039e208>] (i2c_smbus_xfer) from [<8039eaac>] 
(i2c_smbus_read_byte_data+0x3c/0x4c)
 r10:00067674 r9:91bce000 r8:7f2b8c84 r7:90473580 r6:600f0013 r5:9196f290
 r4:9196f298
[<8039ea70>] (i2c_smbus_read_byte_data) from [<7f2b83c0>] 
(rv8803_set_time+0xc0/0x110 [rtc_rv8803])
[<7f2b8300>] (rv8803_set_time [rtc_rv8803]) from [<8039a1a4>] 
(rtc_set_time+0x64/0xd8)
 r7:90473580 r6:91bcfe8c r5:90473400 r4:90473400
[<8039a140>] (rtc_set_time) from [<8039b264>] (rtc_dev_ioctl+0x294/0x568)
 r7:90473580 r6:4024700a r5:90473400 r4:00067674
[<8039afd0>] (rtc_dev_ioctl) from [<8010edfc>] (do_vfs_ioctl+0x4dc/0x598)
 r8:91bb8958 r7:4024700a r6:00067674 r5:91f9ef00 r4:91f9ef01
[<8010e920>] (do_vfs_ioctl) from [<8010eef4>] (SyS_ioctl+0x3c/0x64)
 r10:00000000 r9:91bce000 r8:0000000f r7:4024700a r6:00067674 r5:91f9ef00
 r4:91f9ef01
[<8010eeb8>] (SyS_ioctl) from [<8000e0a0>] (ret_fast_syscall+0x0/0x50)
 r8:8000e264 r7:00000036 r6:00000064 r5:00066f90 r4:00000014 r3:00067674
BUG: scheduling while atomic: dev_rtc_integra/309/0x00000002

Workqueue: events rtc_timer_do_work
Backtrace: 
[<80011bc8>] (dump_backtrace) from [<80011dd0>] (show_stack+0x18/0x1c)
 r6:00000000 r5:925e9700 r4:00000000 r3:9263c000
[<80011db8>] (show_stack) from [<80508bc0>] (dump_stack+0x74/0xc0)
[<80508b4c>] (dump_stack) from [<805065fc>] (__schedule_bug+0x60/0x7c)
 r4:925e9700 r3:20000013
[<8050659c>] (__schedule_bug) from [<80509dfc>] (__schedule+0x70/0x6d8)
 r4:9fa90440 r3:00000000
[<80509d8c>] (__schedule) from [<8050a4fc>] (schedule+0x98/0x9c)
 r10:92513810 r9:807284d0 r8:00000003 r7:807220c0 r6:ffff98aa r5:92513810
 r4:00000000
[<8050a464>] (schedule) from [<803a0620>] (i2c_imx_bus_busy+0x7c/0x94)
[<803a05a4>] (i2c_imx_bus_busy) from [<803a107c>] (i2c_imx_xfer+0x598/0x750)
 r8:00000001 r7:92513a3c r6:00000000 r5:9263dd1c r4:00000000 r3:00000001
[<803a0ae4>] (i2c_imx_xfer) from [<8039cd2c>] (__i2c_transfer+0x50/0x7c)
 r10:00000002 r9:807220c0 r8:00000002 r7:9263dd08 r6:ffff98a6 r5:92513810
 r4:00000000
[<8039ccdc>] (__i2c_transfer) from [<8039e138>] (i2c_transfer+0x74/0x98)
 r9:9263dd23 r8:00000002 r7:00000000 r6:9263dd08 r5:00000002 r4:92513810
[<8039e0c4>] (i2c_transfer) from [<8039e5ac>] (i2c_smbus_xfer+0x3a4/0x4f8)
 r6:92513810 r5:00000001 r4:9263ddae r3:00000000
[<8039e208>] (i2c_smbus_xfer) from [<8039eaac>] 
(i2c_smbus_read_byte_data+0x3c/0x4c)
 r10:00000000 r9:600f0113 r8:90473600 r7:9196f298 r6:925ab600 r5:9196f290
 r4:00000000
[<8039ea70>] (i2c_smbus_read_byte_data) from [<7f2b80f0>] 
(rv8803_alarm_irq_enable+0x78/0xe4 [rtc_rv8803])
[<7f2b8078>] (rv8803_alarm_irq_enable [rtc_rv8803]) from [<80399b80>] 
(rtc_alarm_disable+0x30/0x34)
 r9:00000000 r8:90473600 r7:90473580 r6:9263de6c r5:90473400 r4:9047369c
[<80399b50>] (rtc_alarm_disable) from [<8039ac74>] 
(rtc_timer_do_work+0xe8/0x148)
[<8039ab8c>] (rtc_timer_do_work) from [<8003ba8c>] 
(process_one_work+0x28c/0x43c)
 r10:92627500 r9:00000000 r8:807794c0 r7:9fa93300 r6:9263c028 r5:9fa90040
 r4:9047369c
[<8003b800>] (process_one_work) from [<8003ca68>] 
(worker_thread+0x238/0x370)
 r10:9fa90054 r9:92627518 r8:9263c028 r7:9263c000 r6:9fa90040 r5:9fa90040
 r4:92627500
[<8003c830>] (worker_thread) from [<800420d0>] (kthread+0xec/0x100)

CPU: 0 PID: 309 Comm: dev_rtc_integra Tainted: G        W    
3.14.57-03945-gf331d92 #1
Backtrace: 
[<80011bc8>] (dump_backtrace) from [<80011dd0>] (show_stack+0x18/0x1c)
 r6:00000000 r5:90431140 r4:00000000 r3:00400100
[<80011db8>] (show_stack) from [<80508bc0>] (dump_stack+0x74/0xc0)
[<80508b4c>] (dump_stack) from [<805065fc>] (__schedule_bug+0x60/0x7c)
 r4:90431140 r3:200f0113
[<8050659c>] (__schedule_bug) from [<80509dfc>] (__schedule+0x70/
[<8039a140>] (rtc_set_time) from [<8039b264>] (rtc_dev_ioctl+0x294/0x568)
 r7:90473580 r6:4024700a r5:90473400 r4:00067674
[<8039afd0>] (rtc_dev_ioctl) from [<8010edfc>] (do_vfs_ioctl+0x4dc/0x598)
 r8:91bb8958 r7:4024700a r6:00067674 r5:91b64900 r4:91b64901
[<8010e920>] (do_vfs_ioctl) from [<8010eef4>] (SyS_ioctl+0x3c/0x64)
 r10:00000000 r9:91bce000 r8:0000000f r7:4024700a r6:00067674 r5:91b64900
 r4:91b64901
[<8010eeb8>] (SyS_ioctl) from [<8000e0a0>] (ret_fast_syscall+0x0/0x50)
 r8:8000e264 r7:00000036 r6:0002a3d0 r5:00000000 r4:00067674 r3:0000000c
BUG: scheduling while atomic: kworker/0:1/26/0x00000002

Workqueue: events rtc_timer_do_work
Backtrace: 
[<80011bc8>] (dump_backtrace) from [<80011dd0>] (show_stack+0x18/0x1c)
 r6:00000000 r5:925e9700 r4:00000000 r3:9263c000
[<80011db8>] (show_stack) from [<80508bc0>] (dump_stack+0x74/0xc0)
[<80508b4c>] (dump_stack) from [<805065fc>] (__schedule_bug+0x60/0x7c)
 r4:925e9700 r3:200f0093
[<8050659c>] (__schedule_bug) from [<80509dfc>] (__schedule+0x70/0x6d8)
 r4:9fa90440 r3:00000000
[<80509d8c>] (__schedule) from [<8050a4fc>] (schedule+0x98/0x9c)
 r10:92513810 r9:807220c0 r8:00000003 r7:807220c0 r6:ffff98d0 r5:92513810
 r4:00000001
[<8050a464>] (schedule) from [<803a0620>] (i2c_imx_bus_busy+0x7c/0x94)
[<803a05a4>] (i2c_imx_bus_busy) from [<803a0ce4>] (i2c_imx_xfer+0x200/0x750)
 r8:00000002 r7:00000080 r6:000000a0 r5:9263dd08 r4:807284d0 r3:00000001
[<803a0ae4>] (i2c_imx_xfer) from [<8039cd2c>] (__i2c_transfer+0x50/0x7c)
 r10:00000002 r9:807220c0 r8:00000002 r7:9263dd08 r6:ffff98d0 r5:92513810
 r4:00000000
[<8039ccdc>] (__i2c_transfer) from [<8039e138>] (i2c_transfer+0x74/0x98)
 r9:9263dd23 r8:00000002 r7:00000000 r6:9263dd08 r5:00000002 r4:92513810
[<8039e0c4>] (i2c_transfer) from [<8039e5ac>] (i2c_smbus_xfer+0x3a4/0x4f8)
 r6:92513810 r5:00000001 r4:9263ddae r3:00000000
[<8039e208>] (i2c_smbus_xfer) from [<8039eaac>] 
(i2c_smbus_read_byte_data+0x3c/0x4c)
 r10:00000000 r9:600f0013 r8:90473600 r7:9196f298 r6:925ab600 r5:9196f290
 r4:00000000
[<8039ea70>] (i2c_smbus_read_byte_data) from [<7f2b80f0>] 
(rv8803_alarm_irq_enable+0x78/0xe4 [rtc_rv8803])
[<7f2b8078>] (rv[   37.941914] BUG: scheduling while atomic: 
kworker/0:1/26/0x00000002

-- 
-- 
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
--- 
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: Type: text/html, Size: 9595 bytes --]

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

end of thread, other threads:[~2016-02-03 14:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-03  9:31 [rtc-linux] rtc: RV8803: BUG: scheduling while atomic dirk.behme
2016-02-03 11:07 ` [rtc-linux] " Alexandre Belloni
2016-02-03 12:58   ` dirk.behme
2016-02-03 14:18     ` Alexandre Belloni

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.