[PATCH v2] selftests: tmpfs: Add kselftest support to tmpfs

2024-10-24 Thread Shivam Chaudhary
Add kselftest support for open, linkat, unshare, mount tests - Replace direct error handling with `ksft_test_result_*` macros for better reporting of test outcomes. - Add `ksft_print_header()` and `ksft_set_plan()` to structure test outputs more effectively. - Introduce the helper function `

Re: stable-rc linux-6.6.y: Queues: tinyconfig: undefined reference to `irq_work_queue'

2024-10-24 Thread Sebastian Andrzej Siewior
On 2024-10-24 22:56:53 [+0530], Naresh Kamboju wrote: > On Thu, 24 Oct 2024 at 20:11, Naresh Kamboju > wrote: > > > > Most of the tinyconfigs are failing on stable-rc linux-6.6.y. > > > > Build errors: > > -- > > aarch64-linux-gnu-ld: kernel/task_work.o: in function `task_work_add': >

Re: [PATCH v4 00/14] iommufd: Add vIOMMU infrastructure (Part-2: vDEVICE)

2024-10-24 Thread Alexey Kardashevskiy
On 25/10/24 15:59, Nicolin Chen wrote: On Fri, Oct 25, 2024 at 03:54:44PM +1100, Alexey Kardashevskiy wrote: On 22/10/24 11:20, Nicolin Chen wrote: Following the previous vIOMMU series, this adds another vDEVICE structure, representing the association from an iommufd_device to an iommufd_vio

[PATCH for-next 2/3] selftests/watchdog: exit watchdog-test with error code

2024-10-24 Thread Li Zhijian
So that we can check its exit code to judge whether it succeeds or not. Signed-off-by: Li Zhijian --- .../testing/selftests/watchdog/watchdog-test.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/tools/t

[PATCH for-next 3/3] selftests/watchdog: Add run_watchdog-test.sh to run watchdog tests

2024-10-24 Thread Li Zhijian
We are ready to run the watchdog tests and check its exit code. An example output is like below: linux/tools/testing/selftests/watchdog# make run_tests TAP version 13 1..1 # timeout set to 45 # selftests: watchdog: run_watchdog-test.sh # ./run_watchdog-test.sh: Feed dog # Watchdog Tic

Re: [PATCH V5 1/1] livepatch: Add stack_order sysfs attribute

2024-10-24 Thread Petr Mladek
On Thu 2024-10-24 12:43:16, Wardenjohn wrote: > Add "stack_order" sysfs attribute which holds the order in which a live > patch module was loaded into the system. A user can then determine an > active live patched version of a function. > > cat /sys/kernel/livepatch/livepatch_1/stack_order -> 1 >

Re: [PATCH v4 00/14] iommufd: Add vIOMMU infrastructure (Part-2: vDEVICE)

2024-10-24 Thread Nicolin Chen
On Fri, Oct 25, 2024 at 04:58:33PM +1100, Alexey Kardashevskiy wrote: > > > > > Is there any real example of a .vdevice_alloc hook, besides the > > > > > selftests? It is not in iommufd_viommu_p2-v4-with-rmr, hence the > > > > > question. I am trying to sketch something with this new machinery and

Re: [PATCH v4 00/14] iommufd: Add vIOMMU infrastructure (Part-2: vDEVICE)

2024-10-24 Thread Alexey Kardashevskiy
On 25/10/24 16:41, Nicolin Chen wrote: On Fri, Oct 25, 2024 at 04:32:10PM +1100, Alexey Kardashevskiy wrote: External email: Use caution opening links or attachments On 25/10/24 15:59, Nicolin Chen wrote: On Fri, Oct 25, 2024 at 03:54:44PM +1100, Alexey Kardashevskiy wrote: On 22/10/24 11

Re: [PATCH v4 00/14] iommufd: Add vIOMMU infrastructure (Part-2: vDEVICE)

2024-10-24 Thread Nicolin Chen
On Fri, Oct 25, 2024 at 04:32:10PM +1100, Alexey Kardashevskiy wrote: > External email: Use caution opening links or attachments > > > On 25/10/24 15:59, Nicolin Chen wrote: > > On Fri, Oct 25, 2024 at 03:54:44PM +1100, Alexey Kardashevskiy wrote: > > > On 22/10/24 11:20, Nicolin Chen wrote: > >

Re: [PATCH v4 00/14] iommufd: Add vIOMMU infrastructure (Part-2: vDEVICE)

2024-10-24 Thread Nicolin Chen
On Fri, Oct 25, 2024 at 03:54:44PM +1100, Alexey Kardashevskiy wrote: > On 22/10/24 11:20, Nicolin Chen wrote: > > Following the previous vIOMMU series, this adds another vDEVICE structure, > > representing the association from an iommufd_device to an iommufd_viommu. > > This gives the whole archit

Re: [PATCH v4 00/14] iommufd: Add vIOMMU infrastructure (Part-2: vDEVICE)

2024-10-24 Thread Alexey Kardashevskiy
On 22/10/24 11:20, Nicolin Chen wrote: Following the previous vIOMMU series, this adds another vDEVICE structure, representing the association from an iommufd_device to an iommufd_viommu. This gives the whole architecture a new "v" layer:

Re: [PATCH v7 0/3] Extended MODVERSIONS Support

2024-10-24 Thread Luis Chamberlain
On Thu, Oct 24, 2024 at 11:07:57PM +, Sami Tolvanen wrote: > > Changes in v7: > > - Fix modpost to detect EXTENDED_MODVERSIONS based on a flag > > - Drop patches to fix export_report.pl > > Unless Luis prefers to deal with this separately, perhaps you can > just include a patch to delete expor

[PATCH V4 04/15] selftests/resctrl: Protect against array overrun during iMC config parsing

2024-10-24 Thread Reinette Chatre
The MBM and MBA tests need to discover the event and umask with which to configure the performance event used to measure read memory bandwidth. This is done by parsing the /sys/bus/event_source/devices/uncore_imc_/events/cas_count_read file for each iMC instance that contains the formatted output:

Re: [PATCH v4 08/14] iommufd/viommu: Add vdev_to_dev helper

2024-10-24 Thread Nicolin Chen
On Mon, Oct 21, 2024 at 05:20:17PM -0700, Nicolin Chen wrote: > +/* Caller should xa_lock(&viommu->vdevs) to protect the return value */ > +struct device *vdev_to_dev(struct iommufd_vdevice *vdev) > +{ > + return vdev ? vdev->idev->dev : NULL; > +} > +EXPORT_SYMBOL_NS_GPL(vdev_to_dev, IOMMUFD

Re: [PATCH v4 01/14] iommufd/viommu: Introduce IOMMUFD_OBJ_VDEVICE and its related struct

2024-10-24 Thread Nicolin Chen
On Mon, Oct 21, 2024 at 05:20:10PM -0700, Nicolin Chen wrote: > struct iommufd_viommu_ops { > + struct iommufd_vdevice *(*vdevice_alloc)(struct iommufd_viommu > *viommu, > +struct device *dev, u64 id); > + void (*vdevice_free)(struct iom

[PATCH for-next 3/7] selftests/mm: Add a few missing gitignore files

2024-10-24 Thread Li Zhijian
Compiled binary files should be added to .gitignore 'git status' complains: Untracked files: (use "git add ..." to include in what will be committed) mm/hugetlb_dio mm/pkey_sighandler_tests_32 mm/pkey_sighandler_tests_64 Cc: Donet Tom Cc: Andrew Morton Cc: Shuah

Re: [PATCH v2 0/2] soc: qcom: pmic_glink: Resolve failures to bring up pmic_glink

2024-10-24 Thread Bjorn Andersson
On Wed, 23 Oct 2024 17:24:31 +, Bjorn Andersson wrote: > With the transition of pd-mapper into the kernel, the timing was altered > such that on some targets the initial rpmsg_send() requests from > pmic_glink clients would be attempted before the firmware had announced > intents, and the fir

[PATCH V4 01/15] selftests/resctrl: Make functions only used in same file static

2024-10-24 Thread Reinette Chatre
Fix following sparse warnings: tools/testing/selftests/resctrl/resctrl_val.c:47:6: warning: symbol 'membw_initialize_perf_event_attr' was not declared. Should it be static? tools/testing/selftests/resctrl/resctrl_val.c:64:6: warning: symbol 'membw_ioctl_perf_event_ioc_reset_enable' was not decl

[PATCH net-next v2 4/4] selftests: hsr: Add test for VLAN

2024-10-24 Thread MD Danish Anwar
Add test for VLAN ping for HSR. The test adds vlan interfaces to the hsr interface and then verifies if ping to them works. Signed-off-by: MD Danish Anwar --- tools/testing/selftests/net/hsr/config | 1 + tools/testing/selftests/net/hsr/hsr_ping.sh | 63 - 2 files chang

[PATCH for-next 1/7] selftests/alsa: Add a few missing gitignore files

2024-10-24 Thread Li Zhijian
Compiled binary files should be added to .gitignore 'git status' complains: Untracked files: (use "git add ..." to include in what will be committed) alsa/global-timer alsa/utimer-test Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Shuah Khan Signed-off-by: Li Zhijian ---

[PATCH for-next 1/3] selftests/watchdog: add count parameter for watchdog-test

2024-10-24 Thread Li Zhijian
Currently, watchdog-test keep running until it gets a SIGINT. However, when watchdog-test is executed from the kselftests framework, where it launches test via timeout which will send SIGTERM in time up. This could lead to 1. watchdog haven't stop, a watchdog reset is triggered to reboot the OS

[PATCH V4 02/15] selftests/resctrl: Print accurate buffer size as part of MBM results

2024-10-24 Thread Reinette Chatre
By default the MBM test uses the "fill_buf" benchmark to keep reading from a buffer with size DEFAULT_SPAN while measuring memory bandwidth. User space can provide an alternate benchmark or amend the size of the buffer "fill_buf" should use. Analysis of the MBM measurements do not require that a b

[PATCH for-next 6/7] selftests/zram: gitignore output file

2024-10-24 Thread Li Zhijian
After `make run_tests`, the git status complains: Untracked files: (use "git add ..." to include in what will be committed) zram/err.log This file will be cleaned up when execute 'make clean' Cc: Shuah Khan Signed-off-by: Li Zhijian --- Hello, Cover letter is here. This patch set a

[PATCH for-next 2/7] selftests/filesystems: Add missing gitignore file

2024-10-24 Thread Li Zhijian
Compiled binary files should be added to .gitignore 'git status' complains: Untracked files: (use "git add ..." to include in what will be committed) filesystems/statmount/statmount_test_ns Cc: Shuah Khan Cc: Christian Brauner Cc: Miklos Szeredi Cc: Josef Bacik Signed-off-by: Li Zhijian

[PATCH for-next 4/7] selftests/net: Add missing gitignore file

2024-10-24 Thread Li Zhijian
Compiled binary files should be added to .gitignore 'git status' complains: Untracked files: (use "git add ..." to include in what will be committed) net/netfilter/conntrack_reverse_clash Cc: Pablo Neira Ayuso Cc: Jozsef Kadlecsik Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub

[PATCH for-next 5/7] selftests/cpufreq: gitignore output files and clean them in make clean

2024-10-24 Thread Li Zhijian
After `make run_tests`, the git status complains: Untracked files: (use "git add ..." to include in what will be committed) cpufreq/cpufreq_selftest.dmesg_cpufreq.txt cpufreq/cpufreq_selftest.dmesg_full.txt cpufreq/cpufreq_selftest.txt Cc: "Rafael J. Wysocki" Cc: Vires

[PATCH for-next 7/7] selftests/net: Fix ./ns-XXXXXX not cleanup

2024-10-24 Thread Li Zhijian
``` readonly STATS="$(mktemp -p /tmp ns-XX)" readonly BASE=`basename $STATS` ``` It could be a mistake to write to $BASE rather than $STATS, where $STATS is used to save the NSTAT_HISTORY and it will be cleaned up before exit. Cc: "David S. Miller" Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Pa

[PATCH net-next v2 1/4] net: hsr: Add VLAN support

2024-10-24 Thread MD Danish Anwar
From: WingMan Kwok Add support for creating VLAN interfaces over HSR/PRP interface. Signed-off-by: WingMan Kwok Signed-off-by: Murali Karicheri Signed-off-by: MD Danish Anwar --- net/hsr/hsr_device.c | 5 - net/hsr/hsr_forward.c | 19 ++- 2 files changed, 14 insertions(

[PATCH V4 15/15] selftests/resctrl: Replace magic constants used as array size

2024-10-24 Thread Reinette Chatre
The Memory Bandwidth Allocation (MBA) test iterates through all possible MBA allocations, from 10% (ALLOCATION_MIN) to 100% (ALLOCATION_MAX) with increments of 10% (ALLOCATION_STEP) at each iteration. During each iteration the test measures the actual memory bandwidth NUM_OF_RUNS times to determine

[PATCH V4 08/15] selftests/resctrl: Only support measured read operation

2024-10-24 Thread Reinette Chatre
The CMT, MBM, and MBA tests rely on a benchmark to generate memory traffic. By default this is the "fill_buf" benchmark that can be replaced via the "-b" command line argument. The original intent of the "-b" command line parameter was to replace the default "fill_buf" benchmark, but the implement

Re: stable-rc linux-6.6.y: Queues: tinyconfig: undefined reference to `irq_work_queue'

