Hi!

Thanks for the suggestions and sorry for the delay. I've applied the patch and attached the output (still fails to boot).

Best regards, Manuel

On 2013-02-14 21:13, Gilles Chanteperdrix wrote:
On 02/14/2013 01:05 PM, Manuel Huber wrote:

Hello!

We use an AMD FX-61000 CPU and we are having trouble using kernel versions
2.6.38.8 and 3.5.7 (newest) and some more... The only version that
worked is 2.6.35.9 (so far). But let's focus on 3.5.7:

I finally managed to get error messages from the 3.5.7 kernel (Thanks to
Philippe Gerum, who was so kind to direct me to the mailing list and also
gave me some hints about debugging,... ). I've seen that there is a
kernel BUG on line 139 and 170. Maybe thats the reason for the problem?
I included the kernel config and the full log from startup. Of course it can
very well be a wrong configuration...

However, it seems like I could avoid the problemes with the 2.6.35.9
kernel (It was related to RTnet + rt8169 sometimes getting stuck;
it doesn't happen on the 3.5.7 kernel, as far as I can tell
[tested on an AMD Athlon 64 X2]; now I'm using the rt8139C card which
works like a charm), so I just wanted to submit the problem,
maybe it helps to further improve this project...

Of coure I would love to use the current version and I can test
configurations and boot the system with different options if that
helps with finding the error...

Best regards, Manuel
-------------- next part --------------
[    1.201759] kernel BUG at arch/x86/kernel/ipipe.c:589!


Could you try the following patch?

