2010-08-10 13:12:31

by Piotr Hosowicz

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

Hello,

May be this is important, freshly built kernel, I attach the config.

Linux aapi205 2.6.35-git9 #1 SMP PREEMPT Tue Aug 10 14:29:58 CEST 2010
x86_64 GNU/Linux

[ 0.008862] Mount-cache hash table entries: 256
[ 0.009020] Initializing cgroup subsys ns
[ 0.009025] Initializing cgroup subsys cpuacct
[ 0.009029] Initializing cgroup subsys devices
[ 0.009031] Initializing cgroup subsys blkio
[ 0.009072] CPU: Physical Processor ID: 0
[ 0.009073] CPU: Processor Core ID: 0
[ 0.009076] mce: CPU supports 6 MCE banks
[ 0.009083] CPU0: Thermal monitoring enabled (TM2)
[ 0.009087] using mwait in idle threads.
[ 0.009089] Performance Events: PEBS fmt0+, Core2 events, Intel PMU
driver.
[ 0.009096] ... version: 2
[ 0.009098] ... bit width: 40
[ 0.009099] ... generic registers: 2
[ 0.009101] ... value mask: 000000ffffffffff
[ 0.009103] ... max period: 000000007fffffff
[ 0.009105] ... fixed-purpose events: 3
[ 0.009106] ... event mask: 0000000700000003
[ 0.009864] ACPI: Core revision 20100702
[ 0.011430] BUG: scheduling while atomic: swapper/0/0x10000002
[ 0.011437] Modules linked in:
[ 0.011440] Pid: 0, comm: swapper Not tainted 2.6.35-git9 #1
[ 0.011442] Call Trace:
[ 0.011450] [<ffffffff81038a0c>] __schedule_bug+0x5c/0x60
[ 0.011455] [<ffffffff8130e12d>] schedule+0xdc/0x5fc
[ 0.011460] [<ffffffff811ffc22>] ? acpi_ps_delete_parse_tree+0x3e/0x5c
[ 0.011463] [<ffffffff8103b1c0>] __cond_resched+0x13/0x1f
[ 0.011466] [<ffffffff8130e752>] _cond_resched+0x16/0x1d
[ 0.011469] [<ffffffff811ff1af>] acpi_ps_complete_op+0x267/0x27d
[ 0.011472] [<ffffffff811ff9cc>] acpi_ps_parse_loop+0x807/0x95f
[ 0.011476] [<ffffffff811feab1>] acpi_ps_parse_aml+0x9a/0x2b9
[ 0.011479] [<ffffffff811fd223>] acpi_ns_one_complete_parse+0x103/0x120
[ 0.011483] [<ffffffff8130fd94>] ? _raw_spin_unlock_irqrestore+0x3b/0x3d
[ 0.011486] [<ffffffff811fd25b>] acpi_ns_parse_table+0x1b/0x34
[ 0.011489] [<ffffffff811fa6d2>] acpi_ns_load_table+0x4a/0x8c
[ 0.011493] [<ffffffff812019ec>] acpi_load_tables+0x9c/0x15d
[ 0.011497] [<ffffffff8170aa58>] acpi_early_init+0x6c/0xf7
[ 0.011502] [<ffffffff816ded68>] start_kernel+0x3df/0x3ef
[ 0.011505] [<ffffffff816de2ac>] x86_64_start_reservations+0xb3/0xb7
[ 0.011509] [<ffffffff816de3a8>] x86_64_start_kernel+0xf8/0x107
[ 0.016075] Setting APIC routing to flat
[ 0.016383] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[ 0.056417] CPU0: Intel(R) Core(TM)2 Quad CPU Q8200 @ 2.33GHz
stepping 07
[ 0.072021] Booting Node 0, Processors #1 #2 #3 Ok.
[ 0.356027] Brought up 4 CPUs
[ 0.356031] Total of 4 processors activated (18663.60 BogoMIPS).
[ 0.357343] devtmpfs: initialized

Regards,

Piotr Hosowicz

--
Familiada:
- Zwierze w paski?
- Biedronka!
NP: Peter Green Splinter Group - Big Change Is Gonna Come
NB: 2.6.35-git9


Attachments:
.config (109.22 kB)

2010-08-10 14:07:56

by Heinz Diehl

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

+1

