mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] st64bv0 support in iommu-sva
@ 2026-11-17 22:22 Arnd Bergmann
  2026-11-17 22:22 ` [PATCH 1/2] arm64: add HWCAP3_LS64_ACCDATA Arnd Bergmann
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Arnd Bergmann @ 2026-11-17 22:22 UTC (permalink / raw)
  To: Siddharth Chintamaneni
  Cc: Arnd Bergmann, Fuad Tabba, Marc Zyngier, Oliver Upton,
	Catalin Marinas, Will Deacon, Mark Rutland, Suzuki K Poulose,
	Joey Gouly, Zenghui Yu, Steffen Eiden, Yicong Yang, Zhou Wang,
	Navneet Singh, apais, hargar, linux-arm-kernel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

Hi Siddharth,

Here is a what I came up with for enabling ACCDATA in arm64 Linux,
similar to the earlier patch and rebased on current linux-next.

I hope this works for you, please let me know how it goes.

     Arnd

Arnd Bergmann (2):
  arm64: add HWCAP3_LS64_ACCDATA
  arm64: dynamically enable st64bv0 for SVA

 Documentation/arch/arm64/elf_hwcaps.rst |  7 ++++
 arch/arm64/include/asm/cpufeature.h     |  5 +++
 arch/arm64/include/asm/exception.h      |  1 +
 arch/arm64/include/asm/mmu_context.h    | 17 ++++++++
 arch/arm64/include/uapi/asm/hwcap.h     |  1 +
 arch/arm64/kernel/cpufeature.c          |  1 +
 arch/arm64/kernel/cpuinfo.c             |  1 +
 arch/arm64/kernel/entry-common.c        | 11 ++++++
 arch/arm64/kernel/traps.c               | 52 +++++++++++++++++++++++++
 arch/arm64/tools/sysreg                 |  5 +++
 10 files changed, 101 insertions(+)

-- 
2.53.0


Cc: Siddharth Chintamaneni <sidchintamaneni@gmail.com>
Cc: Fuad Tabba <fuad.tabba@linux.dev>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Oliver Upton <oupton@kernel.org>,
Cc: Catalin Marinas <catalin.marinas@arm.com>,
Cc: Will Deacon <will@kernel.org>,
Cc: Mark Rutland <mark.rutland@arm.com>,
Cc: Suzuki K Poulose <suzuki.poulose@arm.com>,
Cc: Joey Gouly <joey.gouly@arm.com>,
Cc: Zenghui Yu <yuzenghui@huawei.com>,
Cc: Steffen Eiden <seiden@linux.ibm.com>,
Cc: Yicong Yang <yangyicong@hisilicon.com>,
Cc: Zhou Wang <wangzhou1@hisilicon.com>,
Cc: Navneet Singh <navneetsingh@microsoft.com>,
Cc: apais@microsoft.com, rlmenge@gmail.com,
Cc: hargar@linux.microsoft.com, kvmarm@lists.linux.dev,
Cc: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org,
Cc: linux-kernel@vger.kernel.org,

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

* [PATCH 1/2] arm64: add HWCAP3_LS64_ACCDATA
  2026-11-17 22:22 [PATCH 0/2] st64bv0 support in iommu-sva Arnd Bergmann
@ 2026-11-17 22:22 ` Arnd Bergmann
  2026-11-22 19:42   ` Siddharth Chintamaneni
  2026-11-17 22:22 ` [PATCH 2/2] arm64: dynamically enable st64bv0 for SVA Arnd Bergmann
  2026-11-18 23:47 ` [PATCH 0/2] st64bv0 support in iommu-sva Siddharth Chintamaneni
  2 siblings, 1 reply; 7+ messages in thread
From: Arnd Bergmann @ 2026-11-17 22:22 UTC (permalink / raw)
  To: Siddharth Chintamaneni
  Cc: Arnd Bergmann, Fuad Tabba, Marc Zyngier, Oliver Upton,
	Catalin Marinas, Will Deacon, Mark Rutland, Suzuki K Poulose,
	Joey Gouly, Zenghui Yu, Steffen Eiden, Yicong Yang, Zhou Wang,
	Navneet Singh, apais, hargar, linux-arm-kernel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

LS64_ACCDATA extends the LS64 feature with the user-space ls64bv0 instruction
and the EL1 ACCDATA register. Like LS64, it was added with Armv8.7, and it
roughly corresponds to the 'enqcmd' feature for shared hardware workqueues
on x86 CPUs as described in the kernel's SVA documentation. [1]

Userspace can check availability of HWCAP3_LS64_ACCDATA to see if the shared
hardware workqueue feature is possible on a given driver.

Link: https://www.kernel.org/doc/html/v7.3/arch/x86/sva.html#enqcmd [1]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 Documentation/arch/arm64/elf_hwcaps.rst | 7 +++++++
 arch/arm64/include/uapi/asm/hwcap.h     | 1 +
 arch/arm64/kernel/cpufeature.c          | 1 +
 arch/arm64/kernel/cpuinfo.c             | 1 +
 4 files changed, 10 insertions(+)

diff --git a/Documentation/arch/arm64/elf_hwcaps.rst b/Documentation/arch/arm64/elf_hwcaps.rst
index f60ca5612daa..f63035696654 100644
--- a/Documentation/arch/arm64/elf_hwcaps.rst
+++ b/Documentation/arch/arm64/elf_hwcaps.rst
@@ -478,6 +478,13 @@ HWCAP3_SVE_LUT6
     Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
     ID_AA64ISAR2_EL1.LUT == 0b0010.
 
+HWCAP3_LS64_ACCDATA
+    Functionality implied by ID_AA64ISAR1_EL1.LS64 >= 0b0011. Note that
+    the function of instruction st64bv0 requires support by CPU, system
+    and target (device) memory location and HWCAP3_LS64_ACCDATA implies
+    the support of CPU. User should only use st64bv0 on supported target
+    (device) memory location, otherwise fallback to the non-atomic
+    alternatives.
 
 4. Unused AT_HWCAP bits
 -----------------------
diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h
index 10272ddb4d6f..c85c445275f6 100644
--- a/arch/arm64/include/uapi/asm/hwcap.h
+++ b/arch/arm64/include/uapi/asm/hwcap.h
@@ -155,5 +155,6 @@
 #define HWCAP3_F16F32DOT	(1UL << 9)
 #define HWCAP3_F16F32MM		(1UL << 10)
 #define HWCAP3_SVE_LUT6		(1UL << 11)
+#define HWCAP3_LS64_ACCDATA	(1UL << 12)
 
 #endif /* _UAPI__ASM_HWCAP_H */
diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
index 952f70a48190..bbd809c83a6c 100644
--- a/arch/arm64/kernel/cpufeature.c
+++ b/arch/arm64/kernel/cpufeature.c
@@ -3226,6 +3226,7 @@ static const struct arm64_cpu_capabilities arm64_elf_hwcaps[] = {
 	HWCAP_CAP(ID_AA64ISAR1_EL1, DGH, IMP, CAP_HWCAP, KERNEL_HWCAP_DGH),
 	HWCAP_CAP(ID_AA64ISAR1_EL1, I8MM, IMP, CAP_HWCAP, KERNEL_HWCAP_I8MM),
 	HWCAP_CAP(ID_AA64ISAR1_EL1, LS64, LS64, CAP_HWCAP, KERNEL_HWCAP_LS64),
+	HWCAP_CAP(ID_AA64ISAR1_EL1, LS64, LS64_ACCDATA, CAP_HWCAP, KERNEL_HWCAP_LS64_ACCDATA),
 	HWCAP_CAP(ID_AA64ISAR2_EL1, LUT, IMP, CAP_HWCAP, KERNEL_HWCAP_LUT),
 	HWCAP_CAP(ID_AA64ISAR3_EL1, FAMINMAX, IMP, CAP_HWCAP, KERNEL_HWCAP_FAMINMAX),
 	HWCAP_CAP(ID_AA64ISAR3_EL1, LSFE, IMP, CAP_HWCAP, KERNEL_HWCAP_LSFE),
diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
index 94e6cd211d70..009de5255d2d 100644
--- a/arch/arm64/kernel/cpuinfo.c
+++ b/arch/arm64/kernel/cpuinfo.c
@@ -158,6 +158,7 @@ static const char *const hwcap_str[] = {
 	[KERNEL_HWCAP_F16F32DOT]	= "f16f32dot",
 	[KERNEL_HWCAP_F16F32MM]		= "f16f32mm",
 	[KERNEL_HWCAP_SVE_LUT6]		= "svelut6",
+	[KERNEL_HWCAP_LS64_ACCDATA]	= "ls64_accdata",
 };
 
 #ifdef CONFIG_COMPAT
-- 
2.53.0


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

* [PATCH 2/2] arm64: dynamically enable st64bv0 for SVA
  2026-11-17 22:22 [PATCH 0/2] st64bv0 support in iommu-sva Arnd Bergmann
  2026-11-17 22:22 ` [PATCH 1/2] arm64: add HWCAP3_LS64_ACCDATA Arnd Bergmann
