2013-07-03 07:15:53

by Fengguang Wu

[permalink] [raw]
Subject: [FMC] BUG: scheduling while atomic: swapper/1/0x10000002

Greetings,

I got the below dmesg and the first bad commit is

commit 4debfe409b6e550032bfef9733e9f6f7c5613617
Author: Alessandro Rubini <[email protected]>
Date: Tue Jun 18 23:48:07 2013 +0200

FMC: add a char-device mezzanine driver

This driver exports the memory area associated with the mezzanine card
as a misc device, so users can access registers.

Signed-off-by: Alessandro Rubini <[email protected]>
Acked-by: Juan David Gonzalez Cobas <[email protected]>
Acked-by: Emilio G. Cota <[email protected]>
Acked-by: Samuel Iglesias Gonsalvez <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>

[ 8.099210] fmc_write_eeprom fake-design-for-testing-f001: fmc_write_eeprom: no busid passed, refusing all cards
[ 8.101676] fmc fake-design-for-testing-f001: Driver has no ID: matches all
[ 8.103293] BUG: scheduling while atomic: swapper/1/0x10000002
[ 8.104703] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.0-wl-06036-gaf15f8d #1
[ 8.106580] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[ 8.107966] 0000000000000000 ffff88000dc5bb00 ffffffff81b7bf27 ffff88000dc5bb10
[ 8.110313] ffffffff81b77ffd ffff88000dc5bb70 ffffffff81b848be ffffffff810dcf60
[ 8.112635] ffff88000dc5bfd8 ffff88000dc5bfd8 ffff88000dc5bfd8 ffff88000dc5bfd8
[ 8.114976] Call Trace:
[ 8.115743] [<ffffffff81b7bf27>] dump_stack+0x19/0x1b
[ 8.117044] [<ffffffff81b77ffd>] __schedule_bug+0x42/0x50
[ 8.118369] [<ffffffff81b848be>] __schedule+0x50e/0x520
[ 8.119657] [<ffffffff810dcf60>] ? __enqueue_entity+0x70/0x80
[ 8.121115] [<ffffffff810d9710>] __cond_resched+0x20/0x30
[ 8.122434] [<ffffffff81b84a63>] _cond_resched+0x33/0x40
[ 8.123749] [<ffffffff81b84d5a>] wait_for_completion+0x2a/0x140
[ 8.125215] [<ffffffff815c3a54>] devtmpfs_create_node+0xf4/0x130
[ 8.126664] [<ffffffff815bbb8e>] device_add+0x23e/0x6f0
[ 8.127969] [<ffffffff815bca40>] device_create_vargs+0xd0/0x100
[ 8.129430] [<ffffffff815bca9f>] device_create+0x2f/0x40
[ 8.130750] [<ffffffff81b83980>] ? mutex_lock+0x20/0x30
[ 8.132064] [<ffffffff81587a56>] misc_register+0xc6/0x120
[ 8.133397] [<ffffffff8192c7a8>] fc_probe+0x98/0x140
[ 8.134643] [<ffffffff8192a652>] fmc_probe+0x12/0x20
[ 8.135878] [<ffffffff815bf4d2>] really_probe+0x52/0x1f0
[ 8.137225] [<ffffffff815bf771>] __driver_attach+0x91/0xa0
[ 8.138564] [<ffffffff815bf6e0>] ? __device_attach+0x50/0x50
[ 8.139952] [<ffffffff815bd9d3>] bus_for_each_dev+0x63/0xa0
[ 8.141382] [<ffffffff815bf409>] driver_attach+0x19/0x20
[ 8.142703] [<ffffffff815be418>] bus_add_driver+0x1c8/0x260
[ 8.144091] [<ffffffff8192c6d0>] ? fc_read+0xb0/0xb0
[ 8.145336] [<ffffffff815bff1f>] driver_register+0x6f/0x150
[ 8.146700] [<ffffffff8192c6d0>] ? fc_read+0xb0/0xb0
[ 8.147960] [<ffffffff8192a7f0>] fmc_driver_register+0x30/0x40
[ 8.149415] [<ffffffff8192c6e0>] fc_init+0x10/0x20
[ 8.150635] [<ffffffff82373feb>] do_one_initcall+0x79/0x117
[ 8.152000] [<ffffffff82374184>] kernel_init_freeable+0xfb/0x17c
[ 8.153476] [<ffffffff82373881>] ? do_early_param+0x88/0x88
[ 8.154831] [<ffffffff81b71c90>] ? rest_init+0x90/0x90
[ 8.156144] [<ffffffff81b71c99>] kernel_init+0x9/0x180
[ 8.157424] [<ffffffff81b86b7a>] ret_from_fork+0x7a/0xb0
[ 8.158745] [<ffffffff81b71c90>] ? rest_init+0x90/0x90
[ 8.160103] fmc_chardev fake-design-for-testing-f001: Created misc device "fake-design-for-testing-f001"
[ 8.162448] Audio Excel DSP 16 init driver Copyright (C) Riccardo Facchetti 1995-98

