All of lore.kernel.org
 help / color / mirror / Atom feed
From: James Raphael Tiovalen <jamestiotio@gmail.com>
To: kvm-riscv@lists.infradead.org
Subject: [kvm-unit-tests PATCH v4 0/3] riscv: sbi: Add support to test HSM extension
Date: Mon, 16 Sep 2024 02:34:56 +0800	[thread overview]
Message-ID: <20240915183459.52476-1-jamestiotio@gmail.com> (raw)

This patch series adds support for testing all 4 functions of the HSM
extension as defined in the RISC-V SBI specification. The first 2
patches adds some helper routines to prepare for the HSM test, while
the third patch adds the actual test for the HSM extension.

v4:
- Addressed all of Andrew's comments.
- Included the 2 patches from Andrew's branch that refactored some
  functions.
- Added timers to all of the waiting activities in the HSM tests.

v3:
- Addressed all of Andrew's comments.
- Split the report_prefix_pop patch into its own series.
- Added a new environment variable to specify the maximum number of
  CPUs supported by the SBI implementation.

v2:
- Addressed all of Andrew's comments.
- Added a new patch to add helper routines to clear multiple prefixes.
- Reworked the approach to test the HSM extension by using cpumask and
  on-cpus.

Andrew Jones (1):
  riscv: Rewrite hartid_to_cpu in assembly

James Raphael Tiovalen (2):
  riscv: sbi: Provide entry point for HSM tests
  riscv: sbi: Add tests for HSM extension

 riscv/Makefile          |   3 +-
 lib/riscv/asm-offsets.c |   5 +
 lib/riscv/setup.c       |  10 -
 riscv/sbi-tests.h       |  10 +
 riscv/sbi.h             |  10 +
 riscv/cstart.S          |  23 ++
 riscv/sbi-asm.S         |  71 +++++
 riscv/sbi.c             | 566 ++++++++++++++++++++++++++++++++++++++++
 8 files changed, 687 insertions(+), 11 deletions(-)
 create mode 100644 riscv/sbi-tests.h
 create mode 100644 riscv/sbi.h
 create mode 100644 riscv/sbi-asm.S

--
2.43.0



WARNING: multiple messages have this Message-ID (diff)
From: James Raphael Tiovalen <jamestiotio@gmail.com>
To: kvm@vger.kernel.org, kvm-riscv@lists.infradead.org
Cc: andrew.jones@linux.dev, atishp@rivosinc.com,
	cade.richard@berkeley.edu,
	James Raphael Tiovalen <jamestiotio@gmail.com>
Subject: [kvm-unit-tests PATCH v4 0/3] riscv: sbi: Add support to test HSM extension
Date: Mon, 16 Sep 2024 02:34:56 +0800	[thread overview]
Message-ID: <20240915183459.52476-1-jamestiotio@gmail.com> (raw)

This patch series adds support for testing all 4 functions of the HSM
extension as defined in the RISC-V SBI specification. The first 2
patches adds some helper routines to prepare for the HSM test, while
the third patch adds the actual test for the HSM extension.

v4:
- Addressed all of Andrew's comments.
- Included the 2 patches from Andrew's branch that refactored some
  functions.
- Added timers to all of the waiting activities in the HSM tests.

v3:
- Addressed all of Andrew's comments.
- Split the report_prefix_pop patch into its own series.
- Added a new environment variable to specify the maximum number of
  CPUs supported by the SBI implementation.

v2:
- Addressed all of Andrew's comments.
- Added a new patch to add helper routines to clear multiple prefixes.
- Reworked the approach to test the HSM extension by using cpumask and
  on-cpus.

Andrew Jones (1):
  riscv: Rewrite hartid_to_cpu in assembly

James Raphael Tiovalen (2):
  riscv: sbi: Provide entry point for HSM tests
  riscv: sbi: Add tests for HSM extension

 riscv/Makefile          |   3 +-
 lib/riscv/asm-offsets.c |   5 +
 lib/riscv/setup.c       |  10 -
 riscv/sbi-tests.h       |  10 +
 riscv/sbi.h             |  10 +
 riscv/cstart.S          |  23 ++
 riscv/sbi-asm.S         |  71 +++++
 riscv/sbi.c             | 566 ++++++++++++++++++++++++++++++++++++++++
 8 files changed, 687 insertions(+), 11 deletions(-)
 create mode 100644 riscv/sbi-tests.h
 create mode 100644 riscv/sbi.h
 create mode 100644 riscv/sbi-asm.S

--
2.43.0


             reply	other threads:[~2024-09-15 18:34 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-15 18:34 James Raphael Tiovalen [this message]
2024-09-15 18:34 ` [kvm-unit-tests PATCH v4 0/3] riscv: sbi: Add support to test HSM extension James Raphael Tiovalen
2024-09-15 18:34 ` [kvm-unit-tests PATCH v4 1/3] riscv: Rewrite hartid_to_cpu in assembly James Raphael Tiovalen
2024-09-15 18:34   ` James Raphael Tiovalen
2024-09-16  7:19   ` Andrew Jones
2024-09-16  7:19     ` Andrew Jones
2024-09-15 18:34 ` [kvm-unit-tests PATCH v4 2/3] riscv: sbi: Provide entry point for HSM tests James Raphael Tiovalen
2024-09-15 18:34   ` James Raphael Tiovalen
2024-09-15 18:34 ` [kvm-unit-tests PATCH v4 3/3] riscv: sbi: Add tests for HSM extension James Raphael Tiovalen
2024-09-15 18:34   ` James Raphael Tiovalen
2024-09-16  9:23   ` Andrew Jones
2024-09-16  9:23     ` Andrew Jones
2024-09-16 10:49   ` Andrew Jones
2024-09-16 10:49     ` Andrew Jones

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=20240915183459.52476-1-jamestiotio@gmail.com \
    --to=jamestiotio@gmail.com \
    --cc=kvm-riscv@lists.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.