@ 2026-11-17 22:22 ` Arnd Bergmann
  2026-11-22 19:51   ` Siddharth Chintamaneni
  2026-11-18 23:47 ` [PATCH 0/2] st64bv0 support in iommu-sva Siddharth Chintamaneni
  2 siblings, 1 reply; 7+ messages in thread
From: Arnd Bergmann @ 2026-11-17 22:22 UTC (permalink / raw)
  To: Siddharth Chintamaneni
  Cc: Arnd Bergmann, Fuad Tabba, Marc Zyngier, Oliver Upton,
	Catalin Marinas, Will Deacon, Mark Rutland, Suzuki K Poulose,
	Joey Gouly, Zenghui Yu, Steffen Eiden, Yicong Yang, Zhou Wang,
	Navneet Singh, apais, hargar, linux-arm-kernel, linux-kernel

From: Arnd Bergmann <arnd@arndb.de>

I/O devices that understand the st64bv0 instruction for doing shared
virtual access from userspace need to set the pasid value in the
accdata_el1 register, but in general we want this to be disabled unless
a driver actually hands an MMIO area to userspace that accepts these
commands and installs a pasid using iommu_sva_bind_device().

Rather than trying to find all threads that use an mm_struct by the
time the pasid created, iommu_sva_bind_device() only stores the pasid in
'struct iommu_mm_data' and sets up the iommu domain in the device. The
first attempt to use SVA from userspace traps into do_el0_other(),
which checks that this is indeed valid and then sets the configured
pasid before enabling SCTLR_EL1_EnAS0.

On machines running KVM guests, KVM already handles saving and restoring
ACCDATA now. If the same process uses SVA itself, the context is restored
upon guest access. This only really makes sense if the host device using
SVA is attached to the same SMMU using a single stage translation, and
another device is assigned to the guest VMID for stage2 so it can use
the stage1 translation inside of the guest using ACCDATA as PASID.

This is pretty much a lifted from the x86 try_fixup_enqcmd_gp()
function.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
 arch/arm64/include/asm/cpufeature.h  |  5 +++
 arch/arm64/include/asm/exception.h   |  1 +
 arch/arm64/include/asm/mmu_context.h | 17 +++++++++
 arch/arm64/kernel/entry-common.c     | 11 ++++++
 arch/arm64/kernel/traps.c            | 52 ++++++++++++++++++++++++++++
 arch/arm64/tools/sysreg              |  5 +++
 6 files changed, 91 insertions(+)

diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h
index 7d7b8eb7f72f..e5367344e817 100644
--- a/arch/arm64/include/asm/cpufeature.h
+++ b/arch/arm64/include/asm/cpufeature.h
@@ -914,6 +914,11 @@ static inline bool system_supports_bbml3(void)
 	return alternative_has_cap_unlikely(ARM64_HAS_BBML3);
 }
 
+static inline bool system_supports_ls64_accdata(void)
+{
+	return cpus_have_final_cap(ARM64_HAS_LS64_ACCDATA);
+}
+
 int do_emulate_mrs(struct pt_regs *regs, u32 sys_reg, u32 rt);
 bool try_emulate_mrs(struct pt_regs *regs, u32 isn);
 
diff --git a/arch/arm64/include/asm/exception.h b/arch/arm64/include/asm/exception.h
index a2da3cb21c24..7c61b50718d6 100644
--- a/arch/arm64/include/asm/exception.h
+++ b/arch/arm64/include/asm/exception.h
@@ -81,6 +81,7 @@ void do_el0_sys(unsigned long esr, struct pt_regs *regs);
 void do_sp_pc_abort(unsigned long addr, unsigned long esr, struct pt_regs *regs);
 void bad_el0_sync(struct pt_regs *regs, int reason, unsigned long esr);
 void do_el0_cp15(unsigned long esr, struct pt_regs *regs);
+void do_el0_other(struct pt_regs *regs, unsigned long esr);
 int do_compat_alignment_fixup(unsigned long addr, struct pt_regs *regs);
 void do_el0_svc(struct pt_regs *regs);
 void do_el0_svc_compat(struct pt_regs *regs);
diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h
index 803b68758152..40c47ee003d5 100644
--- a/arch/arm64/include/asm/mmu_context.h
+++ b/arch/arm64/include/asm/mmu_context.h
@@ -16,6 +16,7 @@
 #include <linux/mm_types.h>
 #include <linux/pgtable.h>
 #include <linux/pkeys.h>
+#include <linux/iommu.h>
 
 #include <asm/cacheflush.h>
 #include <asm/cpufeature.h>
@@ -247,6 +248,20 @@ static inline void __switch_mm(struct mm_struct *next)
 	check_and_switch_context(next);
 }
 
+/* switch to PASID if new task has enabled st64bv0 */
+static inline void switch_iommu_mm(struct mm_struct *mm, struct task_struct *tsk)
+{
+	u32 pasid;
+
+	if (!IS_ENABLED(CONFIG_IOMMU_SVA) ||
+	    !(tsk->thread.sctlr_user & SCTLR_EL1_EnAS0))
+		return;
+
+	pasid = mm_get_enqcmd_pasid(mm);
+	if (pasid != IOMMU_PASID_INVALID)
+		write_sysreg(pasid, accdata_el1);
+}
+
 static inline void
 switch_mm(struct mm_struct *prev, struct mm_struct *next,
 	  struct task_struct *tsk)
@@ -254,6 +269,8 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
 	if (prev != next)
 		__switch_mm(next);
 
+	switch_iommu_mm(next, tsk);
+
 	/*
 	 * Update the saved TTBR0_EL1 of the scheduled-in task as the previous
 	 * value may have not been initialised yet (activate_mm caller) or the
diff --git a/arch/arm64/kernel/entry-common.c b/arch/arm64/kernel/entry-common.c
index beb56891fc4f..03ecc73c44a4 100644
--- a/arch/arm64/kernel/entry-common.c
+++ b/arch/arm64/kernel/entry-common.c
@@ -807,6 +807,14 @@ static void noinstr el0_fpac(struct pt_regs *regs, unsigned long esr)
 	arm64_exit_to_user_mode(regs);
 }
 
+static void noinstr el0_other(struct pt_regs *regs, unsigned long esr)
+{
+	arm64_enter_from_user_mode(regs);
+	local_daif_restore(DAIF_PROCCTX);
+	do_el0_other(regs, esr);
+	arm64_exit_to_user_mode(regs);
+}
+
 asmlinkage void noinstr el0t_64_sync_handler(struct pt_regs *regs)
 {
 	unsigned long esr = read_sysreg(esr_el1);
@@ -870,6 +878,9 @@ asmlinkage void noinstr el0t_64_sync_handler(struct pt_regs *regs)
 	case ESR_ELx_EC_FPAC:
 		el0_fpac(regs, esr);
 		break;
+	case ESR_ELx_EC_OTHER:
+		el0_other(regs, esr);
+		break;
 	default:
 		el0_inv(regs, esr);
 	}
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index d6391ab20db3..a02dbee8c06d 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -13,6 +13,7 @@
 #include <linux/kprobes.h>
 #include <linux/spinlock.h>
 #include <linux/uaccess.h>
+#include <linux/iommu.h>
 #include <linux/hardirq.h>
 #include <linux/kdebug.h>
 #include <linux/module.h>
@@ -543,6 +544,56 @@ void do_el1_mops(struct pt_regs *regs, unsigned long esr)
 	kernel_fastforward_single_step(regs);
 }
 
+/*
+ * PASID/ACCDATA is shared by the entire mm, while sctlr_el1
+ * is maintained per thread. Keep things simple and enable
+ * ACCDATA dynamically on first access if the feature is
+ * available and a valid pasid is set.
+ *
+ * After exiting back to userspace, the st64bv0 instruction
+ * should no longer trap.
+ */
+static bool try_enable_st64bv0(struct pt_regs *regs, unsigned long esr)
+{
+	u32 pasid;
+	u64 sctlr;
+
+	if (!system_supports_ls64_accdata())
+		return false;
+
+	pasid = mm_get_enqcmd_pasid(current->mm);
+	if (pasid == IOMMU_PASID_INVALID)
+		return false;
+
+	preempt_disable();
+	write_sysreg(pasid, accdata_el1);
+	sctlr = current->thread.sctlr_user;
+	sctlr |= SCTLR_EL1_EnAS0;
+	current->thread.sctlr_user = sctlr;
+	update_sctlr_el1(sctlr);
+	preempt_enable();
+
+	return true;
+}
+
+void do_el0_other(struct pt_regs *regs, unsigned long esr)
+{
+	switch (ESR_ELx_ISS(esr)) {
+	case ESR_ELx_ISS_OTHER_ST64BV0:
+		if (try_enable_st64bv0(regs, esr))
+			return;
+		break;
+
+	case ESR_ELx_ISS_OTHER_ST64BV:
+	case ESR_ELx_ISS_OTHER_LDST64B:
+	default:
+		break;
+	}
+
+	/* Treat all other "other" trapping instructions as illegal opcode */
+	force_signal_inject(SIGILL, ILL_ILLOPC, regs->pc, 0);
+}
+
 #define __user_cache_maint(insn, address, res)			\
 	if (address >= TASK_SIZE_MAX) {				\
 		res = -EFAULT;					\
@@ -842,6 +893,7 @@ static const char *esr_class_str[] = {
 	[ESR_ELx_EC_FP_ASIMD]		= "ASIMD",
 	[ESR_ELx_EC_CP10_ID]		= "CP10 MRC/VMRS",
 	[ESR_ELx_EC_PAC]		= "PAC",
+	[ESR_ELx_EC_OTHER]		= "OTHER",
 	[ESR_ELx_EC_CP14_64]		= "CP14 MCRR/MRRC",
 	[ESR_ELx_EC_BTI]		= "BTI",
 	[ESR_ELx_EC_ILL]		= "PSTATE.IL",
diff --git a/arch/arm64/tools/sysreg b/arch/arm64/tools/sysreg
index 28d319e63d8f..7612bacdb018 100644
--- a/arch/arm64/tools/sysreg
+++ b/arch/arm64/tools/sysreg
@@ -3707,6 +3707,11 @@ Sysreg	TPIDR_EL1	3	0	13	0	4
 Field	63:0	ThreadID
 EndSysreg
 
+Sysreg	ACCDATA_EL1	3	0	13	0	5
+Res0	63:32
+Field	31:0	ACCDATA
+EndSysreg
+
 Sysreg	RCWMASK_EL1	3	0	13	0	6
 Field	63:0	RCWMASK
 EndSysreg
-- 
2.53.0


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

* Re: [PATCH 0/2] st64bv0 support in iommu-sva
  2026-11-17 22:22 [PATCH 0/2] st64bv0 support in iommu-sva Arnd Bergmann
  2026-11-17 22:22 ` [PATCH 1/2] arm64: add HWCAP3_LS64_ACCDATA Arnd Bergmann
  2026-11-17 22:22 ` [PATCH 2/2] arm64: dynamically enable st64bv0 for SVA Arnd Bergmann
@ 2026-11-18 23:47 ` Siddharth Chintamaneni
  2 siblings, 0 replies; 7+ messages in thread