2024-10-24 Thread Naresh Kamboju
On Thu, 24 Oct 2024 at 20:11, Naresh Kamboju wrote: > > Most of the tinyconfigs are failing on stable-rc linux-6.6.y. > > Build errors: > -- > aarch64-linux-gnu-ld: kernel/task_work.o: in function `task_work_add': > task_work.c:(.text+0x190): undefined reference to `irq_work_queue' > t

Re: [PATCH v7 2/3] modpost: Produce extended MODVERSIONS information

2024-10-24 Thread Sami Tolvanen
On Wed, Oct 23, 2024 at 02:31:29AM +, Matthew Maurer wrote: > Generate both the existing modversions format and the new extended one > when running modpost. Presence of this metadata in the final .ko is > guarded by CONFIG_EXTENDED_MODVERSIONS. > > We no longer generate an error on long symbol

Re: [PATCH v7 0/3] Extended MODVERSIONS Support

2024-10-24 Thread Sami Tolvanen
On Wed, Oct 23, 2024 at 02:31:27AM +, Matthew Maurer wrote: > This patch series is intended for use alongside the Implement DWARF > modversions series [1] to enable RUST and MODVERSIONS at the same > time. > > Elsewhere, we've seen a desire for long symbol name support for LTO > symbol names [

Re: [PATCH V4 00/15] selftests/resctrl: Support diverse platforms with MBM and MBA tests

