All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bezdeka, Florian" <florian.bezdeka@siemens.com>
To: "xenomai@lists.linux.dev" <xenomai@lists.linux.dev>,
	"yxianyao@126.com" <yxianyao@126.com>
Subject: Re: some kernel exceptions
Date: Tue, 27 Dec 2022 10:07:32 +0000	[thread overview]
Message-ID: <b3a6c5faf65f8b48ed52cc3bc1493e6dcb7d4470.camel@siemens.com> (raw)
In-Reply-To: 9da33db3ae41a25ec71926bbbd7f49dc5c19e8a6.camel@siemens.com

[RESEND: Seems my original mail did not make it to the list]

Hi,

On Mon, 2022-12-26 at 15:37 +0800, Yxian.Yao wrote:
> 
> Hi,
> 
> Install the debian11.0 operating system on the machine.,the system
> can start normally.
> But the system is abnormal after using this kernel,linux-5.4.133-
> ipipe-6-xenomai-3.1.1-20221216 (linux-5.4.133, ipipe-core-5.4.133-
> x86-6.patch, xenomai 3.1.1), 
> See the attachment for output information during kernel startup, and
> the kernel outputs some exception messages, as follows.

Linux is failing while trying to initialize the IRQ controler (APIC) of
your application processors (APs) (= non boot CPUs). There seems to be
a mismatch regarding LAPIC IDs.

Such IDs are normally extracted from the APIC ACPI table. Something
seems to go wrong there (taken from your attachment):

[    0.214734] ACPI: x2apic entry ignored

There are a lot of such lines. This makes me wonder if your ACPI tables
are set up properly (which might be a BIOS/Firmware issue). That's
nothing Xenomai/ipipe specific. Does a standard Linux 5.4 boot on that
machine?

[    0.214840] smpboot: Boot CPU (id 255) not listed by BIOS

That points into the same direction. Your boot CPU has a APIC ID of
255, I would expect 0.

[    0.284534] setup_percpu: NR_CPUS:512 nr_cpumask_bits:512 nr_cpu_ids:1 nr_node_ids:1

nr_cpu_ids: 1 is strage. According to the line below we are on a NUMA
system (with one node) and I would expect a higher number of CPUs on
that system. So something is hiding your cores. (At least there is no
maxcpus=1 on your kernel cmdline).

NUMA configuration:
[    0.008196] NUMA: Node 0 [mem 0x00000000-0x7fffffff] + [mem 0x100000000-0x207fffffff] -> [mem 0x00000000-0x207fffffff]

Hope that helps,
Florian