From: Siddharth Chintamaneni @ 2026-11-18 23:47 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Arnd Bergmann, Fuad Tabba, Marc Zyngier, Oliver Upton,
	Catalin Marinas, Will Deacon, Mark Rutland, Suzuki K Poulose,
	Joey Gouly, Zenghui Yu, Steffen Eiden, Yicong Yang, Zhou Wang,
	Navneet Singh, apais, hargar, linux-arm-kernel, linux-kernel

On Tue, 17 Nov 2026 at 14:22, Arnd Bergmann <arnd@kernel.org> wrote:
>
> From: Arnd Bergmann <arnd@arndb.de>
>
> Hi Siddharth,
>
> Here is a what I came up with for enabling ACCDATA in arm64 Linux,
> similar to the earlier patch and rebased on current linux-next.
>
> I hope this works for you, please let me know how it goes.
>
>      Arnd
>

Hi Arnd,

Thanks a lot for putting this together and rebasing it on linux-next,
much appreciated!

I'll review and test both patches on our hardware and get back to you
with results/feedback before this week.

Siddharth

> Arnd Bergmann (2):
>   arm64: add HWCAP3_LS64_ACCDATA
>   arm64: dynamically enable st64bv0 for SVA
>
>  Documentation/arch/arm64/elf_hwcaps.rst |  7 ++++
>  arch/arm64/include/asm/cpufeature.h     |  5 +++
>  arch/arm64/include/asm/exception.h      |  1 +
>  arch/arm64/include/asm/mmu_context.h    | 17 ++++++++
>  arch/arm64/include/uapi/asm/hwcap.h     |  1 +
>  arch/arm64/kernel/cpufeature.c          |  1 +
>  arch/arm64/kernel/cpuinfo.c             |  1 +
>  arch/arm64/kernel/entry-common.c        | 11 ++++++
>  arch/arm64/kernel/traps.c               | 52 +++++++++++++++++++++++++
>  arch/arm64/tools/sysreg                 |  5 +++
>  10 files changed, 101 insertions(+)
>
> --
> 2.53.0
>
>
> Cc: Siddharth Chintamaneni <sidchintamaneni@gmail.com>
> Cc: Fuad Tabba <fuad.tabba@linux.dev>
> Cc: Marc Zyngier <maz@kernel.org>
> Cc: Oliver Upton <oupton@kernel.org>,
> Cc: Catalin Marinas <catalin.marinas@arm.com>,
> Cc: Will Deacon <will@kernel.org>,
> Cc: Mark Rutland <mark.rutland@arm.com>,
> Cc: Suzuki K Poulose <suzuki.poulose@arm.com>,
> Cc: Joey Gouly <joey.gouly@arm.com>,
> Cc: Zenghui Yu <yuzenghui@huawei.com>,
> Cc: Steffen Eiden <seiden@linux.ibm.com>,
> Cc: Yicong Yang <yangyicong@hisilicon.com>,
> Cc: Zhou Wang <wangzhou1@hisilicon.com>,
> Cc: Navneet Singh <navneetsingh@microsoft.com>,
> Cc: apais@microsoft.com, rlmenge@gmail.com,
> Cc: hargar@linux.microsoft.com, kvmarm@lists.linux.dev,
> Cc: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org,
> Cc: linux-kernel@vger.kernel.org,

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