2024-10-24 Thread Reinette Chatre
Hi Shuah, On 10/24/24 3:36 PM, Shuah Khan wrote: > > Is this patch series ready to be applied? > I believe it is close ... I would like to give Ilpo some time to peek at patches 2 and 10 to confirm if I got their fixes right this time. The rest of the series is ready. Thank you Reinette

Re: [PATCH 2/2] rcuscale: Remove redundant WARN_ON_ONCE() splat

2024-10-24 Thread Paul E. McKenney
On Thu, Oct 24, 2024 at 06:45:58PM +0200, Uladzislau Rezki (Sony) wrote: > There are two places where WARN_ON_ONCE() is called two times > in the error paths. One which is encapsulated into if() condition > and another one, which is unnecessary, is placed in the brackets. > > Remove an extra WARN_

Re: [PATCH v3] selftests: add new kallsyms selftests

2024-10-24 Thread Luis Chamberlain
On Wed, Oct 23, 2024 at 10:28:49AM -0700, Jeff Johnson wrote: > On 10/21/24 12:33, Luis Chamberlain wrote: > ... > > +gen_template_module_exit() > > +{ > > + cat < > +static int __init auto_test_module_init(void) > > +{ > > + return auto_runtime_test(); > > +} > > +module_init(

Re: [PATCH V4 00/15] selftests/resctrl: Support diverse platforms with MBM and MBA tests

2024-10-24 Thread Shuah Khan
On 10/24/24 15:18, Reinette Chatre wrote: Changes since V3: - V3: https://lore.kernel.org/all/cover.1729218182.git.reinette.cha...@intel.com/ - Rebased on HEAD 2a027d6bb660 of kselftest/next. - Fix empty string parsing issues pointed out by Ilpo. - Add Reviewed-by tags. - Please see individual p

[PATCH V4 06/15] selftests/resctrl: Make wraparound handling obvious

2024-10-24 Thread Reinette Chatre
Within mba_setup() the programmed bandwidth delay value starts at the maximum (100, or rather ALLOCATION_MAX) and progresses towards ALLOCATION_MIN by decrementing with ALLOCATION_STEP. The programmed bandwidth delay should never be negative, so representing it with an unsigned int is most appropr

[PATCH V4 14/15] selftests/resctrl: Keep results from first test run

2024-10-24 Thread Reinette Chatre
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 measurements themselves to account for earlier measuremen

[PATCH V4 11/15] selftests/resctrl: Ensure measurements skip initialization of default benchmark

2024-10-24 Thread Reinette Chatre
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: a) Start by fork()ing a child process that installs a

[PATCH V4 13/15] selftests/resctrl: Do not compare performance counters and resctrl at low bandwidth

2024-10-24 Thread Reinette Chatre
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 is generally appropriate, they do not have an identical

[PATCH V4 12/15] selftests/resctrl: Use cache size to determine "fill_buf" buffer size

2024-10-24 Thread Reinette Chatre
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. If the buffer is small enough to fit in the cache then it

[PATCH V4 07/15] selftests/resctrl: Remove "once" parameter required to be false

2024-10-24 Thread Reinette Chatre
The CMT, MBM, and MBA tests rely on a benchmark that runs while the test makes changes to needed configuration (for example memory bandwidth allocation) and takes needed measurements. By default the "fill_buf" benchmark is used and by default (via its "once = false" setting) "fill_buf" is configure

[PATCH V4 05/15] selftests/resctrl: Protect against array overflow when reading strings

2024-10-24 Thread Reinette Chatre
resctrl selftests discover system properties via a variety of sysfs files. The MBM and MBA tests need to discover the event and umask with which to configure the performance event used to measure read memory bandwidth. This is done by parsing the contents of /sys/bus/event_source/devices/uncore_imc

[PATCH V4 03/15] selftests/resctrl: Fix memory overflow due to unhandled wraparound

2024-10-24 Thread Reinette Chatre
alloc_buffer() allocates and initializes (with random data) a buffer of requested size. The initialization starts from the beginning of the allocated buffer and incrementally assigns sizeof(uint64_t) random data to each cache line. The initialization uses the size of the buffer to control the initi

Re: [PATCH V2 0/4] A few fixes for RISC-V

2024-10-24 Thread patchwork-bot+linux-riscv
Hello: This series was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Tue, 8 Oct 2024 17:41:37 +0800 you wrote: > These patches are all simple fixes with no strong dependency though, > I hope that making them a patchset will be more convenient for merge. > > The patchset are based on

Re: [PATCH V2 3/4] selftest/mm: Fix typo in virtual_address_range

2024-10-24 Thread Palmer Dabbelt
On Tue, 08 Oct 2024 02:41:40 PDT (-0700), zhangchun...@iscas.ac.cn wrote: The function name should be *hint* address, so correct it. Reviewed-by: Charlie Jenkins Signed-off-by: Chunyan Zhang --- V1: https://lore.kernel.org/linux-mm/ZuOuedBpS7i3T%2Fo0@ghost/T/ --- tools/testing/selftests/mm/vi

Re: [PATCH v2 2/2] soc: qcom: pmic_glink: Handle GLINK intent allocation rejections

2024-10-24 Thread Bjorn Andersson
On Thu, Oct 24, 2024 at 08:39:25AM GMT, Johan Hovold wrote: > On Wed, Oct 23, 2024 at 05:24:33PM +, Bjorn Andersson wrote: > > Some versions of the pmic_glink firmware does not allow dynamic GLINK > > intent allocations, attempting to send a message before the firmware has > > allocated its rec

Re: [PATCH 1/4] dt-bindings: remoteproc: fsl,imx-rproc: add new compatible

2024-10-24 Thread Rob Herring
On Thu, Oct 24, 2024 at 01:47:53PM +0300, Laurentiu Mihalcea wrote: > > > On 10/24/2024 10:45 AM, Krzysztof Kozlowski wrote: > > On Wed, Oct 23, 2024 at 12:21:11PM -0400, Laurentiu Mihalcea wrote: > >> From: Laurentiu Mihalcea > >> > >> Add new compatible for imx95's CM7 with SOF. > >> > >> Sign

[PATCH] virtio-fs: Query rootmode during mount

2024-10-24 Thread Hanna Czenczek
During mount, receive the root inode's mode (e.g. whether it is a directory or a regular file) via GETATTR. Currently, the only way to set this mode to anything but S_IFDIR is by passing the mode's numerical value via the 'rootmode' mount option. This is done automatically by libfuse, so users gen

[PATCH 1/2] rcuscale: Do a proper cleanup if kfree_scale_init() fails

2024-10-24 Thread Uladzislau Rezki (Sony)
A static analyzer for C, Smatch, reports and triggers below warnings: kernel/rcu/rcuscale.c:1215 rcu_scale_init() warn: inconsistent returns 'global &fullstop_mutex'. The checker complains about, we do not unlock the "fullstop_mutex" mutex, in case of hitting below error path: ... if

Re: [PATCH] vsock/test: fix failures due to wrong SO_RCVLOWAT parameter

2024-10-24 Thread Stefano Garzarella
On Thu, Oct 24, 2024 at 10:00:47AM -0500, Konstantin Shkolnyy wrote: On 10/24/2024 03:43, Stefano Garzarella wrote: Other setsockopt() in the tests where we use unsigned long are SO_VM_SOCKETS_* but they are expected to be unsigned, so we should be fine. It's actually not "signed vs unsigned",

[PATCH v3] selftest: remoteproc: Add test for start/stop sequence

2024-10-24 Thread Wasim Nazir
Add test to validate end-to-end start/stop sequence for each remoteproc instances available on target. Add first test sequence to validated each instance sequencially to identify any issue while booting each instance. Add second test sequence to validate all instances concurrently to identify any

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

2024-10-24 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. ksoftirqd runs as SCHED_OTHER which means it will compete with other tasks for CPU ressources. This can introduce long delays fo

[PATCH v2 1/3] hrtimer: Use __raise_softirq_irqoff() to raise the softirq.

2024-10-24 Thread Sebastian Andrzej Siewior
As an optimisation use __raise_softirq_irqoff() to raise the softirq. This is always called from an interrupt handler so it can be reduced to just or set softirq flag and let softirq be invoked on return from interrupt. Use __raise_softirq_irqoff() to raise the softirq. Signed-off-by: Sebastian A

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

2024-10-24 Thread Frederic Weisbecker
Le Wed, Oct 23, 2024 at 12:52:57PM +0200, Sebastian Andrzej Siewior a écrit : > On 2024-10-23 08:30:18 [+0200], To Frederic Weisbecker wrote: > > > > > > +void raise_timer_softirq(void) > > > > > > +{ > > > > > > + unsigned long flags; > > > > > > + > > > > > > + local_irq_save(flags); > > > >

[PATCH net-next v5 06/12] selftests: ncdevmem: Switch to AF_INET6

2024-10-24 Thread Stanislav Fomichev
Use dualstack socket to support both v4 and v6. v4-mapped-v6 address can be used to do v4. Reviewed-by: Mina Almasry Signed-off-by: Stanislav Fomichev --- tools/testing/selftests/net/ncdevmem.c | 85 +- 1 file changed, 57 insertions(+), 28 deletions(-) diff --git a/tool

Re: [PATCH 1/4] dt-bindings: remoteproc: fsl,imx-rproc: add new compatible

2024-10-24 Thread Laurentiu Mihalcea
On 10/24/2024 10:45 AM, Krzysztof Kozlowski wrote: > On Wed, Oct 23, 2024 at 12:21:11PM -0400, Laurentiu Mihalcea wrote: >> From: Laurentiu Mihalcea >> >> Add new compatible for imx95's CM7 with SOF. >> >> Signed-off-by: Laurentiu Mihalcea >> --- >> .../bindings/remoteproc/fsl,imx-rproc.yaml

[PATCH net-next v2 0/4] Introduce VLAN support in HSR

2024-10-24 Thread MD Danish Anwar
This series adds VLAN support to HSR framework. This series also adds VLAN support to HSR mode of ICSSG Ethernet driver. Changes from v1 to v2: *) Added patch 4/4 to add test script related to VLAN in HSR as asked by Lukasz Majewski v1 https://lore.kernel.org/all/20241004074715.791191-1-danishan

[PATCH net-next v2 2/4] net: hsr: Add VLAN CTAG filter support

2024-10-24 Thread MD Danish Anwar
From: Murali Karicheri This patch adds support for VLAN ctag based filtering at slave devices. The slave ethernet device may be capable of filtering ethernet packets based on VLAN ID. This requires that when the VLAN interface is created over an HSR/PRP interface, it passes the VID information to

Re: [PATCH] kvm: selftest: fix noop test in guest_memfd_test.c

2024-10-24 Thread Gowans, James
On Thu, 2024-10-24 at 10:59 +0100, Patrick Roy wrote: > The loop in test_create_guest_memfd_invalid that is supposed to test > that nothing is accepted as a valid flag to KVM_CREATE_GUEST_MEMFD was > initializing `flag` as 0 instead of BIT(0). This caused the loop to > immediately exit instead of i

[PATCH] kvm: selftest: fix noop test in guest_memfd_test.c

2024-10-24 Thread Patrick Roy
The loop in test_create_guest_memfd_invalid that is supposed to test that nothing is accepted as a valid flag to KVM_CREATE_GUEST_MEMFD was initializing `flag` as 0 instead of BIT(0). This caused the loop to immediately exit instead of iterating over BIT(0), BIT(1), ... . Fixes: 8a89efd43423 ("KVM

[PATCH] selftests/mount_setattr: fix idmap_mount_tree_invalid failed to run

2024-10-24 Thread zhouyuhang
From: zhouyuhang Test case idmap_mount_tree_invalid failed to run on the newer kernel with the following output: # RUN mount_setattr_idmapped.idmap_mount_tree_invalid ... # mount_setattr_test.c:1428:idmap_mount_tree_invalid:Expected sys_mount_setattr(open_tree_fd, "", AT_EMPTY_PATH

[PATCH] kunit: string-stream: Fix a UAF bug in kunit_init_suite()

2024-10-24 Thread Jinjie Ruan
In kunit_debugfs_create_suite(), if alloc_string_stream() fails in the kunit_suite_for_each_test_case() loop, the "suite->log = stream" has assigned before, and the error path only free the suite->log's stream memory but not set it to NULL in string_stream_destroy(), so the later string_stream_clea

Re: [PATCH] vsock/test: fix failures due to wrong SO_RCVLOWAT parameter

2024-10-24 Thread Stefano Garzarella
On Wed, Oct 23, 2024 at 04:00:31PM -0500, Konstantin Shkolnyy wrote: This happens on 64-bit big-endian machines. SO_RCVLOWAT requires an int parameter. However, instead of int, the test uses unsigned long in one place and size_t in another. Both are 8 bytes long on 64-bit machines. The kernel, ha

Re: [PATCH V2] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-24 Thread zhang warden
> On Oct 24, 2024, at 16:20, Petr Mladek wrote: > > On Thu 2024-10-24 12:43:17, Wardenjohn wrote: >> Add selftest test cases to sysfs attribute 'stack_order'. >> >> Suggested-by: Petr Mladek >> Signed-off-by: Wardenjohn >> --- >> .../testing/selftests/livepatch/test-sysfs.sh | 71 ++

Re: [PATCH V2] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-24 Thread Petr Mladek
On Thu 2024-10-24 12:43:17, Wardenjohn wrote: > Add selftest test cases to sysfs attribute 'stack_order'. > > Suggested-by: Petr Mladek > Signed-off-by: Wardenjohn > --- > .../testing/selftests/livepatch/test-sysfs.sh | 71 +++ > 1 file changed, 71 insertions(+) > > diff --git

Re: [PATCH 1/4] dt-bindings: remoteproc: fsl,imx-rproc: add new compatible

2024-10-24 Thread Krzysztof Kozlowski
On Wed, Oct 23, 2024 at 12:21:11PM -0400, Laurentiu Mihalcea wrote: > From: Laurentiu Mihalcea > > Add new compatible for imx95's CM7 with SOF. > > Signed-off-by: Laurentiu Mihalcea > --- > .../bindings/remoteproc/fsl,imx-rproc.yaml| 58 +-- > 1 file changed, 53 insertions(

RE: [PATCH net-next v3 3/3] selftests: nic_performance: Add selftest for performance of NIC driver

2024-10-24 Thread Mohan.Prasad
Hello Paolo, Thank you for the review comments. > > Add selftest case to check the send and receive throughput. > > Supported link modes between local NIC driver and partner are varied. > > Then send and receive throughput is captured and verified. Test uses > > iperf3 tool. > > > > Signed-off-by

RE: [PATCH net-next v3 1/3] selftests: nic_link_layer: Add link layer selftest for NIC driver

2024-10-24 Thread Mohan.Prasad
Hello Paolo, Thank you for the review comments. > > Add selftest file for the link layer tests of a NIC driver. > > Test for auto-negotiation is added. > > Add LinkConfig class for changing link layer configs. > > Selftest makes use of ksft modules and ethtool. > > Include selftest file in the Ma

[PATCH V2] selftests: livepatch: add test cases of stack_order sysfs interface

2024-10-24 Thread Wardenjohn
Add selftest test cases to sysfs attribute 'stack_order'. Suggested-by: Petr Mladek Signed-off-by: Wardenjohn --- .../testing/selftests/livepatch/test-sysfs.sh | 71 +++ 1 file changed, 71 insertions(+) diff --git a/tools/testing/selftests/livepatch/test-sysfs.sh b/tools/testi