Re: [PATCH v4 09/14] selftests: harness: Move teardown conditional into test metadata

2025-06-09 Thread Nicolin Chen
Hi Thomas, CC += Jason On Mon, May 05, 2025 at 05:15:27PM +0200, Thomas Weißschuh wrote: > To get rid of setjmp()/longjmp(), the teardown logic needs to be usable > from __bail(). To access the atomic teardown conditional from there, > move it into the test metadata. > This also allows the remova

Re: [PATCH v4 12/14] selftests: harness: Stop using setjmp()/longjmp()

2025-06-09 Thread Nicolin Chen
Hi Thomas, CC += Jason On Mon, May 05, 2025 at 05:15:30PM +0200, Thomas Weißschuh wrote: > Usage of longjmp() was added to ensure that teardown is always run in > commit 63e6b2a42342 ("selftests/harness: Run TEARDOWN for ASSERT failures") > However instead of calling longjmp() to the teardown han

Re: [PATCH bpf-next v4 0/9] bpf: Mitigate Spectre v1 using barriers

2025-06-09 Thread patchwork-bot+netdevbpf
Hello: This series was applied to bpf/bpf-next.git (master) by Alexei Starovoitov : On Tue, 3 Jun 2025 22:57:51 +0200 you wrote: > This improves the expressiveness of unprivileged BPF by inserting > speculation barriers instead of rejecting the programs. > > The approach was previously presente

[PATCH V3 2/2] KVM: selftests: Change MDSCR_EL1 register holding variables as uint64_t

2025-06-09 Thread Anshuman Khandual
Change MDSCR_EL1 register holding local variables as uint64_t that reflects its true register width as well. Cc: Marc Zyngier Cc: Oliver Upton Cc: Joey Gouly Cc: k...@vger.kernel.org Cc: kvm...@lists.linux.dev Cc: linux-kernel@vger.kernel.org Cc: linux-kselft...@vger.kernel.org Cc: linux-arm-ke

Re: [PATCH] selftests/mm: Increase timeout from 180 to 900 seconds

2025-06-09 Thread Shivank Garg
On 6/10/2025 4:37 AM, Andrew Morton wrote: > On Mon, 9 Jun 2025 12:06:07 + Shivank Garg wrote: > >> The mm selftests are timing out with the current 180-second limit. >> Testing shows that run_vmtests.sh takes approximately 11 minutes >> (664 seconds) to complete. >> >> Increase the timeou

Re: [PATCH 2/2] drivers: remoteproc: Add C906L controller for Sophgo CV1800B SoC

2025-06-09 Thread Junhui Liu
Hi Peng, Thanks for your review. On 09/06/2025 16:43, Peng Fan wrote: > On Sun, Jun 08, 2025 at 10:37:40AM +0800, Junhui Liu wrote: >>Add initial support for the C906L remote processor found in the Sophgo >>CV1800B SoC. The C906L is an asymmetric core typically used to run an >>RTOS. This driver e

Re: [PATCH bpf-next v4 0/9] bpf: Mitigate Spectre v1 using barriers

2025-06-09 Thread Kumar Kartikeya Dwivedi
On Tue, 3 Jun 2025 at 23:04, Luis Gerhorst wrote: > > This improves the expressiveness of unprivileged BPF by inserting > speculation barriers instead of rejecting the programs. > > The approach was previously presented at LPC'24 [1] and RAID'24 [2]. > > To mitigate the Spectre v1 (PHT) vulnerabil

Re: [PATCH v2 59/62] livepatch/klp-build: Introduce klp-build script for generating livepatch modules

