mbox series

[0/6] RISC-V: Enable cbo.zero in usermode

Message ID 20230809115516.214537-8-ajones@ventanamicro.com (mailing list archive)
Headers show
Series RISC-V: Enable cbo.zero in usermode | expand

Message

Andrew Jones Aug. 9, 2023, 11:55 a.m. UTC
In order for usermode to issue cbo.zero, it needs privilege granted to
issue the extension instruction (patch 2) and to know that the extension
is available and its block size (patch 3). Patch 1 could be separate from
this series (it just fixes up some error messages), patches 4-5 convert
the hwprobe selftest to a statically-linked, TAP test and patch 6 adds a
new hwprobe test for the new information as well as testing CBO
instructions can or cannot be issued as appropriate.

Thanks,
drew


Andrew Jones (6):
  RISC-V: Make zicbom/zicboz errors consistent
  RISC-V: Enable cbo.zero in usermode
  RISC-V: hwprobe: Expose Zicboz extension and its block size
  RISC-V: selftests: Statically link hwprobe test
  RISC-V: selftests: Convert hwprobe test to kselftest API
  RISC-V: selftests: Add CBO tests

 Documentation/riscv/hwprobe.rst               |   6 +
 arch/riscv/include/asm/cpufeature.h           |   2 +
 arch/riscv/include/asm/csr.h                  |   1 +
 arch/riscv/include/asm/hwcap.h                |  16 ++
 arch/riscv/include/asm/hwprobe.h              |   2 +-
 arch/riscv/include/uapi/asm/hwprobe.h         |   2 +
 arch/riscv/kernel/cpufeature.c                |  10 +-
 arch/riscv/kernel/setup.c                     |   4 +
 arch/riscv/kernel/smpboot.c                   |   4 +
 arch/riscv/kernel/sys_riscv.c                 |  41 +++--
 tools/testing/selftests/riscv/Makefile        |   2 +-
 .../testing/selftests/riscv/hwprobe/Makefile  |   7 +-
 tools/testing/selftests/riscv/hwprobe/cbo.c   | 160 ++++++++++++++++++
 .../testing/selftests/riscv/hwprobe/hwprobe.c |  64 +++----
 .../testing/selftests/riscv/hwprobe/hwprobe.h |  15 ++
 15 files changed, 272 insertions(+), 64 deletions(-)
 create mode 100644 tools/testing/selftests/riscv/hwprobe/cbo.c
 create mode 100644 tools/testing/selftests/riscv/hwprobe/hwprobe.h

Comments

patchwork-bot+linux-riscv@kernel.org Aug. 30, 2023, 1:20 p.m. UTC | #1
Hello:

This series was applied to riscv/linux.git (for-next)
by Palmer Dabbelt <palmer@rivosinc.com>:

On Wed,  9 Aug 2023 13:55:17 +0200 you wrote:
> In order for usermode to issue cbo.zero, it needs privilege granted to
> issue the extension instruction (patch 2) and to know that the extension
> is available and its block size (patch 3). Patch 1 could be separate from
> this series (it just fixes up some error messages), patches 4-5 convert
> the hwprobe selftest to a statically-linked, TAP test and patch 6 adds a
> new hwprobe test for the new information as well as testing CBO
> instructions can or cannot be issued as appropriate.
> 
> [...]

Here is the summary with links:
  - [1/6] RISC-V: Make zicbom/zicboz errors consistent
    https://git.kernel.org/riscv/c/66e02b1d6430
  - [2/6] RISC-V: Enable cbo.zero in usermode
    https://git.kernel.org/riscv/c/090925374690
  - [3/6] RISC-V: hwprobe: Expose Zicboz extension and its block size
    https://git.kernel.org/riscv/c/d45243f8c239
  - [4/6] RISC-V: selftests: Statically link hwprobe test
    https://git.kernel.org/riscv/c/0ca410a80172
  - [5/6] RISC-V: selftests: Convert hwprobe test to kselftest API
    https://git.kernel.org/riscv/c/d79a646354a9
  - [6/6] RISC-V: selftests: Add CBO tests
    https://git.kernel.org/riscv/c/026645838c86

You are awesome, thank you!
Andrew Jones Aug. 30, 2023, 4:22 p.m. UTC | #2
On Wed, Aug 30, 2023 at 01:20:34PM +0000, patchwork-bot+linux-riscv@kernel.org wrote:
> Hello:
> 
> This series was applied to riscv/linux.git (for-next)
> by Palmer Dabbelt <palmer@rivosinc.com>:
> 
> On Wed,  9 Aug 2023 13:55:17 +0200 you wrote:
> > In order for usermode to issue cbo.zero, it needs privilege granted to
> > issue the extension instruction (patch 2) and to know that the extension
> > is available and its block size (patch 3). Patch 1 could be separate from
> > this series (it just fixes up some error messages), patches 4-5 convert
> > the hwprobe selftest to a statically-linked, TAP test and patch 6 adds a
> > new hwprobe test for the new information as well as testing CBO
> > instructions can or cannot be issued as appropriate.
> > 
> > [...]
> 
> Here is the summary with links:
>   - [1/6] RISC-V: Make zicbom/zicboz errors consistent
>     https://git.kernel.org/riscv/c/66e02b1d6430
>   - [2/6] RISC-V: Enable cbo.zero in usermode
>     https://git.kernel.org/riscv/c/090925374690
>   - [3/6] RISC-V: hwprobe: Expose Zicboz extension and its block size
>     https://git.kernel.org/riscv/c/d45243f8c239
>   - [4/6] RISC-V: selftests: Statically link hwprobe test
>     https://git.kernel.org/riscv/c/0ca410a80172
>   - [5/6] RISC-V: selftests: Convert hwprobe test to kselftest API
>     https://git.kernel.org/riscv/c/d79a646354a9
>   - [6/6] RISC-V: selftests: Add CBO tests
>     https://git.kernel.org/riscv/c/026645838c86
> 
> You are awesome, thank you!
> -- 
> Deet-doot-dot, I am a bot.
> https://korg.docs.kernel.org/patchwork/pwbot.html
> 
>

Hi Palmer,

This series needs a v2. There were couple minor comments on v1, and
I just found out that I broke the compiling of the nolibc vector
selftest.

I'll post v2 in the next few minutes. Sorry for the hassle!

Thanks,
drew