From: Conor Dooley <conor.dooley@microchip.com> To: "Christoph Müllner" <christoph.muellner@vrull.eu> Cc: "Andrew Jones" <ajones@ventanamicro.com>, "Conor Dooley" <conor@kernel.org>, 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> Subject: Re: [PATCH 2/2] riscv: T-Head: Test availability bit before enabling MAEE errata Date: Thu, 28 Mar 2024 14:57:54 +0000 [thread overview] Message-ID: <20240328-issuing-crouton-3448aba81b64@wendy> (raw) In-Reply-To: <CAEg0e7jyGZV3+04HNYzgfHMGYT9wV_c0A=ekpCRi3L-5yjxK=w@mail.gmail.com> [-- Attachment #1: Type: text/plain, Size: 1206 bytes --] On Thu, Mar 28, 2024 at 03:18:22PM +0100, Christoph Müllner wrote: > Switching from th.mxstatus to th.sxstatus should address all mentioned concerns: > * no dependency on OpenSBI changes > * no break of functionality > * no need for graceful handling of CSR read failures > * no need to differentiate between HW and emulation (assuming QEMU > accepts the emulation of th.sxstatus) Yah, th.sxstatus seems ideal here, provided it is accepted by QEMU - but if they allow th.mxstatus I would hope emulating th.sxstatus would be okay too. > Also note that DT handling would be difficult, because we need to probe before > setting up the page table. IIRC the kaslr seed is also read from DT prior to calling the early alternatives stuff, so while it would be a bit more annoying than usual I do think it is possible. My (naive) hope here though is that we don't actually have to deal with this scenario though, as things like the c908 support Svpbmt as well as the maee version. For the k230 the plan is to use both Zicbom and Svpbmt rather than the non-standard T-Head alternatives: https://lore.kernel.org/all/tencent_DF5D7CD182AFDA188E0FB80E314A21038D08@qq.com/ Cheers, Conor. [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: Conor Dooley <conor.dooley@microchip.com> To: "Christoph Müllner" <christoph.muellner@vrull.eu> Cc: "Andrew Jones" <ajones@ventanamicro.com>, "Conor Dooley" <conor@kernel.org>, 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> Subject: Re: [PATCH 2/2] riscv: T-Head: Test availability bit before enabling MAEE errata Date: Thu, 28 Mar 2024 14:57:54 +0000 [thread overview] Message-ID: <20240328-issuing-crouton-3448aba81b64@wendy> (raw) In-Reply-To: <CAEg0e7jyGZV3+04HNYzgfHMGYT9wV_c0A=ekpCRi3L-5yjxK=w@mail.gmail.com> [-- Attachment #1.1: Type: text/plain, Size: 1206 bytes --] On Thu, Mar 28, 2024 at 03:18:22PM +0100, Christoph Müllner wrote: > Switching from th.mxstatus to th.sxstatus should address all mentioned concerns: > * no dependency on OpenSBI changes > * no break of functionality > * no need for graceful handling of CSR read failures > * no need to differentiate between HW and emulation (assuming QEMU > accepts the emulation of th.sxstatus) Yah, th.sxstatus seems ideal here, provided it is accepted by QEMU - but if they allow th.mxstatus I would hope emulating th.sxstatus would be okay too. > Also note that DT handling would be difficult, because we need to probe before > setting up the page table. IIRC the kaslr seed is also read from DT prior to calling the early alternatives stuff, so while it would be a bit more annoying than usual I do think it is possible. My (naive) hope here though is that we don't actually have to deal with this scenario though, as things like the c908 support Svpbmt as well as the maee version. For the k230 the plan is to use both Zicbom and Svpbmt rather than the non-standard T-Head alternatives: https://lore.kernel.org/all/tencent_DF5D7CD182AFDA188E0FB80E314A21038D08@qq.com/ Cheers, Conor. [-- Attachment #1.2: signature.asc --] [-- Type: application/pgp-signature, Size: 228 bytes --] [-- Attachment #2: Type: text/plain, Size: 161 bytes --] _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv
next prev parent reply other threads:[~2024-03-28 14:59 UTC|newest] Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-27 10:31 [PATCH 0/2] RISC-V: Test th.mxstatus.MAEE bit before enabling MAEE Christoph Müllner 2024-03-27 10:31 ` Christoph Müllner 2024-03-27 10:31 ` [PATCH 1/2] riscv: thead: Rename T-Head PBMT to MAEE Christoph Müllner 2024-03-27 10:31 ` Christoph Müllner 2024-03-27 10:31 ` [PATCH 2/2] riscv: T-Head: Test availability bit before enabling MAEE errata Christoph Müllner 2024-03-27 10:31 ` Christoph Müllner 2024-03-27 11:03 ` Conor Dooley 2024-03-27 11:03 ` Conor Dooley 2024-03-27 12:41 ` Andrew Jones 2024-03-27 12:41 ` Andrew Jones 2024-03-28 14:18 ` Christoph Müllner 2024-03-28 14:18 ` Christoph Müllner 2024-03-28 14:57 ` Conor Dooley [this message] 2024-03-28 14:57 ` Conor Dooley 2024-03-28 15:43 ` Alexandre Ghiti 2024-03-28 15:43 ` Alexandre Ghiti 2024-03-29 11:22 ` Christoph Müllner 2024-03-29 11:22 ` Christoph Müllner 2024-03-29 11:29 ` Conor Dooley 2024-03-29 11:29 ` Conor Dooley 2024-03-27 12:59 ` [PATCH 0/2] RISC-V: Test th.mxstatus.MAEE bit before enabling MAEE Qingfang Deng 2024-03-27 12:59 ` Qingfang Deng 2024-03-28 14:19 ` Christoph Müllner 2024-03-28 14:19 ` Christoph Müllner
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=20240328-issuing-crouton-3448aba81b64@wendy \ --to=conor.dooley@microchip.com \ --cc=ajones@ventanamicro.com \ --cc=alistair.francis@wdc.com \ --cc=aou@eecs.berkeley.edu \ --cc=bjorn@kernel.org \ --cc=christoph.muellner@vrull.eu \ --cc=conor@kernel.org \ --cc=cooper.qu@linux.alibaba.com \ --cc=dbarboza@ventanamicro.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: linkBe 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.