> 
> Please give me some hints!
> 
> Thanks a lot.
> 
> [    2.425873] ------------[ cut here ]------------
> [    2.430270] kernel BUG at arch/x86/kernel/apic/apic.c:1659!
> [    2.435593] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
> [    2.440574] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.4.133-ipipe-6-xenomai-3.1.1-20221216 #1
> [    2.448851] Hardware name: HP HP Z8 Fury G5 Workstation/88C1, BIOS U61 Ver. 79.01.87 09/22/2022
> [    2.457129] I-pipe domain: Linux
> [    2.460211] RIP: 0010:setup_local_APIC+0x2df/0x310
> [    2.464775] Code: 00 0b 05 b8 66 5b 01 0f 85 f7 fe ff ff 85 d2 7f 3f 48 8b 05 43 36 e4 00 be 00 07 01 00 bf 50 03 00 00 ff 50 10 e9 f6 fe ff ff <0f> 0b 48 8b 4c 24 40 65 48 2b 0c 25 28 00 00 00 75 0a be 00 04 00
> [    2.482628] RSP: 0000:ffffffff82003ea0 EFLAGS: 00010246
> [    2.487606] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff889fffe00000
> [    2.494401] RDX: 0000000000000000 RSI: 00000000fffffeff RDI: 0000000000000020
> [    2.501196] RBP: ffffffff8253d2e0 R08: 0000000000000001 R09: ffffffff820dbc20
> [    2.507989] R10: 0000000000000008 R11: 0000000000000000 R12: 00000000000000d0
> [    2.514786] R13: 0000000000000000 R14: 000000005565f000 R15: 000000005b0ca000
> [    2.521582] FS:  0000000000000000(0000) GS:ffff889fffe00000(0000) knlGS:0000000000000000
> [    2.529285] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [    2.534759] CR2: ffff88a07ffff000 CR3: 000000000400a001 CR4: 00000000000606b0
> [    2.541553] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [    2.548348] DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
> [    2.555141] Call Trace:
> [    2.557479]  ? __ipipe_do_IRQ+0x87/0xb0
> [    2.561137]  ? __ipipe_do_sync_stage+0x12a/0x160
> [    2.565537]  apic_intr_mode_init+0xb7/0xda
> [    2.569441]  x86_late_time_init+0x12/0x17
> [    2.573262]  start_kernel+0x42e/0x4e7
> [    2.576757]  secondary_startup_64+0xa4/0xb0
> [    2.580744] Modules linked in:
> [    2.583659] ---[ end trace bd3da5ac6eb39a7b ]---
> [    2.588058] RIP: 0010:setup_local_APIC+0x2df/0x310
> [    2.592622] Code: 00 0b 05 b8 66 5b 01 0f 85 f7 fe ff ff 85 d2 7f 3f 48 8b 05 43 36 e4 00 be 00 07 01 00 bf 50 03 00 00 ff 50 10 e9 f6 fe ff ff <0f> 0b 48 8b 4c 24 40 65 48 2b 0c 25 28 00 00 00 75 0a be 00 04 00
> [    2.610482] RSP: 0000:ffffffff82003ea0 EFLAGS: 00010246
> [    2.615460] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff889fffe00000
> [    2.622252] RDX: 0000000000000000 RSI: 00000000fffffeff RDI: 0000000000000020
> [    2.629048] RBP: ffffffff8253d2e0 R08: 0000000000000001 R09: ffffffff820dbc20
> [    2.635841] R10: 0000000000000008 R11: 0000000000000000 R12: 00000000000000d0
> [    2.642637] R13: 0000000000000000 R14: 000000005565f000 R15: 000000005b0ca000
> [    2.649430] FS:  0000000000000000(0000) GS:ffff889fffe00000(0000) knlGS:0000000000000000
> [    2.657135] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
> [    2.662608] CR2: ffff88a07ffff000 CR3: 000000000400a001 CR4: 00000000000606b0
> [    2.669403] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
> [    2.676198] DR3: 0000000000000000 DR6: 00000000fffe07f0 DR7: 0000000000000400
> [    2.682993] Kernel panic - not syncing: Attempted to kill the idle task!
> [    2.689396] Rebooting in 1 seconds..
> [    3.648759] ACPI MEMORY or I/O RESET_REG.



  parent reply	other threads:[~2022-12-27 10:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-26  7:37 some kernel exceptions Yxian.Yao
2022-12-27  9:36 ` Florian Bezdeka
2022-12-27  9:48   ` Bezdeka, Florian
     [not found]     ` <54aadb13.294f.1855739927d.Coremail.yxianyao@126.com>
2022-12-28  8:54       ` Florian Bezdeka
2023-01-04  3:38     ` Yxian Yao
2022-12-27 10:07   ` Bezdeka, Florian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-10-10 13:31 Yxian.Yao
2022-10-10 13:41 ` Jan Kiszka
2022-10-10 14:09   ` Yxian.Yao
2022-10-10 14:13     ` Jan Kiszka
2022-10-10 14:37       ` Yxian.Yao
2022-10-10 14:54         ` Jan Kiszka
2022-10-10 15:30           ` Yxian.Yao
2022-10-10 16:37             ` Jan Kiszka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b3a6c5faf65f8b48ed52cc3bc1493e6dcb7d4470.camel@siemens.com \
    --to=florian.bezdeka@siemens.com \
    --cc=xenomai@lists.linux.dev \
    --cc=yxianyao@126.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.