From: Conor Dooley <conor@kernel.org>
To: "Christoph Müllner" <christoph.muellner@vrull.eu>
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Paul Walmsley" <paul.walmsley@sifive.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Philipp Tomsich" <philipp.tomsich@vrull.eu>,
"Björn Töpel" <bjorn@kernel.org>,
"Daniel Henrique Barboza" <dbarboza@ventanamicro.com>,
"Heiko Stuebner" <heiko@sntech.de>,
"Cooper Qu" <cooper.qu@linux.alibaba.com>,
"Zhiwei Liu" <zhiwei_liu@linux.alibaba.com>,
"Huang Tao" <eric.huang@linux.alibaba.com>,
"Alistair Francis" <alistair.francis@wdc.com>,
"Andrew Jones" <ajones@ventanamicro.com>,
"Qingfang Deng" <dqfext@gmail.com>,
"Alexandre Ghiti" <alex@ghiti.fr>
Subject: Re: [PATCH v2 2/2] riscv: T-Head: Test availability bit before enabling MAEE errata
Date: Thu, 4 Apr 2024 17:02:57 +0100 [thread overview]
Message-ID: <20240404-drown-wronged-bfc421e412aa@spud> (raw)
In-Reply-To: <20240329121414.688391-3-christoph.muellner@vrull.eu>
[-- Attachment #1: Type: text/plain, Size: 1089 bytes --]
On Fri, Mar 29, 2024 at 01:14:14PM +0100, Christoph Müllner wrote:
> T-Head's MAEE mechanism (non-compatible equivalent of RVI's Svpbmt)
> is currently assumed for all T-Head harts. However, QEMU recently
> decided to drop acceptance of guests that write reserved bits in PTEs.
> As MAEE uses reserved bits in PTEs and Linux applies the MAEE errata
> for all T-Head harts, this broke the Linux startup on QEMU emulations
> of the C906 emulation.
>
> This patch attempts to address this issue by testing the MAEE bit
> in the th.sxstatus CSR. This CSR is available in HW and can be
> emulated in QEMU.
>
> This patch also makes the MAEE probing mechanism reliable, because
> a test for the right combination of mvendorid, marchid, and mimpid
> is not sufficient to enable MAEE.
>
> Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
Seems ideal to me, I'm guessing the QEMU guys were okay with emulating
the CSR. I don't see any screaming at the very least on the patch for
it.
Reviewed-by: Conor Dooley <conor.dooley@microchip.com>
Thanks,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
prev parent reply other threads:[~2024-04-04 16:03 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-29 12:14 [PATCH v2 0/2] RISC-V: Test th.sxstatus.MAEE bit before enabling MAEE Christoph Müllner
2024-03-29 12:14 ` [PATCH v2 1/2] riscv: thead: Rename T-Head PBMT to MAEE Christoph Müllner
2024-04-04 16:06 ` Conor Dooley
2024-04-04 18:15 ` Samuel Holland
2024-04-07 8:47 ` Christoph Müllner
2024-03-29 12:14 ` [PATCH v2 2/2] riscv: T-Head: Test availability bit before enabling MAEE errata Christoph Müllner
2024-04-04 16:02 ` Conor Dooley [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=20240404-drown-wronged-bfc421e412aa@spud \
--to=conor@kernel.org \
--cc=ajones@ventanamicro.com \
--cc=alex@ghiti.fr \
--cc=alistair.francis@wdc.com \
--cc=aou@eecs.berkeley.edu \
--cc=bjorn@kernel.org \
--cc=christoph.muellner@vrull.eu \
--cc=cooper.qu@linux.alibaba.com \
--cc=dbarboza@ventanamicro.com \
--cc=dqfext@gmail.com \
--cc=eric.huang@linux.alibaba.com \
--cc=heiko@sntech.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=philipp.tomsich@vrull.eu \
--cc=zhiwei_liu@linux.alibaba.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