Re: [PATCH v4 01/17] iommu: Add hwpt_type with user_data for domain_alloc_user op

2023-09-25 Thread Baolu Lu
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/

[RFC] selftests: Add dependencies information for kselftest

2023-09-25 Thread Juntong Deng
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

Re: [RFC] selftests: Add dependencies information for kselftest

2023-09-25 Thread Ricardo B. Marliere
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

Re: [PATCH v4 01/17] iommu: Add hwpt_type with user_data for domain_alloc_user op

2023-09-25 Thread Jason Gunthorpe
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

Re: [PATCH v4 01/17] iommu: Add hwpt_type with user_data for domain_alloc_user op

2023-09-25 Thread Jason Gunthorpe
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

Re: [PATCH v4 01/17] iommu: Add hwpt_type with user_data for domain_alloc_user op

2023-09-25 Thread Jason Gunthorpe
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

Re: [PATCH 1/7] RISC-V: Detect XVentanaCondOps from ISA string

2023-09-25 Thread Anup Patel
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

Re: [PATCH 2/7] RISC-V: Detect Zicond from ISA string

2023-09-25 Thread Anup Patel
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

Re: [PATCH 2/7] RISC-V: Detect Zicond from ISA string

2023-09-25 Thread Anup Patel
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

Re: [PATCH 7/7] KVM: riscv: selftests: Add condops extensions to get-reg-list test

2023-09-25 Thread Anup Patel
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

[PATCH v2 0/9] KVM RISC-V Conditional Operations

2023-09-25 Thread Anup Patel
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

[PATCH v2 1/9] dt-bindings: riscv: Add XVentanaCondOps extension entry

2023-09-25 Thread Anup Patel
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

[PATCH v2 2/9] RISC-V: Detect XVentanaCondOps from ISA string

2023-09-25 Thread Anup Patel
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

[PATCH v2 3/9] dt-bindings: riscv: Add Zicond extension entry

2023-09-25 Thread Anup Patel
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

[PATCH v2 4/9] RISC-V: Detect Zicond from ISA string

2023-09-25 Thread Anup Patel
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

[PATCH v2 5/9] RISC-V: KVM: Allow XVentanaCondOps extension for Guest/VM

2023-09-25 Thread Anup Patel
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

[PATCH v2 6/9] RISC-V: KVM: Allow Zicond extension for Guest/VM

