OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Troy Mitchell" <troy.mitchell@linux.spacemit.com>
To: "Anup Patel" <anup@brainfault.org>, <opensbi@lists.infradead.org>
Cc: "Xianbin Zhu" <xianbin.zhu@linux.spacemit.com>,
	"Bo Gan" <ganboing@gmail.com>,
	"Samuel Holland" <samuel.holland@sifive.com>,
	"Heinrich Schuchardt" <heinrich.schuchardt@canonical.com>,
	"Kevin Zhang" <zhangmeng.kevin@linux.spacemit.com>,
	"Troy Mitchell" <troy.mitchell@linux.spacemit.com>,
	"Alvin Chang" <alvinga@andestech.com>,
	"E Shattow" <e@freeshell.de>
Subject: Re: [PATCH v5 1/6] lib: sbi: select expected trap handler per hart
Date: Fri, 23 Oct 2026 14:14:02 +0800	[thread overview]
Message-ID: <DMBZW0LZ8UPA.281J6KS3ZCIOM@linux.spacemit.com> (raw)
In-Reply-To: <CAAhSdy1fLZ1W+d05v_CXRwRq7Uz__UL5CaHfgpRQ1xHsxBm6Eg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 918 bytes --]

Hi Anup,

On Fri, Oct 23, 2026 at 09:38:29AM +0530, Anup Patel wrote:
> > diff --git a/include/sbi/sbi_scratch.h b/include/sbi/sbi_scratch.h
> > index 06097c8a..20e7dcd0 100644
> > --- a/include/sbi/sbi_scratch.h
> > +++ b/include/sbi/sbi_scratch.h
> > [...]
> > @@ -91,6 +93,8 @@ struct sbi_scratch {
> >         unsigned long options;
> >         /** Index of the hart */
> >         unsigned long hartindex;
> > +       /** Address of the expected trap handler for this HART */
> > +       unsigned long expected_trap;
>
> Instead of adding in struct sbi_scratch please add this to
> struct sbi_hart_features.
>
> Typically, we add stuff to struct sbi_scratch only when we
> expect it to be accessed by low-level assembly entry/exit
> routines.

Thanks!

I'll move the handler into struct sbi_hart_features in v6 and drop the
scratch layout and allocator changes

-- 
Troy Mitchell



[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 105 bytes --]

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

  reply	other threads:[~2026-10-23  6:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23  3:44 [PATCH v5 0/6] platform: generic: spacemit: add K3 platform support Troy Mitchell
2026-10-23  3:44 ` [PATCH v5 1/6] lib: sbi: select expected trap handler per hart Troy Mitchell
2026-10-23  4:08   ` Anup Patel
2026-10-23  6:14     ` Troy Mitchell [this message]
2026-10-23  3:44 ` [PATCH v5 2/6] platform: generic: spacemit: k1: rename cache flush operation Troy Mitchell
2026-10-23  3:44 ` [PATCH v5 3/6] platform: generic: spacemit: k1: move hart init to nascent hook Troy Mitchell
2026-10-23  3:44 ` [PATCH v5 4/6] platform: generic: spacemit: k1: refactor platform support Troy Mitchell
2026-10-23  3:44 ` [PATCH v5 5/6] platform: generic: spacemit: k3: add " Troy Mitchell
2026-10-23  3:44 ` [PATCH v5 6/6] platform: generic: spacemit: k3: override cold_boot_allowed for hart 0 only Troy Mitchell

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=DMBZW0LZ8UPA.281J6KS3ZCIOM@linux.spacemit.com \
    --to=troy.mitchell@linux.spacemit.com \
    --cc=alvinga@andestech.com \
    --cc=anup@brainfault.org \
    --cc=e@freeshell.de \
    --cc=ganboing@gmail.com \
    --cc=heinrich.schuchardt@canonical.com \
    --cc=opensbi@lists.infradead.org \
    --cc=samuel.holland@sifive.com \
    --cc=xianbin.zhu@linux.spacemit.com \
    --cc=zhangmeng.kevin@linux.spacemit.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox