[PATCH v11 5/5] KVM: selftests: Add test cases for LoongArch

2025-04-26 Thread Bibo Mao
Some common KVM test cases are supported on LoongArch now as following: coalesced_io_test demand_paging_test dirty_log_perf_test dirty_log_test guest_print_test hardware_disable_test kvm_binary_stats_test kvm_create_max_vcpus kvm_page_table_test memslot_modification_stress_test

[PATCH v11 4/5] KVM: selftests: Add ucall test support for LoongArch

2025-04-26 Thread Bibo Mao
Add ucall test support for LoongArch, ucall method on LoongArch uses undefined mmio area. It will cause vCPU exiting to hypervisor so that hypervisor can communicate with vCPU. Signed-off-by: Bibo Mao --- .../selftests/kvm/include/loongarch/ucall.h | 20 ++ .../selftests/kvm/lib/loonga

[PATCH v11 0/5] KVM: selftests: Add LoongArch support

2025-04-26 Thread Bibo Mao
This patchset adds KVM selftests for LoongArch system, currently only some common test cases are supported and pass to run. These test cases are listed as following: coalesced_io_test demand_paging_test dirty_log_perf_test dirty_log_test guest_print_test hardware_disable_tes

[PATCH v11 3/5] KVM: selftests: Add core KVM selftests support for LoongArch

2025-04-26 Thread Bibo Mao
Add core KVM selftests support for LoongArch, it includes exception handler, mmu page table setup and vCPU startup entry support. Signed-off-by: Bibo Mao --- .../selftests/kvm/lib/loongarch/exception.S | 59 +++ .../selftests/kvm/lib/loongarch/processor.c | 342 ++ 2 files c

[PATCH v11 2/5] KVM: selftests: Add KVM selftests header files for LoongArch

2025-04-26 Thread Bibo Mao
Add KVM selftests header files for LoongArch, including processor.h and kvm_util_arch.h. It mainly contains LoongArch CSR register and page table entry definition. Signed-off-by: Bibo Mao --- .../testing/selftests/kvm/include/kvm_util.h | 5 + .../kvm/include/loongarch/kvm_util_arch.h |

[PATCH v11 1/5] KVM: selftests: Add VM_MODE_P47V47_16K VM mode

2025-04-26 Thread Bibo Mao
On LoongArch system, 16K page is used in general and GVA width is 47 bit and GPA width is 47 bit also, here add new VM mode VM_MODE_P47V47_16K. Signed-off-by: Bibo Mao --- tools/testing/selftests/kvm/include/kvm_util.h | 1 + tools/testing/selftests/kvm/lib/kvm_util.c | 3 +++ 2 files change

Re: [PATCH v10 2/5] KVM: selftests: Add KVM selftests header files for LoongArch

2025-04-26 Thread bibo mao
On 2025/4/26 上午8:34, Sean Christopherson wrote: On Mon, Apr 21, 2025, Bibo Mao wrote: Add KVM selftests header files for LoongArch, including processor.h and kvm_util_base.h. Nit, kvm_util_arch.h, not kvm_util_base.h. I only noticed because I still have nightmares about kvm_util_base.h. :-

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-26 Thread Peng Fan
On Sun, Apr 27, 2025 at 08:11:43AM +0800, xiaolei wang wrote: > >On 4/27/25 04:14, Mathieu Poirier wrote: >> CAUTION: This email comes from a non Wind River email account! >> Do not click links or open attachments unless you recognize the sender and >> know the content is safe. >> >> On Sat, 26 A

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-26 Thread Peng Fan
On Sat, Apr 26, 2025 at 03:47:50PM -0600, Mathieu Poirier wrote: >On Sat, 26 Apr 2025 at 06:41, Peng Fan wrote: >> >> On Wed, Apr 23, 2025 at 04:21:56PM -0300, Hiago De Franco wrote: >> >Hi Mathieu, >> > >> >On Wed, Apr 23, 2025 at 11:14:17AM -0600, Mathieu Poirier wrote: >> >> Good morning, >> >>

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-26 Thread xiaolei wang
On 4/27/25 04:14, Mathieu Poirier wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Sat, 26 Apr 2025 at 07:46, xiaolei wang wrote: On 4/26/25 21:18, Peng Fan wrote:

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-26 Thread Mathieu Poirier
On Sat, 26 Apr 2025 at 07:46, xiaolei wang wrote: > > > On 4/26/25 21:18, Peng Fan wrote: > > CAUTION: This email comes from a non Wind River email account! > > Do not click links or open attachments unless you recognize the sender and > > know the content is safe. > > > > On Sat, Apr 26, 2025 at

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-26 Thread Mathieu Poirier
On Sat, 26 Apr 2025 at 06:41, Peng Fan wrote: > > On Wed, Apr 23, 2025 at 04:21:56PM -0300, Hiago De Franco wrote: > >Hi Mathieu, > > > >On Wed, Apr 23, 2025 at 11:14:17AM -0600, Mathieu Poirier wrote: > >> Good morning, > >> > >> On Wed, Apr 23, 2025 at 12:51:31PM -0300, Hiago De Franco wrote: >