2023-09-25 Thread Anup Patel
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(

[PATCH v2 7/9] KVM: riscv: selftests: Add senvcfg register to get-reg-list test

2023-09-25 Thread Anup Patel
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/

[PATCH v2 8/9] KVM: riscv: selftests: Add smstateen registers to get-reg-list test

2023-09-25 Thread Anup Patel
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

[PATCH v2 9/9] KVM: riscv: selftests: Add condops extensions to get-reg-list test

2023-09-25 Thread Anup Patel
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/

Re: [PATCH v2 1/9] dt-bindings: riscv: Add XVentanaCondOps extension entry

2023-09-25 Thread Andrew Jones
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

Re: [PATCH v2 3/9] dt-bindings: riscv: Add Zicond extension entry

2023-09-25 Thread Andrew Jones
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/

Re: [PATCH v2 4/9] RISC-V: Detect Zicond from ISA string

2023-09-25 Thread Andrew Jones
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

Re: [PATCH v2 9/9] KVM: riscv: selftests: Add condops extensions to get-reg-list test

2023-09-25 Thread Andrew Jones
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

Re: [PATCH v2 0/9] KVM RISC-V Conditional Operations

2023-09-25 Thread Conor Dooley
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 >

Re: [PATCH v2 0/9] KVM RISC-V Conditional Operations

2023-09-25 Thread Conor Dooley
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

[RFC PATCH 0/2] Add a test to verify device probing on ACPI platforms

2023-09-25 Thread Laura Nao
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

[RFC PATCH 1/2] acpi: Add script to extract ACPI device ids in the kernel

2023-09-25 Thread Laura Nao
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

[RFC PATCH 2/2] kselftest: Add test to detect unprobed devices on ACPI platforms

2023-09-25 Thread Laura Nao
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

Re: [PATCH] kselftest/arm64: Validate SVCR in streaming SVE stress test

2023-09-25 Thread Catalin Marinas
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

Re: [PATCH v2] selftests/lkdtm: Disable CONFIG_UBSAN_TRAP in test config

2023-09-25 Thread Kees Cook
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

Re: [RFC] selftests: Add dependencies information for kselftest

2023-09-25 Thread Juntong Deng
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

Re: [PATCH v2 2/9] RISC-V: Detect XVentanaCondOps from ISA string

2023-09-25 Thread Charlie Jenkins
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

[PATCH 2/4] kunit: Fix indentation level of suite messages

2023-09-25 Thread Michal Wajdeczko
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

[PATCH 0/4] kunit: Fix indentation of parameterized tests messages

2023-09-25 Thread Michal Wajdeczko
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

[PATCH 4/4] kunit: Prepare test plan for parameterized subtests

2023-09-25 Thread Michal Wajdeczko
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

[PATCH 1/4] kunit: Drop redundant text from suite init failure message

2023-09-25 Thread Michal Wajdeczko
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

[PATCH 3/4] kunit: Fix indentation of parameterized tests messages

2023-09-25 Thread Michal Wajdeczko
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

Re: [PATCH v2 2/9] RISC-V: Detect XVentanaCondOps from ISA string

2023-09-25 Thread Charlie Jenkins
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

Re: [PATCH v4 01/17] iommu: Add hwpt_type with user_data for domain_alloc_user op

2023-09-25 Thread Nicolin Chen
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

[PATCH] selftests/cgroup: Fix awk usage in test_cpuset_prs.sh that may cause error

2023-09-25 Thread Juntong Deng
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

[PATCH] selftests/damon: Add executable permission to test scripts

2023-09-25 Thread Juntong Deng
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

Re: [PATCH] selftests/damon: Add executable permission to test scripts

2023-09-25 Thread SeongJae Park
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_

Re: [PATCH] selftests/powerpc: Fix emit_tests to work with run_kselftest.sh

2023-09-25 Thread Kees Cook
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

[PATCH 0/2] tracing/user_events: Fix alignment issues for 32 on 64-bit and BE

2023-09-25 Thread Beau Belgrave
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

[PATCH 1/2] tracing/user_events: Align set_bit() address for all archs

2023-09-25 Thread Beau Belgrave
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

[PATCH 2/2] selftests/user_events: Fix abi_test for BE archs

2023-09-25 Thread Beau Belgrave
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

[PATCH bpf-next v1] bpf/selftests: improve arg parsing in test_verifier

2023-09-25 Thread Tony Ambardar
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

Re: [PATCH v2 2/9] RISC-V: Detect XVentanaCondOps from ISA string

2023-09-25 Thread Anup Patel
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

Re: [PATCH v2 2/9] RISC-V: Detect XVentanaCondOps from ISA string

2023-09-25 Thread Anup Patel
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

RE: [PATCH 1/6] iommu: Add new iommu op to create domains owned by userspace

2023-09-25 Thread Tian, Kevin
> 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

RE: [PATCH 3/6] iommufd/hw_pagetable: Accepts user flags for domain allocation

2023-09-25 Thread Tian, Kevin
> 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

RE: [PATCH 4/6] iommufd/hw_pagetable: Support allocating nested parent domain

2023-09-25 Thread Tian, Kevin
> 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) >

RE: [PATCH 5/6] iommufd/selftest: Add domain_alloc_user() support in iommu mock

2023-09-25 Thread Tian, Kevin
> 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

RE: [PATCH 6/6] iommu/vt-d: Add domain_alloc_user op

2023-09-25 Thread Tian, Kevin
> 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); > >>> > >>>

Re: [PATCH 4/6] iommufd/hw_pagetable: Support allocating nested parent domain

2023-09-25 Thread Yi Liu
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) && !

RE: [PATCH] iommufd/selftest: Iterate idev_ids in mock_domain's alloc_hwpt test

2023-09-25 Thread Tian, Kevin
> 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

Re: [PATCH 1/6] iommu: Add new iommu op to create domains owned by userspace

2023-09-25 Thread Yi Liu
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

RE: [PATCH v4 01/17] iommu: Add hwpt_type with user_data for domain_alloc_user op

2023-09-25 Thread Tian, Kevin
> 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

Re: [PATCH bpf-next v3 8/9] bpf/tests: add tests for cpuv4 instructions

2023-09-25 Thread kernel test robot
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

RE: [PATCH v4 01/17] iommu: Add hwpt_type with user_data for domain_alloc_user op

2023-09-25 Thread Tian, Kevin
> 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