RE: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-24 Thread Reshetova, Elena
> On Thu, Apr 24, 2025, Elena Reshetova wrote: > > > On Thu, Apr 24, 2025, Elena Reshetova wrote: > > > +void sgx_dec_usage_count(void) > > > +{ > > > + if (atomic_dec_return(&sgx_usage_count)) > > > + return; > > > + > > > + guard(mutex)(&sgx_svn_lock); > > > + > > > + if (atomic_read(&sgx

Re: [PATCH] rpmsg: qcom_smd: Fix uninitialized return variable in __qcom_smd_send()

2025-04-24 Thread Naresh Kamboju
On Wed, 23 Apr 2025 at 22:52, Dan Carpenter wrote: > > The "ret" variable isn't initialized if we don't enter the loop. For > example, if "channel->state" is not SMD_CHANNEL_OPENED. > > Fixes: 33e3820dda88 ("rpmsg: smd: Use spinlock in tx path") > Signed-off-by: Dan Carpenter > --- > Naresh, co

[PATCH bpf-next v1 1/2] ktls, sockmap: Fix missing uncharge operation

2025-04-24 Thread Jiayuan Chen
When we specify apply_bytes, we divide the msg into multiple segments, each with a length of 'send', and every time we send this part of the data using tcp_bpf_sendmsg_redir(), we use sk_msg_return_zero() to uncharge the memory of the specified 'send' size. However, if the first segment of data fa

[PATCH bpf-next v1 2/2] selftests/bpf: Add test to cover sockmap with ktls

2025-04-24 Thread Jiayuan Chen
The selftest can reproduce an issue where we miss the uncharge operation when freeing msg, which will cause the following warning. We fixed the issue and added this reproducer to selftest to ensure it will not happen again. [ cut here ] WARNING: CPU: 1 PID: 40 at net/ipv4/a

[PATCH bpf-next v1 0/2] ktls, sockmap: Fix missing uncharge operation and add selfttest

2025-04-24 Thread Jiayuan Chen
Cong reported a warning when running ./test_sockmp: https://lore.kernel.org/bpf/aAmIi0vlycHtbXeb@pop-os.localdomain/T/#t [ cut here ] WARNING: CPU: 1 PID: 40 at net/ipv4/af_inet.c inet_sock_destruct+0x173/0x1d5 Tainted: [W]=WARN Hardware name: QEMU Standard PC (Q35 + ICH9,

Re: [PATCH v5 0/3] virtio-net: disable delayed refill when pausing rx

2025-04-24 Thread Bui Quang Minh
On 4/25/25 08:34, Jakub Kicinski wrote: On Thu, 24 Apr 2025 17:47:13 +0700 Bui Quang Minh wrote: This only includes the selftest for virtio-net deadlock bug. The fix commit has been applied already. This conflicts with Joe's series slightly: https://lore.kernel.org/all/20250424002746.16891-1-jd

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-04-24 Thread Yan Zhao
On Thu, Apr 24, 2025 at 11:15:11AM -0700, Ackerley Tng wrote: > Vishal Annapurve writes: > > > On Thu, Apr 24, 2025 at 1:15 AM Yan Zhao wrote: > >> > >> On Thu, Apr 24, 2025 at 01:55:51PM +0800, Chenyi Qiang wrote: > >> > > >> > > >> > On 4/24/2025 12:25 PM, Yan Zhao wrote: > >> > > On Thu, Apr

Re: [PATCH net-next v4 2/3] selftests: drv-net: Factor out ksft C helpers

2025-04-24 Thread Joe Damato
On Thu, Apr 24, 2025 at 06:32:18PM -0700, Jakub Kicinski wrote: > On Thu, 24 Apr 2025 00:27:32 + Joe Damato wrote: > > +++ b/tools/testing/selftests/drivers/net/ksft.h > > +static void ksft_ready(void) > > > +static void ksft_wait(void) > > These need to be static inlines. > I'll fix when app

Re: [PATCH v5 0/3] virtio-net: disable delayed refill when pausing rx

2025-04-24 Thread Jakub Kicinski
On Thu, 24 Apr 2025 17:47:13 +0700 Bui Quang Minh wrote: > This only includes the selftest for virtio-net deadlock bug. The fix > commit has been applied already. This conflicts with Joe's series slightly: https://lore.kernel.org/all/20250424002746.16891-1-jdam...@fastly.com/ Could you rebase on

Re: [PATCH net-next v4 2/3] selftests: drv-net: Factor out ksft C helpers

2025-04-24 Thread Jakub Kicinski
On Thu, 24 Apr 2025 00:27:32 + Joe Damato wrote: > +++ b/tools/testing/selftests/drivers/net/ksft.h > +static void ksft_ready(void) > +static void ksft_wait(void) These need to be static inlines. I'll fix when applying cause I think this series may conflict with Bui Quang Minh's

Re: [PATCH v1] selftests: iou-zcrx: Get the page size at runtime

2025-04-24 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Sat, 19 Apr 2025 22:10:15 +0800 you wrote: > Use the API `sysconf()` to query page size at runtime, instead of using > hard code number 4096. > > And use `posix_memalign` to allocate the page size aligned momory.

Re: [PATCH v1] selftests: iou-zcrx: Get the page size at runtime

2025-04-24 Thread Jakub Kicinski
On Thu, 24 Apr 2025 17:34:00 -0600 Jens Axboe wrote: > On 4/24/25 5:29 PM, Jakub Kicinski wrote: > > On Thu, 24 Apr 2025 17:09:28 -0600 Jens Axboe wrote: > >> Applied, thanks! > >> > >> [1/1] selftests: iou-zcrx: Get the page size at runtime > >> commit: 6f4cc653bf408ad0cc203c6ab3088b11f5da

Re: [PATCH v1] selftests: iou-zcrx: Get the page size at runtime

2025-04-24 Thread Jens Axboe
On 4/24/25 5:29 PM, Jakub Kicinski wrote: > On Thu, 24 Apr 2025 17:09:28 -0600 Jens Axboe wrote: >> On Sat, 19 Apr 2025 22:10:15 +0800, Haiyue Wang wrote: >>> Use the API `sysconf()` to query page size at runtime, instead of using >>> hard code number 4096. >>> >>> And use `posix_memalign` to alloc

Re: [PATCH v1] selftests: iou-zcrx: Get the page size at runtime

2025-04-24 Thread Jakub Kicinski
On Thu, 24 Apr 2025 17:09:28 -0600 Jens Axboe wrote: > On Sat, 19 Apr 2025 22:10:15 +0800, Haiyue Wang wrote: > > Use the API `sysconf()` to query page size at runtime, instead of using > > hard code number 4096. > > > > And use `posix_memalign` to allocate the page size aligned momory. > > > >

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-24 Thread Alexei Starovoitov
On Thu, Apr 24, 2025 at 6:38 AM Alexis Lothoré wrote: > > Hi Xu, > > On Thu Apr 24, 2025 at 2:00 PM CEST, Xu Kuohai wrote: > > On 4/24/2025 3:24 AM, Alexis Lothoré wrote: > >> Hi Andrii, > >> > >> On Wed Apr 23, 2025 at 7:15 PM CEST, Andrii Nakryiko wrote: > >>> On Thu, Apr 17, 2025 at 12:14 AM Al

Re: [PATCH v1] selftests: iou-zcrx: Get the page size at runtime

2025-04-24 Thread Jens Axboe
On Sat, 19 Apr 2025 22:10:15 +0800, Haiyue Wang wrote: > Use the API `sysconf()` to query page size at runtime, instead of using > hard code number 4096. > > And use `posix_memalign` to allocate the page size aligned momory. > > Applied, thanks! [1/1] selftests: iou-zcrx: Get the page size a

Re: [PATCH v1] selftests: iou-zcrx: Get the page size at runtime

2025-04-24 Thread David Wei
On 2025-04-19 07:10, Haiyue Wang wrote: > Use the API `sysconf()` to query page size at runtime, instead of using > hard code number 4096. > > And use `posix_memalign` to allocate the page size aligned momory. > > Signed-off-by: Haiyue Wang > --- > .../selftests/drivers/net/hw/iou-zcrx.c

[PATCH net 2/2] selftests: net: bridge_vlan_aware: test untagged/8021p-tagged with and without PVID

2025-04-24 Thread Vladimir Oltean
Recent discussions around commit ad1afb003939 ("vlan_dev: VLAN 0 should be treated as "no vlan tag" (802.1p packet)") have sparked the question what happens with the DSA (and possibly other switchdev) data path when the bridge says that ports should have no PVID VLAN, but the 8021q module, as the r

[PATCH net 1/2] net: mscc: ocelot: delete PVID VLAN when readding it as non-PVID

2025-04-24 Thread Vladimir Oltean
The following set of commands: ip link add br0 type bridge vlan_filtering 1 # vlan_default_pvid 1 is implicit ip link set swp0 master br0 bridge vlan add dev swp0 vid 1 should result in the dropping of untagged and 802.1p-tagged traffic, but we see that it continues to be accepted. Whereas, had w

Re: [PATCH v4 4/4] selftests: net: add a virtio_net deadlock selftest

2025-04-24 Thread Jakub Kicinski
On Thu, 24 Apr 2025 17:33:49 +0700 Bui Quang Minh wrote: > Yes, the kernel returns EBUSY. Loop and retry sounds good to me but it's > not easy to get the return code when using bkg(). So for simplicity, > I'll retry with sleep(1) 3 times when the xdp_helper fails. I meant retry _inside_ the xdp_

Call for Participation: Automated Testing Summit 2025 @ OSS NA

2025-04-24 Thread Gustavo Padovan
The Automated Testing Summit (ATS) 2025 will be held as a co-located event at the Open Source Summit North America, and we’re now accepting talk proposals! https://events.linuxfoundation.org/open-source-summit-north-america/features/co-located-events/#automated-testing-summit-2025 📅 Date: June 2

Re: [PATCH v3 00/32] kselftest harness and nolibc compatibility

2025-04-24 Thread Shuah Khan
On 4/22/25 02:51, Willy Tarreau wrote: Hi Thomas, On Tue, Apr 22, 2025 at 10:48:28AM +0200, Thomas Weißschuh wrote: Hi, On Fri, Apr 11, 2025 at 11:00:24AM +0200, Thomas Weißschuh wrote: Nolibc is useful for selftests as the test programs can be very small, and compiled with just a kernel cros

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-04-24 Thread Ackerley Tng
Vishal Annapurve writes: > On Thu, Apr 24, 2025 at 1:15 AM Yan Zhao wrote: >> >> On Thu, Apr 24, 2025 at 01:55:51PM +0800, Chenyi Qiang wrote: >> > >> > >> > On 4/24/2025 12:25 PM, Yan Zhao wrote: >> > > On Thu, Apr 24, 2025 at 09:09:22AM +0800, Yan Zhao wrote: >> > >> On Wed, Apr 23, 2025 at 03

Re: [PATCH v1] selftests: iou-zcrx: Get the page size at runtime

2025-04-24 Thread David Wei
On 2025-04-24 06:55, Simon Horman wrote: > On Sat, Apr 19, 2025 at 10:10:15PM +0800, Haiyue Wang wrote: >> Use the API `sysconf()` to query page size at runtime, instead of using >> hard code number 4096. >> >> And use `posix_memalign` to allocate the page size aligned momory. >> >> Signed-off-by:

Re: [PATCH v3 7/8] mm/maps: read proc/pid/maps under RCU

2025-04-24 Thread Andrii Nakryiko
On Thu, Apr 24, 2025 at 9:42 AM Liam R. Howlett wrote: > > * Andrii Nakryiko [250424 12:04]: > > On Thu, Apr 24, 2025 at 8:20 AM Suren Baghdasaryan > > wrote: > > > > > > On Wed, Apr 23, 2025 at 5:24 PM Liam R. Howlett > > > wrote: > > > > > > > > * Andrii Nakryiko [250423 18:06]: > > > > >

Re: [PATCH v3 7/8] mm/maps: read proc/pid/maps under RCU

2025-04-24 Thread Suren Baghdasaryan
On Thu, Apr 24, 2025 at 9:42 AM Liam R. Howlett wrote: > > * Andrii Nakryiko [250424 12:04]: > > On Thu, Apr 24, 2025 at 8:20 AM Suren Baghdasaryan > > wrote: > > > > > > On Wed, Apr 23, 2025 at 5:24 PM Liam R. Howlett > > > wrote: > > > > > > > > * Andrii Nakryiko [250423 18:06]: > > > > >

Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-24 Thread Sean Christopherson
On Thu, Apr 24, 2025, Elena Reshetova wrote: > > On Thu, Apr 24, 2025, Elena Reshetova wrote: > > +void sgx_dec_usage_count(void) > > +{ > > + if (atomic_dec_return(&sgx_usage_count)) > > + return; > > + > > + guard(mutex)(&sgx_svn_lock); > > + > > + if (atomic_read(&sgx_usage_count

Re: [PATCH v3 7/8] mm/maps: read proc/pid/maps under RCU

2025-04-24 Thread Liam R. Howlett
* Andrii Nakryiko [250424 12:04]: > On Thu, Apr 24, 2025 at 8:20 AM Suren Baghdasaryan wrote: > > > > On Wed, Apr 23, 2025 at 5:24 PM Liam R. Howlett > > wrote: > > > > > > * Andrii Nakryiko [250423 18:06]: > > > > On Wed, Apr 23, 2025 at 2:49 PM Suren Baghdasaryan > > > > wrote: > > > > > >

Re: [PATCH v3 7/8] mm/maps: read proc/pid/maps under RCU

2025-04-24 Thread Andrii Nakryiko
On Thu, Apr 24, 2025 at 8:20 AM Suren Baghdasaryan wrote: > > On Wed, Apr 23, 2025 at 5:24 PM Liam R. Howlett > wrote: > > > > * Andrii Nakryiko [250423 18:06]: > > > On Wed, Apr 23, 2025 at 2:49 PM Suren Baghdasaryan > > > wrote: > > > > > > > > On Tue, Apr 22, 2025 at 3:49 PM Andrii Nakryik

[PATCH v3] vdpa/octeon_ep: Control PCI dev enabling manually

2025-04-24 Thread Philipp Stanner
PCI region request functions such as pci_request_region() currently have the problem of becoming sometimes managed functions, if pcim_enable_device() instead of pci_enable_device() was called. The PCI subsystem wants to remove this deprecated behavior from its interfaces. octeopn_ep enables its de

Re: [PATCH v3 15/28] module: Use RCU in all users of __module_text_address().

2025-04-24 Thread Paul E. McKenney
On Thu, Apr 24, 2025 at 11:30:39AM +0200, Benjamin Berg wrote: > On Thu, 2025-04-24 at 11:05 +0200, Sebastian Andrzej Siewior wrote: > > On 2025-04-23 11:16:49 [-0700], Paul E. McKenney wrote: > > > On Wed, Apr 23, 2025 at 05:17:31PM +0200, Benjamin Berg wrote: > > > > Hi, > > > > > > > > On Wed,

Re: [PATCH v3 15/28] module: Use RCU in all users of __module_text_address().

2025-04-24 Thread Peter Zijlstra
On Thu, Apr 24, 2025 at 11:30:39AM +0200, Benjamin Berg wrote: > Not sure if something like that would be desirable upstream. This is > happening for us when running the hostap "hwsim" tests inside UML (with > time-travel). At least internally, we could carry a custom patch to add > the lockdep_of

Re: [PATCH v3 7/8] mm/maps: read proc/pid/maps under RCU

2025-04-24 Thread Suren Baghdasaryan
On Wed, Apr 23, 2025 at 5:24 PM Liam R. Howlett wrote: > > * Andrii Nakryiko [250423 18:06]: > > On Wed, Apr 23, 2025 at 2:49 PM Suren Baghdasaryan > > wrote: > > > > > > On Tue, Apr 22, 2025 at 3:49 PM Andrii Nakryiko > > > wrote: > > > > > > > > On Fri, Apr 18, 2025 at 10:50 AM Suren Baghdas

Re: [PATCH v2 0/4] of: Common "memory-region" parsing

2025-04-24 Thread Mathieu Poirier
Arnaud, Daniel, Iuliana, Andrew and Tanmay - please test this patchset on the platforms you are working on. Thanks, Mathieu On Wed, 23 Apr 2025 at 13:42, Rob Herring (Arm) wrote: > > While there's a common function to parse "memory-region" properties for > DMA pool regions, there's not anything

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

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

RE: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-24 Thread Reshetova, Elena
> On Thu, Apr 24, 2025, Elena Reshetova wrote: > > > On Tue, Apr 22, 2025, Kai Huang wrote: > > > > On Fri, 2025-04-18 at 07:55 -0700, Sean Christopherson wrote: > > > > > On Tue, Apr 15, 2025, Elena Reshetova wrote: > > > > > That said, handling this deep in the bowels of EPC page allocation > see

Re: [PATCH v1] selftests: iou-zcrx: Get the page size at runtime

2025-04-24 Thread Simon Horman
On Sat, Apr 19, 2025 at 10:10:15PM +0800, Haiyue Wang wrote: > Use the API `sysconf()` to query page size at runtime, instead of using > hard code number 4096. > > And use `posix_memalign` to allocate the page size aligned momory. > > Signed-off-by: Haiyue Wang Reviewed-by: Simon Horman

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-04-24 Thread Vishal Annapurve
On Thu, Apr 24, 2025 at 1:15 AM Yan Zhao wrote: > > On Thu, Apr 24, 2025 at 01:55:51PM +0800, Chenyi Qiang wrote: > > > > > > On 4/24/2025 12:25 PM, Yan Zhao wrote: > > > On Thu, Apr 24, 2025 at 09:09:22AM +0800, Yan Zhao wrote: > > >> On Wed, Apr 23, 2025 at 03:02:02PM -0700, Ackerley Tng wrote:

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

2025-04-24 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 wro

Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-24 Thread Sean Christopherson
On Thu, Apr 24, 2025, Elena Reshetova wrote: > > On Tue, Apr 22, 2025, Kai Huang wrote: > > > On Fri, 2025-04-18 at 07:55 -0700, Sean Christopherson wrote: > > > > On Tue, Apr 15, 2025, Elena Reshetova wrote: > > > > That said, handling this deep in the bowels of EPC page allocation seems > > > > u

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-24 Thread Alexis Lothoré
Hi Xu, On Thu Apr 24, 2025 at 2:00 PM CEST, Xu Kuohai wrote: > On 4/24/2025 3:24 AM, Alexis Lothoré wrote: >> Hi Andrii, >> >> On Wed Apr 23, 2025 at 7:15 PM CEST, Andrii Nakryiko wrote: >>> On Thu, Apr 17, 2025 at 12:14 AM Alexis Lothoré >>> wrote: Hi Andrii, On Wed Apr 16,

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

2025-04-24 Thread Xiaolei Wang
Release all carveouts under imx_rproc after rproc_attach() fails to solve the following kmemleak: unreferenced object 0x861c5d00 (size 128): comm "kworker/u12:3", pid 59, jiffies 4294893509 (age 149.220s) hex dump (first 32 bytes): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .

[PATCH v5 3/3] selftests: net: add a virtio_net deadlock selftest

2025-04-24 Thread Bui Quang Minh
The selftest reproduces the deadlock scenario when binding/unbinding XDP program, XDP socket, rx ring resize on virtio_net interface. Signed-off-by: Bui Quang Minh --- .../testing/selftests/drivers/net/hw/Makefile | 1 + .../selftests/drivers/net/hw/xsk_reconfig.py | 68 +++ 2

Re: [PATCH 0/3] tools/nolibc: make all headers usable directly

2025-04-24 Thread Willy Tarreau
Hi Thomas, [ quick response ] On Thu, Apr 24, 2025 at 01:48:10PM +0200, Thomas Weißschuh wrote: > Make sure that any nolibc header can be included in any order. > Even if nolibc.h was not pre-included already. I've been wondering how to do this already and didn't come up with any great solution.

[PATCH 2/2] remoteproc: core: release rproc->clean_table after rproc_attach() fails

2025-04-24 Thread Xiaolei Wang
When rproc_attach() fails release rproc->clean_table to solve the following kmemleak: unreferenced object 0x86a99800 (size 1024): comm "kworker/u12:3", pid 59, jiffies 4294893670 (age 121.140s) hex dump (first 32 bytes): 00 00 00 00 00 80 00 00 00 00 00 00 00 00 10 00 00 00 00

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

2025-04-24 Thread Michael S. Tsirkin
On Thu, Apr 24, 2025 at 01:48:53PM +0200, Paolo Abeni wrote: > On 4/20/25 3:05 AM, Jon Kohler wrote: > > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > > index b9b9e9d40951..9b04025eea66 100644 > > --- a/drivers/vhost/net.c > > +++ b/drivers/vhost/net.c > > @@ -769,13 +769,17 @@ static vo

[PATCH 2/3] tools/nolibc: include nolibc.h early from all header files

2025-04-24 Thread Thomas Weißschuh
Inclusion of any nolibc header file should also bring all other headers. On the other hand it should also be possible to include any nolibc header files in any order. Currently this is implemented by including the catch-all nolibc.h after the headers own definitions. This is problematic if one nol

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-24 Thread Xu Kuohai
On 4/24/2025 3:24 AM, Alexis Lothoré wrote: Hi Andrii, On Wed Apr 23, 2025 at 7:15 PM CEST, Andrii Nakryiko wrote: On Thu, Apr 17, 2025 at 12:14 AM Alexis Lothoré wrote: Hi Andrii, On Wed Apr 16, 2025 at 11:24 PM CEST, Andrii Nakryiko wrote: On Fri, Apr 11, 2025 at 1:32 PM Alexis Lothoré (

[PATCH 0/3] tools/nolibc: make all headers usable directly

2025-04-24 Thread Thomas Weißschuh
Make sure that any nolibc header can be included in any order. Even if nolibc.h was not pre-included already. This conflicts indirectly with "tools/nolibc: various new functions" [0]. I'll resolve those conflicts when applying. [0] https://lore.kernel.org/lkml/20250423-nolibc-misc-v1-0-a925bf402

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

2025-04-24 Thread Paolo Abeni
On 4/20/25 3:05 AM, Jon Kohler wrote: > diff --git a/drivers/vhost/net.c b/drivers/vhost/net.c > index b9b9e9d40951..9b04025eea66 100644 > --- a/drivers/vhost/net.c > +++ b/drivers/vhost/net.c > @@ -769,13 +769,17 @@ static void handle_tx_copy(struct vhost_net *net, > struct socket *sock) >

[PATCH 1/3] tools/nolibc: add target to check header usability

2025-04-24 Thread Thomas Weißschuh
Each nolibc header should be valid for inclusion irrespective of any special ordering requirements. Add a new make target, based on the old kbuild "make header_check" target to validate this requirement. For now the check fails, but the following commits will fix the issues. Signed-off-by: Thoma

[PATCH 3/3] selftests/nolibc: always run nolibc header check

2025-04-24 Thread Thomas Weißschuh
Prevent regressions of issues validates by the header check by always running it together with the nolibc selftests. Signed-off-by: Thomas Weißschuh --- tools/testing/selftests/nolibc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Make

Re: [PATCH net-next v2 1/3] vsock: Linger on unsent data

2025-04-24 Thread Michal Luczaj
On 4/24/25 10:36, Stefano Garzarella wrote: > On Thu, 24 Apr 2025 at 09:53, Michal Luczaj wrote: >> >> On 4/24/25 09:28, Stefano Garzarella wrote: >>> On Wed, Apr 23, 2025 at 11:06:33PM +0200, Michal Luczaj wrote: On 4/23/25 18:34, Stefano Garzarella wrote: > On Wed, Apr 23, 2025 at 05:53

Re: [PATCH 1/2] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse

2025-04-24 Thread Dmitry Baryshkov
On Mon, Apr 21, 2025 at 01:40:50PM +0200, barnabas.cze...@mainlining.org wrote: > On 2025-04-21 12:38, Dmitry Baryshkov wrote: > > On Mon, Apr 21, 2025 at 04:04:16AM +0200, Barnabás Czémán wrote: > > > mbox_request_channel() returning value was changed in case of error. > > > It uses returning valu

Re: [PATCH v5 0/3] virtio-net: disable delayed refill when pausing rx

2025-04-24 Thread Michael S. Tsirkin
On Thu, Apr 24, 2025 at 05:47:13PM +0700, Bui Quang Minh wrote: > Hi everyone, > > This only includes the selftest for virtio-net deadlock bug. The fix > commit has been applied already. > > Link: > https://lore.kernel.org/virtualization/174537302875.2111809.8543884098526067319.git-patchwork-not

[PATCH v5 2/3] selftests: net: add flag to force zerocopy mode in xdp_helper

2025-04-24 Thread Bui Quang Minh
This commit adds an optional -z flag to xdp_helper. When this flag is provided, the XDP socket binding is forced to be in zerocopy mode. Signed-off-by: Bui Quang Minh --- tools/testing/selftests/net/lib/xdp_helper.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff

[PATCH v5 1/3] selftests: net: move xdp_helper to net/lib

2025-04-24 Thread Bui Quang Minh
Move xdp_helper to net/lib to make it easier for other selftests to use the helper. Signed-off-by: Bui Quang Minh --- tools/testing/selftests/drivers/net/Makefile | 2 -- tools/testing/selftests/drivers/net/queues.py | 4 ++-- tools/testing/selftests/net/lib/.git

[PATCH v5 0/3] virtio-net: disable delayed refill when pausing rx

2025-04-24 Thread Bui Quang Minh
Hi everyone, This only includes the selftest for virtio-net deadlock bug. The fix commit has been applied already. Link: https://lore.kernel.org/virtualization/174537302875.2111809.8543884098526067319.git-patchwork-not...@kernel.org/T/ Version 5 changes: - Refactor the selftest Version 4 chang

Re: [PATCH v4 4/4] selftests: net: add a virtio_net deadlock selftest

2025-04-24 Thread Bui Quang Minh
On 4/24/25 05:23, Jakub Kicinski wrote: On Wed, 23 Apr 2025 22:20:41 +0700 Bui Quang Minh wrote: I've tried to make the setup_xsk into each test. However, I've an issue that the XDP socket destruct waits for an RCU grace period as I see this sock's flag SOCK_RCU_FREE is set. So if we start the n

Re: [PATCH v3 15/28] module: Use RCU in all users of __module_text_address().

2025-04-24 Thread Benjamin Berg
On Thu, 2025-04-24 at 11:05 +0200, Sebastian Andrzej Siewior wrote: > On 2025-04-23 11:16:49 [-0700], Paul E. McKenney wrote: > > On Wed, Apr 23, 2025 at 05:17:31PM +0200, Benjamin Berg wrote: > > > Hi, > > > > > > On Wed, 2025-01-08 at 10:04 +0100, Sebastian Andrzej Siewior wrote: > > > > __modul

Re: [PATCH v3 15/28] module: Use RCU in all users of __module_text_address().

2025-04-24 Thread Sebastian Andrzej Siewior
On 2025-04-23 11:16:49 [-0700], Paul E. McKenney wrote: > On Wed, Apr 23, 2025 at 05:17:31PM +0200, Benjamin Berg wrote: > > Hi, > > > > On Wed, 2025-01-08 at 10:04 +0100, Sebastian Andrzej Siewior wrote: > > > __module_text_address() can be invoked within a RCU section, there is no > > > requirem

Re: [PATCH net-next v2 1/3] vsock: Linger on unsent data

2025-04-24 Thread Stefano Garzarella
On Thu, 24 Apr 2025 at 09:53, Michal Luczaj wrote: > > On 4/24/25 09:28, Stefano Garzarella wrote: > > On Wed, Apr 23, 2025 at 11:06:33PM +0200, Michal Luczaj wrote: > >> On 4/23/25 18:34, Stefano Garzarella wrote: > >>> On Wed, Apr 23, 2025 at 05:53:12PM +0200, Luigi Leonardi wrote: > Hi Mic

RE: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-04-24 Thread Reshetova, Elena
> On Tue, Apr 22, 2025, Kai Huang wrote: > > On Fri, 2025-04-18 at 07:55 -0700, Sean Christopherson wrote: > > > On Tue, Apr 15, 2025, Elena Reshetova wrote: > > > That said, handling this deep in the bowels of EPC page allocation seems > > > unnecessary. The only way for there to be no active EP

Re: [PATCH 6/6] arm64: dts: qcom: qcs615-ride: enable remoteprocs

2025-04-24 Thread Lijuan Gao
在 4/23/2025 9:40 PM, Dmitry Baryshkov 写道: On Wed, Apr 23, 2025 at 05:17:42PM +0800, Lijuan Gao wrote: Enable all remoteproc nodes on the qcs615-ride board and point to the appropriate firmware files to allow proper functioning of the remote processors. Signed-off-by: Lijuan Gao --- arch/a

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-04-24 Thread Yan Zhao
On Thu, Apr 24, 2025 at 01:55:51PM +0800, Chenyi Qiang wrote: > > > On 4/24/2025 12:25 PM, Yan Zhao wrote: > > On Thu, Apr 24, 2025 at 09:09:22AM +0800, Yan Zhao wrote: > >> On Wed, Apr 23, 2025 at 03:02:02PM -0700, Ackerley Tng wrote: > >>> Yan Zhao writes: > >>> > On Tue, Sep 10, 2024 at

Re: [PATCH 0/6] arm64: dts: qcom: qcs615: enable remoteprocs - ADSP and CDSP

2025-04-24 Thread Lijuan Gao
在 4/23/2025 9:37 PM, Rob Herring (Arm) 写道: On Wed, 23 Apr 2025 17:17:36 +0800, Lijuan Gao wrote: Enable the remote processor PAS loader for QCS615 ADSP and CDSP processors. This allows different platforms/architectures to control (power on, load firmware, power off) those remote processors w

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

2025-04-24 Thread Lijuan Gao
在 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 --- arch/arm64/boot/dts/qcom/qcs615.dtsi | 86 1

Re: [PATCH net-next v2 1/3] vsock: Linger on unsent data

2025-04-24 Thread Michal Luczaj
On 4/24/25 09:28, Stefano Garzarella wrote: > On Wed, Apr 23, 2025 at 11:06:33PM +0200, Michal Luczaj wrote: >> On 4/23/25 18:34, Stefano Garzarella wrote: >>> On Wed, Apr 23, 2025 at 05:53:12PM +0200, Luigi Leonardi wrote: Hi Michal, On Mon, Apr 21, 2025 at 11:50:41PM +0200, Michal

Re: [PATCH net-next v2 1/3] vsock: Linger on unsent data

2025-04-24 Thread Stefano Garzarella
On Wed, Apr 23, 2025 at 11:06:33PM +0200, Michal Luczaj wrote: On 4/23/25 18:34, Stefano Garzarella wrote: On Wed, Apr 23, 2025 at 05:53:12PM +0200, Luigi Leonardi wrote: Hi Michal, On Mon, Apr 21, 2025 at 11:50:41PM +0200, Michal Luczaj wrote: Currently vsock's lingering effectively boils do

Re: [PATCH] rpmsg: qcom_smd: Fix uninitialized return variable in __qcom_smd_send()

2025-04-24 Thread Abel Vesa
On 25-04-23 20:22:05, Dan Carpenter wrote: > The "ret" variable isn't initialized if we don't enter the loop. For > example, if "channel->state" is not SMD_CHANNEL_OPENED. > > Fixes: 33e3820dda88 ("rpmsg: smd: Use spinlock in tx path") > Signed-off-by: Dan Carpenter Reviewed-by: Abel Vesa