Re: [PATCH bpf v3] bpf: fix unpopulated name_len field in perf_event link info

2024-10-04 Thread Jiri Olsa
On Thu, Oct 03, 2024 at 08:23:00PM +, tyrone-wu wrote: > Previously when retrieving `bpf_link_info.perf_event` for > kprobe/uprobe/tracepoint, the `name_len` field was not populated by the > kernel, leaving it to reflect the value initially set by the user. This > behavior was inconsistent with

[GIT PULL] Kselftest fixes update for Linux 6.12-rc2

2024-10-04 Thread Shuah Khan
Hi Linus, Please pull this kselftest fixes update for Linux 6.12-rc2. This kselftest fixes update for Linux 6.12-rc2 consists of fixes to build warnings, install scripts, run-time error path, and git status cleanups to tests: -- devices/probe: fix for Python3 regex string syntax warnings -- clo

Re: [PATCH 0/3] KVM: x86: Fix Intel PT Host/Guest mode when host tracing also

2024-10-04 Thread Adrian Hunter
On 26/09/24 17:05, Adrian Hunter wrote: > On 6/09/24 16:00, Adrian Hunter wrote: >> Hi >> >> There is a long-standing problem whereby running Intel PT on host and guest >> in Host/Guest mode, causes VM-Entry failure. >> >> The motivation for this patch set is to provide a fix for stable kernels >>

Re: [PATCH] selftests: Do not skip BPF selftests by default

2024-10-04 Thread Mark Brown
, and then went and compared notes with other CI systems and found everyone else had the same problem. I think we before defaulting BPF stuff on we should at the very least fix the builds for commonly covered architectures, it looks like as well as arm64 we're also seeing BTF not generated

Re: [PATCH net-next v8 03/24] ovpn: add basic netlink support

2024-10-04 Thread Donald Hunter
On Wed, 2 Oct 2024 at 10:03, Antonio Quartulli wrote: > > +definitions: > + - > +type: const > +name: nonce-tail-size > +value: 8 > + - > +type: enum > +name: cipher-alg > +value-start: 0 value-start defaults to 0 for enum so this is unnecessary. Same for the following e

[PATCH bpf v4 1/2] bpf: fix unpopulated name_len field in perf_event link info