[....]
ACPI: Core revision 20100702
BUG: scheduling while atomic: swapper/0/0x10000002
Modules linked in:
Pid: 0, comm: swapper Not tainted 2.6.35-git8 #1
Call Trace:
[<ffffffff81441be8>] ? schedule+0x518/0x9a0
[<ffffffff812e4262>] ? acpi_os_release_object+0x9/0xd
[<ffffffff8103dcfd>] ? __cond_resched+0x1d/0x30
[<ffffffff814421dd>] ? _cond_resched+0x2d/0x40
[<ffffffff81300ca0>] ? acpi_ps_complete_op+0x24c/0x260
[<ffffffff813014c9>] ? acpi_ps_parse_loop+0x815/0x970
[<ffffffff813005d8>] ? acpi_ps_parse_aml+0x8f/0x2aa
[<ffffffff812fee85>] ? acpi_ns_one_complete_parse+0xfd/0x118
[<ffffffff812feeba>] ? acpi_ns_parse_table+0x1a/0x34
[<ffffffff812fc685>] ? acpi_ns_load_table+0x3d/0x7c
[<ffffffff81303321>] ? acpi_load_tables+0x9b/0x156
[<ffffffff81798d87>] ? acpi_early_init+0x6c/0xf7
[<ffffffff81771cf5>] ? start_kernel+0x368/0x436
[<ffffffff81771382>] ? x86_64_start_kernel+0xe1/0xf2
[....]

htd@liesel:~> uname -a
Linux liesel 2.6.35-git8 #1 SMP PREEMPT Mon Aug 9 10:53:49 CEST 2010 x86_64 x86_ 64 x86_64 GNU/Linux

.config and dmesg output is attached.


Attachments:
(No filename) (1.04 kB)
config.txt.bz2 (18.66 kB)
dmesg.txt.bz2 (11.90 kB)
Download all attachments

2010-08-10 14:30:18

by Markus Trippelsdorf

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

On Tue, Aug 10, 2010 at 04:07:48PM +0200, Heinz Diehl wrote:
> +1
>
> [....]
> ACPI: Core revision 20100702
> BUG: scheduling while atomic: swapper/0/0x10000002
> Modules linked in:
> Pid: 0, comm: swapper Not tainted 2.6.35-git8 #1
> Call Trace:
> [<ffffffff81441be8>] ? schedule+0x518/0x9a0
> [<ffffffff812e4262>] ? acpi_os_release_object+0x9/0xd
> [<ffffffff8103dcfd>] ? __cond_resched+0x1d/0x30
> [<ffffffff814421dd>] ? _cond_resched+0x2d/0x40
> [<ffffffff81300ca0>] ? acpi_ps_complete_op+0x24c/0x260
> [<ffffffff813014c9>] ? acpi_ps_parse_loop+0x815/0x970
> [<ffffffff813005d8>] ? acpi_ps_parse_aml+0x8f/0x2aa
> [<ffffffff812fee85>] ? acpi_ns_one_complete_parse+0xfd/0x118
> [<ffffffff812feeba>] ? acpi_ns_parse_table+0x1a/0x34
> [<ffffffff812fc685>] ? acpi_ns_load_table+0x3d/0x7c
> [<ffffffff81303321>] ? acpi_load_tables+0x9b/0x156
> [<ffffffff81798d87>] ? acpi_early_init+0x6c/0xf7
> [<ffffffff81771cf5>] ? start_kernel+0x368/0x436
> [<ffffffff81771382>] ? x86_64_start_kernel+0xe1/0xf2

This bug already has two patches available to fix it:

http://lkml.org/lkml/2010/8/6/672
https://patchwork.kernel.org/patch/113092/

--
?A man who doesn't know he is in prison can never escape.?
William S. Burroughs

2010-08-10 15:08:49

by Sergey Senozhatsky

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

Thanks.

Sergey

On (08/10/10 16:29), Markus Trippelsdorf wrote:
> On Tue, Aug 10, 2010 at 04:07:48PM +0200, Heinz Diehl wrote:
> > +1
> >
> > [....]
> > ACPI: Core revision 20100702
> > BUG: scheduling while atomic: swapper/0/0x10000002
> > Modules linked in:
> > Pid: 0, comm: swapper Not tainted 2.6.35-git8 #1
> > Call Trace:
> > [<ffffffff81441be8>] ? schedule+0x518/0x9a0
> > [<ffffffff812e4262>] ? acpi_os_release_object+0x9/0xd
> > [<ffffffff8103dcfd>] ? __cond_resched+0x1d/0x30
> > [<ffffffff814421dd>] ? _cond_resched+0x2d/0x40
> > [<ffffffff81300ca0>] ? acpi_ps_complete_op+0x24c/0x260
> > [<ffffffff813014c9>] ? acpi_ps_parse_loop+0x815/0x970
> > [<ffffffff813005d8>] ? acpi_ps_parse_aml+0x8f/0x2aa
> > [<ffffffff812fee85>] ? acpi_ns_one_complete_parse+0xfd/0x118
> > [<ffffffff812feeba>] ? acpi_ns_parse_table+0x1a/0x34
> > [<ffffffff812fc685>] ? acpi_ns_load_table+0x3d/0x7c
> > [<ffffffff81303321>] ? acpi_load_tables+0x9b/0x156
> > [<ffffffff81798d87>] ? acpi_early_init+0x6c/0xf7
> > [<ffffffff81771cf5>] ? start_kernel+0x368/0x436
> > [<ffffffff81771382>] ? x86_64_start_kernel+0xe1/0xf2
>
> This bug already has two patches available to fix it:
>
> http://lkml.org/lkml/2010/8/6/672
> https://patchwork.kernel.org/patch/113092/
>
> --
> ?A man who doesn't know he is in prison can never escape.?
> William S. Burroughs
>