Re: [PATCH net-next v2] vhost/net: Defer TX queue re-enable until after sendmsg

2025-04-26 Thread Jon Kohler
> On Apr 26, 2025, at 3:06 PM, Jon Kohler wrote: > > > >> On Apr 24, 2025, at 8:11 AM, Michael S. Tsirkin wrote: >> >> !---| >> CAUTION: External Email >> >> |---

Re: [PATCH net-next v2] vhost/net: Defer TX queue re-enable until after sendmsg

2025-04-26 Thread Jon Kohler
> On Apr 24, 2025, at 8:11 AM, Michael S. Tsirkin wrote: > > !---| > CAUTION: External Email > > |---! > > On Thu, Apr 24, 2025 at 01:48:53PM +0200, Paolo Abeni wrot

Re: [GIT PULL] OpenRISC updates for 6.15

2025-04-26 Thread pr-tracker-bot
The pull request you sent on Sat, 26 Apr 2025 07:30:45 +0100: > https://github.com/openrisc/linux.git tags/for-linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/ec0c2d5359e2f288d75d98465829d31c6d26da47 Thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.ke

[PATCH v1 7/7] kbuild: Create modules.builtin.modinfo for modpost results

2025-04-26 Thread Alexey Gladkov
Create modules.builtin.modinfo as a combination of modinfo from vmlinux and the result of generating modalias by modpost. Signed-off-by: Alexey Gladkov --- scripts/Makefile.vmlinux | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/scripts/Makefil

[PATCH v1 4/7] modpost: Make mod_device_table aliases more unique