git bisect start af15f8de4f3a7b28e3a2c2064ad74106767516ca 8bb495e3f02401ee6f76d1b1d77f3ac9f079e376 --
git bisect good 42d40811bf7f97b6b7986bb117f3310243d91ffe # 11:00 60+ Merge remote-tracking branch 'josef-btrfs/master' into devel-cairo-x86_64-201307012240
git bisect bad 687e28600c4eb7737c036daa5c787227b3d1bb01 # 11:05 0- Merge remote-tracking branch 'scsi/for-next' into devel-cairo-x86_64-201307012240
git bisect good 99f9e01bf87d4b8da68fd7795b0f05ab767b982e # 11:11 60+ Merge remote-tracking branch 'm68k/m68k-queue' into devel-cairo-x86_64-201307012240
git bisect good 80d162c66bc6159efa67406d34757857628c5c02 # 13:53 60+ Merge remote-tracking branch 'pinchartl-fbdev/boards/ethernet' into devel-cairo-x86_64-201307012240
git bisect bad 02b12c58897d1b25ad52ef5c81b29409ae5e9169 # 13:59 0- Merge remote-tracking branch 'gregkh-char-misc/char-misc-next' into postmerge-base
git bisect bad 34cb27528398738bea94852b99ef8fb05944ec41 # 14:03 0- UIO: Fix concurrency issue
git bisect good 4cd5773a2ae6facdde3f563087a4cc50f00d9530 # 14:08 60+ net: core: move mac_pton() to lib/net_utils.c
git bisect good e31c51e4a1d11ed0b61557ca9da9cf18c8855531 # 14:15 60+ vme: tsi148: Only store VME bus errors if they will be checked
git bisect good 056d83f3c30c398f14eb879f1d1707e3a7808f4a # 14:21 60+ FMC: add a software mezzanine driver
git bisect bad c2955da0e101c3432ae21945e5d77786adf1f094 # 14:25 0- fmc: avoid readl/writel namespace conflict
git bisect bad 05c3e0bb5629b897b0459e4bfb1b93d729033b99 # 14:29 0- UIO: allow binding uio_pdrv_genirq.c to devices using command line option
git bisect bad 4debfe409b6e550032bfef9733e9f6f7c5613617 # 14:34 0- FMC: add a char-device mezzanine driver
git bisect good 6007b1bd0f752a5c022f7944c65fb96c39d6db3d # 14:40 60+ FMC: add a driver to write mezzanine EEPROM
git bisect good 6007b1bd0f752a5c022f7944c65fb96c39d6db3d # 14:42 180+ FMC: add a driver to write mezzanine EEPROM
git bisect bad af15f8de4f3a7b28e3a2c2064ad74106767516ca # 14:42 0- Merge remote-tracking branch 'xlnx/zynq/clk' into devel-cairo-x86_64-201307012240
git bisect bad 0b0585c3e192967cb2ef0ac0816eb8a8c8d99840 # 14:47 0- Merge branch 'for-3.11-cpuset' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
git bisect bad e8e1f4c8a798998aad598698b3dd44a95ab80573 # 14:58 0- Add linux-next specific files for 20130702

Thanks,
Fengguang


Attachments:
(No filename) (5.92 kB)
dmesg-kvm-bay-28183-20130701233139-3.10.0-wl-06036-gaf15f8d-1 (44.90 kB)
bisect-af15f8de4f3a7b28e3a2c2064ad74106767516ca-x86_64-randconfig-c25-0701-fc_init+-x-63002.log (85.92 kB)
config-3.10.0-wl-06036-gaf15f8d (85.51 kB)
Download all attachments

2013-07-03 07:33:03

by Alessandro Rubini

[permalink] [raw]
Subject: Re: [FMC] BUG: scheduling while atomic: swapper/1/0x10000002

Hello.

> I got the below dmesg and the first bad commit is
>
> commit 4debfe409b6e550032bfef9733e9f6f7c5613617
> Author: Alessandro Rubini <[email protected]>
> Date: Tue Jun 18 23:48:07 2013 +0200
>
> FMC: add a char-device mezzanine driver

thank you for your report. I already got a problem report with
built-in FMC subsystem, but I couldn't reproduce it. Actually, I use
drivers/fmc daily (I'm currently finalizing an ADC driver), but I run
the whole subsystem as module; it never happens in that case.

Thank you for bisecting, I'll take a deeper look as soon as possible
(hopefully today). Meanwhile, please disable FMC or build as modules.

/alessandro

2013-07-03 07:37:03

by Fengguang Wu

[permalink] [raw]
Subject: Re: [FMC] BUG: scheduling while atomic: swapper/1/0x10000002

Hi Alessandro,

On Wed, Jul 03, 2013 at 09:32:49AM +0200, Alessandro Rubini wrote:
> Hello.
>
> > I got the below dmesg and the first bad commit is
> >
> > commit 4debfe409b6e550032bfef9733e9f6f7c5613617
> > Author: Alessandro Rubini <[email protected]>
> > Date: Tue Jun 18 23:48:07 2013 +0200
> >
> > FMC: add a char-device mezzanine driver
>
> thank you for your report. I already got a problem report with
> built-in FMC subsystem, but I couldn't reproduce it. Actually, I use
> drivers/fmc daily (I'm currently finalizing an ADC driver), but I run
> the whole subsystem as module; it never happens in that case.
>
> Thank you for bisecting, I'll take a deeper look as soon as possible
> (hopefully today). Meanwhile, please disable FMC or build as modules.

No problem for me. I actually run the tests in KVM which does not have
real FMC hardware at all.

Thanks,
Fengguang