All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: "dabbede@gmail.com" <dabbede@gmail.com>, xenomai@xenomai.org
Subject: Re: Wrong CPU count on Apollo Lake platform
Date: Tue, 24 May 2022 08:33:29 +0200	[thread overview]
Message-ID: <178ad36c-1829-4e46-3390-bf48eff953d8@siemens.com> (raw)
In-Reply-To: <CAEwYQ4RW220Mv4Ee1nVNtu2Y7PSyf_GbuySyegQuOx6HVoQgvg@mail.gmail.com>

On 20.05.22 13:41, dabbede--- via Xenomai wrote:
> Dear Xenomai community,
> 
> I'm writing here because of the following issue: I have compiled a
> xenomai-patched kernel that, when used on an Intel Atom E3950 (Apollo
> Lake family), return the wrong cpu count (i.e. nproc returns 1 instead
> of 4, and also lscpu claims CPU(s): 1).
> The very same kernel, when run on an Intel i5-7440EQ, returns nproc=4,
> which is correct.
> I'm using CONFIG_GENERIC_CPU=y, and this, to my knowledge, should be a
> safer option to handle both Atom and i5 or other platforms. I've also
> tried to use CONFIG_MATOM or CONFIG_MCORE2 without noticeable
> differences.
> 
> I attach here the full config and the dmesg that I obtain on the two
> platforms. Comparing the logs I've noticed the message "BIOS bug, no
> explicit IRQ entries, using default mptable. (tell your hw vendor)"
> but I'm not sure whether this is the cause or an effect of the
> problem.
> 
> Can you help me suggesting which CONFIG option I should change?
> 

[    0.057400] Processor #0 (Bootup-CPU)
[    0.057403] BIOS bug, no explicit IRQ entries, using default mptable. (tell your hw vendor)
[    0.057412] Processors: 1
[    0.057416] smpboot: Allowing 1 CPUs, 0 hotplug CPUs

Seems first of all unrelated to Xenomai.

Did you already try to compile a Xenomai/I-pipe free kernel with 
defconfig settings, whether that is able to detect all CPUs? If not, you 
should really look for a BIOS update of your board. Or complain with its 
vendor about breaking standards and, thus, Linux.

Jan

-- 
Siemens AG, Technology
Competence Center Embedded Linux


      reply	other threads:[~2022-05-24  6:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-20 11:41 Wrong CPU count on Apollo Lake platform dabbede
2022-05-24  6:33 ` Jan Kiszka [this message]

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=178ad36c-1829-4e46-3390-bf48eff953d8@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=dabbede@gmail.com \
    --cc=xenomai@xenomai.org \
    /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.