All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yao Zi <me@ziyao.cc>
To: Michael Opdenacker <michael.opdenacker@rootcommit.com>,
	Yao Zi <me@ziyao.cc>
Cc: Drew Fustini <drew@pdp7.com>,
	guoren@kernel.org, wefu@redhat.com, inochiama@gmail.com,
	opensbi@lists.infradead.org
Subject: Re: TH1520: broken CPU count detection
Date: Thu, 17 Sep 2026 17:36:32 +0000	[thread overview]
Message-ID: <aqwlIK3ly-Ct4z0L@pie> (raw)
In-Reply-To: <5e67bae3-753c-4f39-bdb2-b912ff2f62e8@rootcommit.com>

On Thu, Sep 17, 2026 at 12:54:49PM +0200, Michael Opdenacker wrote:
> Hi Yao
> 
> On 9/16/26 6:42 PM, Yao Zi wrote:
> > On Tue, Sep 15, 2026 at 09:31:01AM +0200, Michael Opdenacker wrote:
> > > Greetings,
> > > 
> > > For the Yocto meta-riscv layer, we're trying to replace the downstream
> > > opensbi (called opensbi-revyos) by mainline opensbi:
> > > https://github.com/riscv/meta-riscv/pull/685/
> > > 
> > > The board boots fine, but unfortunately, only 1 CPU core is detected. This
> > > surfaces in the Linux kernel log:
> > > 
> > > [    0.089851] smp: Bringing up secondary CPUs ...
> > > [   10.165542] CPU1 failed to report alive state
> > > [   20.241632] CPU2 failed to report alive state
> > > [   30.316980] CPU3 failed to report alive state
> > What Linux kernel are you using?
> I'm using mainline Linux 7.2.x.
> Is this something Linux can manage?

Okay, I guess I should have more sleep when writing this reply. I was
meant to ask the U-Boot you're using.

The problem is that, mainline OpenSBI doesn't have the ability to bring
CPU cores out of reset, while T-Head's original vendor U-Boot doesn't,
either, and relies on OpenSBI to do the stuff (iirc through a devicetree
node called "reset-sample" or similar).

So if you're working with T-Head's original U-Boot but with mainline
OpenSBI, then there's no one bringing secondary cores up.

RevyOS' fork of T-Head's U-Boot[1] implements bringing up logic, too, so
it works with mainline OpenSBI. So does mainline U-Boot.

> Thanks
> Michael

[1]: https://github.com/revyos/th1520-vendor-uboot/blob/th1520/arch/riscv/lib/bootm.c

-- 
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi

  reply	other threads:[~2026-09-17 17:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-15  7:31 TH1520: broken CPU count detection Michael Opdenacker
2026-09-16 16:42 ` Yao Zi
2026-09-17 10:54   ` Michael Opdenacker
2026-09-17 17:36     ` Yao Zi [this message]
     [not found]       ` <7d24d195-02e4-46d3-b0a3-4c48bf6a0d90@rootcommit.com>
2026-09-28  8:44         ` Michael Opdenacker

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=aqwlIK3ly-Ct4z0L@pie \
    --to=me@ziyao.cc \
    --cc=drew@pdp7.com \
    --cc=guoren@kernel.org \
    --cc=inochiama@gmail.com \
    --cc=michael.opdenacker@rootcommit.com \
    --cc=opensbi@lists.infradead.org \
    --cc=wefu@redhat.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.