[PATCH v4 0/9] arm64: Support 2024 dpISA extensions

Mark Brown posted 9 patches 1 year ago
There is a newer version of this series
Documentation/arch/arm64/elf_hwcaps.rst   |  51 ++++++
arch/arm64/include/asm/hwcap.h            |  17 ++
arch/arm64/include/uapi/asm/hwcap.h       |  17 ++
arch/arm64/kernel/cpufeature.c            |  35 ++++
arch/arm64/kernel/cpuinfo.c               |  17 ++
arch/arm64/kvm/sys_regs.c                 |   6 +-
arch/arm64/tools/sysreg                   |  87 +++++++++-
tools/testing/selftests/arm64/abi/hwcap.c | 273 +++++++++++++++++++++++++++++-
8 files changed, 493 insertions(+), 10 deletions(-)
[PATCH v4 0/9] arm64: Support 2024 dpISA extensions
Posted by Mark Brown 1 year ago
The 2024 architecture release includes a number of data processing
extensions, mostly SVE and SME additions with a few others.  These are
all very straightforward extensions which add instructions but no
architectural state so only need hwcaps and exposing of the ID registers
to KVM guests and userspace.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Changes in v4:
- Fix encodings for ID_AA64ISAR3_EL1.
- Link to v3: https://lore.kernel.org/r/20241203-arm64-2024-dpisa-v3-0-a6c78b1aa297@kernel.org

Changes in v3:
- Commit log update for the hwcap test.
- Link to v2: https://lore.kernel.org/r/20241030-arm64-2024-dpisa-v2-0-b6601a15d2a5@kernel.org

Changes in v2:
- Filter KVM guest visible bitfields in ID_AA64ISAR3_EL1 to only those
  we make writeable.
- Link to v1: https://lore.kernel.org/r/20241028-arm64-2024-dpisa-v1-0-a38d08b008a8@kernel.org

---
Mark Brown (9):
      arm64/sysreg: Update ID_AA64PFR2_EL1 to DDI0601 2024-09
      arm64/sysreg: Update ID_AA64ISAR3_EL1 to DDI0601 2024-09
      arm64/sysreg: Update ID_AA64FPFR0_EL1 to DDI0601 2024-09
      arm64/sysreg: Update ID_AA64ZFR0_EL1 to DDI0601 2024-09
      arm64/sysreg: Update ID_AA64SMFR0_EL1 to DDI0601 2024-09
      arm64/sysreg: Update ID_AA64ISAR2_EL1 to DDI0601 2024-09
      arm64/hwcap: Describe 2024 dpISA extensions to userspace
      KVM: arm64: Allow control of dpISA extensions in ID_AA64ISAR3_EL1
      kselftest/arm64: Add 2024 dpISA extensions to hwcap test

 Documentation/arch/arm64/elf_hwcaps.rst   |  51 ++++++
 arch/arm64/include/asm/hwcap.h            |  17 ++
 arch/arm64/include/uapi/asm/hwcap.h       |  17 ++
 arch/arm64/kernel/cpufeature.c            |  35 ++++
 arch/arm64/kernel/cpuinfo.c               |  17 ++
 arch/arm64/kvm/sys_regs.c                 |   6 +-
 arch/arm64/tools/sysreg                   |  87 +++++++++-
 tools/testing/selftests/arm64/abi/hwcap.c | 273 +++++++++++++++++++++++++++++-
 8 files changed, 493 insertions(+), 10 deletions(-)
---
base-commit: 40384c840ea1944d7c5a392e8975ed088ecf0b37
change-id: 20241008-arm64-2024-dpisa-8091074a7f48

Best regards,
-- 
Mark Brown <broonie@kernel.org>
Re: [PATCH v4 0/9] arm64: Support 2024 dpISA extensions
Posted by Will Deacon 11 months, 1 week ago
On Wed, 11 Dec 2024 01:02:45 +0000, Mark Brown wrote:
> The 2024 architecture release includes a number of data processing
> extensions, mostly SVE and SME additions with a few others.  These are
> all very straightforward extensions which add instructions but no
> architectural state so only need hwcaps and exposing of the ID registers
> to KVM guests and userspace.
> 
> 
> [...]

For the sysreg definitions that Marc's fantastic script is happy with,
applied to arm64 (for-next/cpufeature), thanks!

[1/9] arm64/sysreg: Update ID_AA64PFR2_EL1 to DDI0601 2024-09
      https://git.kernel.org/arm64/c/1ad9a56442a0
[2/9] arm64/sysreg: Update ID_AA64ISAR3_EL1 to DDI0601 2024-09
      https://git.kernel.org/arm64/c/054339beae58
[3/9] arm64/sysreg: Update ID_AA64FPFR0_EL1 to DDI0601 2024-09
      https://git.kernel.org/arm64/c/12b5ff517a19
[4/9] arm64/sysreg: Update ID_AA64ZFR0_EL1 to DDI0601 2024-09
      https://git.kernel.org/arm64/c/9a43ee864349

[6/9] arm64/sysreg: Update ID_AA64ISAR2_EL1 to DDI0601 2024-09
      https://git.kernel.org/arm64/c/d66e21d59ed0

The KVM patch needs an Ack from the maintainers and the hwcap change
probably needs checking in light of [1].

Cheers,
-- 
Will

[1] https://lore.kernel.org/r/20250106174020.1793678-1-maz@kernel.org

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
Re: [PATCH v4 0/9] arm64: Support 2024 dpISA extensions
Posted by Marc Zyngier 11 months, 1 week ago
On Tue, 07 Jan 2025 16:42:38 +0000,
Will Deacon <will@kernel.org> wrote:
> 
> On Wed, 11 Dec 2024 01:02:45 +0000, Mark Brown wrote:
> > The 2024 architecture release includes a number of data processing
> > extensions, mostly SVE and SME additions with a few others.  These are
> > all very straightforward extensions which add instructions but no
> > architectural state so only need hwcaps and exposing of the ID registers
> > to KVM guests and userspace.
> > 
> > 
> > [...]
> 
> For the sysreg definitions that Marc's fantastic script is happy with,
> applied to arm64 (for-next/cpufeature), thanks!
> 
> [1/9] arm64/sysreg: Update ID_AA64PFR2_EL1 to DDI0601 2024-09
>       https://git.kernel.org/arm64/c/1ad9a56442a0
> [2/9] arm64/sysreg: Update ID_AA64ISAR3_EL1 to DDI0601 2024-09
>       https://git.kernel.org/arm64/c/054339beae58
> [3/9] arm64/sysreg: Update ID_AA64FPFR0_EL1 to DDI0601 2024-09
>       https://git.kernel.org/arm64/c/12b5ff517a19
> [4/9] arm64/sysreg: Update ID_AA64ZFR0_EL1 to DDI0601 2024-09
>       https://git.kernel.org/arm64/c/9a43ee864349
> 
> [6/9] arm64/sysreg: Update ID_AA64ISAR2_EL1 to DDI0601 2024-09
>       https://git.kernel.org/arm64/c/d66e21d59ed0
> 
> The KVM patch needs an Ack from the maintainers and the hwcap change
> probably needs checking in light of [1].

I've now acked the KVM patch in case you want to take it, or I can add
it to the KVM queue, since I already have a merge of the cpufeature
branch.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.