2024-10-04 Thread tyrone-wu
Previously when retrieving `bpf_link_info.perf_event` for kprobe/uprobe/tracepoint, the `name_len` field was not populated by the kernel, leaving it to reflect the value initially set by the user. This behavior was inconsistent with how other input/output string buffer fields function (e.g. `raw_tr

[PATCH bpf v4 2/2] selftests/bpf: fix perf_event link info name_len assertion

2024-10-04 Thread tyrone-wu
Fix `name_len` field assertions in `bpf_link_info.perf_event` for kprobe/uprobe/tracepoint to validate correct name size instead of 0. Link: https://lore.kernel.org/bpf/cabvu1kxwqxhqqge0rtrr7eegtm6svw_kayzby16-yb0snzt...@mail.gmail.com/ Fixes: 23cf7aa539dc ("selftests/bpf: Add selftest for fill_l

Re: [PATCH net-next v8 01/24] netlink: add NLA_POLICY_MAX_LEN macro

2024-10-04 Thread Donald Hunter
On Fri, 4 Oct 2024 at 14:38, Jakub Kicinski wrote: > > On Fri, 04 Oct 2024 13:58:04 +0100 Donald Hunter wrote: > > > @@ -466,6 +466,8 @@ class TypeBinary(Type): > > > def _attr_policy(self, policy): > > > if 'exact-len' in self.checks: > > > mem = 'NLA_POLICY_EXACT_LEN('

Re: [PATCH 0/3] selftests: net: add missing gitignore and EXTRA_CLEAN entries.

2024-10-04 Thread Jakub Kicinski
On Mon, 30 Sep 2024 19:34:09 +0200 Javier Carrasco wrote: > This series is a cherry-pick on top of v6.12-rc1 from the one I sent > for selftests with other patches that were not net-related: > > https://lore.kernel.org/all/20240925-selftests-gitignore-v3-0-9db896474...@gmail.com/ > > The patches

Re: [PATCH V2 09/13] selftests/resctrl: Make benchmark parameter passing robust

2024-10-04 Thread Ilpo Järvinen
On Thu, 12 Sep 2024, Reinette Chatre wrote: > The benchmark used during the CMT, MBM, and MBA tests can be provided by > the user via (-b) parameter, if not provided the default "fill_buf" > benchmark is used. The user is additionally able to override > any of the "fill_buf" default parameters whe

Re: [PATCH net-next v8 01/24] netlink: add NLA_POLICY_MAX_LEN macro

2024-10-04 Thread Donald Hunter
Antonio Quartulli writes: > Similarly to NLA_POLICY_MIN_LEN, NLA_POLICY_MAX_LEN defines a policy > with a maximum length value. > > The netlink generator for YAML specs has been extended accordingly. > > Cc: donald.hun...@gmail.com > Signed-off-by: Antonio Quartulli > --- > include/net/netlink.

Re: [PATCH] selftests: Do not skip BPF selftests by default

2024-10-04 Thread Björn Töpel
FO_BTF > so that gets turned off and the build splats trying to read the BTF out > of the kernel binary (which is a new build dep for the selftests > too...). > > > https://storage.kernelci.org/next/master/next-20241004/arm64/defconfig%2Bkselftest/gcc-12/config/ > > We

Re: [PATCH net-next v8 01/24] netlink: add NLA_POLICY_MAX_LEN macro

2024-10-04 Thread Jakub Kicinski
On Fri, 04 Oct 2024 13:58:04 +0100 Donald Hunter wrote: > > @@ -466,6 +466,8 @@ class TypeBinary(Type): > > def _attr_policy(self, policy): > > if 'exact-len' in self.checks: > > mem = 'NLA_POLICY_EXACT_LEN(' + > > str(self.get_limit('exact-len')) + ')' > > +elif

Re: [PATCH v13 10/12] arm64: Kconfig.platforms: Add config for Marvell PXA1908 platform

2024-10-04 Thread kernel test robot
-CONFIG_VIDEO_MMP_CAMERA-0-0 (https://download.01.org/0day-ci/archive/20241004/202410041521.flkirlrv-...@intel.com/config) reproduce: (https://download.01.org/0day-ci/archive/20241004/202410041521.flkirlrv-...@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the

[PATCH] selftests: sched_ext: Add sched_ext as proper selftest target

2024-10-04 Thread Björn Töpel
From: Björn Töpel The sched_ext selftests is missing proper cross-compilation support, a proper target entry, and out-of-tree build support. When building the kselftest suite, e.g.: make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- \ SKIP_TARGETS="" O=/output/foo -C tools/testing/selftests

Re: [PATCH net-next v8 24/24] testing/selftest: add test tool and scripts for ovpn module

2024-10-04 Thread Antonio Quartulli
Hi, On 03/10/2024 00:35, Shuah Khan wrote: On 10/2/24 03:02, Antonio Quartulli wrote: The ovpn-cli tool can be compiled and used as selftest for the ovpn kernel module. Does this test load ovpn module before running tests? If so does it unload the modules after tests are complete? The modu

[PATCH] selftests: Do not skip BPF selftests by default

2024-10-04 Thread Björn Töpel
From: Björn Töpel This effectively is a revert of commit 7a6eb7c34a78 ("selftests: Skip BPF seftests by default"). At the time when this was added, BPF had "build time dependencies on cutting edge versions". Since then a number of BPF capable tests has been included in net, hid, sched_ext. There

Re: [PATCH] selftests: Do not skip BPF selftests by default

2024-10-04 Thread Mark Brown
m build on arm64 since arm64 defconfig has DEBUG_INFO_REDUCED=y which isn't compatible with CONFIG_DEBUG_INFO_BTF so that gets turned off and the build splats trying to read the BTF out of the kernel binary (which is a new build dep for the selftests too...). https://storage.kernelci.or

Re: [RFC PATCH v2 2/4] Documentation: RCU: Refer to ptr_eq()

2024-10-04 Thread Joel Fernandes
On Fri, Oct 4, 2024 at 2:29 PM Mathieu Desnoyers wrote: > > Refer to ptr_eq() in the rcu_dereference() documentation. > > ptr_eq() is a mechanism that preserves address dependencies when > comparing pointers, and should be favored when comparing a pointer > obtained from rcu_dereference() against

[PATCH AUTOSEL 6.10 42/70] remoteproc: imx_rproc: Use imx specific hook for find_loaded_rsc_table

2024-10-04 Thread Sasha Levin
From: Peng Fan [ Upstream commit e954a1bd16102abc800629f9900715d8ec4c3130 ] If there is a resource table device tree node, use the address as the resource table address, otherwise use the address(where .resource_table section loaded) inside the Cortex-M elf file. And there is an update in NXP S

[PATCH AUTOSEL 6.10 55/70] virtio_pmem: Check device status before requesting flush

2024-10-04 Thread Sasha Levin
From: Philip Chen [ Upstream commit e25fbcd97cf52c3c9824d44b5c56c19673c3dd50 ] If a pmem device is in a bad status, the driver side could wait for host ack forever in virtio_pmem_flush(), causing the system to hang. So add a status check in the beginning of virtio_pmem_flush() to return early i

[PATCH AUTOSEL 6.1 27/42] remoteproc: imx_rproc: Use imx specific hook for find_loaded_rsc_table

2024-10-04 Thread Sasha Levin
From: Peng Fan [ Upstream commit e954a1bd16102abc800629f9900715d8ec4c3130 ] If there is a resource table device tree node, use the address as the resource table address, otherwise use the address(where .resource_table section loaded) inside the Cortex-M elf file. And there is an update in NXP S

[PATCH AUTOSEL 6.1 34/42] virtio_pmem: Check device status before requesting flush

2024-10-04 Thread Sasha Levin
From: Philip Chen [ Upstream commit e25fbcd97cf52c3c9824d44b5c56c19673c3dd50 ] If a pmem device is in a bad status, the driver side could wait for host ack forever in virtio_pmem_flush(), causing the system to hang. So add a status check in the beginning of virtio_pmem_flush() to return early i

[PATCH AUTOSEL 5.15 22/31] remoteproc: imx_rproc: Use imx specific hook for find_loaded_rsc_table

2024-10-04 Thread Sasha Levin
From: Peng Fan [ Upstream commit e954a1bd16102abc800629f9900715d8ec4c3130 ] If there is a resource table device tree node, use the address as the resource table address, otherwise use the address(where .resource_table section loaded) inside the Cortex-M elf file. And there is an update in NXP S

Re: [PATCH v2] lib/crc16_kunit.c: add KUnit tests for crc16

2024-10-04 Thread Vinicius Peixoto
-crc16/20241004-050248 base: 9852d85ec9d492ebef56dc5f229416c925758edc patch link: https://lore.kernel.org/r/20241003-crc16-kunit-v2-1-5fe74b113e1e%40lkcamp.dev patch subject: [PATCH v2] lib/crc16_kunit.c: add KUnit tests for crc16 config: parisc-randconfig-r071-20241005 (https://download.01

[PATCH] kselftest/arm64: Validate that GCS push and write permissions work

2024-10-04 Thread Mark Brown
01 // GCSSTR x1, x0 + + mov x0, #0 +2: + mov x8, #__NR_exit + svc #0 --- base-commit: bb9ae1a66c85eeb626864efd812c62026e126ec0 change-id: 20241004-arm64-gcs-test-flags-980a2ddfde6f Best regards, -- Mark Brown

Re: [GIT PULL] Kselftest fixes update for Linux 6.12-rc2

2024-10-04 Thread pr-tracker-bot
The pull request you sent on Fri, 4 Oct 2024 10:44:57 -0600: > git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest > tags/linux_kselftest-fixes-6.12-rc2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/27cc6fdf720183dce1dbd293483ec5a9cb6b595e Thank you!

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-04 Thread Jason Gunthorpe
On Fri, Oct 04, 2024 at 12:25:19PM -0700, Nicolin Chen wrote: > With that, I wonder what is better for the initial version of > this structure, a generic virtual ID or a driver-named ID like > "Stream ID"? The latter might be more understandable/flexible, > so we won't need to justify a generic v

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-04 Thread Nicolin Chen
On Fri, Oct 04, 2024 at 05:17:46PM -0300, Jason Gunthorpe wrote: > On Fri, Oct 04, 2024 at 12:25:19PM -0700, Nicolin Chen wrote: > > > With that, I wonder what is better for the initial version of > > this structure, a generic virtual ID or a driver-named ID like > > "Stream ID"? The latter might

[PATCH AUTOSEL 5.15 27/31] virtio_pmem: Check device status before requesting flush

2024-10-04 Thread Sasha Levin
From: Philip Chen [ Upstream commit e25fbcd97cf52c3c9824d44b5c56c19673c3dd50 ] If a pmem device is in a bad status, the driver side could wait for host ack forever in virtio_pmem_flush(), causing the system to hang. So add a status check in the beginning of virtio_pmem_flush() to return early i

[RFC PATCH v2 1/4] compiler.h: Introduce ptr_eq() to preserve address dependency

2024-10-04 Thread Mathieu Desnoyers
Compiler CSE and SSA GVN optimizations can cause the address dependency of addresses returned by rcu_dereference to be lost when comparing those pointers with either constants or previously loaded pointers. Introduce ptr_eq() to compare two addresses while preserving the address dependencies for l

[RFC PATCH v2 3/4] hp: Implement Hazard Pointers

2024-10-04 Thread Mathieu Desnoyers
This API provides existence guarantees of objects through Hazard Pointers (HP). This minimalist implementation is specific to use with preemption disabled, but can be extended further as needed. Each HP domain defines a fixed number of hazard pointer slots (nr_cpus) across the entire system. Its

[RFC PATCH v2 0/4] sched+mm: Track lazy active mm existence with hazard pointers

2024-10-04 Thread Mathieu Desnoyers
[ Based on recent discussion with Linus, it appears that this series just proves that it's time to get rid of active mm altogether: https://lore.kernel.org/lkml/CAHk-=wgztWbA4z85xKob4eS9P=Nt5h4j=hnn+pc90expski...@mail.gmail.com/ I'm posting a v2 fixing minor issues from v1 in case it can b

[RFC PATCH v2 4/4] sched+mm: Use hazard pointers to track lazy active mm existence

2024-10-04 Thread Mathieu Desnoyers
Replace lazy active mm existence tracking with hazard pointers. This removes the following implementations and their associated config options: - MMU_LAZY_TLB_REFCOUNT - MMU_LAZY_TLB_SHOOTDOWN - This removes the call_rcu delayed mm drop for RT. It leverages the fact that each CPU only ever have a

Re: [PATCH] selftests: sched_ext: Add sched_ext as proper selftest target

2024-10-04 Thread David Vernet
On Fri, Oct 04, 2024 at 11:42:46AM +0200, Björn Töpel wrote: > From: Björn Töpel Thanks a lot Björn for working on this. > The sched_ext selftests is missing proper cross-compilation support, a > proper target entry, and out-of-tree build support. > > When building the kselftest suite, e.g.: >

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-04 Thread Jason Gunthorpe
On Fri, Oct 04, 2024 at 11:13:46AM -0700, Nicolin Chen wrote: > On Fri, Oct 04, 2024 at 08:41:47AM -0300, Jason Gunthorpe wrote: > > On Fri, Oct 04, 2024 at 02:32:28PM +1000, Alexey Kardashevskiy wrote: > > > For my SEV-TIO exercise ("trusted IO"), I am looking for a kernel > > > interface > > > t

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-04 Thread Nicolin Chen
On Fri, Oct 04, 2024 at 03:50:19PM -0300, Jason Gunthorpe wrote: > On Fri, Oct 04, 2024 at 11:13:46AM -0700, Nicolin Chen wrote: > > On Fri, Oct 04, 2024 at 08:41:47AM -0300, Jason Gunthorpe wrote: > > > On Fri, Oct 04, 2024 at 02:32:28PM +1000, Alexey Kardashevskiy wrote: > > > > For my SEV-TIO ex

Re: [PATCH] selftests: Do not skip BPF selftests by default

2024-10-04 Thread Shuah Khan
ast fix the builds for commonly covered architectures, it looks like as well as arm64 we're also seeing BTF not generated on 32 bit arm: https://storage.kernelci.org/next/master/next-20241004/arm/multi_v7_defconfig%2Bkselftest/gcc-12/config/kernel.config but everything else I spot checked

[PATCH 3/6] remoteproc: qcom: Add helper function to support IOMMU devmem translation

2024-10-04 Thread Mukesh Ojha
From: Shiraz Hashim Qualcomm SoCs runnning with Qualcomm EL2 hypervisor(QHEE), IOMMU translation set up for remote processors is managed by QHEE itself however, for a case when these remote processors has to run under KVM hypervisor, IOMMU translation need to setup from Linux remoteproc driver be

[PATCH 5/6] remoteproc: qcom: Add support of SHM bridge to enable memory protection

2024-10-04 Thread Mukesh Ojha
Qualcomm SoCs running with the Qualcomm EL2 hypervisor(QHEE) have been utilizing the Peripheral Authentication Service (PAS) from its TrustZone (TZ) firmware to securely authenticate and reset via sequence of SMC calls like qcom_scm_pas_init_image(), qcom_scm_pas_mem_setup(), and qcom_scm_pas_auth_

[PATCH 4/6] remoteproc: qcom: Add support to parse qcom,devmem property

2024-10-04 Thread Mukesh Ojha
From: Shiraz Hashim Qualcomm remote processors firmware does not contain resource table data where devmem setting information should actually be present and for its SoC running with Qualcomm EL2 hypervisor(QHEE), IOMMU translation for remoteproc is managed by QHEE and it has all the IOMMU resourc

Re: [RFC PATCH v2 3/4] hp: Implement Hazard Pointers

2024-10-04 Thread Joel Fernandes
On Fri, Oct 4, 2024 at 2:29 PM Mathieu Desnoyers wrote: > > This API provides existence guarantees of objects through Hazard > Pointers (HP). This minimalist implementation is specific to use > with preemption disabled, but can be extended further as needed. > > Each HP domain defines a fixed numb

[PATCH 6/6] remoteproc: qcom: Enable map/unmap and SHM bridge support

2024-10-04 Thread Mukesh Ojha
For Qualcomm SoCs runnning with Qualcomm EL2 hypervisor(QHEE), IOMMU translation for remote processors is managed by QHEE and if the same SoC run under KVM, remoteproc carveout and devmem region should be IOMMU mapped from Linux PAS driver before remoteproc is brought up and unmapped once it is tea

[PATCH 2/6] remoteproc: qcom: Add iommu map_unmap helper function

2024-10-04 Thread Mukesh Ojha
From: Komal Bajaj Qualcomm remote processor's IOMMU translation running on Linux KVM host should be managed by PAS driver and to do this PAS driver need to do map and unmap remoteproc carveout memory region. Similar map and unmap private functions for the similar purpose are already available in

[PATCH 0/6] Peripheral Image Loader support for Qualcomm SoCs

2024-10-04 Thread Mukesh Ojha
Qualcomm is looking to enable remote processors on the SA8775p SoC running KVM Linux host and is currently trying to figure out an upstream-compatible solution for the IOMMU translation scheme problem it is facing when SoCs running with KVM. This issue arises due to differences in how IOMMU transla

[PATCH 1/6] dt-bindings: remoteproc: qcom,pas-common: Introduce iommus and qcom,devmem property

2024-10-04 Thread Mukesh Ojha
From: Shiraz Hashim Qualcomm’s PAS implementation for remote processors only supports a single stage of IOMMU translation and is presently managed by the Qualcomm EL2 hypervisor (QHEE) if it is present. In the absence of QHEE, such as with a KVM hypervisor, IOMMU translations need to be set up by

Re: [PATCH 0/6] Peripheral Image Loader support for Qualcomm SoCs

2024-10-04 Thread Mukesh Ojha
Subject got wrapped and later part got ignored, Quoting it again here for reference. "Peripheral Image Loader support for Qualcomm SoCs on KVM host system" -Mukesh

Re: [PATCH net-next v2 0/2] selftests: net: ioam: add tunsrc support

2024-10-04 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 2 Oct 2024 18:27:29 +0200 you wrote: > v2: > - v1 missed the merge window, so while we're at it... > - split changes into two patches instead of one for readability (#1 >removes the ioam selftests, #2

Re: [PATCH 0/2] selftests/mm: fix deadlock after pthread_create

2024-10-04 Thread Andrew Morton
On Thu, 3 Oct 2024 21:17:09 + Edward Liaw wrote: > On Android arm, pthread_create followed by a fork caused a deadlock in > the case where the fork required work to be completed by the created > thread. > > Updated the synchronization primitive to use pthread_barrier instead of > atomic_boo

Re: [PATCH] selftests: sched_ext: Add sched_ext as proper selftest target

2024-10-04 Thread Shuah Khan
On 10/4/24 03:42, Björn Töpel wrote: From: Björn Töpel The sched_ext selftests is missing proper cross-compilation support, a proper target entry, and out-of-tree build support. When building the kselftest suite, e.g.: make ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- \ SKIP_TARGETS=""

[PATCH AUTOSEL 6.10 02/70] selftests/bpf: Fix ARG_PTR_TO_LONG {half-,}uninitialized test

2024-10-04 Thread Sasha Levin
From: Daniel Borkmann [ Upstream commit b8e188f023e07a733b47d5865311ade51878fe40 ] The assumption of 'in privileged mode reads from uninitialized stack locations are permitted' is not quite correct since the verifier was probing for read access rather than write access. Both tests need to be ann

[PATCH AUTOSEL 5.4 18/21] virtio_pmem: Check device status before requesting flush

2024-10-04 Thread Sasha Levin
From: Philip Chen [ Upstream commit e25fbcd97cf52c3c9824d44b5c56c19673c3dd50 ] If a pmem device is in a bad status, the driver side could wait for host ack forever in virtio_pmem_flush(), causing the system to hang. So add a status check in the beginning of virtio_pmem_flush() to return early i

[RFC PATCH v2 2/4] Documentation: RCU: Refer to ptr_eq()

2024-10-04 Thread Mathieu Desnoyers
Refer to ptr_eq() in the rcu_dereference() documentation. ptr_eq() is a mechanism that preserves address dependencies when comparing pointers, and should be favored when comparing a pointer obtained from rcu_dereference() against another pointer. Signed-off-by: Mathieu Desnoyers Acked-by: Alan S

Re: [PATCH v2] lib/crc16_kunit.c: add KUnit tests for crc16

2024-10-04 Thread kernel test robot
Hi Vinicius, kernel test robot noticed the following build warnings: [auto build test WARNING on 9852d85ec9d492ebef56dc5f229416c925758edc] url: https://github.com/intel-lab-lkp/linux/commits/Vinicius-Peixoto/lib-crc16_kunit-c-add-KUnit-tests-for-crc16/20241004-050248 base

Re: [PATCH] selftests: sched_ext: Add sched_ext as proper selftest target

2024-10-04 Thread Shuah Khan
On 10/4/24 11:46, Shuah Khan wrote: On 10/4/24 03:42, Björn Töpel wrote: From: Björn Töpel The sched_ext selftests is missing proper cross-compilation support, a proper target entry, and out-of-tree build support. When building the kselftest suite, e.g.:    make ARCH=riscv CROSS_COMPILE=risc

[PATCH net v2 0/3] selftests: net: add missing gitignore and EXTRA_CLEAN entries.

2024-10-04 Thread Javier Carrasco
This series is a cherry-pick on top of v6.12-rc1 from the one I sent for selftests with other patches that were not net-related: https://lore.kernel.org/all/20240925-selftests-gitignore-v3-0-9db896474...@gmail.com/ The patches have not been modified, and the Reviewed-by tags have been kept. Sign

[PATCH net v2 2/3] selftests: net: rds: add include.sh to EXTRA_CLEAN

2024-10-04 Thread Javier Carrasco
The include.sh file is generated when building the net/rds selftests, but there is no rule to delete it with the clean target. Add the file to EXTRA_CLEAN in order to remove it when required. Reviewed-by: Allison Henderson Signed-off-by: Javier Carrasco --- tools/testing/selftests/net/rds/Makef

Re: [PATCH v2 10/19] iommufd/viommu: Add vdev_id helpers for IOMMU drivers

2024-10-04 Thread Nicolin Chen
On Wed, Sep 11, 2024 at 08:17:22PM -0700, Nicolin Chen wrote: > On Wed, Sep 11, 2024 at 08:11:03PM -0300, Jason Gunthorpe wrote: > > On Thu, Sep 05, 2024 at 10:53:31AM -0700, Nicolin Chen wrote: > > > On Thu, Sep 05, 2024 at 01:14:15PM -0300, Jason Gunthorpe wrote: > > > > On Tue, Aug 27, 2024 at 0

[PATCH net v2 1/3] selftests: net: add msg_oob to gitignore

2024-10-04 Thread Javier Carrasco
This executable is missing from the corresponding gitignore file. Add msg_oob to the net gitignore list. Signed-off-by: Javier Carrasco --- tools/testing/selftests/net/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/.gitignore b/tools/testing/selftests

[PATCH net v2 3/3] selftests: net: rds: add gitignore file for include.sh

2024-10-04 Thread Javier Carrasco
The generated include.sh should be ignored by git. Create a new gitignore and add the file to the list. Reviewed-by: Allison Henderson Signed-off-by: Javier Carrasco --- tools/testing/selftests/net/rds/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/net/rd

Re: 6.12-rc1: Lockdep regression bissected (virtio-net/console/scheduler)

2024-10-04 Thread Breno Leitao
Hello Peter, On Thu, Oct 03, 2024 at 08:41:53AM -0700, Breno Leitao wrote: > > > Here is the full log, based on commit 7ec462100ef91 ("Merge tag > > > 'pull-work.unaligned' of > > > git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs") > > > > This looks like the normal lockdep splat you get

Re: 6.12-rc1: Lockdep regression bissected (virtio-net/console/scheduler)

2024-10-04 Thread Petr Mladek
Hi, I am adding into Cc some people who were involved in a netdev commits which might be related, see below. Also adding John Ogness into Cc who was author of the new changes on the printk side. But it looks to me that the problem is not caused by the recent printk changes. Also I keep the entir

[PATCH 1/1] softirq: Use a dedicated thread for timer wakeups on PREEMPT_RT.

2024-10-04 Thread Sebastian Andrzej Siewior
A timer/ hrtimer softirq is raised in-IRQ context. With threaded interrupts enabled or on PREEMPT_RT this leads to waking the ksoftirqd for the processing of the softirq. Once the ksoftirqd is marked as pending (or is running) it will collect all raised softirqs. This in turn means that a softirq w

[PATCH 0/1] softirq: Use a dedicated thread for timer wakeups on PREEMPT_RT.

2024-10-04 Thread Sebastian Andrzej Siewior
Hi, the following was in the PREEMPT_RT queue since last softirq rework. The result is that timer wake ups (hrtimer, timer_list) happens in hardirq processing them requires to wake ksoftirqd leading two: - ksoftirqd will consume all further softirqs. That means all soft interrupts that would be

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-04 Thread Jason Gunthorpe
On Fri, Oct 04, 2024 at 02:32:28PM +1000, Alexey Kardashevskiy wrote: > > + __u32 __reserved; > > + __aligned_u64 vdev_id; > > What is the nature of this id? It should be the vIOMMU's HW representation for the virtual device. On ARM it is the stream id, the index into the Stream Table On A

Re: [PATCH V2 10/13] selftests/resctrl: Ensure measurements skip initialization of default benchmark

2024-10-04 Thread Ilpo Järvinen
On Thu, 12 Sep 2024, Reinette Chatre wrote: > The CMT, MBA, and MBM tests rely on the resctrl_val() wrapper to > start and run a benchmark while providing test specific flows > via callbacks to do test specific configuration and measurements. > > At a high level, the resctrl_val() flow is: >

Re: [PATCH HID v3 0/9] HID: bpf: add a new hook to control hid-generic

2024-10-04 Thread Benjamin Tissoires
On Tue, 01 Oct 2024 16:30:04 +0200, Benjamin Tissoires wrote: > This is a slight change from the fundamentals of HID-BPF. > In theory, HID-BPF is abstract to the kernel itself, and makes > only changes at the HID level (through report descriptors or > events emitted to/from the device). > > Howeve

Re: [PATCH V2 11/13] selftests/resctrl: Use cache size to determine "fill_buf" buffer size

2024-10-04 Thread Ilpo Järvinen
On Thu, 12 Sep 2024, Reinette Chatre wrote: > By default the MBM and MBA tests use the "fill_buf" benchmark to > read from a buffer with the goal to measure the memory bandwidth > generated by this buffer access. > > Care should be taken when sizing the buffer used by the "fill_buf" > benchmark.

Re: [PATCH V2 12/13] selftests/resctrl: Do not compare performance counters and resctrl at low bandwidth

2024-10-04 Thread Ilpo Järvinen
On Thu, 12 Sep 2024, Reinette Chatre wrote: > The MBA test incrementally throttles memory bandwidth, each time > followed by a comparison between the memory bandwidth observed > by the performance counters and resctrl respectively. > > While a comparison between performance counters and resctrl i

Re: [PATCH V2 13/13] selftests/resctrl: Keep results from first test run

2024-10-04 Thread Ilpo Järvinen
On Thu, 12 Sep 2024, Reinette Chatre wrote: > The resctrl selftests drop the results from every first test run > to avoid (per comment) "inaccurate due to monitoring setup transition > phase" data. Previously inaccurate data resulted from workloads needing > some time to "settle" and also the meas

[PATCH AUTOSEL 6.6 01/58] selftests/bpf: Fix ARG_PTR_TO_LONG {half-,}uninitialized test

2024-10-04 Thread Sasha Levin
From: Daniel Borkmann [ Upstream commit b8e188f023e07a733b47d5865311ade51878fe40 ] The assumption of 'in privileged mode reads from uninitialized stack locations are permitted' is not quite correct since the verifier was probing for read access rather than write access. Both tests need to be ann

[PATCH AUTOSEL 5.10 22/26] virtio_pmem: Check device status before requesting flush

2024-10-04 Thread Sasha Levin
From: Philip Chen [ Upstream commit e25fbcd97cf52c3c9824d44b5c56c19673c3dd50 ] If a pmem device is in a bad status, the driver side could wait for host ack forever in virtio_pmem_flush(), causing the system to hang. So add a status check in the beginning of virtio_pmem_flush() to return early i

[PATCH] KVM: selftests: memslot_perf_test: increase guest sync timeout

2024-10-04 Thread Maxim Levitsky
When memslot_perf_test is run nested, first iteration of test_memslot_rw_loop testcase, sometimes takes more than 2 seconds due to build of shadow page tables. Following iterations are fast. To be on the safe side, bump the timeout to 10 seconds. Signed-off-by: Maxim Levitsky --- tools/testin

[PATCH AUTOSEL 6.11 45/76] remoteproc: imx_rproc: Use imx specific hook for find_loaded_rsc_table

2024-10-04 Thread Sasha Levin
From: Peng Fan [ Upstream commit e954a1bd16102abc800629f9900715d8ec4c3130 ] If there is a resource table device tree node, use the address as the resource table address, otherwise use the address(where .resource_table section loaded) inside the Cortex-M elf file. And there is an update in NXP S

[PATCH AUTOSEL 6.11 61/76] virtio_pmem: Check device status before requesting flush

2024-10-04 Thread Sasha Levin
From: Philip Chen [ Upstream commit e25fbcd97cf52c3c9824d44b5c56c19673c3dd50 ] If a pmem device is in a bad status, the driver side could wait for host ack forever in virtio_pmem_flush(), causing the system to hang. So add a status check in the beginning of virtio_pmem_flush() to return early i

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2024-10-04 Thread Nicolin Chen
On Fri, Oct 04, 2024 at 08:41:47AM -0300, Jason Gunthorpe wrote: > On Fri, Oct 04, 2024 at 02:32:28PM +1000, Alexey Kardashevskiy wrote: > > For my SEV-TIO exercise ("trusted IO"), I am looking for a kernel interface > > to pass the guest's BDFs for a specific host device (which is passed > > throu

[PATCH AUTOSEL 6.11 02/76] selftests/bpf: Fix ARG_PTR_TO_LONG {half-,}uninitialized test

2024-10-04 Thread Sasha Levin
From: Daniel Borkmann [ Upstream commit b8e188f023e07a733b47d5865311ade51878fe40 ] The assumption of 'in privileged mode reads from uninitialized stack locations are permitted' is not quite correct since the verifier was probing for read access rather than write access. Both tests need to be ann

[PATCH AUTOSEL 6.6 37/58] remoteproc: imx_rproc: Use imx specific hook for find_loaded_rsc_table

2024-10-04 Thread Sasha Levin
From: Peng Fan [ Upstream commit e954a1bd16102abc800629f9900715d8ec4c3130 ] If there is a resource table device tree node, use the address as the resource table address, otherwise use the address(where .resource_table section loaded) inside the Cortex-M elf file. And there is an update in NXP S

[PATCH AUTOSEL 6.6 48/58] virtio_pmem: Check device status before requesting flush

2024-10-04 Thread Sasha Levin
From: Philip Chen [ Upstream commit e25fbcd97cf52c3c9824d44b5c56c19673c3dd50 ] If a pmem device is in a bad status, the driver side could wait for host ack forever in virtio_pmem_flush(), causing the system to hang. So add a status check in the beginning of virtio_pmem_flush() to return early i

Re: [PATCH V2 09/13] selftests/resctrl: Make benchmark parameter passing robust

2024-10-04 Thread Reinette Chatre
Hi Ilpo, On 10/4/24 7:05 AM, Ilpo Järvinen wrote: > On Thu, 12 Sep 2024, Reinette Chatre wrote: >> tools/testing/selftests/resctrl/cmt_test.c| 32 ++ >> tools/testing/selftests/resctrl/mba_test.c| 13 ++- >> tools/testing/selftests/resctrl/mbm_test.c| 22 ++-- >> tools/testing

Re: [PATCH V2 11/13] selftests/resctrl: Use cache size to determine "fill_buf" buffer size

2024-10-04 Thread Reinette Chatre
Hi Ilpo, On 10/4/24 7:20 AM, Ilpo Järvinen wrote: > On Thu, 12 Sep 2024, Reinette Chatre wrote: > >> By default the MBM and MBA tests use the "fill_buf" benchmark to >> read from a buffer with the goal to measure the memory bandwidth >> generated by this buffer access. >> >> Care should be taken

Re: [PATCH V2 13/13] selftests/resctrl: Keep results from first test run

2024-10-04 Thread Reinette Chatre
Hi Ilpo, On 10/4/24 7:29 AM, Ilpo Järvinen wrote: > On Thu, 12 Sep 2024, Reinette Chatre wrote: ... >> diff --git a/tools/testing/selftests/resctrl/mbm_test.c >> b/tools/testing/selftests/resctrl/mbm_test.c >> index 7635ee6b9339..8c818e292dce 100644 >> --- a/tools/testing/selftests/resctrl/mbm_

Re: [PATCH net v5] selftests: net: no_forwarding: fix VID for $swp2 in one_bridge_two_pvids() test

2024-10-04 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Wed, 2 Oct 2024 14:10:16 +0900 you wrote: > Currently, the second bridge command overwrites the first one. > Fix this by adding this VID to the interface behind $swp2. > > The one_bridge_two_pvids() test intends to ch