2008-08-12 19:51:39

by Martin Bligh

[permalink] [raw]
Subject: Panic on boot for x86_64

x86_64 seems to panic on boot, since 2.6.26-git2 (or maybe -git1,
which wouldn't compile)
2.6.26 works.

http://test.kernel.org/results/IBM/186461/debug/console

kernel BUG at arch/x86/kernel/io_apic_64.c:356!
invalid opcode: 0000 [1] SMP
CPU 24
Modules linked in:
Pid: 1, comm: swapper Not tainted 2.6.27-rc1-git2-autotest #1
RIP: 0010:[<ffffffff8021bb1a>] [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
RSP: 0018:ffff88032e4b9b40 EFLAGS: 00010216
RAX: 00000000000000f0 RBX: 00000000000000f0 RCX: 0000000000000001
RDX: 0000000000000018 RSI: 0000000000000006 RDI: 00000000000000f0
RBP: 0000000000000006 R08: 0000000000000018 R09: 0000000000000006
R10: 0000000000000008 R11: ffffffff8038f8dd R12: 0000000000000001
R13: 0000000000000001 R14: 0000000000000018 R15: 0000000000000000
FS: 0000000000000000(0000) GS:ffff880bfe733540(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process swapper (pid: 1, threadinfo ffff88032e4b8000, task ffff880bfe4ca050)
Stack: ffff88032e4b9be0 ffffffff8021bbae 00000000000000f0 0000000000000001
0000000000000000 ffff88032e4b9c0c 00000000000000f0 ffffffff80218d81
00000000000000f0 0000000000000000 0000000000000001 ffffffff80218e0c
Call Trace:
[<ffffffff8021bbae>] ? io_apic_set_pci_routing+0x7e/0xa0
[<ffffffff80218d81>] ? mp_register_gsi+0xb1/0xd0
[<ffffffff80218e0c>] ? acpi_register_gsi+0x6c/0x70
[<ffffffff8038fb30>] ? acpi_pci_irq_enable+0x178/0x260
[<ffffffff8038f8dd>] ? acpi_pci_allocate_irq+0x0/0x4c
[<ffffffff8036d257>] ? pci_enable_resources+0x27/0x160
[<ffffffff80368a6a>] ? do_pci_enable_device+0x4a/0x70
[<ffffffff80368ae1>] ? __pci_enable_device_flags+0x51/0x60
[<ffffffff804dce18>] ? tg3_init_one+0x58/0x1640
[<ffffffff8022a950>] ? default_wake_function+0x0/0x10
[<ffffffff8022efa8>] ? set_cpus_allowed_ptr+0xe8/0x110
[<ffffffff8036ae8f>] ? pci_device_probe+0xdf/0x130
[<ffffffff803bf016>] ? driver_probe_device+0x96/0x1a0
[<ffffffff803bf1a9>] ? __driver_attach+0x89/0x90
[<ffffffff803bf120>] ? __driver_attach+0x0/0x90
[<ffffffff803be68d>] ? bus_for_each_dev+0x4d/0x80
[<ffffffff8028afa8>] ? kmem_cache_alloc+0xc8/0xf0
[<ffffffff803beb7e>] ? bus_add_driver+0xae/0x220
[<ffffffff803bf436>] ? driver_register+0x56/0x130
[<ffffffff8036b148>] ? __pci_register_driver+0x68/0xb0
[<ffffffff806cb610>] ? tg3_init+0x0/0x20
[<ffffffff806ad5b1>] ? do_one_initcall+0x41/0x180
[<ffffffff802d5798>] ? create_proc_entry+0x58/0xa0
[<ffffffff8025eae4>] ? register_irq_proc+0xd4/0xf0
[<ffffffff806adb53>] ? kernel_init+0x133/0x190
[<ffffffff8020c529>] ? child_rip+0xa/0x11
[<ffffffff806ada20>] ? kernel_init+0x0/0x190
[<ffffffff8020c51f>] ? child_rip+0x0/0x11


Code: 89 05 3f 24 42 00 7f 29 48 0f bf c1 48 8d 14 00 48 c1 e0 03 48
29 d0 48 8d 90 c0 0e 73 80 66 89 32 66 44 89 42 02 48 83 c4 08 c3 <0f>
0b eb fe 66 90 48 c7 c7 28 a4 5c 80 31 c0 e8 b2 7d 01 00 66
RIP [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
RSP <ffff88032e4b9b40>


2008-08-12 20:11:22

by Andrew Morton

[permalink] [raw]
Subject: Re: Panic on boot for x86_64

On Tue, 12 Aug 2008 12:51:17 -0700
"Martin Bligh" <[email protected]> wrote:

> x86_64 seems to panic on boot, since 2.6.26-git2 (or maybe -git1,
> which wouldn't compile)
> 2.6.26 works.
>
> http://test.kernel.org/results/IBM/186461/debug/console
>
> kernel BUG at arch/x86/kernel/io_apic_64.c:356!

add_pin_to_irq() doesn't seem to have changed in three years.

> invalid opcode: 0000 [1] SMP
> CPU 24
> Modules linked in:
> Pid: 1, comm: swapper Not tainted 2.6.27-rc1-git2-autotest #1
> RIP: 0010:[<ffffffff8021bb1a>] [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
> RSP: 0018:ffff88032e4b9b40 EFLAGS: 00010216
> RAX: 00000000000000f0 RBX: 00000000000000f0 RCX: 0000000000000001
> RDX: 0000000000000018 RSI: 0000000000000006 RDI: 00000000000000f0
> RBP: 0000000000000006 R08: 0000000000000018 R09: 0000000000000006
> R10: 0000000000000008 R11: ffffffff8038f8dd R12: 0000000000000001
> R13: 0000000000000001 R14: 0000000000000018 R15: 0000000000000000
> FS: 0000000000000000(0000) GS:ffff880bfe733540(0000) knlGS:0000000000000000
> CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
> CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Process swapper (pid: 1, threadinfo ffff88032e4b8000, task ffff880bfe4ca050)
> Stack: ffff88032e4b9be0 ffffffff8021bbae 00000000000000f0 0000000000000001
> 0000000000000000 ffff88032e4b9c0c 00000000000000f0 ffffffff80218d81
> 00000000000000f0 0000000000000000 0000000000000001 ffffffff80218e0c
> Call Trace:
> [<ffffffff8021bbae>] ? io_apic_set_pci_routing+0x7e/0xa0
> [<ffffffff80218d81>] ? mp_register_gsi+0xb1/0xd0
> [<ffffffff80218e0c>] ? acpi_register_gsi+0x6c/0x70
> [<ffffffff8038fb30>] ? acpi_pci_irq_enable+0x178/0x260
> [<ffffffff8038f8dd>] ? acpi_pci_allocate_irq+0x0/0x4c
> [<ffffffff8036d257>] ? pci_enable_resources+0x27/0x160
> [<ffffffff80368a6a>] ? do_pci_enable_device+0x4a/0x70
> [<ffffffff80368ae1>] ? __pci_enable_device_flags+0x51/0x60
> [<ffffffff804dce18>] ? tg3_init_one+0x58/0x1640
> [<ffffffff8022a950>] ? default_wake_function+0x0/0x10
> [<ffffffff8022efa8>] ? set_cpus_allowed_ptr+0xe8/0x110
> [<ffffffff8036ae8f>] ? pci_device_probe+0xdf/0x130
> [<ffffffff803bf016>] ? driver_probe_device+0x96/0x1a0
> [<ffffffff803bf1a9>] ? __driver_attach+0x89/0x90
> [<ffffffff803bf120>] ? __driver_attach+0x0/0x90
> [<ffffffff803be68d>] ? bus_for_each_dev+0x4d/0x80
> [<ffffffff8028afa8>] ? kmem_cache_alloc+0xc8/0xf0
> [<ffffffff803beb7e>] ? bus_add_driver+0xae/0x220
> [<ffffffff803bf436>] ? driver_register+0x56/0x130
> [<ffffffff8036b148>] ? __pci_register_driver+0x68/0xb0
> [<ffffffff806cb610>] ? tg3_init+0x0/0x20
> [<ffffffff806ad5b1>] ? do_one_initcall+0x41/0x180
> [<ffffffff802d5798>] ? create_proc_entry+0x58/0xa0
> [<ffffffff8025eae4>] ? register_irq_proc+0xd4/0xf0
> [<ffffffff806adb53>] ? kernel_init+0x133/0x190
> [<ffffffff8020c529>] ? child_rip+0xa/0x11
> [<ffffffff806ada20>] ? kernel_init+0x0/0x190
> [<ffffffff8020c51f>] ? child_rip+0x0/0x11
>
>
> Code: 89 05 3f 24 42 00 7f 29 48 0f bf c1 48 8d 14 00 48 c1 e0 03 48
> 29 d0 48 8d 90 c0 0e 73 80 66 89 32 66 44 89 42 02 48 83 c4 08 c3 <0f>
> 0b eb fe 66 90 48 c7 c7 28 a4 5c 80 31 c0 e8 b2 7d 01 00 66
> RIP [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
> RSP <ffff88032e4b9b40>

So this looks like ACPI breakage?

2008-08-12 20:12:26

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: Panic on boot for x86_64

[Adding CCs]

On Tuesday, 12 of August 2008, Martin Bligh wrote:
> x86_64 seems to panic on boot, since 2.6.26-git2 (or maybe -git1,
> which wouldn't compile)

Well, I use x86_64s all the time and nothing like this happens for me. A link
to the failing .config might be helpful.

> 2.6.26 works.
>
> http://test.kernel.org/results/IBM/186461/debug/console
>
> kernel BUG at arch/x86/kernel/io_apic_64.c:356!
> invalid opcode: 0000 [1] SMP
> CPU 24
> Modules linked in:
> Pid: 1, comm: swapper Not tainted 2.6.27-rc1-git2-autotest #1
> RIP: 0010:[<ffffffff8021bb1a>] [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
> RSP: 0018:ffff88032e4b9b40 EFLAGS: 00010216
> RAX: 00000000000000f0 RBX: 00000000000000f0 RCX: 0000000000000001
> RDX: 0000000000000018 RSI: 0000000000000006 RDI: 00000000000000f0
> RBP: 0000000000000006 R08: 0000000000000018 R09: 0000000000000006
> R10: 0000000000000008 R11: ffffffff8038f8dd R12: 0000000000000001
> R13: 0000000000000001 R14: 0000000000000018 R15: 0000000000000000
> FS: 0000000000000000(0000) GS:ffff880bfe733540(0000) knlGS:0000000000000000
> CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
> CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> Process swapper (pid: 1, threadinfo ffff88032e4b8000, task ffff880bfe4ca050)
> Stack: ffff88032e4b9be0 ffffffff8021bbae 00000000000000f0 0000000000000001
> 0000000000000000 ffff88032e4b9c0c 00000000000000f0 ffffffff80218d81
> 00000000000000f0 0000000000000000 0000000000000001 ffffffff80218e0c
> Call Trace:
> [<ffffffff8021bbae>] ? io_apic_set_pci_routing+0x7e/0xa0
> [<ffffffff80218d81>] ? mp_register_gsi+0xb1/0xd0
> [<ffffffff80218e0c>] ? acpi_register_gsi+0x6c/0x70
> [<ffffffff8038fb30>] ? acpi_pci_irq_enable+0x178/0x260
> [<ffffffff8038f8dd>] ? acpi_pci_allocate_irq+0x0/0x4c
> [<ffffffff8036d257>] ? pci_enable_resources+0x27/0x160
> [<ffffffff80368a6a>] ? do_pci_enable_device+0x4a/0x70
> [<ffffffff80368ae1>] ? __pci_enable_device_flags+0x51/0x60
> [<ffffffff804dce18>] ? tg3_init_one+0x58/0x1640
> [<ffffffff8022a950>] ? default_wake_function+0x0/0x10
> [<ffffffff8022efa8>] ? set_cpus_allowed_ptr+0xe8/0x110
> [<ffffffff8036ae8f>] ? pci_device_probe+0xdf/0x130
> [<ffffffff803bf016>] ? driver_probe_device+0x96/0x1a0
> [<ffffffff803bf1a9>] ? __driver_attach+0x89/0x90
> [<ffffffff803bf120>] ? __driver_attach+0x0/0x90
> [<ffffffff803be68d>] ? bus_for_each_dev+0x4d/0x80
> [<ffffffff8028afa8>] ? kmem_cache_alloc+0xc8/0xf0
> [<ffffffff803beb7e>] ? bus_add_driver+0xae/0x220
> [<ffffffff803bf436>] ? driver_register+0x56/0x130
> [<ffffffff8036b148>] ? __pci_register_driver+0x68/0xb0
> [<ffffffff806cb610>] ? tg3_init+0x0/0x20
> [<ffffffff806ad5b1>] ? do_one_initcall+0x41/0x180
> [<ffffffff802d5798>] ? create_proc_entry+0x58/0xa0
> [<ffffffff8025eae4>] ? register_irq_proc+0xd4/0xf0
> [<ffffffff806adb53>] ? kernel_init+0x133/0x190
> [<ffffffff8020c529>] ? child_rip+0xa/0x11
> [<ffffffff806ada20>] ? kernel_init+0x0/0x190
> [<ffffffff8020c51f>] ? child_rip+0x0/0x11
>
>
> Code: 89 05 3f 24 42 00 7f 29 48 0f bf c1 48 8d 14 00 48 c1 e0 03 48
> 29 d0 48 8d 90 c0 0e 73 80 66 89 32 66 44 89 42 02 48 83 c4 08 c3 <0f>
> 0b eb fe 66 90 48 c7 c7 28 a4 5c 80 31 c0 e8 b2 7d 01 00 66
> RIP [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
> RSP <ffff88032e4b9b40>

2008-08-12 20:13:20

by Yinghai Lu

[permalink] [raw]
Subject: Re: Panic on boot for x86_64

On Tue, Aug 12, 2008 at 1:10 PM, Andrew Morton
<[email protected]> wrote:
> On Tue, 12 Aug 2008 12:51:17 -0700
> "Martin Bligh" <[email protected]> wrote:
>
>> x86_64 seems to panic on boot, since 2.6.26-git2 (or maybe -git1,
>> which wouldn't compile)
>> 2.6.26 works.
>>
>> http://test.kernel.org/results/IBM/186461/debug/console
>>
>> kernel BUG at arch/x86/kernel/io_apic_64.c:356!
>
> add_pin_to_irq() doesn't seem to have changed in three years.
>
>> invalid opcode: 0000 [1] SMP
>> CPU 24
>> Modules linked in:
>> Pid: 1, comm: swapper Not tainted 2.6.27-rc1-git2-autotest #1
>> RIP: 0010:[<ffffffff8021bb1a>] [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
>> RSP: 0018:ffff88032e4b9b40 EFLAGS: 00010216
>> RAX: 00000000000000f0 RBX: 00000000000000f0 RCX: 0000000000000001
>> RDX: 0000000000000018 RSI: 0000000000000006 RDI: 00000000000000f0
>> RBP: 0000000000000006 R08: 0000000000000018 R09: 0000000000000006
>> R10: 0000000000000008 R11: ffffffff8038f8dd R12: 0000000000000001
>> R13: 0000000000000001 R14: 0000000000000018 R15: 0000000000000000
>> FS: 0000000000000000(0000) GS:ffff880bfe733540(0000) knlGS:0000000000000000
>> CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
>> CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
>> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
>> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
>> Process swapper (pid: 1, threadinfo ffff88032e4b8000, task ffff880bfe4ca050)
>> Stack: ffff88032e4b9be0 ffffffff8021bbae 00000000000000f0 0000000000000001
>> 0000000000000000 ffff88032e4b9c0c 00000000000000f0 ffffffff80218d81
>> 00000000000000f0 0000000000000000 0000000000000001 ffffffff80218e0c
>> Call Trace:
>> [<ffffffff8021bbae>] ? io_apic_set_pci_routing+0x7e/0xa0
>> [<ffffffff80218d81>] ? mp_register_gsi+0xb1/0xd0
>> [<ffffffff80218e0c>] ? acpi_register_gsi+0x6c/0x70
>> [<ffffffff8038fb30>] ? acpi_pci_irq_enable+0x178/0x260
>> [<ffffffff8038f8dd>] ? acpi_pci_allocate_irq+0x0/0x4c
>> [<ffffffff8036d257>] ? pci_enable_resources+0x27/0x160
>> [<ffffffff80368a6a>] ? do_pci_enable_device+0x4a/0x70
>> [<ffffffff80368ae1>] ? __pci_enable_device_flags+0x51/0x60
>> [<ffffffff804dce18>] ? tg3_init_one+0x58/0x1640
>> [<ffffffff8022a950>] ? default_wake_function+0x0/0x10
>> [<ffffffff8022efa8>] ? set_cpus_allowed_ptr+0xe8/0x110
>> [<ffffffff8036ae8f>] ? pci_device_probe+0xdf/0x130
>> [<ffffffff803bf016>] ? driver_probe_device+0x96/0x1a0
>> [<ffffffff803bf1a9>] ? __driver_attach+0x89/0x90
>> [<ffffffff803bf120>] ? __driver_attach+0x0/0x90
>> [<ffffffff803be68d>] ? bus_for_each_dev+0x4d/0x80
>> [<ffffffff8028afa8>] ? kmem_cache_alloc+0xc8/0xf0
>> [<ffffffff803beb7e>] ? bus_add_driver+0xae/0x220
>> [<ffffffff803bf436>] ? driver_register+0x56/0x130
>> [<ffffffff8036b148>] ? __pci_register_driver+0x68/0xb0
>> [<ffffffff806cb610>] ? tg3_init+0x0/0x20
>> [<ffffffff806ad5b1>] ? do_one_initcall+0x41/0x180
>> [<ffffffff802d5798>] ? create_proc_entry+0x58/0xa0
>> [<ffffffff8025eae4>] ? register_irq_proc+0xd4/0xf0
>> [<ffffffff806adb53>] ? kernel_init+0x133/0x190
>> [<ffffffff8020c529>] ? child_rip+0xa/0x11
>> [<ffffffff806ada20>] ? kernel_init+0x0/0x190
>> [<ffffffff8020c51f>] ? child_rip+0x0/0x11
>>
>>
>> Code: 89 05 3f 24 42 00 7f 29 48 0f bf c1 48 8d 14 00 48 c1 e0 03 48
>> 29 d0 48 8d 90 c0 0e 73 80 66 89 32 66 44 89 42 02 48 83 c4 08 c3 <0f>
>> 0b eb fe 66 90 48 c7 c7 28 a4 5c 80 31 c0 e8 b2 7d 01 00 66
>> RIP [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
>> RSP <ffff88032e4b9b40>
>
> So this looks like ACPI breakage?
>
same bug as 11201.

please try tip/master, or wait a while after linus pull fix from tip x86 fix.

YH

2008-08-12 20:20:47

by Rafael J. Wysocki

[permalink] [raw]
Subject: Re: Panic on boot for x86_64

On Tuesday, 12 of August 2008, Yinghai Lu wrote:
> On Tue, Aug 12, 2008 at 1:10 PM, Andrew Morton
> <[email protected]> wrote:
> > On Tue, 12 Aug 2008 12:51:17 -0700
> > "Martin Bligh" <[email protected]> wrote:
> >
> >> x86_64 seems to panic on boot, since 2.6.26-git2 (or maybe -git1,
> >> which wouldn't compile)
> >> 2.6.26 works.
> >>
> >> http://test.kernel.org/results/IBM/186461/debug/console
> >>
> >> kernel BUG at arch/x86/kernel/io_apic_64.c:356!
> >
> > add_pin_to_irq() doesn't seem to have changed in three years.
> >
> >> invalid opcode: 0000 [1] SMP
> >> CPU 24
> >> Modules linked in:
> >> Pid: 1, comm: swapper Not tainted 2.6.27-rc1-git2-autotest #1
> >> RIP: 0010:[<ffffffff8021bb1a>] [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
> >> RSP: 0018:ffff88032e4b9b40 EFLAGS: 00010216
> >> RAX: 00000000000000f0 RBX: 00000000000000f0 RCX: 0000000000000001
> >> RDX: 0000000000000018 RSI: 0000000000000006 RDI: 00000000000000f0
> >> RBP: 0000000000000006 R08: 0000000000000018 R09: 0000000000000006
> >> R10: 0000000000000008 R11: ffffffff8038f8dd R12: 0000000000000001
> >> R13: 0000000000000001 R14: 0000000000000018 R15: 0000000000000000
> >> FS: 0000000000000000(0000) GS:ffff880bfe733540(0000) knlGS:0000000000000000
> >> CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
> >> CR2: 0000000000000000 CR3: 0000000000201000 CR4: 00000000000006e0
> >> DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> >> DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
> >> Process swapper (pid: 1, threadinfo ffff88032e4b8000, task ffff880bfe4ca050)
> >> Stack: ffff88032e4b9be0 ffffffff8021bbae 00000000000000f0 0000000000000001
> >> 0000000000000000 ffff88032e4b9c0c 00000000000000f0 ffffffff80218d81
> >> 00000000000000f0 0000000000000000 0000000000000001 ffffffff80218e0c
> >> Call Trace:
> >> [<ffffffff8021bbae>] ? io_apic_set_pci_routing+0x7e/0xa0
> >> [<ffffffff80218d81>] ? mp_register_gsi+0xb1/0xd0
> >> [<ffffffff80218e0c>] ? acpi_register_gsi+0x6c/0x70
> >> [<ffffffff8038fb30>] ? acpi_pci_irq_enable+0x178/0x260
> >> [<ffffffff8038f8dd>] ? acpi_pci_allocate_irq+0x0/0x4c
> >> [<ffffffff8036d257>] ? pci_enable_resources+0x27/0x160
> >> [<ffffffff80368a6a>] ? do_pci_enable_device+0x4a/0x70
> >> [<ffffffff80368ae1>] ? __pci_enable_device_flags+0x51/0x60
> >> [<ffffffff804dce18>] ? tg3_init_one+0x58/0x1640
> >> [<ffffffff8022a950>] ? default_wake_function+0x0/0x10
> >> [<ffffffff8022efa8>] ? set_cpus_allowed_ptr+0xe8/0x110
> >> [<ffffffff8036ae8f>] ? pci_device_probe+0xdf/0x130
> >> [<ffffffff803bf016>] ? driver_probe_device+0x96/0x1a0
> >> [<ffffffff803bf1a9>] ? __driver_attach+0x89/0x90
> >> [<ffffffff803bf120>] ? __driver_attach+0x0/0x90
> >> [<ffffffff803be68d>] ? bus_for_each_dev+0x4d/0x80
> >> [<ffffffff8028afa8>] ? kmem_cache_alloc+0xc8/0xf0
> >> [<ffffffff803beb7e>] ? bus_add_driver+0xae/0x220
> >> [<ffffffff803bf436>] ? driver_register+0x56/0x130
> >> [<ffffffff8036b148>] ? __pci_register_driver+0x68/0xb0
> >> [<ffffffff806cb610>] ? tg3_init+0x0/0x20
> >> [<ffffffff806ad5b1>] ? do_one_initcall+0x41/0x180
> >> [<ffffffff802d5798>] ? create_proc_entry+0x58/0xa0
> >> [<ffffffff8025eae4>] ? register_irq_proc+0xd4/0xf0
> >> [<ffffffff806adb53>] ? kernel_init+0x133/0x190
> >> [<ffffffff8020c529>] ? child_rip+0xa/0x11
> >> [<ffffffff806ada20>] ? kernel_init+0x0/0x190
> >> [<ffffffff8020c51f>] ? child_rip+0x0/0x11
> >>
> >>
> >> Code: 89 05 3f 24 42 00 7f 29 48 0f bf c1 48 8d 14 00 48 c1 e0 03 48
> >> 29 d0 48 8d 90 c0 0e 73 80 66 89 32 66 44 89 42 02 48 83 c4 08 c3 <0f>
> >> 0b eb fe 66 90 48 c7 c7 28 a4 5c 80 31 c0 e8 b2 7d 01 00 66
> >> RIP [<ffffffff8021bb1a>] add_pin_to_irq+0x7a/0x90
> >> RSP <ffff88032e4b9b40>
> >
> > So this looks like ACPI breakage?
> >
> same bug as 11201.
>
> please try tip/master, or wait a while after linus pull fix from tip x86 fix.

The fix is in the mainline already.

Thanks,
Rafael

2008-08-12 23:47:38

by Martin Bligh

[permalink] [raw]
Subject: Re: Panic on boot for x86_64

>> please try tip/master, or wait a while after linus pull fix from tip x86 fix.
>
> The fix is in the mainline already.


Still looks broken to me (rc2-git5)

http://test.kernel.org/results/IBM/188946/debug/console

It got in since yesterday?

2008-08-13 01:51:33

by Zhao, Yakui

[permalink] [raw]
Subject: Re: Panic on boot for x86_64

On Tue, 2008-08-12 at 16:47 -0700, Martin Bligh wrote:
> >> please try tip/master, or wait a while after linus pull fix from tip x86 fix.
> >
> > The fix is in the mainline already.
>
>
> Still looks broken to me (rc2-git5)
>
> http://test.kernel.org/results/IBM/188946/debug/console
>
> It got in since yesterday?

>From the dmesg of 2.6.16 there exists the following info.
>ACPI: PCI Interrupt 0000:2b:01.0[A] -> GSI 240 (level, low) -> IRQ
66
ACPI: PCI Interrupt 0000:2b:01.1[B] -> GSI 244 (level, low) -> IRQ
74
The GSI number for 0000:2b.01.0 pci device is 240.
The GSI number for 0000:2b.01.1 pci device is 244.

In the function of add_pin_to_irq (in io_apic_64.c) there exists the
following checks.
> BUG_ON(irq >= NR_IRQS);

On the 2.6.16 kernel OS will map a GSI number to a different IRQ
below NR_IRQS(this macro definition is 224). So there is no problem.

But on the x86_64 platform of 2.6.26 kernel OS will treat the GSI number
as the IRQ number. As the GSI number for 00:2b.01.0 pci device is above
224, it will print the kernel panic info.

From the test log it seems that this issue is related with the GSI
mapping mechanism. Maybe it will be OK to use the same GSI mapping
mechanism as x86_32 platform.

Thanks.
Yakui

> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html

2008-08-13 14:13:55

by Ingo Molnar

[permalink] [raw]
Subject: Re: Panic on boot for x86_64


* Martin Bligh <[email protected]> wrote:

> >> please try tip/master, or wait a while after linus pull fix from tip x86 fix.
> >
> > The fix is in the mainline already.
>
> Still looks broken to me (rc2-git5)
>
> http://test.kernel.org/results/IBM/188946/debug/console
>
> It got in since yesterday?

make sure you've got:

| commit 3c7569b284e1be55d086b61a70d9f545326f6d74
| Author: Eric W. Biederman <[email protected]>
| Date: Sun Aug 10 00:35:50 2008 -0700
|
| x86_64: restore the proper NR_IRQS define so larger systems work.

is it still broken even with that applied?

Ingo

2008-08-13 21:12:17

by Martin Bligh

[permalink] [raw]
Subject: Re: Panic on boot for x86_64

Looks like it's fixed since rc2-git6.

Thanks,

M.


On Wed, Aug 13, 2008 at 7:12 AM, Ingo Molnar <[email protected]> wrote:
>
> * Martin Bligh <[email protected]> wrote:
>
>> >> please try tip/master, or wait a while after linus pull fix from tip x86 fix.
>> >
>> > The fix is in the mainline already.
>>
>> Still looks broken to me (rc2-git5)
>>
>> http://test.kernel.org/results/IBM/188946/debug/console
>>
>> It got in since yesterday?
>
> make sure you've got:
>
> | commit 3c7569b284e1be55d086b61a70d9f545326f6d74
> | Author: Eric W. Biederman <[email protected]>
> | Date: Sun Aug 10 00:35:50 2008 -0700
> |
> | x86_64: restore the proper NR_IRQS define so larger systems work.
>
> is it still broken even with that applied?
>
> Ingo
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>