From: Samuel Holland <samuel.holland@sifive.com>
To: Charlie Jenkins <charlie@rivosinc.com>
Cc: linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org,
linux-doc@vger.kernel.org, "Atish Patra" <atishp@rivosinc.com>,
"Alexandre Ghiti" <alexghiti@rivosinc.com>,
"Paul Walmsley" <paul.walmsley@sifive.com>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Jonathan Corbet" <corbet@lwn.net>,
"Conor Dooley" <conor.dooley@microchip.com>,
"Clément Léger" <cleger@rivosinc.com>,
"Atish Patra" <atishp@atishpatra.org>,
"Randy Dunlap" <rdunlap@infradead.org>,
"Alexandre Ghiti" <alex@ghiti.fr>
Subject: Re: [PATCH v13 2/4] riscv: Include riscv_set_icache_flush_ctx prctl
Date: Tue, 12 Mar 2024 18:56:47 -0500 [thread overview]
Message-ID: <1c24d9d8-36dd-4bf1-a1b0-afd371fbb809@sifive.com> (raw)
In-Reply-To: <20240312-fencei-v13-2-4b6bdc2bbf32@rivosinc.com>
On 2024-03-12 6:53 PM, Charlie Jenkins wrote:
> Support new prctl with key PR_RISCV_SET_ICACHE_FLUSH_CTX to enable
> optimization of cross modifying code. This prctl enables userspace code
> to use icache flushing instructions such as fence.i with the guarantee
> that the icache will continue to be clean after thread migration.
>
> Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
> Reviewed-by: Atish Patra <atishp@rivosinc.com>
> Reviewed-by: Alexandre Ghiti <alexghiti@rivosinc.com>
> ---
> arch/riscv/include/asm/mmu.h | 2 +
> arch/riscv/include/asm/processor.h | 10 ++++
> arch/riscv/include/asm/switch_to.h | 23 ++++++++
> arch/riscv/mm/cacheflush.c | 111 +++++++++++++++++++++++++++++++++++++
> arch/riscv/mm/context.c | 19 ++++---
> include/uapi/linux/prctl.h | 6 ++
> kernel/sys.c | 6 ++
> 7 files changed, 169 insertions(+), 8 deletions(-)
Thanks for the updates!
Reviewed-by: Samuel Holland <samuel.holland@sifive.com>
next prev parent reply other threads:[~2024-03-12 23:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 23:53 [PATCH v13 0/4] riscv: Create and document PR_RISCV_SET_ICACHE_FLUSH_CTX prctl Charlie Jenkins
2024-03-12 23:53 ` [PATCH v13 1/4] riscv: Remove unnecessary irqflags processor.h include Charlie Jenkins
2024-03-12 23:53 ` [PATCH v13 2/4] riscv: Include riscv_set_icache_flush_ctx prctl Charlie Jenkins
2024-03-12 23:56 ` Samuel Holland [this message]
2024-03-12 23:53 ` [PATCH v13 3/4] documentation: Document PR_RISCV_SET_ICACHE_FLUSH_CTX prctl Charlie Jenkins
2024-03-12 23:53 ` [PATCH v13 4/4] cpumask: Add assign cpu Charlie Jenkins
2024-04-28 22:00 ` [PATCH v13 0/4] riscv: Create and document PR_RISCV_SET_ICACHE_FLUSH_CTX prctl patchwork-bot+linux-riscv
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=1c24d9d8-36dd-4bf1-a1b0-afd371fbb809@sifive.com \
--to=samuel.holland@sifive.com \
--cc=alex@ghiti.fr \
--cc=alexghiti@rivosinc.com \
--cc=aou@eecs.berkeley.edu \
--cc=atishp@atishpatra.org \
--cc=atishp@rivosinc.com \
--cc=charlie@rivosinc.com \
--cc=cleger@rivosinc.com \
--cc=conor.dooley@microchip.com \
--cc=corbet@lwn.net \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=rdunlap@infradead.org \
/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
all inboxes | Powered by JetHome®