public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/3] riscv: Per-thread envcfg CSR support
@ 2024-07-18  0:47 Samuel Holland
  2024-07-18  0:47 ` [PATCH v3 1/3] riscv: Enable cbo.zero only when all harts support Zicboz Samuel Holland
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Samuel Holland @ 2024-07-18  0:47 UTC (permalink / raw)
  To: linux-riscv, Palmer Dabbelt
  Cc: Andrew Jones, Conor Dooley, linux-kernel, Deepak Gupta,
	Samuel Holland, Albert Ou, Andy Chiu, Charlie Jenkins,
	Clément Léger, Conor Dooley, Evan Green, Greentime Hu,
	Guo Ren, Leonardo Bras, Paul Walmsley, Rafael J. Wysocki,
	Sunil V L, Thomas Gleixner, Xiao Wang

This series (or equivalent) is a prerequisite for both user-mode pointer
masking and CFI support, as both of those are per-thread features and
are controlled by fields in the envcfg CSR. These patches are based on
v1 of the pointer masking series[1], with significant input from both
Deepak and Andrew.

[1]: https://lore.kernel.org/linux-riscv/20240319215915.832127-6-samuel.holland@sifive.com/

Changes in v3:
 - Rebase on riscv/for-next
 - Drop use of __initdata due to conflicts with cpufeature.c refactoring

Changes in v2:
 - Rebase on riscv/for-next

Samuel Holland (3):
  riscv: Enable cbo.zero only when all harts support Zicboz
  riscv: Add support for per-thread envcfg CSR values
  riscv: Call riscv_user_isa_enable() only on the boot hart

 arch/riscv/include/asm/cpufeature.h |  2 +-
 arch/riscv/include/asm/processor.h  |  1 +
 arch/riscv/include/asm/switch_to.h  |  8 ++++++++
 arch/riscv/kernel/cpufeature.c      | 11 ++++++++---
 arch/riscv/kernel/smpboot.c         |  2 --
 arch/riscv/kernel/suspend.c         |  4 ++--
 6 files changed, 20 insertions(+), 8 deletions(-)

-- 
2.45.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-12 22:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-18  0:47 [PATCH v3 0/3] riscv: Per-thread envcfg CSR support Samuel Holland
2024-07-18  0:47 ` [PATCH v3 1/3] riscv: Enable cbo.zero only when all harts support Zicboz Samuel Holland
2024-09-12 22:48   ` Charlie Jenkins
2024-07-18  0:47 ` [PATCH v3 2/3] riscv: Add support for per-thread envcfg CSR values Samuel Holland
2024-09-12 22:56   ` Charlie Jenkins
2024-07-18  0:47 ` [PATCH v3 3/3] riscv: Call riscv_user_isa_enable() only on the boot hart Samuel Holland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox