From: Conor Dooley <conor@kernel.org>
To: u-boot@lists.denx.de
Cc: conor@kernel.org, Conor Dooley <conor.dooley@microchip.com>,
Rick Chen <rick@andestech.com>, Leo <ycliang@andestech.com>,
Tom Rini <trini@konsulko.com>,
Heinrich Schuchardt <xypron.glpk@gmx.de>
Subject: [PATCH v1 0/2] Support new RISC-V ISA extension properties
Date: Mon, 18 Mar 2024 15:16:01 +0000 [thread overview]
Message-ID: <20240318151604.865025-2-conor@kernel.org> (raw)
From: Conor Dooley <conor.dooley@microchip.com>
This would have just been a single patch (the second one), but as I
reported a while back there's a problem with extension detection when
the ISA string exceeds 32 characters:
https://lore.kernel.org/u-boot/20240221-daycare-reliably-8ec86f95fe71@spud/
The first patch here fixes what I see as a bit of a misuse of
cpu_get_desc() in supports_extension() as a preparatory patch for adding
the new properties. Or more accurately, new property, as U-Boot barely
makes use of extension detection as-is in s-mode and only one of the two
new properties is even needed.
Maybe it's not a misuse, but I left a comment under the --- line on that
patch about the before/after for the RISC-V cpu's cpu_get_desc() and
maybe my approach here would not be appreciated.
Cheers,
Conor.
CC: Rick Chen <rick@andestech.com>
CC: Leo <ycliang@andestech.com>
CC: Tom Rini <trini@konsulko.com>
CC: Conor Dooley <conor.dooley@microchip.com>
CC: Heinrich Schuchardt <xypron.glpk@gmx.de>
CC: u-boot@lists.denx.de (open list)
Conor Dooley (2):
riscv: don't read riscv,isa in the riscv cpu's get_desc()
riscv: support extension probing using riscv,isa-extensions
arch/riscv/cpu/cpu.c | 60 ++++++++++++++++++++++++++---------------
drivers/cpu/riscv_cpu.c | 8 +++---
2 files changed, 42 insertions(+), 26 deletions(-)
--
2.43.0
next reply other threads:[~2024-03-18 15:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-18 15:16 Conor Dooley [this message]
2024-03-18 15:16 ` [PATCH v1 1/2] riscv: don't read riscv, isa in the riscv cpu's get_desc() Conor Dooley
2024-03-28 7:08 ` Leo Liang
2024-03-18 15:16 ` [PATCH v1 2/2] riscv: support extension probing using riscv, isa-extensions Conor Dooley
2024-03-28 7:12 ` Leo Liang
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=20240318151604.865025-2-conor@kernel.org \
--to=conor@kernel.org \
--cc=conor.dooley@microchip.com \
--cc=rick@andestech.com \
--cc=trini@konsulko.com \
--cc=u-boot@lists.denx.de \
--cc=xypron.glpk@gmx.de \
--cc=ycliang@andestech.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).