2025-06-09 Thread Joe Lawrence
On Fri, May 09, 2025 at 01:17:23PM -0700, Josh Poimboeuf wrote: > +revert_patch() { > + local patch="$1" > + shift > + local extra_args=("$@") > + local tmp=() > + > + ( cd "$SRC" && git apply --reverse "${extra_args[@]}" "$patch" ) > + git_refresh "$patch" > + > + for p

Re: [PATCH v2 59/62] livepatch/klp-build: Introduce klp-build script for generating livepatch modules

2025-06-09 Thread Joe Lawrence
On Mon, Jun 09, 2025 at 10:05:53PM -0400, Joe Lawrence wrote: > + # Copy symbol namespace > + readelf -p .modinfo "$ORIG_DIR/$rel_file" | \ > + gawk -F= '/\ namespaces Errr, that is $PATCHED_DIR/$rel_file if we want to pick up the updated list of namespa

Re: [PATCH v3] dt-bindings: pmem: Convert binding to YAML

2025-06-09 Thread Drew Fustini
On Mon, Jun 09, 2025 at 09:31:26AM -0500, Ira Weiny wrote: > Dan Williams wrote: > > [ add Ira ] > > > > Drew Fustini wrote: > > > Convert the PMEM device tree binding from text to YAML. This will allow > > > device trees with pmem-region nodes to pass dtbs_check. > > > > > > Acked-by: Conor Dool

[PATCH v3 RESEND] selftests: filesystems: Add functional test for the abort file in fusectl

2025-06-09 Thread Chen Linxuan
This patch add a simple functional test for the "abort" file in fusectlfs (/sys/fs/fuse/connections/ID/about). A simple fuse daemon is added for testing. Related discussion can be found in the link below. Link: https://lore.kernel.org/all/CAOQ4uxjKFXOKQxPpxtS6G_nR0tpw95w0GiO68UcWg_OBhmSY=q...@m

[PATCH RESEND] selftests: add missing include

2025-06-09 Thread Chen Linxuan
I failed to build this test on Ubuntu 24.04. Compiler complained about undefined functions mount, umount and some mount related flags. Signed-off-by: Chen Linxuan --- tools/testing/selftests/pid_namespace/pid_max.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/pid_n

[PATCH RESEND] selftests: Suppress unused variable warning

2025-06-09 Thread Chen Linxuan
When running `make kselftest`, the following compilation warning was encountered: mount-notify_test.c: In function ‘fanotify_rmdir’: mount-notify_test.c:490:17: warning: ignoring return value of ‘chdir’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 490 | chdir(

[PATCH RESEND] selftests/memfd: clean Makefile

2025-06-09 Thread Chen Linxuan
When writing a test for fusectl, I referred to this Makefile as a reference for creating a FUSE daemon in the selftests. While doing so, I noticed that there is a minor issue in the Makefile. The fuse_mnt.c file is not actually compiled into fuse_mnt.o, and the code setting CFLAGS for it never tak

Re: [PATCH v2 59/62] livepatch/klp-build: Introduce klp-build script for generating livepatch modules

2025-06-09 Thread Joe Lawrence
On Mon, Jun 09, 2025 at 04:59:37PM -0700, Josh Poimboeuf wrote: > On Mon, Jun 09, 2025 at 05:20:53PM -0400, Joe Lawrence wrote: > > If you touch sound/soc/sof/intel/, klp-build will error out with: > > > > Building patch module: livepatch-unCVE-2024-58012.ko > > ERROR: modpost: module livepatc

Re: [PATCH v4 5/7] cxl/region: Introduce SOFT RESERVED resource removal on region teardown

2025-06-09 Thread Koralahalli Channabasappa, Smita
Hi Jonathan, On 6/9/2025 5:54 AM, Jonathan Cameron wrote: On Tue, 3 Jun 2025 22:19:47 + Smita Koralahalli wrote: Reworked from a patch by Alison Schofield Previously, when CXL regions were created through autodiscovery and their resources overlapped with SOFT RESERVED ranges, the soft r

RE: [PATCH] remoteproc: xlnx: allow single core use in split mode

2025-06-09 Thread Peng Fan
> Subject: [PATCH] remoteproc: xlnx: allow single core use in split mode > > It's a valid use case to have only one core enabled in cluster in split > mode. Remove exact core count expecatation from the driver. > > Signed-off-by: Tanmay Shah > --- > drivers/remoteproc/xlnx_r5_remoteproc.c | 3 -

Re: [PATCH 2/2] rcu: Fix lockup when RCU reader used while IRQ exiting

2025-06-09 Thread Boqun Feng
On Tue, Jun 10, 2025 at 01:26:46AM +0200, Frederic Weisbecker wrote: > Le Mon, Jun 09, 2025 at 12:49:06PM -0700, Boqun Feng a écrit : > > Hi Joel, > > > > On Mon, Jun 09, 2025 at 02:01:24PM -0400, Joel Fernandes wrote: > > > During rcu_read_unlock_special(), if this happens during irq_exit(), we >

Re: [PATCH v2 59/62] livepatch/klp-build: Introduce klp-build script for generating livepatch modules

2025-06-09 Thread Josh Poimboeuf
On Mon, Jun 09, 2025 at 05:20:53PM -0400, Joe Lawrence wrote: > If you touch sound/soc/sof/intel/, klp-build will error out with: > > Building patch module: livepatch-unCVE-2024-58012.ko > ERROR: modpost: module livepatch-unCVE-2024-58012 uses symbol > hda_dai_config from namespace SND_SOC_SO

Re: [PATCH net-next v2 0/4] udp_tunnel: remove rtnl_lock dependency

2025-06-09 Thread Jakub Kicinski
On Mon, 9 Jun 2025 16:19:34 -0700 Stanislav Fomichev wrote: > On 06/09, Jakub Kicinski wrote: > > On Mon, 9 Jun 2025 09:25:37 -0700 Stanislav Fomichev wrote: > > > Recently bnxt had to grow back a bunch of rtnl dependencies because > > > of udp_tunnel's infra. Add separate (global) mutext to pro

Re: [PATCH net-next v2 0/4] udp_tunnel: remove rtnl_lock dependency

2025-06-09 Thread Stanislav Fomichev
On 06/09, Jakub Kicinski wrote: > On Mon, 9 Jun 2025 09:25:37 -0700 Stanislav Fomichev wrote: > > Recently bnxt had to grow back a bunch of rtnl dependencies because > > of udp_tunnel's infra. Add separate (global) mutext to protect > > udp_tunnel state. > > Appears to break the selftest, unfortu

Re: [PATCH v2 52/62] objtool/klp: Introduce klp diff subcommand for diffing object files

2025-06-09 Thread Josh Poimboeuf
On Mon, Jun 09, 2025 at 02:32:19PM -0400, Joe Lawrence wrote: > On Fri, May 09, 2025 at 01:17:16PM -0700, Josh Poimboeuf wrote: > > +static int validate_ffunction_fdata_sections(struct elf *elf) > > +{ > > + struct symbol *sym; > > + bool found_text = false, found_data = false; > > + > > + fo

Re: [PATCH 2/2] rcu: Fix lockup when RCU reader used while IRQ exiting

2025-06-09 Thread Frederic Weisbecker
Le Mon, Jun 09, 2025 at 12:49:06PM -0700, Boqun Feng a écrit : > Hi Joel, > > On Mon, Jun 09, 2025 at 02:01:24PM -0400, Joel Fernandes wrote: > > During rcu_read_unlock_special(), if this happens during irq_exit(), we > > can lockup if an IPI is issued. This is because the IPI itself triggers > >

Re: [PATCH v4 2/7] cxl/core: Remove CONFIG_CXL_SUSPEND and always build suspend.o

2025-06-09 Thread Koralahalli Channabasappa, Smita
On 6/9/2025 4:02 AM, Jonathan Cameron wrote: On Tue, 3 Jun 2025 22:19:44 + Smita Koralahalli wrote: In preparation for soft-reserved resource handling, make the suspend infrastructure always available by removing the CONFIG_CXL_SUSPEND Kconfig option. This ensures cxl_mem_active_inc()/d

Re: [PATCH] selftests/mm: Increase timeout from 180 to 900 seconds

2025-06-09 Thread Andrew Morton
On Mon, 9 Jun 2025 12:06:07 + Shivank Garg wrote: > The mm selftests are timing out with the current 180-second limit. > Testing shows that run_vmtests.sh takes approximately 11 minutes > (664 seconds) to complete. > > Increase the timeout to 900 seconds (15 minutes) to provide sufficient >

[PATCH] remoteproc: xlnx: allow single core use in split mode

2025-06-09 Thread Tanmay Shah
It's a valid use case to have only one core enabled in cluster in split mode. Remove exact core count expecatation from the driver. Signed-off-by: Tanmay Shah --- drivers/remoteproc/xlnx_r5_remoteproc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/remoteproc/xlnx_r5_remoteproc.c

Re: [PATCH net-next v2 0/4] udp_tunnel: remove rtnl_lock dependency

2025-06-09 Thread Jakub Kicinski
On Mon, 9 Jun 2025 09:25:37 -0700 Stanislav Fomichev wrote: > Recently bnxt had to grow back a bunch of rtnl dependencies because > of udp_tunnel's infra. Add separate (global) mutext to protect > udp_tunnel state. Appears to break the selftest, unfortunately: https://netdev.bots.linux.dev/contes

Re: [PATCH 2/2] module: Avoid unnecessary return value initialization in move_module()

2025-06-09 Thread Sami Tolvanen
On Sat, Jun 07, 2025 at 06:16:28PM +0200, Petr Pavlu wrote: > All error conditions in move_module() set the return value by updating the > ret variable. Therefore, it is not necessary to the initialize the variable > when declaring it. > > Remove the unnecessary initialization. > > Signed-off-by:

Re: [PATCH 1/2] module: Fix memory deallocation on error path in move_module()

2025-06-09 Thread Sami Tolvanen
On Sun, Jun 08, 2025 at 09:25:34AM +0200, Petr Pavlu wrote: > On 6/7/25 6:16 PM, Petr Pavlu wrote: > > The function move_module() uses the variable t to track how many memory > > types it has allocated and consequently how many should be freed if an > > error occurs. > > > > The variable is initia

Re: [PATCH v2 59/62] livepatch/klp-build: Introduce klp-build script for generating livepatch modules

2025-06-09 Thread Joe Lawrence
On Fri, May 09, 2025 at 01:17:23PM -0700, Josh Poimboeuf wrote: > +# Build and post-process livepatch module in $KMOD_DIR > +build_patch_module() { > + local makefile="$KMOD_DIR/Kbuild" > + local log="$KMOD_DIR/build.log" > + local cflags=() > + local files=() > + local cmd=() >

Re: (subset) [PATCH v4 0/5] Add DisplayPort sound support for Fairphone 5 smartphone

2025-06-09 Thread Mark Brown
On Wed, 07 May 2025 10:01:36 +0200, Luca Weiss wrote: > Add the necessary sound card bits and some dts additions to enable sound > over DisplayPort-over-USB-C, e.g. to a connected TV or monitor. > > The UCM files can be found here: > https://gitlab.postmarketos.org/postmarketOS/pmaports/-/tree/mas

Re: (subset) [PATCH v3 0/5] Add DisplayPort sound support for Fairphone 5 smartphone

2025-06-09 Thread Mark Brown
On Fri, 25 Apr 2025 10:07:24 +0200, Luca Weiss wrote: > Add the necessary sound card bits and some dts additions to enable sound > over DisplayPort-over-USB-C, e.g. to a connected TV or monitor. > > The UCM files can be found here: > https://gitlab.postmarketos.org/postmarketOS/pmaports/-/tree/mas

Re: [PATCH 2/2] rcu: Fix lockup when RCU reader used while IRQ exiting

2025-06-09 Thread Boqun Feng
Hi Joel, On Mon, Jun 09, 2025 at 02:01:24PM -0400, Joel Fernandes wrote: > During rcu_read_unlock_special(), if this happens during irq_exit(), we > can lockup if an IPI is issued. This is because the IPI itself triggers > the irq_exit() path causing a recursive lock up. > > This is precisely wha

Re: [PATCH bpf-next v2 1/2] bpf,ktls: Fix data corruption when using bpf_msg_pop_data() in ktls

2025-06-09 Thread Jakub Kicinski
On Mon, 9 Jun 2025 10:08:52 +0800 Jiayuan Chen wrote: > When sending plaintext data, we initially calculated the corresponding > ciphertext length. However, if we later reduced the plaintext data length > via socket policy, we failed to recalculate the ciphertext length. > > This results in trans

[PATCH] selftests/futex: Add futex_numa to .gitignore

2025-06-09 Thread Terry Tritton
futex_numa was never added to the .gitignore file. Add it. Signed-off-by: Terry Tritton --- tools/testing/selftests/futex/functional/.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/futex/functional/.gitignore b/tools/testing/selftests/futex/functional/.git

RE: [Intel-wired-lan] [PATCH net-next v2 3/4] netdevsim: remove udp_ports_sleep

2025-06-09 Thread Loktionov, Aleksandr
> -Original Message- > From: Intel-wired-lan On Behalf > Of Stanislav Fomichev > Sent: Monday, June 9, 2025 6:26 PM > To: net...@vger.kernel.org > Cc: da...@davemloft.net; eduma...@google.com; k...@kernel.org; > pab...@redhat.com; skall...@marvell.com; mani...@marvell.com; > andrew+net.

Re: [PATCH v2 52/62] objtool/klp: Introduce klp diff subcommand for diffing object files

2025-06-09 Thread Joe Lawrence
On Fri, May 09, 2025 at 01:17:16PM -0700, Josh Poimboeuf wrote: > +static int validate_ffunction_fdata_sections(struct elf *elf) > +{ > + struct symbol *sym; > + bool found_text = false, found_data = false; > + > + for_each_sym(elf, sym) { > + char sec_name[SEC_NAME_LEN]; >

Re: [PATCH 1/2] context_tracking: Provide helper to determine if we're in IRQ

2025-06-09 Thread Joel Fernandes
On 6/9/2025 2:01 PM, Joel Fernandes wrote: > context_tracking keeps track of whether we're handling IRQ well after > the preempt masks give take it off their books. We need this > functionality in a follow-up patch to fix a bug. Provide a helper API > for the same. > > Signed-off-by: Joel Ferna

[PATCH 2/2] rcu: Fix lockup when RCU reader used while IRQ exiting

2025-06-09 Thread Joel Fernandes
During rcu_read_unlock_special(), if this happens during irq_exit(), we can lockup if an IPI is issued. This is because the IPI itself triggers the irq_exit() path causing a recursive lock up. This is precisely what Xiongfeng found when invoking a BPF program on the trace_tick_stop() tracepoint As

[PATCH 1/2] context_tracking: Provide helper to determine if we're in IRQ

2025-06-09 Thread Joel Fernandes
context_tracking keeps track of whether we're handling IRQ well after the preempt masks give take it off their books. We need this functionality in a follow-up patch to fix a bug. Provide a helper API for the same. Signed-off-by: Joel Fernandes --- include/linux/context_tracking_irq.h | 2 ++ k

Re: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach to pre-booted remote cores

2025-06-09 Thread Hiago De Franco
On Wed, Jun 04, 2025 at 03:19:52AM +, Peng Fan wrote: > > Subject: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach to > > pre-booted remote cores > > > > From: Hiago De Franco > > > > When the remote core is started before Linux boots (e.g., by the > > bootloader), the driver current

Re: [PATCH v3 0/4] KVM: arm64: selftests: arch_timer_edge_cases fixes

2025-06-09 Thread Miguel Luis
Hi Sebastian, Thanks in advance. > On 5 Jun 2025, at 10:36, Sebastian Ott wrote: > > Some small fixes for arch_timer_edge_cases that I stumbled upon > while debugging failures for this selftest on ampere-one. > I’ve tested this test under three circumstances: 1) Original (!HAS_EL2 && !HAS_EL

Re: [PATCH v2 45/62] x86/extable: Define ELF section entry size for exception tables

2025-06-09 Thread Josh Poimboeuf
On Fri, Jun 06, 2025 at 09:26:30PM -0400, Brian Gerst wrote: > On Fri, Jun 6, 2025 at 3:48 AM Josh Poimboeuf wrote: > > > > On Thu, Jun 05, 2025 at 11:58:23PM -0400, Brian Gerst wrote: > > > On Fri, May 9, 2025 at 4:51 PM Josh Poimboeuf wrote: > > > > > > > > In preparation for the objtool klp di

Re: [PATCH net] virtio-net: drop the multi-buffer XDP packet in zerocopy

2025-06-09 Thread Jakub Kicinski
On Fri, 6 Jun 2025 22:48:53 +0700 Bui Quang Minh wrote: > >> But currently, if a multi-buffer packet arrives, it will not go through > >> XDP program so it doesn't increase the stats but still goes to network > >> stack. So I think it's not a correct behavior. > > Sounds fair, but at a glance the

Re: [PATCH v9 00/19] DCD: Add support for Dynamic Capacity Devices (DCD)

2025-06-09 Thread Fan Ni
On Tue, Jun 03, 2025 at 09:32:18AM -0700, Fan Ni wrote: > On Sun, Apr 13, 2025 at 05:52:08PM -0500, Ira Weiny wrote: > > A git tree of this series can be found here: > > > > https://github.com/weiny2/linux-kernel/tree/dcd-v6-2025-04-13 > > > > This is now based on 6.15-rc2. > > > > Due to th

Re: [PATCH v2] selftests: ir_decoder: Convert header comment to proper multi-line block

2025-06-09 Thread Shuah
On 6/6/25 16:39, Abdelrahman Fekry wrote: So, this is an updated version following the right way of writing change logs while making sure the signed-off-by mismatch is fixed. The above doesn't belong in the change log The test file for the IR decoder used single-line comments at the top to d

[PATCH net-next v2 1/4] udp_tunnel: remove rtnl_lock dependency

2025-06-09 Thread Stanislav Fomichev
Drivers that are using ops lock and don't depend on RTNL lock still need to manage it because udp_tunnel's RTNL dependency. Introduce new udp_tunnel_nic_lock and use it instead of rtnl_lock. Drop non-UDP_TUNNEL_NIC_INFO_MAY_SLEEP mode from udp_tunnel infra (udp_tunnel_nic_device_sync_work needs to

[PATCH net-next v10] selftests/vsock: add initial vmtest.sh for vsock

2025-06-09 Thread Bobby Eshleman
This commit introduces a new vmtest.sh runner for vsock. It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, H2G, and loopback. The testing tools from tools/testing/vsock/ are reused. Currently, only vsock_test is used. VMCI and hyperv support is included in the config file to be

[PATCH v19 10/10] arm64: dts: imx95: Add msi-map for pci-ep device

2025-06-09 Thread Frank Li
Add msi-map for pci-ep device. Signed-off-by: Frank Li --- change from v14 to v16 - none change from v13 to v14 - new patch --- arch/arm64/boot/dts/freescale/imx95.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/

[PATCH v19 09/10] pci: imx6: Add LUT setting for MSI/IOMMU in Endpoint mode

2025-06-09 Thread Frank Li
Support only one physical function, so call imx_pcie_add_lut_by_rid(0) to add a single LUT entry when operating in EP mode. Signed-off-by: Frank Li --- change from v14 to v16 - none change from v13 to v14 - new patch --- drivers/pci/controller/dwc/pci-imx6.c | 8 +++- 1 file changed, 7 inse

[PATCH v19 08/10] pci: imx6: Add helper function imx_pcie_add_lut_by_rid()

2025-06-09 Thread Frank Li
Add helper function imx_pcie_add_lut_by_rid(), which will be used for Endpoint mode in the future. No functional change. Signed-off-by: Frank Li --- change from v14 to v16 - none change from v13 to v14 - new patch --- drivers/pci/controller/dwc/pci-imx6.c | 17 ++--- 1 file changed,

[PATCH v19 07/10] selftests: pci_endpoint: Add doorbell test case

2025-06-09 Thread Frank Li
Add doorbell test case. Signed-off-by: Frank Li --- change from v14 to v16 - Add set IRQ type change from v13 to v14 - merge to selftests framework --- .../selftests/pci_endpoint/pci_endpoint_test.c | 28 ++ 1 file changed, 28 insertions(+) diff --git a/tools/testing/se

[PATCH v19 05/10] PCI: endpoint: pci-epf-test: Add doorbell test support

2025-06-09 Thread Frank Li
Add three registers: doorbell_bar, doorbell_addr, and doorbell_data. Use pci_epf_alloc_doorbell() to allocate a doorbell address space. Enable the Root Complex (RC) side driver to trigger pci-epc-test's doorbell callback handler by writing doorbell_data to the mapped doorbell_bar's address space.

[PATCH v19 06/10] misc: pci_endpoint_test: Add doorbell test case

2025-06-09 Thread Frank Li
Add three registers: PCIE_ENDPOINT_TEST_DB_BAR, PCIE_ENDPOINT_TEST_DB_ADDR, and PCIE_ENDPOINT_TEST_DB_DATA. Trigger the doorbell by writing data from PCI_ENDPOINT_TEST_DB_DATA to the address provided by PCI_ENDPOINT_TEST_DB_OFFSET and wait for endpoint feedback. Add two command to COMMAND_ENABLE_

[PATCH v19 04/10] PCI: endpoint: Add pci_epf_align_inbound_addr() helper for address alignment

2025-06-09 Thread Frank Li
Introduce the helper function pci_epf_align_inbound_addr() to adjust addresses according to PCI BAR alignment requirements, converting addresses into base and offset values. Signed-off-by: Frank Li --- Change from v15 to v16 - none Change from v14 to v15 - change out address type to dma_addr_t t

[PATCH v19 03/10] PCI: endpoint: pci-ep-msi: Add MSI address/data pair mutable check

2025-06-09 Thread Frank Li
Some MSI controller change address/data pair when irq_set_affinity(). Current PCI endpoint can't support this type MSI controller. Call irq_domain_is_msi_immutable() check if address/data pair immutable. Signed-off-by: Frank Li --- change in v18 - update commit message. remove 'include/linux/msi.

[PATCH v19 02/10] PCI: endpoint: Add RC-to-EP doorbell support using platform MSI controller

2025-06-09 Thread Frank Li
Doorbell feature is implemented by mapping the EP's MSI interrupt controller message address to a dedicated BAR in the EPC core. It is the responsibility of the EPF driver to pass the actual message data to be written by the host to the doorbell BAR region through its own logic. Tested-by: Niklas

[PATCH v19 01/10] PCI: endpoint: Set ID and of_node for function driver

2025-06-09 Thread Frank Li
Set device ID as 'vfunc_no << 3 | func_no' and use 'device_set_of_node_from_dev()' to set 'of_node' the same as the EPC parent device. Currently, EPF 'of_node' is NULL, but many functions depend on 'of_node' settings, such as DMA, IOMMU, and MSI. At present, all DMA allocation functions use the EP

[PATCH v19 00/10] PCI: EP: Add RC-to-EP doorbell with platform MSI controller

2025-06-09 Thread Frank Li
┌┐ ┌───┐ ┌┐ ││ │ │ ││ ││ │ PCI Endpoint │ │ PCI Host │ ││ │ │ │

Re: [PATCH v6 0/2] x86/fred: Prevent immediate repeat of single step trap on return from SIGTRAP handler

2025-06-09 Thread Sohil Mehta
On 6/9/2025 1:40 AM, Xin Li (Intel) wrote: > > Xin Li (Intel) (2): > x86/fred/signal: Prevent immediate repeat of single step trap on > return from SIGTRAP handler > selftests/x86: Add a test to detect infinite SIGTRAP handler loop > I see that Dave just applied the patches. Sending this

Re: [RESEND PATCH v16 0/6] Introduction of a remoteproc tee to load signed firmware

2025-06-09 Thread Arnaud POULIQUEN
Hello Mathieu, On 6/9/25 17:23, Mathieu Poirier wrote: > On Tue, Jun 03, 2025 at 12:08:02PM +0200, Arnaud Pouliquen wrote: >> Hello Bjorn and Mathieu, >> >> I am resending this series after waiting for over two months for Bjorn's >> feedback, despite a prior reminder. >> >> Please could you coordi

[PATCH net-next v2 3/4] netdevsim: remove udp_ports_sleep

2025-06-09 Thread Stanislav Fomichev
Now that there is only one path in udp_tunnel, there is no need to have udp_ports_sleep knob. Remove it and adjust the test. Cc: Michael Chan Signed-off-by: Stanislav Fomichev --- drivers/net/netdevsim/netdevsim.h | 2 -- drivers/net/netdevsim/udp_tunnels.c

[PATCH net-next v2 4/4] Revert "bnxt_en: bring back rtnl_lock() in the bnxt_open() path"

2025-06-09 Thread Stanislav Fomichev
This reverts commit 325eb217e41fa14f307c7cc702bd18d0bb38fe84. udp_tunnel infra doesn't need RTNL, should be safe to get back to only netdev instance lock. Cc: Michael Chan Reviewed-by: Aleksandr Loktionov Signed-off-by: Stanislav Fomichev --- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 36 +++

[PATCH net-next v2 2/4] net: remove redundant ASSERT_RTNL() in queue setup functions

2025-06-09 Thread Stanislav Fomichev
The existing netdev_ops_assert_locked() already asserts that either the RTNL lock or the per-device lock is held, making the explicit ASSERT_RTNL() redundant. Cc: Michael Chan Signed-off-by: Stanislav Fomichev --- net/core/dev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/core/dev.

[PATCH net-next v2 0/4] udp_tunnel: remove rtnl_lock dependency

2025-06-09 Thread Stanislav Fomichev
Recently bnxt had to grow back a bunch of rtnl dependencies because of udp_tunnel's infra. Add separate (global) mutext to protect udp_tunnel state. v2: - move the lock into udp_tunnel_nic (Jakub) - reorder the lock ordering (Jakub) - move udp_ports_sleep removal into separate patch and update the

Re: [PATCH 1/2] tools/nolibc: Provide vfork()

2025-06-09 Thread Mark Brown
On Mon, Jun 09, 2025 at 05:51:19PM +0200, Thomas Weißschuh wrote: > On 2025-06-09 16:43:55+0100, Mark Brown wrote: > > On Mon, Jun 09, 2025 at 05:34:33PM +0200, Thomas Weißschuh wrote: > > > For consistency: > > > #if defined(__NR_vfork) > > Are you sure? I'm seeing an awful lot of #ifdef __NR_f

Re: [RESEND PATCH v16 2/6] remoteproc: Add TEE support

2025-06-09 Thread Mathieu Poirier
Good morning, On Tue, Jun 03, 2025 at 12:08:04PM +0200, Arnaud Pouliquen wrote: > Add a remoteproc TEE (Trusted Execution Environment) driver that will be > probed by the TEE bus. If the associated Trusted application is supported > on the secure part, this driver offers a client interface to load

Re: [PATCH 1/2] tools/nolibc: Provide vfork()

2025-06-09 Thread Thomas Weißschuh
On 2025-06-09 16:43:55+0100, Mark Brown wrote: > On Mon, Jun 09, 2025 at 05:34:33PM +0200, Thomas Weißschuh wrote: > > On 2025-06-09 16:08:56+0100, Mark Brown wrote: > > > +static __attribute__((unused)) > > > +pid_t sys_vfork(void) > > > +{ > > > +#ifdef __NR_vfork > > > For consistency: > > #

[PATCH] gendwarfksyms: Fix structure type overrides

2025-06-09 Thread Sami Tolvanen
As we always iterate through the entire die_map when expanding type strings, recursively processing referenced types in type_expand_child() is not actually necessary. Furthermore, the type_string kABI rule added in commit c9083467f7b9 ("gendwarfksyms: Add a kABI rule to override type strings") can

Re: [PATCH 1/2] tools/nolibc: Provide vfork()

2025-06-09 Thread Mark Brown
On Mon, Jun 09, 2025 at 05:34:33PM +0200, Thomas Weißschuh wrote: > On 2025-06-09 16:08:56+0100, Mark Brown wrote: > > +#ifndef sys_vfork > This ifndef is not necessary here. > No architecture has a special version. Ah, I was adding it defensively in case it was needed in future. > > +static __

[PATCH RFT v17 4/8] fork: Add shadow stack support to clone3()

2025-06-09 Thread Mark Brown
Unlike with the normal stack there is no API for configuring the shadow stack for a new thread, instead the kernel will dynamically allocate a new shadow stack with the same size as the normal stack. This appears to be due to the shadow stack series having been in development since before the more

Re: [PATCH 1/2] tools/nolibc: Provide vfork()

2025-06-09 Thread Thomas Weißschuh
Small followup review, sorry for the noise. On 2025-06-09 16:08:56+0100, Mark Brown wrote: > +#ifndef sys_vfork This ifndef is not necessary here. No architecture has a special version. > +static __attribute__((unused)) > +pid_t sys_vfork(void) > +{ > +#ifdef __NR_vfork For consistency: #if d

[PATCH v2 3/3] kselftest/arm64: Specify SVE data when testing VL set in sve-ptrace

2025-06-09 Thread Mark Brown
Since f916dd32a943 ("arm64/fpsimd: ptrace: Mandate SVE payload for streaming-mode state") we reject attempts to write to the streaming mode regset even if there is no register data supplied, causing the tests for setting vector lengths and setting SVE_VL_INHERIT in sve-ptrace to spuriously fail. Se

[PATCH v2 2/3] kselftest/arm64: Fix test for streaming FPSIMD write in sve-ptrace

2025-06-09 Thread Mark Brown
Since f916dd32a943 ("arm64/fpsimd: ptrace: Mandate SVE payload for streaming-mode state") we do not support writing FPSIMD payload data when writing NT_ARM_SSVE but the sve-ptrace test has an explicit test for this being supported which was not updated to reflect the new behaviour. Fix the test to

[PATCH v2 1/3] kselftest/arm64: Fix check for setting new VLs in sve-ptrace

2025-06-09 Thread Mark Brown
The check that the new vector length we set was the expected one was typoed to an assignment statement which for some reason the compilers didn't spot, most likely due to the macros involved. Fixes: a1d7111257cd ("selftests: arm64: More comprehensively test the SVE ptrace interface") Acked-by: Ma

[PATCH v2 0/3] kselftest/arm64: Update sve-ptrace for ABI changes

2025-06-09 Thread Mark Brown
Mark Rutland's recent SME fixes updated the SME ABI to reject any attempt to write FPSIMD register data via the streaming mode SVE register set but did not update the sve-ptrace test to take account of this, resulting in spurious failures. Update the test for this, and also fix another preexisting

Re: [PATCH 1/2] tools/nolibc: Provide vfork()

2025-06-09 Thread Thomas Weißschuh
Hi Mark, On 2025-06-09 16:08:56+0100, Mark Brown wrote: > To allow testing of vfork() support in the arm64 basic-gcs test provide an > implementation for nolibc, using the vfork() syscall if one is available > and otherwise clone3(). We implement in terms of clone3() since the order > of the argum

Re: [RESEND PATCH v16 0/6] Introduction of a remoteproc tee to load signed firmware

2025-06-09 Thread Mathieu Poirier
On Tue, Jun 03, 2025 at 12:08:02PM +0200, Arnaud Pouliquen wrote: > Hello Bjorn and Mathieu, > > I am resending this series after waiting for over two months for Bjorn's > feedback, despite a prior reminder. > > Please could you coordinate between yourselves to determine who will continue > revie

[PATCH v4 3/3] rpmsg: ctrl: Introduce RPMSG_CREATE_EPT_FD_IOCTL uAPI

2025-06-09 Thread Dawei Li
Implement RPMSG_CREATE_EPT_FD_IOCTL, new uAPI for rpmsg ctrl, which shares most of operations of RPMSG_CREATE_EPT_IOCTL except that it returns fd representing eptdev to userspace directly. Possible calling procedures for userspace are: - fd = open("/dev/rpmsg_ctrlX") - ioctl(fd, RPMSG_CREATE_EPT_F

Re: [PATCH v2 2/3] remoteproc: imx_rproc: Add support for System Manager API

2025-06-09 Thread Mathieu Poirier
Good day, On Fri, Jun 06, 2025 at 09:55:13AM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > i.MX95 features a Cortex-M33 core, six Cortex-A55 cores, and > one Cortex-M7 core. The System Control Management Interface(SCMI) > firmware runs on the M33 core. The i.MX95 SCMI firmware named System >

[PATCH v4 0/3] rpmsg: Introduce RPMSG_CREATE_EPT_FD_IOCTL uAPI

2025-06-09 Thread Dawei Li
Hi, This is V4 of series which introduce new uAPI(RPMSG_CREATE_EPT_FD_IOCTL) for rpmsg subsystem. Current uAPI implementation for rpmsg ctrl & char device manipulation is abstracted in procedures below: - fd = open("/dev/rpmsg_ctrlX") - ioctl(fd, RPMSG_CREATE_EPT_IOCTL, &info); /dev/rpmsgY devnod

[PATCH v4 2/3] rpmsg: char: Implement eptdev based on anonymous inode

2025-06-09 Thread Dawei Li
Introduce new eptdev abstraction based on anonymous inode. The new API is exactly same with legacy one except: - It's anonymous and devnode/path free. - Its fops->open() is empty. Signed-off-by: Dawei Li --- drivers/rpmsg/rpmsg_char.c | 49 ++ drivers/rpmsg/r

[PATCH v4 1/3] rpmsg: char: Reuse eptdev logic for anonymous device

2025-06-09 Thread Dawei Li
Current uAPI implementation for rpmsg ctrl & char device manipulation is abstracted in procedures below: - fd = open("/dev/rpmsg_ctrlX") - ioctl(fd, RPMSG_CREATE_EPT_IOCTL, &info); /dev/rpmsgY devnode is generated. - fd_ep = open("/dev/rpmsgY", O_RDWR) - operations on fd_ep(write, read, poll ioct

[PATCH 2/2] kselftest/arm64: Add a test for vfork() with GCS

2025-06-09 Thread Mark Brown
Ensure that we've got at least some coverage of the special cases around vfork() by adding a test case in basic-gcs doing the same thing as the plain fork() one - vfork(), do a few checks and then return to the parent. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/gcs/basic-gcs.c |

[PATCH 0/2] kselftest/arm64: Add coverage for the interaction of vfork() and GCS

2025-06-09 Thread Mark Brown
I had cause to look at the vfork() support for GCS and realised that we don't have any direct test coverage, this series does so by adding vfork() to nolibc and then using that in basic-gcs to provide some simple vfork() coverage. Signed-off-by: Mark Brown --- Mark Brown (2): tools/nolibc:

[PATCH 1/2] tools/nolibc: Provide vfork()

2025-06-09 Thread Mark Brown
To allow testing of vfork() support in the arm64 basic-gcs test provide an implementation for nolibc, using the vfork() syscall if one is available and otherwise clone3(). We implement in terms of clone3() since the order of the arguments for clone() varies between architectures. Signed-off-by: Ma

[PATCH] selftests/mm: Increase timeout from 180 to 900 seconds

2025-06-09 Thread Shivank Garg
The mm selftests are timing out with the current 180-second limit. Testing shows that run_vmtests.sh takes approximately 11 minutes (664 seconds) to complete. Increase the timeout to 900 seconds (15 minutes) to provide sufficient buffer for the tests to complete successfully. Signed-off-by: Shiva

Re: [PATCH v3] dt-bindings: pmem: Convert binding to YAML

2025-06-09 Thread Ira Weiny
Dan Williams wrote: > [ add Ira ] > > Drew Fustini wrote: > > Convert the PMEM device tree binding from text to YAML. This will allow > > device trees with pmem-region nodes to pass dtbs_check. > > > > Acked-by: Conor Dooley > > Acked-by: Oliver O'Halloran > > Signed-off-by: Drew Fustini > > -

Re: [PATCH] vhost-scsi: Fix check for inline_sg_cnt exceeding preallocated limit

2025-06-09 Thread Stefan Hajnoczi
On Sat, Jun 07, 2025 at 12:40:29PM -0700, Alok Tiwari wrote: > The condition comparing ret to VHOST_SCSI_PREALLOC_SGLS was incorrect, > as ret holds the result of kstrtouint() (typically 0 on success), > not the parsed value. Update the check to use cnt, which contains the > actual user-provided va

Re: [PATCH v3] dt-bindings: pmem: Convert binding to YAML

2025-06-09 Thread Rob Herring
On Fri, Jun 06, 2025 at 11:11:17AM -0700, Drew Fustini wrote: > Convert the PMEM device tree binding from text to YAML. This will allow > device trees with pmem-region nodes to pass dtbs_check. > > Acked-by: Conor Dooley > Acked-by: Oliver O'Halloran > Signed-off-by: Drew Fustini > --- > Dan/Da

[PATCH] kselftest/arm64: Convert tpidr2 test to use kselftest.h

2025-06-09 Thread Mark Brown
Recent work by Thomas Weißschuh means that it is now possible to use kselftest.h with nolibc. Convert the tpidr2 test which is nolibc specific to use kselftest.h, making it look more standard and ensuring it gets the benefit of any work done on kselftest.h. Signed-off-by: Mark Brown --- tools/te

[PATCH] selftests/futex: Convert 32bit timespec struct to 64bit version for 32bit compatibility mode

2025-06-09 Thread Terry Tritton
Futex_waitv can not accept old_timespec32 struct, so userspace should convert it from 32bit to 64bit before syscall in 32bit compatible mode. This fix is based off [1] Link: https://lore.kernel.org/all/20231203235117.29677-1-we...@suse.com/ [1] Signed-off-by: Terry Tritton Signed-off-by: Wei G

[PATCH RFT v17 2/8] Documentation: userspace-api: Add shadow stack API documentation

2025-06-09 Thread Mark Brown
There are a number of architectures with shadow stack features which we are presenting to userspace with as consistent an API as we can (though there are some architecture specifics). Especially given that there are some important considerations for userspace code interacting directly with the feat

[PATCH RFT v17 0/8] fork: Support shadow stacks in clone3()

2025-06-09 Thread Mark Brown
The kernel has recently added support for shadow stacks, currently x86 only using their CET feature but both arm64 and RISC-V have equivalent features (GCS and Zicfiss respectively), I am actively working on GCS[1]. With shadow stacks the hardware maintains an additional stack containing only the

[PATCH RFT v17 8/8] selftests/clone3: Test shadow stack support

2025-06-09 Thread Mark Brown
Add basic test coverage for specifying the shadow stack for a newly created thread via clone3(), including coverage of the newly extended argument structure. We check that a user specified shadow stack can be provided, and that invalid combinations of parameters are rejected. In order to facilita

[PATCH RFT v17 7/8] selftests/clone3: Allow tests to flag if -E2BIG is a valid error code

2025-06-09 Thread Mark Brown
The clone_args structure is extensible, with the syscall passing in the length of the structure. Inside the kernel we use copy_struct_from_user() to read the struct but this has the unfortunate side effect of silently accepting some overrun in the structure size providing the extra data is all zero

[PATCH RFT v17 5/8] selftests/clone3: Remove redundant flushes of output streams

2025-06-09 Thread Mark Brown
Since there were widespread issues with output not being flushed the kselftest framework was modified to explicitly set the output streams unbuffered in commit 58e2847ad2e6 ("selftests: line buffer test program's stdout") so there is no need to explicitly flush in the clone3 tests. Reviewed-by: Ke

Re: [PATCH v4 7/7] cxl/dax: Defer DAX consumption of SOFT RESERVED resources until after CXL region creation

2025-06-09 Thread Jonathan Cameron
On Tue, 3 Jun 2025 22:19:49 + Smita Koralahalli wrote: > From: Nathan Fontenot > > The DAX HMEM driver currently consumes all SOFT RESERVED iomem resources > during initialization. This interferes with the CXL driver’s ability to > create regions and trim overlapping SOFT RESERVED ranges be

[PATCH RFT v17 6/8] selftests/clone3: Factor more of main loop into test_clone3()

2025-06-09 Thread Mark Brown
In order to make it easier to add more configuration for the tests and more support for runtime detection of when tests can be run pass the structure describing the tests into test_clone3() rather than picking the arguments out of it and have that function do all the per-test work. No functional c

[PATCH RFT v17 3/8] selftests: Provide helper header for shadow stack testing

2025-06-09 Thread Mark Brown
While almost all users of shadow stacks should be relying on the dynamic linker and libc to enable the feature there are several low level test programs where it is useful to enable without any libc support, allowing testing without full system enablement. This low level testing is helpful during b

  1   2   >