diff --git a/arch/x86/kernel/ipipe.c b/arch/x86/kernel/ipipe.c
index f833663..6d0fd72 100644
--- a/arch/x86/kernel/ipipe.c
+++ b/arch/x86/kernel/ipipe.c
@@ -586,6 +586,8 @@ int __ipipe_handle_irq(struct pt_regs *regs)
if (likely(vector < 0)) {
                irq = __this_cpu_read(vector_irq[~vector]);
+               if (irq < 0)
+                       printk("invalid irq for vector 0x%08x\n", vector);
                BUG_ON(irq < 0);
        } else { /* Software-generated. */
                irq = vector;



-------------- next part --------------
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.5.7-xeno2621-patch1 (root@kuka) (gcc version 
4.4.3 (Ubuntu 4.4.3-4ubuntu5.1) ) #1 SMP PREEMPT Mon Feb 18 14:05:31 CET 2013
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009f7ff] usable
[    0.000000] BIOS-e820: [mem 0x000000000009f800-0x000000000009ffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000cfd9ffff] usable
[    0.000000] BIOS-e820: [mem 0x00000000cfda0000-0x00000000cfdd0fff] ACPI NVS
[    0.000000] BIOS-e820: [mem 0x00000000cfdd1000-0x00000000cfdfffff] ACPI data
[    0.000000] BIOS-e820: [mem 0x00000000cfe00000-0x00000000cfefffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000e0000000-0x00000000efffffff] reserved
[    0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000ffffffff] reserved
[    0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000042fffffff] usable
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] DMI 2.4 present.
[    0.000000] e820: last_pfn = 0x430000 max_arch_pfn = 0x1000000
[    0.000000] x86 PAT enabled: cpu 0, old 0x7040600070406, new 0x7010600070106
[    0.000000] found SMP MP-table at [mem 0x000f4bf0-0x000f4bff] mapped at 
[c00f4bf0]
[    0.000000] init_memory_mapping: [mem 0x00000000-0x37bfdfff]
[    0.000000] RAMDISK: [mem 0x377cf000-0x37feffff]
[    0.000000] Allocated new RAMDISK: [mem 0x36fae000-0x377cea49]
[    0.000000] Move RAMDISK from [mem 0x377cf000-0x37fefa49] to [mem 
0x36fae000-0x377cea49]
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000042fffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x42fffffff]
[    0.000000]   NODE_DATA [mem 0x2e600000-0x2e601fff] (remapped)
[    0.000000] 16260MB HIGHMEM available.
[    0.000000] 891MB LOWMEM available.
[    0.000000]   mapped low ram: 0 - 37bfe000
[    0.000000]   low ram: 0 - 37bfe000
[    0.000000] Node: 0, start_pfn: 10, end_pfn: 9f
[    0.000000] Node: 0, start_pfn: 100, end_pfn: cfda0
[    0.000000] Node: 0, start_pfn: 100000, end_pfn: 430000
334000 338000 33c000 340000 344000 348000 34c000 350000 354000 358000 35c000 360000 364000 368000 36c000 370000 374000 378000 37c000 380000 384000 388000 38c000 390000 394000 398000 39c000 3a0000 3a4000 3a8000 3ac000 3b0000 3b4000 3b8000 3bc000 3c0000 3c4000 3c8000 3cc000 3d0000 3d4000 3d8000 3dc000 3e0000 3e4000 3e8000 3ec000 3f0000 3f4000 3f8000 3fc000 400000 404000 408000 40c000 410000 414000 418000 41c000 420000 424000 428000 42c000 [ 0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x00010000-0x00ffffff]
[    0.000000]   Normal   [mem 0x01000000-0x37bfdfff]
[    0.000000]   HighMem  [mem 0x37bfe000-0x2fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00010000-0x0009efff]
[    0.000000]   node   0: [mem 0x00100000-0xcfd9ffff]
[    0.000000]   node   0: [mem 0x00000000-0x2fffffff]
[    0.000000] Using APIC driver default
[    0.000000] SFI: Simple Firmware Interface v0.81 http://simplefirmware.org
[    0.000000] Intel MultiProcessor Specification v1.4
[    0.000000]     Virtual Wire compatibility mode.
[    0.000000] MPTABLE: OEM ID: OEM00000
[    0.000000] MPTABLE: Product ID: PROD00000000
[    0.000000] MPTABLE: APIC at: 0xFEE00000
[    0.000000] Processor #0 (Bootup-CPU)
[    0.000000] Processor #1
[    0.000000] Processor #2
[    0.000000] Processor #3
[    0.000000] Processor #4
[    0.000000] Processor #5
[    0.000000] IOAPIC[0]: apic_id 8, version 33, address 0xfec00000, GSI 0-23
[    0.000000] Processors: 6
[    0.000000] SMP: Allowing 6 CPUs, 0 hotplug CPUs
[    0.000000] PM: Registered nosave memory: 000000000009f000 - 00000000000a0000
[    0.000000] PM: Registered nosave memory: 00000000000a0000 - 00000000000f0000
[    0.000000] PM: Registered nosave memory: 00000000000f0000 - 0000000000100000
[    0.000000] e820: [mem 0xcff00000-0xdfffffff] available for PCI devices
[    0.000000] setup_percpu: NR_CPUS:8 nr_cpumask_bits:8 nr_cpu_ids:6 
nr_node_ids:1
[    0.000000] PERCPU: Embedded 403 pages/cpu @edc8e000 s1627200 r0 d23488 
u1650688
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 4159278
[    0.000000] Policy zone: HighMem
[    0.000000] Kernel command line: 
BOOT_IMAGE=/boot/vmlinuz-3.5.7-xeno2621-patch1 
root=UUID=e722c833-7422-4a40-9602-8d589eacd32c ro console=tty0 
console=ttyS0,19200n8
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] __ex_table already sorted, skipping sort
[    0.000000] Xenomai: forcing noxsave
[    0.000000] Initializing CPU#0
[    0.000000] allocated 35127168 bytes of page_cgroup
[    0.000000] please try 'cgroup_disable=memory' option if you don't want 
memory cgroups
[    0.000000] Initializing HighMem for node 0 (00037bfe:00430000)
[    0.000000] Memory: 16426864k/17563648k available (5833k kernel code, 
208204k reserved, 2413k data, 2084k init, 15722120k highmem)
[    0.000000] virtual kernel memory layout:
[    0.000000]     fixmap  : 0xfff17000 - 0xfffff000   ( 928 kB)
[    0.000000]     pkmap   : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xf83fe000 - 0xffbfe000   ( 120 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf7bfe000   ( 891 MB)
[    0.000000]       .init : 0xc090e000 - 0xc0b17000   (2084 kB)
[    0.000000]       .data : 0xc06b2643 - 0xc090ddc0   (2413 kB)
[    0.000000]       .text : 0xc0100000 - 0xc06b2643   (5833 kB)
[    0.000000] Checking if this processor honours the WP bit even in supervisor 
mode...Ok.
[    0.000000] SLUB: Genslabs=15, HWalign=64, Order=0-3, MinObjects=0, CPUs=6, 
Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000] NR_IRQS:2304 nr_irqs:728 16
[    0.000000] Interrupt pipeline (release #3)
[    0.000000] Console: colour VGA+ 80x25
[    0.000000] console [tty0] enabled
[    0.000000] console [ttyS0] enabled
[    0.000000] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., 
Ingo Molnar
[    0.000000] ... MAX_LOCKDEP_SUBCLASSES:  8
[    0.000000] ... MAX_LOCK_DEPTH:          48
[    0.000000] ... MAX_LOCKDEP_KEYS:        8191
[    0.000000] ... CLASSHASH_SIZE:          4096
[    0.000000] ... MAX_LOCKDEP_ENTRIES:     16384
[    0.000000] ... MAX_LOCKDEP_CHAINS:      32768
[    0.000000] ... CHAINHASH_SIZE:          16384
[    0.000000]  memory used by lock dependency info: 3551 kB
[    0.000000]  per task-struct memory footprint: 1152 bytes
[    0.004000] Fast TSC calibration using PIT
[    0.008000] Detected 3322.084 MHz processor.
[    0.000003] Calibrating delay loop (skipped), value calculated using timer 
frequency.. 6644.16 BogoMIPS (lpj=13288336)
[    0.064223] pid_max: default: 32768 minimum: 301
[    0.091910] Security Framework initialized
[    0.116449] SELinux:  Disabled at boot.
[    0.139489] Mount-cache hash table entries: 512
[    0.167340] Initializing cgroup subsys cpuacct
[    0.193978] Initializing cgroup subsys memory
[    0.220145] Initializing cgroup subsys devices
[    0.246772] Initializing cgroup subsys freezer
[    0.273428] Initializing cgroup subsys net_cls
[    0.300138] CPU: Physical Processor ID: 0
[    0.324195] CPU: Processor Core ID: 0
[    0.346176] mce: CPU supports 7 MCE banks
[    0.370239] LVT offset 1 assigned for vector 0xf9
[    0.399248] Enabling APIC mode:  Flat.  Using 1 I/O APICs
[    0.431650] ExtINT not setup in hardware but reported by MP table
[    0.468456] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=0 pin2=0
[    0.543080] CPU0: AMD FX(tm)-6100 Six-Core Processor              stepping 02
[    0.800897] Performance Events: AMD Family 15h PMU driver.
[    0.833852] ... version:                0
[    0.857906] ... bit width:              48
[    0.882482] ... generic registers:      6
[    0.906542] ... value mask:             0000ffffffffffff
[    0.938397] ... max period:             00007fffffffffff
[    0.970251] ... fixed-purpose events:   0
[    0.994306] ... event mask:             000000000000003f
[    1.037024] NMI watchdog: enabled on all CPUs, permanently consumes one 
hw-PMU counter.
[    1.092772] lockdep: fixing up alternatives.
[    1.118403] Booting Node   0, Processors  #1[    1.153824] Initializing CPU#1
[    1.174180] invalid irq for vector 0xffffffc8
[    1.200332] ------------[ cut here ]------------
[    1.204669] CPU 2 irqstacks, hard=eb49a000 soft=eb49c000
[    1.204672]  #2[    1.215403] Initializing CPU#2
[    1.217714] invalid irq for vector 0xffffffc8
lockdep: fixing up alternatives.
[    1.313617] kernel BUG at arch/x86/kernel/ipipe.c:591!
[ 1.362205] invalid opcode: 0000 [#1] PREEMPT SMP [ 1.391243] Modules linked in: [ 1.409636] [ 1.418580] Pid: 0, comm: swapper/1 Not tainted 3.5.7-xeno2621-patch1 #1 Gigabyte Technology Co., Ltd. GA-990FXA-UD5/GA-990FXA-UD5
[    1.489143] EIP: 0060:[<c011f73b>] EFLAGS: 00010282 CPU: 1
[    1.521995] EIP is at __ipipe_handle_irq+0x1db/0x240
[    1.551765] EAX: 00000021 EBX: eb465f58 ECX: 00000000 EDX: 00000200
[    1.589337] ESI: c098c400 EDI: 00000001 EBP: eb465f50 ESP: eb465f30
[    1.626903]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[    1.659275] CR0: 8005003b CR2: 00000000 CR3: 00b20000 CR4: 000007f0
[    1.696845] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    1.734414] DR6: ffff0ff0 DR7: 00000400
[    1.757432] Process swapper/1 (pid: 0, ti=eb464000 task=eb468000 
task.ti=eb464000)
[    1.802814] I-pipe domain Linux
[    1.821654] Stack:
[    1.833710]  c08042fc ffffffc8 00000046 00000000 00000001 c098b814 00000001 
00000001
[    1.880888]  eb465f84 c06b143d c098b814 00000000 00000000 00000001 00000001 
eb465f94
[    1.928070]  80000000 0000007b 0000007b 000000d8 00000000 ffffffc8 c01c08b5 
00000060
[    1.975251] Call Trace:
[    1.989917]  [<c06b143d>] common_interrupt+0x3d/0x5c
[    2.019696]  [<c01c08b5>] ipipe_unstall_root+0x55/0x90
[    2.050509]  [<c06a961a>] ? start_secondary+0x1cd/0x1e4
[ 2.081840] Code: ba 47 02 00 00 b8 fc f6 7f c0 e8 21 61 01 00 c6 05 f8 78 90 c0 01 e9 57 fe ff ff 89 54 24 04 c7 04 24 fc 42 80 c0 e8 40 cc 58 00 <0f> 0b eb fe 89 d1 c7 45 f0 01 00 00 00 e9 61 fe ff ff 80 3d fa [ 2.201498] EIP: [<c011f73b>] __ipipe_handle_irq+0x1db/0x240 SS:ESP 0068:eb465f30
[    2.246525] ------------[ cut here ]------------
[    2.246536] ---[ end trace bb5633fe2c683ccf ]---
[    2.246541] Kernel panic - not syncing: Attempted to kill the idle task!
[    2.341961] kernel BUG at arch/x86/kernel/ipipe.c:591!
[ 2.372773] invalid opcode: 0000 [#2] PREEMPT SMP [ 2.401761] Modules linked in: [ 2.420154] [ 2.429096] Pid: 0, comm: swapper/2 Tainted: G D 3.5.7-xeno2621-patch1 #1 Gigabyte Technology Co., Ltd. GA-990FXA-UD5/GA-990FXA-UD5
[    2.506570] EIP: 0060:[<c011f73b>] EFLAGS: 00010282 CPU: 2
[    2.539423] EIP is at __ipipe_handle_irq+0x1db/0x240
[    2.569192] EAX: 00000021 EBX: eb467f58 ECX: 00000000 EDX: 00000200
[    2.606712] ESI: c098c400 EDI: 00000001 EBP: eb467f50 ESP: eb467f30
[    2.644288]  DS: 007b ES: 007b FS: 00d8 GS: 0000 SS: 0068
[    2.676652] CR0: 8005003b CR2: 00000000 CR3: 00b20000 CR4: 000007f0
[    2.714170] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[    2.751740] DR6: ffff0ff0 DR7: 00000400
[    2.774755] Process swapper/2 (pid: 0, ti=eb466000 task=eb469180 
task.ti=eb466000)
[    2.820085] I-pipe domain Linux
[    2.838928] Stack:
[    2.850982]  c08042fc ffffffc8 00000046 00000000 00000001 c098b814 00000002 
00000001
[    2.898161]  eb467f84 c06b143d c098b814 00000000 00000000 00000002 00000001 
eb467f94
[    2.945342]  80000000 0000007b 0000007b 000000d8 00000000 ffffffc8 c01c08b5 
00000060
[    2.992532] Call Trace:
[    3.007188]  [<c06b143d>] common_interrupt+0x3d/0x5c
[    3.036915]  [<c01c08b5>] ipipe_unstall_root+0x55/0x90
[    3.067727]  [<c06a961a>] ? start_secondary+0x1cd/0x1e4
[ 3.099058] Code: ba 47 02 00 00 b8 fc f6 7f c0 e8 21 61 01 00 c6 05 f8 78 90 c0 01 e9 57 fe ff ff 89 54 24 04 c7 04 24 fc 42 80 c0 e8 40 cc 58 00 <0f> 0b eb fe 89 d1 c7 45 f0 01 00 00 00 e9 61 fe ff ff 80 3d fa [ 3.218668] EIP: [<c011f73b>] __ipipe_handle_irq+0x1db/0x240 SS:ESP 0068:eb467f30
_______________________________________________
Xenomai mailing list
[email protected]
http://www.xenomai.org/mailman/listinfo/xenomai

Reply via email to