2025-04-26 Thread Alexey Gladkov
In order to avoid symbol conflicts if they appear in the same binary, a more unique alias identifier can be generated. Signed-off-by: Alexey Gladkov --- include/linux/module.h | 14 -- scripts/mod/file2alias.c | 18 ++ 2 files changed, 26 insertions(+), 6 deletions(

[PATCH v1 6/7] kbuild: Move modules.builtin.modinfo to another makefile

2025-04-26 Thread Alexey Gladkov
The creation of modules.builtin.modinfo is going to depend on .vmlinux.export.o so it is worth moving its creation closer to it. Signed-off-by: Alexey Gladkov --- scripts/Makefile.vmlinux | 26 ++ scripts/Makefile.vmlinux_o | 26 +- 2 files chang

[PATCH v1 5/7] modpost: Create modalias for builtin modules

2025-04-26 Thread Alexey Gladkov
For some modules, modalias is generated using the modpost utility and the section is added to the module file. When a module is added inside vmlinux, modpost does not generate modalias for such modules and the information is lost. As a result kmod (which uses modules.builtin.modinfo in userspace)

[PATCH v1 3/7] modules: Add macros to specify modinfo prefix

2025-04-26 Thread Alexey Gladkov
The __MODULE_INFO macros always use __MODULE_INFO_PREFIX. The only way to use a different prefix is to override __MODULE_INFO_PREFIX, which is not very useful. The new macro will be used in file2alias.c to generate modalias for builtin modules. Signed-off-by: Alexey Gladkov --- include/linux/mo

[PATCH v1 2/7] scsi: Define MODULE_DEVICE_TABLE only if necessary

2025-04-26 Thread Alexey Gladkov
Define MODULE_DEVICE_TABLE only if a structure is defined for it. drivers/scsi/BusLogic.c:3735:26: error: use of undeclared identifier 'blogic_pci_tbl' 3735 | MODULE_DEVICE_TABLE(pci, blogic_pci_tbl); | ^ 1 error generated. Fixes: 1079a2d251f2 ("[SCSI] BusLogic: s

[PATCH v1 1/7] mfd: stmpe-spi: Correct the name used in MODULE_DEVICE_TABLE

2025-04-26 Thread Alexey Gladkov
The name used in the macro does not exist. drivers/mfd/stmpe-spi.c:132:26: error: use of undeclared identifier 'stmpe_id' 132 | MODULE_DEVICE_TABLE(spi, stmpe_id); | ^ 1 error generated. Fixes: e789995d5c61 ("mfd: Add support for STMPE SPI interface") Cc: Lee Jone

[PATCH v1 0/7] Add generated modalias to modules.builtin.modinfo

2025-04-26 Thread Alexey Gladkov
The modules.builtin.modinfo file is used by userspace (kmod to be specific) to get information about builtin modules. Among other information about the module, information about module aliases is stored. This is very important to determine that a particular modalias will be handled by a module that

Re: [PATCH] usr/include: openrisc: don't HDRTEST bpf_perf_event.h

2025-04-26 Thread Stafford Horne
On Sat, Apr 26, 2025 at 08:45:38AM -0700, Randy Dunlap wrote: > > > On 4/25/25 11:00 PM, Stafford Horne wrote: > > Hi Randy, > > > > On Fri, Apr 25, 2025 at 08:08:15PM -0700, Randy Dunlap wrote: > >> Since openrisc does not support PERF_EVENTS, omit the HDRTEST of > >> bpf_perf_event.h for arch/

Re: [PATCH] usr/include: openrisc: don't HDRTEST bpf_perf_event.h

2025-04-26 Thread Randy Dunlap
On 4/25/25 11:00 PM, Stafford Horne wrote: > Hi Randy, > > On Fri, Apr 25, 2025 at 08:08:15PM -0700, Randy Dunlap wrote: >> Since openrisc does not support PERF_EVENTS, omit the HDRTEST of >> bpf_perf_event.h for arch/openrisc/. >> >> Fixes a build error: >> usr/include/linux/bpf_perf_event.h:1

[PATCH net 1/4] net: dsa: felix: fix broken taprio gate states after clock jump

2025-04-26 Thread Vladimir Oltean
Simplest setup to reproduce the issue: connect 2 ports of the LS1028A-RDB together (eno0 with swp0) and run: $ ip link set eno0 up && ip link set swp0 up $ tc qdisc replace dev swp0 parent root handle 100 taprio num_tc 8 \ queues 1@0 1@1 1@2 1@3 1@4 1@5 1@6 1@7 map 0 1 2 3 4 5 6 7 \

[PATCH net 2/4] selftests: net: tsn_lib: create common helper for counting received packets

2025-04-26 Thread Vladimir Oltean
This snippet will be necessary for a future isochron-based test, so provide a simpler high-level interface for counting the received packets. Signed-off-by: Vladimir Oltean --- tools/testing/selftests/drivers/net/ocelot/psfp.sh | 7 +-- tools/testing/selftests/net/forwarding/tsn_lib.sh | 1

[PATCH net 3/4] selftests: net: tsn_lib: add window_size argument to isochron_do()

2025-04-26 Thread Vladimir Oltean
Make out-of-band testing (send a packet when its traffic class gate is closed, expecting it to be delayed) more predictable by allowing the window size to be customized by isochron_do(). >From man isochron-send, the window size alters the advance time (the delta between the transmission time of th

[PATCH net 4/4] selftests: net: tc_taprio: new test

2025-04-26 Thread Vladimir Oltean
Add a forwarding path test for tc-taprio, based on isochron. This is specifically intended for NICs with an offloaded data path (switchdev/DSA) and requires taprio 'flags 2'. Also, $h1 and $h2 must support hardware timestamping, and $h1 tc-etf offload, for isochron to work. Packets received by a s

[PATCH net 0/4] Fix Felix DSA taprio gates after clock jump

2025-04-26 Thread Vladimir Oltean
Richie Pearn presented a reproducible situation where traffic would get blocked on the NXP LS1028A switch if a certain taprio schedule was applied, and stepping the PTP clock would take place. The latter event is an expected initial occurrence, but also at runtime, for example when transitioning fr

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-26 Thread xiaolei wang
On 4/26/25 21:18, Peng Fan wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Sat, Apr 26, 2025 at 02:53:47PM +0800, Xiaolei Wang wrote: When rproc->state = RPROC_DETACH

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-26 Thread Peng Fan
On Wed, Apr 23, 2025 at 04:21:56PM -0300, Hiago De Franco wrote: >Hi Mathieu, > >On Wed, Apr 23, 2025 at 11:14:17AM -0600, Mathieu Poirier wrote: >> Good morning, >> >> On Wed, Apr 23, 2025 at 12:51:31PM -0300, Hiago De Franco wrote: >> > From: Hiago De Franco >> > >> > The "clocks" device tree

Re: [PATCH V2 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-26 Thread Peng Fan
On Sat, Apr 26, 2025 at 02:53:47PM +0800, Xiaolei Wang wrote: >When rproc->state = RPROC_DETACHED and rproc_attach() is used >to attach to the remote processor, if rproc_handle_resources() >returns a failure, the resources allocated by rproc_prepare_device() >should be released, otherwise the follo

Re: [PATCH 00/15] tools/nolibc: various new functions

2025-04-26 Thread Willy Tarreau
Hi Thomas, On Wed, Apr 23, 2025 at 05:01:30PM +0200, Thomas Weißschuh wrote: > A few functions used by different selftests. > Adding them now avoids later conflicts between different selftest serieses. > > Also add full support for nolibc-test.c on riscv32. > All unsupported syscalls have been re

Re: [PATCH 13/15] tools/nolibc: add fopen()

2025-04-26 Thread Willy Tarreau
On Wed, Apr 23, 2025 at 05:01:43PM +0200, Thomas Weißschuh wrote: > +static __attribute__((unused)) > +FILE *fopen(const char *pathname, const char *mode) > +{ > + int flags, fd; > + > + if (!strcmp(mode, "r")) > + flags = O_RDONLY; > + else if (!strcmp(mode, "w")) > +

Re: [PATCH bpf-next v2 06/11] bpf, arm64, powerpc: Change nospec to include v1 barrier

2025-04-26 Thread Luis Gerhorst
kernel test robot writes: > All errors (new ones prefixed by >>): > >arch/powerpc/net/bpf_jit_comp64.c: In function 'bpf_jit_build_body': >>> arch/powerpc/net/bpf_jit_comp64.c:814:4: error: a label can only be part of >>> a statement and a declaration is not a statement > 814 |bool

Re: [PATCH 12/15] tools/nolibc: add namespace functionality

2025-04-26 Thread Willy Tarreau
On Wed, Apr 23, 2025 at 05:01:42PM +0200, Thomas Weißschuh wrote: > This is used in various selftests and will be handy when integrating > those with nolibc. It could be useful to add a small note here mentioning that the test takes care of the optional OS support, and will run it only if started

Re: [PATCH 11/15] tools/nolibc: add difftime()

2025-04-26 Thread Willy Tarreau
On Wed, Apr 23, 2025 at 05:01:41PM +0200, Thomas Weißschuh wrote: > This is used in various selftests and will be handy when integrating > those with nolibc. > > Signed-off-by: Thomas Weißschuh > --- > tools/include/nolibc/time.h | 7 +++ > tools/testing/selftests/nolibc/nol

Re: [PATCH 10/15] tools/nolibc: add timerfd functionality

2025-04-26 Thread Willy Tarreau
On Wed, Apr 23, 2025 at 05:01:40PM +0200, Thomas Weißschuh wrote: > diff --git a/tools/include/nolibc/sys/timerfd.h > b/tools/include/nolibc/sys/timerfd.h > new file mode 100644 > index > ..2d61fc76fe9a9ba7571f52ff157a8a4807d7d9c9 > --- /dev/null > +++ b/to

Re: [PATCH 05/15] tools/nolibc: add getrandom()

2025-04-26 Thread Willy Tarreau
Hi Thomas, On Wed, Apr 23, 2025 at 05:01:35PM +0200, Thomas Weißschuh wrote: > --- /dev/null > +++ b/tools/include/nolibc/sys/random.h > @@ -0,0 +1,32 @@ > +/* SPDX-License-Identifier: LGPL-2.1 OR MIT */ > +/* > + * random definitions for NOLIBC > + * Copyright (C) 2025 Thomas Weißschuh > + */ >

Re: [PATCH 5/6] arm64: dts: qcom: qcs615: add ADSP and CDSP nodes

2025-04-26 Thread Konrad Dybcio
On 4/24/25 9:56 AM, Lijuan Gao wrote: > > > 在 4/23/2025 5:34 PM, Konrad Dybcio 写道: >> On 4/23/25 11:17 AM, Lijuan Gao wrote: >>> Add nodes for remoteprocs: ADSP and CDSP for QCS615 SoC to enable proper >>> remoteproc functionality. >>> >>> Signed-off-by: Lijuan Gao >>> --- [...] >>> +    r

Re: [RFC PATCH net-next] virtio-net: support zerocopy multi buffer XDP in mergeable

2025-04-26 Thread Bui Quang Minh
On 4/26/25 15:27, Bui Quang Minh wrote: Currently, in zerocopy mode with mergeable receive buffer, virtio-net does not support multi buffer but a single buffer only. This commit adds support for multi mergeable receive buffer in the zerocopy XDP path by utilizing XDP buffer with frags. Signed-of

[RFC PATCH net-next] virtio-net: support zerocopy multi buffer XDP in mergeable

2025-04-26 Thread Bui Quang Minh
Currently, in zerocopy mode with mergeable receive buffer, virtio-net does not support multi buffer but a single buffer only. This commit adds support for multi mergeable receive buffer in the zerocopy XDP path by utilizing XDP buffer with frags. Signed-off-by: Bui Quang Minh --- drivers/net/vir