From: Anup Patel <anup@brainfault.org>
To: Palmer Dabbelt <palmer@dabbelt.com>
Cc: Anup Patel <Anup.Patel@wdc.com>,
Paul Walmsley <paul.walmsley@sifive.com>,
Albert Ou <aou@eecs.berkeley.edu>,
Atish Patra <Atish.Patra@wdc.com>,
Alistair Francis <Alistair.Francis@wdc.com>,
linux-riscv <linux-riscv@lists.infradead.org>,
"linux-kernel@vger.kernel.org List"
<linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v6 1/2] RISC-V: Don't print SBI version for all detected extensions
Date: Wed, 17 Mar 2021 14:01:06 +0530 [thread overview]
Message-ID: <CAAhSdy3BzeU42CYO2fJ0LN31hpE=+CTxb=ys1GcC+h4uPVQ-jQ@mail.gmail.com> (raw)
In-Reply-To: <mhng-15799b77-832f-49f3-ac18-af2ec08eebf5@palmerdabbelt-glaptop>
On Wed, Mar 17, 2021 at 10:38 AM Palmer Dabbelt <palmer@dabbelt.com> wrote:
>
> On Mon, 15 Mar 2021 04:04:59 PDT (-0700), Anup Patel wrote:
> > The sbi_init() already prints SBI version before detecting
> > various SBI extensions so we don't need to print SBI version
> > for all detected SBI extensions.
> >
> > Signed-off-by: Anup Patel <anup.patel@wdc.com>
> > ---
> > arch/riscv/kernel/sbi.c | 6 +++---
> > 1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/riscv/kernel/sbi.c b/arch/riscv/kernel/sbi.c
> > index f4a7db3d309e..c0dcebdd30ec 100644
> > --- a/arch/riscv/kernel/sbi.c
> > +++ b/arch/riscv/kernel/sbi.c
> > @@ -577,19 +577,19 @@ void __init sbi_init(void)
> > sbi_get_firmware_id(), sbi_get_firmware_version());
> > if (sbi_probe_extension(SBI_EXT_TIME) > 0) {
> > __sbi_set_timer = __sbi_set_timer_v02;
> > - pr_info("SBI v0.2 TIME extension detected\n");
> > + pr_info("SBI TIME extension detected\n");
> > } else {
> > __sbi_set_timer = __sbi_set_timer_v01;
> > }
> > if (sbi_probe_extension(SBI_EXT_IPI) > 0) {
> > __sbi_send_ipi = __sbi_send_ipi_v02;
> > - pr_info("SBI v0.2 IPI extension detected\n");
> > + pr_info("SBI IPI extension detected\n");
> > } else {
> > __sbi_send_ipi = __sbi_send_ipi_v01;
> > }
> > if (sbi_probe_extension(SBI_EXT_RFENCE) > 0) {
> > __sbi_rfence = __sbi_rfence_v02;
> > - pr_info("SBI v0.2 RFENCE extension detected\n");
> > + pr_info("SBI RFENCE extension detected\n");
> > } else {
> > __sbi_rfence = __sbi_rfence_v01;
> > }
>
> Thanks. I'm just putting this one on for-next so you don't have to carry
> around the diff.
Thanks Palmer.
_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2021-03-17 8:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-15 11:04 [PATCH v6 0/2] SBI SRST extension support Anup Patel
2021-03-15 11:04 ` [PATCH v6 1/2] RISC-V: Don't print SBI version for all detected extensions Anup Patel
2021-03-15 16:52 ` Atish Patra
2021-03-17 5:08 ` Palmer Dabbelt
2021-03-17 8:31 ` Anup Patel [this message]
2021-03-15 11:05 ` [PATCH v6 2/2] RISC-V: Use SBI SRST extension when available Anup Patel
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='CAAhSdy3BzeU42CYO2fJ0LN31hpE=+CTxb=ys1GcC+h4uPVQ-jQ@mail.gmail.com' \
--to=anup@brainfault.org \
--cc=Alistair.Francis@wdc.com \
--cc=Anup.Patel@wdc.com \
--cc=Atish.Patra@wdc.com \
--cc=aou@eecs.berkeley.edu \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.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;
as well as URLs for NNTP newsgroup(s).