* Re: [PATCH 1/2] arm64: add HWCAP3_LS64_ACCDATA
  2026-11-17 22:22 ` [PATCH 1/2] arm64: add HWCAP3_LS64_ACCDATA Arnd Bergmann
@ 2026-11-22 19:42   ` Siddharth Chintamaneni
  2026-11-25 16:19     ` Arnd Bergmann
  0 siblings, 1 reply; 7+ messages in thread
From: Siddharth Chintamaneni @ 2026-11-22 19:42 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Arnd Bergmann, Fuad Tabba, Marc Zyngier, Oliver Upton,
	Catalin Marinas, Will Deacon, Mark Rutland, Suzuki K Poulose,
	Joey Gouly, Zenghui Yu, Steffen Eiden, Yicong Yang, Zhou Wang,
	Navneet Singh, apais, hargar, linux-arm-kernel, linux-kernel

On Tue, 17 Nov 2026 at 14:22, Arnd Bergmann <arnd@kernel.org> wrote:
>
> From: Arnd Bergmann <arnd@arndb.de>
>
> LS64_ACCDATA extends the LS64 feature with the user-space ls64bv0 instruction
> and the EL1 ACCDATA register. Like LS64, it was added with Armv8.7, and it
> roughly corresponds to the 'enqcmd' feature for shared hardware workqueues
> on x86 CPUs as described in the kernel's SVA documentation. [1]


A few small notes on this patch (the first three were also highlighted by the
Sashiko review [1]):

- Nit: s/ls64bv0/st64bv0/ in the commit message.
- Should this come as Patch 2/2 after enabling st64bv0 in the kernel so
  HWCAP3_LS64_ACCDATA is not advertised to userspace at an intermediate
  commit?

>
> Userspace can check availability of HWCAP3_LS64_ACCDATA to see if the shared
> hardware workqueue feature is possible on a given driver.
>
> Link: https://www.kernel.org/doc/html/v7.3/arch/x86/sva.html#enqcmd [1]
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  Documentation/arch/arm64/elf_hwcaps.rst | 7 +++++++
>  arch/arm64/include/uapi/asm/hwcap.h     | 1 +
>  arch/arm64/kernel/cpufeature.c          | 1 +
>  arch/arm64/kernel/cpuinfo.c             | 1 +
>  4 files changed, 10 insertions(+)
>
> diff --git a/Documentation/arch/arm64/elf_hwcaps.rst b/Documentation/arch/arm64/elf_hwcaps.rst
> index f60ca5612daa..f63035696654 100644
> --- a/Documentation/arch/arm64/elf_hwcaps.rst
> +++ b/Documentation/arch/arm64/elf_hwcaps.rst
> @@ -478,6 +478,13 @@ HWCAP3_SVE_LUT6
>      Functionality implied by ID_AA64PFR0_EL1.SVE == 0b0001 and
>      ID_AA64ISAR2_EL1.LUT == 0b0010.
>
> +HWCAP3_LS64_ACCDATA
> +    Functionality implied by ID_AA64ISAR1_EL1.LS64 >= 0b0011. Note that
> +    the function of instruction st64bv0 requires support by CPU, system
> +    and target (device) memory location and HWCAP3_LS64_ACCDATA implies
> +    the support of CPU. User should only use st64bv0 on supported target
> +    (device) memory location, otherwise fallback to the non-atomic
> +    alternatives.
>
>  4. Unused AT_HWCAP bits
>  -----------------------
> diff --git a/arch/arm64/include/uapi/asm/hwcap.h b/arch/arm64/include/uapi/asm/hwcap.h
> index 10272ddb4d6f..c85c445275f6 100644
> --- a/arch/arm64/include/uapi/asm/hwcap.h
> +++ b/arch/arm64/include/uapi/asm/hwcap.h
> @@ -155,5 +155,6 @@
>  #define HWCAP3_F16F32DOT       (1UL << 9)
>  #define HWCAP3_F16F32MM                (1UL << 10)
>  #define HWCAP3_SVE_LUT6                (1UL << 11)
> +#define HWCAP3_LS64_ACCDATA    (1UL << 12)
>
>  #endif /* _UAPI__ASM_HWCAP_H */
> diff --git a/arch/arm64/kernel/cpufeature.c b/arch/arm64/kernel/cpufeature.c
> index 952f70a48190..bbd809c83a6c 100644
> --- a/arch/arm64/kernel/cpufeature.c
> +++ b/arch/arm64/kernel/cpufeature.c
> @@ -3226,6 +3226,7 @@ static const struct arm64_cpu_capabilities arm64_elf_hwcaps[] = {
>         HWCAP_CAP(ID_AA64ISAR1_EL1, DGH, IMP, CAP_HWCAP, KERNEL_HWCAP_DGH),
>         HWCAP_CAP(ID_AA64ISAR1_EL1, I8MM, IMP, CAP_HWCAP, KERNEL_HWCAP_I8MM),
>         HWCAP_CAP(ID_AA64ISAR1_EL1, LS64, LS64, CAP_HWCAP, KERNEL_HWCAP_LS64),
> +       HWCAP_CAP(ID_AA64ISAR1_EL1, LS64, LS64_ACCDATA, CAP_HWCAP, KERNEL_HWCAP_LS64_ACCDATA),
>         HWCAP_CAP(ID_AA64ISAR2_EL1, LUT, IMP, CAP_HWCAP, KERNEL_HWCAP_LUT),
>         HWCAP_CAP(ID_AA64ISAR3_EL1, FAMINMAX, IMP, CAP_HWCAP, KERNEL_HWCAP_FAMINMAX),
>         HWCAP_CAP(ID_AA64ISAR3_EL1, LSFE, IMP, CAP_HWCAP, KERNEL_HWCAP_LSFE),
> diff --git a/arch/arm64/kernel/cpuinfo.c b/arch/arm64/kernel/cpuinfo.c
> index 94e6cd211d70..009de5255d2d 100644
> --- a/arch/arm64/kernel/cpuinfo.c
> +++ b/arch/arm64/kernel/cpuinfo.c
> @@ -158,6 +158,7 @@ static const char *const hwcap_str[] = {
>         [KERNEL_HWCAP_F16F32DOT]        = "f16f32dot",
>         [KERNEL_HWCAP_F16F32MM]         = "f16f32mm",
>         [KERNEL_HWCAP_SVE_LUT6]         = "svelut6",
> +       [KERNEL_HWCAP_LS64_ACCDATA]     = "ls64_accdata",

should we drop underscore to maintain consistency?

>  };
>
>  #ifdef CONFIG_COMPAT
> --
> 2.53.0
>

[1] https://sashiko.dev/#/patchset/20261117222224.1465328-1-arnd%40kernel.org

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

* Re: [PATCH 2/2] arm64: dynamically enable st64bv0 for SVA
  2026-11-17 22:22 ` [PATCH 2/2] arm64: dynamically enable st64bv0 for SVA Arnd Bergmann