Attachments:
(No filename) (1.32 kB)
(No filename) (316.00 B)
Download all attachments

2010-08-10 15:19:34

by Piotr Hosowicz

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

On 10.08.2010 16:29, Markus Trippelsdorf wrote:

> This bug already has two patches available to fix it:
>
> http://lkml.org/lkml/2010/8/6/672
> https://patchwork.kernel.org/patch/113092/

None of them works for me. I do:

cat patch.txt | patch -p1

And get:

aapi205:/usr/src/linux# cat ../smp-bug.txt | patch -p1
patching file include/acpi/platform/aclinux.h
Hunk #1 FAILED at 152.
1 out of 1 hunk FAILED -- saving rejects to file
include/acpi/platform/aclinux.h.rej

Help me please.

Regards,

Piotr Hosowicz

--
Zatrzymuje si? samoch?d na sejmowym parkingu. Podchodzi do niego
ochroniarz i m?wi:
- Pan tu parkuje?! Tu Sejm ... Ministrowie, politycy, pos?owiei ...
- Dzi?ki, w??cz? alarm.
NP: Peter Green Splinter Group - There's A River
NB: 2.6.35-git9

2010-08-10 15:31:16

by Sergey Senozhatsky

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

On (08/10/10 17:19), Piotr Hosowicz wrote:
> None of them works for me. I do:
>
> cat patch.txt | patch -p1
>
> And get:
>
> aapi205:/usr/src/linux# cat ../smp-bug.txt | patch -p1
> patching file include/acpi/platform/aclinux.h
> Hunk #1 FAILED at 152.
> 1 out of 1 hunk FAILED -- saving rejects to file
> include/acpi/platform/aclinux.h.rej
>
> Help me please.
>

Can we see your:
include/acpi/platform/aclinux.h(.rej)

?

(did you `git pull`?)


Sergey


Attachments:
(No filename) (461.00 B)
(No filename) (316.00 B)
Download all attachments

2010-08-10 15:36:37

by Piotr Hosowicz

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

On 10.08.2010 17:35, Sergey Senozhatsky wrote:
> On (08/10/10 17:19), Piotr Hosowicz wrote:
>> None of them works for me. I do:
>>
>> cat patch.txt | patch -p1
>>
>> And get:
>>
>> aapi205:/usr/src/linux# cat ../smp-bug.txt | patch -p1
>> patching file include/acpi/platform/aclinux.h
>> Hunk #1 FAILED at 152.
>> 1 out of 1 hunk FAILED -- saving rejects to file
>> include/acpi/platform/aclinux.h.rej
>>
>> Help me please.
>>
>
> Can we see your:
> include/acpi/platform/aclinux.h(.rej)
>
> ?

aapi205:/usr/src/linux# cat include/acpi/platform/aclinux.h.rej
--- include/acpi/platform/aclinux.h
+++ include/acpi/platform/aclinux.h
@@ -152,7 +152,7 @@
#include <linux/hardirq.h>
#define ACPI_PREEMPTION_POINT() \
do { \
- if (!in_atomic_preempt_off() && !irqs_disabled()) \
+ if (!in_atomic() && !irqs_disabled()) \
cond_resched(); \
} while (0)

> (did you `git pull`?)

No, I just downloaded bz2 patch from kernel.org.

Regards,

Piotr Hosowicz

--
Z cyklu "Uroki demokracji", czyli pytania i odpowiedzi w teledurniejach:
- W kt?rym mie?cie europejskim powsta?a pierwsza opera?
- Sydney.
NP: Peter Green Splinter Group - Heart Of Stone
NB: 2.6.35-git9