On 2023/9/25 14:22, Yi Liu wrote:
On 2023/9/21 20:10, Baolu Lu wrote:
On 2023/9/21 15:51, Yi Liu wrote:
+/**
+ * iommu_copy_user_data - Copy iommu driver specific user space data
+ * @dst_data: Pointer to an iommu driver specific user data that is
defined in
+ * include/uapi/linux/
Most of the tests in kselftest rely on external tools and libraries
to run, which means that in order to run the tests effectively we need
to have all the dependencies installed first.
But unfortunately, there is currently no way to know in advance what
tools and libraries the tests in kselftest
On 23/09/25 06:25PM, Juntong Deng wrote:
> Most of the tests in kselftest rely on external tools and libraries
> to run, which means that in order to run the tests effectively we need
> to have all the dependencies installed first.
>
> But unfortunately, there is currently no way to know in advanc
On Mon, Sep 25, 2023 at 02:17:37PM +0800, Yi Liu wrote:
> yes. It is just what the existing domain_alloc_user op does. Here we add
> a hwpt_type as the type can be given by user, so we need to define a
> specific type for it.
>
> Perhaps we can also name it as IOMMU_HWPT_TYPE_UNMANAGED to be
> al
On Mon, Sep 25, 2023 at 04:01:55PM +0800, Baolu Lu wrote:
> On 2023/9/25 14:22, Yi Liu wrote:
> > On 2023/9/21 20:10, Baolu Lu wrote:
> > > On 2023/9/21 15:51, Yi Liu wrote:
> > > > +/**
> > > > + * iommu_copy_user_data - Copy iommu driver specific user space data
> > > > + * @dst_data: Pointer to
On Thu, Sep 21, 2023 at 01:58:19PM -0700, Nicolin Chen wrote:
> Perhaps we could put all min_len defines in uAPI header, like:
> include/uapi/linux/gfs2_ondisk.h:442:#define LH_V1_SIZE (offsetofend(struct
> gfs2_log_header, lh_hash))
> In this way, drivers won't need to deal with that nor have ri
On Tue, Sep 19, 2023 at 12:56 PM Conor Dooley wrote:
>
> Hey Anup,
>
> On Tue, Sep 19, 2023 at 09:23:37AM +0530, Anup Patel wrote:
> > The Veyron-V1 CPU supports custom conditional arithmetic and
> > conditional-select/move operations referred to as XVentanaCondOps
> > extension. In fact, QEMU RIS
On Tue, Sep 19, 2023 at 12:57 PM Conor Dooley wrote:
>
> On Tue, Sep 19, 2023 at 09:23:38AM +0530, Anup Patel wrote:
> > The RISC-V integer conditional (Zicond) operation extension defines
> > standard conditional arithmetic and conditional-select/move operations
> > which are inspired from the XV
On Wed, Sep 20, 2023 at 1:14 PM Andrew Jones wrote:
>
> On Tue, Sep 19, 2023 at 09:23:38AM +0530, Anup Patel wrote:
> > The RISC-V integer conditional (Zicond) operation extension defines
> > standard conditional arithmetic and conditional-select/move operations
> > which are inspired from the XVe
On Wed, Sep 20, 2023 at 1:48 PM Andrew Jones wrote:
>
> On Tue, Sep 19, 2023 at 09:23:43AM +0530, Anup Patel wrote:
> > We have a new conditional operations related ISA extensions so let us add
> > these extensions to get-reg-list test.
> >
> > Signed-off-by: Anup Patel
> > ---
> > tools/testing
This series extends KVM RISC-V to allow Guest/VM discover and use
conditional operations related ISA extensions (namely XVentanaCondOps
and Zicond).
To try these patches, use KVMTOOL from riscv_zbx_zicntr_smstateen_condops_v1
branch at: https://github.com/avpatel/kvmtool.git
These patches are bas
Add an entry for the XVentanaCondOps extension to the
riscv,isa-extensions property.
Signed-off-by: Anup Patel
---
Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++
1 file changed, 7 insertions(+)
diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml
b/Documen
The Veyron-V1 CPU supports custom conditional arithmetic and
conditional-select/move operations referred to as XVentanaCondOps
extension. In fact, QEMU RISC-V also has support for emulating
XVentanaCondOps extension.
Let us detect XVentanaCondOps extension from ISA string available
through DT or A
Add an entry for the Zicond extension to the riscv,isa-extensions property.
Signed-off-by: Anup Patel
---
Documentation/devicetree/bindings/riscv/extensions.yaml | 6 ++
1 file changed, 6 insertions(+)
diff --git a/Documentation/devicetree/bindings/riscv/extensions.yaml
b/Documentation/dev
The RISC-V integer conditional (Zicond) operation extension defines
standard conditional arithmetic and conditional-select/move operations
which are inspired from the XVentanaCondOps extension. In fact, QEMU
RISC-V also has support for emulating Zicond extension.
Let us detect Zicond extension fro
We extend the KVM ISA extension ONE_REG interface to allow KVM
user space to detect and enable XVentanaCondOps extension for
Guest/VM.
Signed-off-by: Anup Patel
Reviewed-by: Andrew Jones
---
arch/riscv/include/uapi/asm/kvm.h | 1 +
arch/riscv/kvm/vcpu_onereg.c | 2 ++
2 files changed, 3 in
We extend the KVM ISA extension ONE_REG interface to allow KVM
user space to detect and enable Zicond extension for Guest/VM.
Signed-off-by: Anup Patel
Reviewed-by: Andrew Jones
---
arch/riscv/include/uapi/asm/kvm.h | 1 +
arch/riscv/kvm/vcpu_onereg.c | 2 ++
2 files changed, 3 insertions(
We have a new senvcfg register in the general CSR ONE_REG interface
so let us add it to get-reg-list test.
Signed-off-by: Anup Patel
Reviewed-by: Andrew Jones
---
tools/testing/selftests/kvm/riscv/get-reg-list.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tools/testing/selftests/kvm/
We have a new smstateen registers as separate sub-type of CSR ONE_REG
interface so let us add these registers to get-reg-list test.
Signed-off-by: Anup Patel
Reviewed-by: Andrew Jones
---
.../selftests/kvm/riscv/get-reg-list.c| 34 +++
1 file changed, 34 insertions(+)
d
We have a new conditional operations related ISA extensions so let us
add these extensions to get-reg-list test.
Signed-off-by: Anup Patel
---
.../selftests/kvm/riscv/get-reg-list.c| 34 +++
1 file changed, 34 insertions(+)
diff --git a/tools/testing/selftests/kvm/riscv/
On Mon, Sep 25, 2023 at 07:08:51PM +0530, Anup Patel wrote:
> Add an entry for the XVentanaCondOps extension to the
> riscv,isa-extensions property.
>
> Signed-off-by: Anup Patel
> ---
> Documentation/devicetree/bindings/riscv/extensions.yaml | 7 +++
> 1 file changed, 7 insertions(+)
>
> d
On Mon, Sep 25, 2023 at 07:08:53PM +0530, Anup Patel wrote:
> Add an entry for the Zicond extension to the riscv,isa-extensions property.
>
> Signed-off-by: Anup Patel
> ---
> Documentation/devicetree/bindings/riscv/extensions.yaml | 6 ++
> 1 file changed, 6 insertions(+)
>
> diff --git a/
On Mon, Sep 25, 2023 at 07:08:54PM +0530, Anup Patel wrote:
> The RISC-V integer conditional (Zicond) operation extension defines
> standard conditional arithmetic and conditional-select/move operations
> which are inspired from the XVentanaCondOps extension. In fact, QEMU
> RISC-V also has support
On Mon, Sep 25, 2023 at 07:08:59PM +0530, Anup Patel wrote:
> We have a new conditional operations related ISA extensions so let us
> add these extensions to get-reg-list test.
>
> Signed-off-by: Anup Patel
> ---
> .../selftests/kvm/riscv/get-reg-list.c| 34 +++
> 1 file
On Mon, Sep 25, 2023 at 07:08:50PM +0530, Anup Patel wrote:
> This series extends KVM RISC-V to allow Guest/VM discover and use
> conditional operations related ISA extensions (namely XVentanaCondOps
> and Zicond).
>
> To try these patches, use KVMTOOL from riscv_zbx_zicntr_smstateen_condops_v1
>
On Mon, Sep 25, 2023 at 04:33:15PM +0100, Conor Dooley wrote:
> On Mon, Sep 25, 2023 at 07:08:50PM +0530, Anup Patel wrote:
> > This series extends KVM RISC-V to allow Guest/VM discover and use
> > conditional operations related ISA extensions (namely XVentanaCondOps
> > and Zicond).
> >
> > To tr
Regressions that prevent a driver from probing a device can significantly
affect the functionality of a platform.
A kselftest to verify if devices on a DT-based platform are probed
correctly was recently introduced [1], but no such generic test is
available for ACPI platforms yet. bootrr [2] prov
Add a script to extract all the supported acpi device ids
from kernel sources.
The list of IDs returned by the script can be used as a
reference to determine if a device declared in the ACPI namespace
with certain _HID/_CID is supported by the kernel or not.
Signed-off-by: Laura Nao
---
MAINTAI
Add new kselftest that tests whether devices declared in the ACPI
namespace and supported by the kernel are correctly bound
to a driver.
The test runs the acpi-extract-ids script to generate a list
of all the ACPI device IDs present in the kernel sources.
The list is then used as a reference to de
On Fri, 22 Sep 2023 14:42:55 +0100, Mark Brown wrote:
> In the ZA and ZT test programs we explicitly validate that PSTATE.ZA is as
> expected on each loop but we do not do the equivalent for our streaming
> SVE test, add a check that we are still in streaming mode on every loop
> in case that goes
On Wed, 02 Aug 2023 08:32:52 +0200, Ricardo Cañuelo wrote:
> The lkdtm selftest config fragment enables CONFIG_UBSAN_TRAP to make the
> ARRAY_BOUNDS test kill the calling process when an out-of-bound access
> is detected by UBSAN. However, after this [1] commit, UBSAN is triggered
> under many new
On 2023/9/25 19:24, Ricardo B. Marliere wrote:
On 23/09/25 06:25PM, Juntong Deng wrote:
Most of the tests in kselftest rely on external tools and libraries
to run, which means that in order to run the tests effectively we need
to have all the dependencies installed first.
But unfortunately, the
On Mon, Sep 25, 2023 at 07:08:52PM +0530, Anup Patel wrote:
> The Veyron-V1 CPU supports custom conditional arithmetic and
> conditional-select/move operations referred to as XVentanaCondOps
> extension. In fact, QEMU RISC-V also has support for emulating
> XVentanaCondOps extension.
>
> Let us de
A kunit suite is a top level test from the KTAP point of view but
all suite diagnostic messages are printed at the subtest level:
$ ./tools/testing/kunit/kunit.py run --raw_output \
--kunitconfig ./lib/kunit/.kunitconfig "example.*simple*"
KTAP version 1
1..1
# example
The indentation of parameterized tests messages is currently broken in kunit.
Try to fix that by introducing a test level attribute, that will be increased
during nested parameterized tests execution, and use it to generate correct
indent at the runtime when printing message or writing them to the
In case of parameterized tests we are not providing a test plan
so we can't detect if any result is missing.
Count available params using the same generator as during a test
execution
Signed-off-by: Michal Wajdeczko
Cc: David Gow
Cc: Rae Moar
---
lib/kunit/test.c | 16
1 file
If a suite initialization fails, then our diagnostic message
will include redundant indent and hash sign as all this was
already added by the kunit_printk() used by kunit_err() macro.
This could be easily seen if we force some error in our example
test by modyfing example_test_init_suite() and run
When running parametrized test cases, diagnostic messages
are not properly aligned with the test result lines:
$ ./tools/testing/kunit/kunit.py run --raw_output \
--kunitconfig ./lib/kunit/.kunitconfig *.example_params*
KTAP version 1
1..1
# example: initializing suite
On Mon, Sep 25, 2023 at 10:48:11AM -0700, Charlie Jenkins wrote:
> On Mon, Sep 25, 2023 at 07:08:52PM +0530, Anup Patel wrote:
> > The Veyron-V1 CPU supports custom conditional arithmetic and
> > conditional-select/move operations referred to as XVentanaCondOps
> > extension. In fact, QEMU RISC-V a
On Mon, Sep 25, 2023 at 10:05:06AM -0300, Jason Gunthorpe wrote:
> On Thu, Sep 21, 2023 at 01:58:19PM -0700, Nicolin Chen wrote:
>
> > Perhaps we could put all min_len defines in uAPI header, like:
> > include/uapi/linux/gfs2_ondisk.h:442:#define LH_V1_SIZE (offsetofend(struct
> > gfs2_log_header
According to the awk manual, the -e option does not need to be specified
in front of 'program' (unless you need to mix program-file).
The redundant -e option can cause error when users use awk tools other
than gawk (for example, mawk does not support the -e option).
Error Example:
awk: not an opt
When running the test for the damon subsystem, there are a lot of
warnings because test scripts do not have executable permission,
for example:
Warning: file debugfs_attrs.sh is not executable
Warning: file debugfs_schemes.sh is not executable
Warning: file debugfs_target_ids.sh is not executable
Hi Juntong,
On Tue, 26 Sep 2023 04:35:52 +0800 Juntong Deng
wrote:
> When running the test for the damon subsystem, there are a lot of
> warnings because test scripts do not have executable permission,
> for example:
>
> Warning: file debugfs_attrs.sh is not executable
> Warning: file debugfs_
On Thu, Sep 21, 2023 at 05:26:10PM +1000, Michael Ellerman wrote:
> In order to use run_kselftest.sh the list of tests must be emitted to
> populate kselftest-list.txt.
>
> The powerpc Makefile is written to use EMIT_TESTS. But support for
> EMIT_TESTS was dropped in commit d4e59a536f50 ("selftest
All architectures should use a long aligned address passed to set_bit().
User processes can pass either a 32-bit or 64-bit sized value to be
updated when tracing is enabled when on a 64-bit kernel. Both cases are
ensured to be naturally aligned, however, that is not enough. The
address must be long
All architectures should use a long aligned address passed to set_bit().
User processes can pass either a 32-bit or 64-bit sized value to be
updated when tracing is enabled when on a 64-bit kernel. Both cases are
ensured to be naturally aligned, however, that is not enough. The
address must be long
The abi_test currently uses a long sized test value for enablement
checks. On LE this works fine, however, on BE this results in inaccurate
assert checks due to a bit being used and assuming it's value is the
same on both LE and BE.
Use int type for 32-bit values and long type for 64-bit values to
Current test_verifier provides little feedback or argument validation,
instead silently falling back to running all tests in case of user error
or even expected use cases. Trying to do manual exploratory testing,
switching between kernel versions (e.g. with varying tests), or working
around problem
On Mon, Sep 25, 2023 at 11:18 PM Charlie Jenkins wrote:
>
> On Mon, Sep 25, 2023 at 07:08:52PM +0530, Anup Patel wrote:
> > The Veyron-V1 CPU supports custom conditional arithmetic and
> > conditional-select/move operations referred to as XVentanaCondOps
> > extension. In fact, QEMU RISC-V also ha
On Tue, Sep 26, 2023 at 9:38 AM Anup Patel wrote:
>
> On Mon, Sep 25, 2023 at 11:18 PM Charlie Jenkins wrote:
> >
> > On Mon, Sep 25, 2023 at 07:08:52PM +0530, Anup Patel wrote:
> > > The Veyron-V1 CPU supports custom conditional arithmetic and
> > > conditional-select/move operations referred to
> From: Liu, Yi L
> Sent: Tuesday, September 19, 2023 5:25 PM
>
> @@ -235,6 +235,13 @@ struct iommu_iotlb_gather {
> * use. The information type is one of enum iommu_hw_info_type
> defined
> * in include/uapi/linux/iommufd.h.
> * @domain_alloc: allocate iommu domain
Giv
> From: Liu, Yi L
> Sent: Tuesday, September 19, 2023 5:25 PM
>
> This extends iommufd_hw_pagetable_alloc() to accepts user flags.
>
> Signed-off-by: Yi Liu
Reviewed-by: Kevin Tian
> From: Liu, Yi L
> Sent: Tuesday, September 19, 2023 5:25 PM
>
> @@ -83,6 +83,9 @@ iommufd_hw_pagetable_alloc(struct iommufd_ctx *ictx,
> struct iommufd_ioas *ioas,
>
> lockdep_assert_held(&ioas->mutex);
>
> + if ((flags & IOMMU_HWPT_ALLOC_NEST_PARENT) && !ops-
> >domain_alloc_user)
>
> From: Liu, Yi L
> Sent: Tuesday, September 19, 2023 5:25 PM
>
> +static struct iommu_domain *
> +mock_domain_alloc_user(struct device *dev, u32 flags)
> +{
> + struct iommu_domain *domain;
> +
> + domain = mock_domain_alloc(IOMMU_DOMAIN_UNMANAGED);
> + if (!domain)
> + d
> From: Baolu Lu
> Sent: Thursday, September 21, 2023 9:31 AM
>
> On 9/20/23 9:10 PM, Liu, Yi L wrote:
> +
> +domain = iommu_domain_alloc(dev->bus);
> >>> No need to bounce between core and driver. Just,
> >>>
> >>> intel_iommu_domain_alloc(IOMMU_DOMAIN_UNMANAGED);
> >>>
> >>>
On 2023/9/26 13:32, Tian, Kevin wrote:
From: Liu, Yi L
Sent: Tuesday, September 19, 2023 5:25 PM
@@ -83,6 +83,9 @@ iommufd_hw_pagetable_alloc(struct iommufd_ctx *ictx,
struct iommufd_ioas *ioas,
lockdep_assert_held(&ioas->mutex);
+ if ((flags & IOMMU_HWPT_ALLOC_NEST_PARENT) && !
> From: Nicolin Chen
> Sent: Tuesday, September 19, 2023 9:17 AM
>
> The point in iterating variant->mock_domains is to test the idev_ids[0]
> and idev_ids[1]. So use it instead of keeping testing idev_ids[0] only.
>
> Signed-off-by: Nicolin Chen
Reviewed-by: Kevin Tian
On 2023/9/26 13:28, Tian, Kevin wrote:
From: Liu, Yi L
Sent: Tuesday, September 19, 2023 5:25 PM
@@ -235,6 +235,13 @@ struct iommu_iotlb_gather {
* use. The information type is one of enum iommu_hw_info_type
defined
* in include/uapi/linux/iommufd.h.
* @domain_alloc
> From: Robin Murphy
> Sent: Friday, September 22, 2023 5:48 PM
>
> I could go on enjoying myself, but basically yeah, "default" can't be a
> type in itself (at best it would be a meta-type which could be
> requested, such that it resolves to some real type to actually
> allocate), so a good name
Hello,
kernel test robot noticed "kernel-selftests.net.test_bpf.sh.fail" on:
commit: 361ceaa10db461a35068f21db451a02c07e2a6bd ("[PATCH bpf-next v3 8/9]
bpf/tests: add tests for cpuv4 instructions")
url:
https://github.com/intel-lab-lkp/linux/commits/Puranjay-Mohan/arm32-bpf-add-support-for-3
> From: Yi Liu
> Sent: Thursday, September 21, 2023 3:51 PM
> +
> +/**
> + * iommu_copy_user_data - Copy iommu driver specific user space data
> + * @dst_data: Pointer to an iommu driver specific user data that is defined
> in
> + *include/uapi/linux/iommufd.h
> + * @src_data: Pointer
61 matches
Mail list logo