@ 2026-11-22 19:51   ` Siddharth Chintamaneni
  0 siblings, 0 replies; 7+ messages in thread
From: Siddharth Chintamaneni @ 2026-11-22 19:51 UTC (permalink / raw)
  To: Arnd Bergmann
  Cc: Arnd Bergmann, Fuad Tabba, Marc Zyngier, Oliver Upton,
	Catalin Marinas, Will Deacon, Mark Rutland, Suzuki K Poulose,
	Joey Gouly, Zenghui Yu, Steffen Eiden, Yicong Yang, Zhou Wang,
	Navneet Singh, apais, hargar, Rachel Menge, linux-arm-kernel,
	linux-kernel

On Tue, 17 Nov 2026 at 14:22, Arnd Bergmann <arnd@kernel.org> wrote:
>
> From: Arnd Bergmann <arnd@arndb.de>
>
> I/O devices that understand the st64bv0 instruction for doing shared
> virtual access from userspace need to set the pasid value in the
> accdata_el1 register, but in general we want this to be disabled unless
> a driver actually hands an MMIO area to userspace that accepts these
> commands and installs a pasid using iommu_sva_bind_device().
>
> Rather than trying to find all threads that use an mm_struct by the
> time the pasid created, iommu_sva_bind_device() only stores the pasid in
> 'struct iommu_mm_data' and sets up the iommu domain in the device. The
> first attempt to use SVA from userspace traps into do_el0_other(),
> which checks that this is indeed valid and then sets the configured
> pasid before enabling SCTLR_EL1_EnAS0.

I've tested it on Cobalt h/w (ID_AA64ISAR1_EL1.LS64 = 0b0011, SMMUv3
with PRI) on top of Fuad's FEAT_LS64_ACCDATA series and our Data
Accelerator VF driver.\

While testing multi-process isolation on hardware, we hit the SCTLR_EL1_EnAS0
context-switch bug below, which Sashiko's review [1] also highlighted along
with several of the other corners listed here (note that Sashiko's cpucaps and
guest vcpu_sysreg warnings are false positives from applying against docs-next
without Fuad's series):

>
> On machines running KVM guests, KVM already handles saving and restoring
> ACCDATA now. If the same process uses SVA itself, the context is restored
> upon guest access. This only really makes sense if the host device using
> SVA is attached to the same SMMU using a single stage translation, and
> another device is assigned to the guest VMID for stage2 so it can use
> the stage1 translation inside of the guest using ACCDATA as PASID.
>
> This is pretty much a lifted from the x86 try_fixup_enqcmd_gp()
> function.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
>  arch/arm64/include/asm/cpufeature.h  |  5 +++
>  arch/arm64/include/asm/exception.h   |  1 +
>  arch/arm64/include/asm/mmu_context.h | 17 +++++++++
>  arch/arm64/kernel/entry-common.c     | 11 ++++++
>  arch/arm64/kernel/traps.c            | 52 ++++++++++++++++++++++++++++
>  arch/arm64/tools/sysreg              |  5 +++
>  6 files changed, 91 insertions(+)
>
> diff --git a/arch/arm64/include/asm/cpufeature.h b/arch/arm64/include/asm/cpufeature.h
> index 7d7b8eb7f72f..e5367344e817 100644
> --- a/arch/arm64/include/asm/cpufeature.h
> +++ b/arch/arm64/include/asm/cpufeature.h
> @@ -914,6 +914,11 @@ static inline bool system_supports_bbml3(void)
>         return alternative_has_cap_unlikely(ARM64_HAS_BBML3);
>  }
>
> +static inline bool system_supports_ls64_accdata(void)
> +{
> +       return cpus_have_final_cap(ARM64_HAS_LS64_ACCDATA);
> +}
> +
>  int do_emulate_mrs(struct pt_regs *regs, u32 sys_reg, u32 rt);
>  bool try_emulate_mrs(struct pt_regs *regs, u32 isn);
>
> diff --git a/arch/arm64/include/asm/exception.h b/arch/arm64/include/asm/exception.h
> index a2da3cb21c24..7c61b50718d6 100644
> --- a/arch/arm64/include/asm/exception.h
> +++ b/arch/arm64/include/asm/exception.h
> @@ -81,6 +81,7 @@ void do_el0_sys(unsigned long esr, struct pt_regs *regs);
>  void do_sp_pc_abort(unsigned long addr, unsigned long esr, struct pt_regs *regs);
>  void bad_el0_sync(struct pt_regs *regs, int reason, unsigned long esr);
>  void do_el0_cp15(unsigned long esr, struct pt_regs *regs);
> +void do_el0_other(struct pt_regs *regs, unsigned long esr);
>  int do_compat_alignment_fixup(unsigned long addr, struct pt_regs *regs);
>  void do_el0_svc(struct pt_regs *regs);
>  void do_el0_svc_compat(struct pt_regs *regs);
> diff --git a/arch/arm64/include/asm/mmu_context.h b/arch/arm64/include/asm/mmu_context.h
> index 803b68758152..40c47ee003d5 100644
> --- a/arch/arm64/include/asm/mmu_context.h
> +++ b/arch/arm64/include/asm/mmu_context.h
> @@ -16,6 +16,7 @@
>  #include <linux/mm_types.h>
>  #include <linux/pgtable.h>
>  #include <linux/pkeys.h>
> +#include <linux/iommu.h>
>
>  #include <asm/cacheflush.h>
>  #include <asm/cpufeature.h>
> @@ -247,6 +248,20 @@ static inline void __switch_mm(struct mm_struct *next)
>         check_and_switch_context(next);
>  }
>
> +/* switch to PASID if new task has enabled st64bv0 */
> +static inline void switch_iommu_mm(struct mm_struct *mm, struct task_struct *tsk)
> +{
> +       u32 pasid;
> +
> +       if (!IS_ENABLED(CONFIG_IOMMU_SVA) ||
> +           !(tsk->thread.sctlr_user & SCTLR_EL1_EnAS0))
> +               return;
> +
> +       pasid = mm_get_enqcmd_pasid(mm);
> +       if (pasid != IOMMU_PASID_INVALID)
> +               write_sysreg(pasid, accdata_el1);
> +}
> +
>  static inline void
>  switch_mm(struct mm_struct *prev, struct mm_struct *next,
>           struct task_struct *tsk)
> @@ -254,6 +269,8 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
>         if (prev != next)
>                 __switch_mm(next);
>
> +       switch_iommu_mm(next, tsk);
> +
>         /*
>          * Update the saved TTBR0_EL1 of the scheduled-in task as the previous
>          * value may have not been initialised yet (activate_mm caller) or the
> diff --git a/arch/arm64/kernel/entry-common.c b/arch/arm64/kernel/entry-common.c
> index beb56891fc4f..03ecc73c44a4 100644
> --- a/arch/arm64/kernel/entry-common.c
> +++ b/arch/arm64/kernel/entry-common.c
> @@ -807,6 +807,14 @@ static void noinstr el0_fpac(struct pt_regs *regs, unsigned long esr)
>         arm64_exit_to_user_mode(regs);
>  }
>
> +static void noinstr el0_other(struct pt_regs *regs, unsigned long esr)
> +{
> +       arm64_enter_from_user_mode(regs);
> +       local_daif_restore(DAIF_PROCCTX);
> +       do_el0_other(regs, esr);
> +       arm64_exit_to_user_mode(regs);
> +}
> +
>  asmlinkage void noinstr el0t_64_sync_handler(struct pt_regs *regs)
>  {
>         unsigned long esr = read_sysreg(esr_el1);
> @@ -870,6 +878,9 @@ asmlinkage void noinstr el0t_64_sync_handler(struct pt_regs *regs)
>         case ESR_ELx_EC_FPAC:
>                 el0_fpac(regs, esr);
>                 break;
> +       case ESR_ELx_EC_OTHER:
> +               el0_other(regs, esr);
> +               break;
>         default:
>                 el0_inv(regs, esr);
>         }
> diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
> index d6391ab20db3..a02dbee8c06d 100644
> --- a/arch/arm64/kernel/traps.c
> +++ b/arch/arm64/kernel/traps.c
> @@ -13,6 +13,7 @@
>  #include <linux/kprobes.h>
>  #include <linux/spinlock.h>
>  #include <linux/uaccess.h>
> +#include <linux/iommu.h>
>  #include <linux/hardirq.h>
>  #include <linux/kdebug.h>
>  #include <linux/module.h>
> @@ -543,6 +544,56 @@ void do_el1_mops(struct pt_regs *regs, unsigned long esr)
>         kernel_fastforward_single_step(regs);
>  }
>
> +/*
> + * PASID/ACCDATA is shared by the entire mm, while sctlr_el1
> + * is maintained per thread. Keep things simple and enable
> + * ACCDATA dynamically on first access if the feature is
> + * available and a valid pasid is set.
> + *
> + * After exiting back to userspace, the st64bv0 instruction
> + * should no longer trap.
> + */
> +static bool try_enable_st64bv0(struct pt_regs *regs, unsigned long esr)
> +{
> +       u32 pasid;
> +       u64 sctlr;
> +
> +       if (!system_supports_ls64_accdata())
> +               return false;
> +
> +       pasid = mm_get_enqcmd_pasid(current->mm);
> +       if (pasid == IOMMU_PASID_INVALID)
> +               return false;
> +
> +       preempt_disable();
> +       write_sysreg(pasid, accdata_el1);
> +       sctlr = current->thread.sctlr_user;
> +       sctlr |= SCTLR_EL1_EnAS0;
> +       current->thread.sctlr_user = sctlr;
> +       update_sctlr_el1(sctlr);
> +       preempt_enable();
> +
> +       return true;
> +}
> +

1. SCTLR_EL1_EnAS0 is missing from SCTLR_USER_MASK (and fork/exec reset):

update_sctlr_el1() clears only (SCTLR_USER_MASK & ~SCTLR_ELx_ENIA). Because
SCTLR_EL1_EnAS0 is not in SCTLR_USER_MASK, once a task enables st64bv0 on a
CPU, __switch_to() -> update_sctlr_el1() never clears SCTLR_EL1.EnAS0 when
switching to another task, and switch_iommu_mm() returns early because the
next task does not have SCTLR_EL1_EnAS0 set in thread.sctlr_user. On Cobalt
200, an unprivileged process with no SVA binding scheduled onto that CPU
executed st64bv0 without trapping while the previous task's PASID was still in
ACCDATA_EL1.

Similarly:
- arch_dup_task_struct() copies thread.sctlr_user, so a fork() child inherits
  SCTLR_EL1_EnAS0 with a fresh mm whose PASID is IOMMU_PASID_INVALID (leaving
  the parent's PASID in ACCDATA_EL1 when switch_iommu_mm() skips the write).
- flush_thread() does not clear SCTLR_EL1_EnAS0 across execve().
- try_enable_st64bv0() can return false if SCTLR_EL1_EnAS0 is already set in
  current->thread.sctlr_user (matching current->pasid_activated on x86).

Folding in the diff below fixed all three cases (context switch to an unbound
task on the same CPU, fork(), and execve() all trap with SIGILL again on
Cobalt 200):


diff --git a/arch/arm64/include/asm/processor.h
b/arch/arm64/include/asm/processor.h
index 2f368889aa3a..c7243bd4849a 100644
--- a/arch/arm64/include/asm/processor.h
+++ b/arch/arm64/include/asm/processor.h
@@ -264,7 +264,7 @@ static inline void task_set_sve_vl_onexec(struct
task_struct *task,

 #define SCTLR_USER_MASK
         \
  (SCTLR_ELx_ENIA | SCTLR_ELx_ENIB | SCTLR_ELx_ENDA | SCTLR_ELx_ENDB |   \
- SCTLR_EL1_TCF0_MASK | SCTLR_EL1_TCSO0_MASK)
+ SCTLR_EL1_TCF0_MASK | SCTLR_EL1_TCSO0_MASK | SCTLR_EL1_EnAS0)

 static inline void arch_thread_struct_whitelist(unsigned long *offset,
  unsigned long *size)
diff --git a/arch/arm64/kernel/process.c b/arch/arm64/kernel/process.c
index b52d4f0cf5b4..6a1cfeb28bf2 100644
--- a/arch/arm64/kernel/process.c
+++ b/arch/arm64/kernel/process.c
@@ -350,6 +350,13 @@ void flush_thread(void)
  flush_tagged_addr_state();
  flush_poe();
  flush_gcs();
+
+ if (current->thread.sctlr_user & SCTLR_EL1_EnAS0) {
+ preempt_disable();
+ current->thread.sctlr_user &= ~SCTLR_EL1_EnAS0;
+ update_sctlr_el1(current->thread.sctlr_user);
+ preempt_enable();
+ }
 }

 void exit_thread(struct task_struct *tsk)
@@ -395,6 +402,7 @@ int arch_dup_task_struct(struct task_struct *dst,
struct task_struct *src)

  /* clear any pending asynchronous tag fault raised by the parent */
  clear_tsk_thread_flag(dst, TIF_MTE_ASYNC_FAULT);
+ dst->thread.sctlr_user &= ~SCTLR_EL1_EnAS0;

  return 0;
 }
diff --git a/arch/arm64/kernel/traps.c b/arch/arm64/kernel/traps.c
index a02dbee8c06d..be84e84c5fa1 100644
--- a/arch/arm64/kernel/traps.c
+++ b/arch/arm64/kernel/traps.c
@@ -558,7 +558,8 @@ static bool try_enable_st64bv0(struct pt_regs
*regs, unsigned long esr)
  u32 pasid;
  u64 sctlr;

- if (!system_supports_ls64_accdata())
+ if (!system_supports_ls64_accdata() ||
+    (current->thread.sctlr_user & SCTLR_EL1_EnAS0))
  return false;

  pasid = mm_get_enqcmd_pasid(current->mm);

2. Other corners (first three also highlighted by Sashiko [1]):

- EL2 -> EL1 boot setup (arch/arm64/include/asm/el2_setup.h): our bare-metal
  host ran at EL2 with VHE, so HCRX_EL2 did not affect host EL2/EL0. For
  kernels booting at EL2 and dropping to EL1 (e.g. CONFIG_KVM=n, nVHE/pKVM, or
  guest VMs booting at EL2), __init_el2_hcrx and __init_el2_fgt do not yet set
  HCRX_EL2_EnAS0 or HFGRTR_EL2_nACCDATA_EL1 / HFGWTR_EL2_nACCDATA_EL1, so EL1
  ACCDATA_EL1 accesses and EL0 st64bv0 will trap to EL2.
- KVM host ACCDATA_EL1 save/restore: regarding the commit message note about a
  host process using both SVA and KVM, even with Fuad's series applied,
  ctxt_has_accdata() in arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h returns
  false when !ctxt_is_guest(ctxt), so KVM loads the guest's ACCDATA_EL1
  without saving or restoring the host's ACCDATA_EL1 across vCPU run.
- Assembler target: arch/arm64/Makefile caps -Wa,-march at armv8.5-a, which
  breaks Clang IAS (LLVM=1) on write_sysreg(..., accdata_el1); using
  write_sysreg_s(pasid, SYS_ACCDATA_EL1) avoids that (and the duplicate manual
  #define SYS_ACCDATA_EL1 in arch/arm64/include/asm/sysreg.h can be dropped now
  that tools/sysreg generates it).
- CPU suspend: cpu_do_suspend / cpu_do_resume in arch/arm64/mm/proc.S
  saves/restores sctlr_el1 across CPU powerdown idle states without
  saving/restoring accdata_el1.

[1] https://sashiko.dev/#/patchset/20261117222224.1465328-1-arnd%40kernel.org

...

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

* Re: [PATCH 1/2] arm64: add HWCAP3_LS64_ACCDATA
  2026-11-22 19:42   ` Siddharth Chintamaneni
@ 2026-11-25 16:19     ` Arnd Bergmann
  0 siblings, 0 replies; 7+ messages in thread
From: Arnd Bergmann @ 2026-11-25 16:19 UTC (permalink / raw)
  To: Siddharth Chintamaneni, Arnd Bergmann
  Cc: Fuad Tabba, Marc Zyngier, Oliver Upton, Catalin Marinas,
	Will Deacon, Mark Rutland, Suzuki K Poulose, Joey Gouly,
	Zenghui Yu, Steffen Eiden, Yicong Yang, Zhou Wang, Navneet Singh,
	apais, hargar, linux-arm-kernel, linux-kernel

On Sun, Nov 22, 2026, at 20:42, Siddharth Chintamaneni wrote:
> On Tue, 17 Nov 2026 at 14:22, Arnd Bergmann <arnd@kernel.org> wrote:
>>
>> From: Arnd Bergmann <arnd@arndb.de>
>>
>> LS64_ACCDATA extends the LS64 feature with the user-space ls64bv0 instruction
>> and the EL1 ACCDATA register. Like LS64, it was added with Armv8.7, and it
>> roughly corresponds to the 'enqcmd' feature for shared hardware workqueues
>> on x86 CPUs as described in the kernel's SVA documentation. [1]
>
>
> A few small notes on this patch (the first three were also highlighted by the
> Sashiko review [1]):
>
> - Nit: s/ls64bv0/st64bv0/ in the commit message.

Fixed.

> - Should this come as Patch 2/2 after enabling st64bv0 in the kernel so
>   HWCAP3_LS64_ACCDATA is not advertised to userspace at an intermediate
>   commit?

Right, makes sense.

>> @@ -158,6 +158,7 @@ static const char *const hwcap_str[] = {
>>         [KERNEL_HWCAP_F16F32DOT]        = "f16f32dot",
>>         [KERNEL_HWCAP_F16F32MM]         = "f16f32mm",
>>         [KERNEL_HWCAP_SVE_LUT6]         = "svelut6",
>> +       [KERNEL_HWCAP_LS64_ACCDATA]     = "ls64_accdata",
>
> should we drop underscore to maintain consistency?

makes sense, done.

Thanks a lot!

     arnd

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

end of thread, other threads:[~2026-11-25 16:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17 22:22 [PATCH 0/2] st64bv0 support in iommu-sva Arnd Bergmann
2026-11-17 22:22 ` [PATCH 1/2] arm64: add HWCAP3_LS64_ACCDATA Arnd Bergmann
2026-11-22 19:42   ` Siddharth Chintamaneni
2026-11-25 16:19     ` Arnd Bergmann
2026-11-17 22:22 ` [PATCH 2/2] arm64: dynamically enable st64bv0 for SVA Arnd Bergmann
2026-11-22 19:51   ` Siddharth Chintamaneni
2026-11-18 23:47 ` [PATCH 0/2] st64bv0 support in iommu-sva Siddharth Chintamaneni

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®