[PATCH] tools/nolibc: Add support for SPARC

2025-03-16 Thread Thomas Weißschuh
Add support for 32bit and 64bit SPARC to nolibc. Signed-off-by: Thomas Weißschuh --- This is only tested on QEMU. Any tests on real hardware would be very welcome. --- tools/include/nolibc/arch-sparc.h | 191 tools/include/nolibc/arch.h |

Re: (subset) [PATCH v5 00/13] Modem support for MSM8226

2025-03-16 Thread Bjorn Andersson
On Mon, 17 Feb 2025 23:05:14 +0100, Luca Weiss wrote: > This series adds support for modem remoteproc found on MSM8226. > It also adds needed device tree nodes and enables modem used for > location service on matisse-wifi. > > Also bam-dmux node is added for mobile data which is used on > 3G/4G-

Re: [PATCH] arm64: dts: qcom: sm8650: Fix domain-idle-state for CPU2

2025-03-16 Thread Bjorn Andersson
On Fri, 14 Mar 2025 09:21:16 +0100, Luca Weiss wrote: > On SM8650 the CPUs 0-1 are "silver" (Cortex-A520), CPU 2-6 are "gold" > (Cortex-A720) and CPU 7 is "gold-plus" (Cortex-X4). > > So reference the correct "gold" idle-state for CPU core 2. > > Applied, thanks! [1/1] arm64: dts: qcom: sm86

Re: [RFC PATCH 1/2] time/timekeeping: Fix possible inconsistencies in _COARSE clockids

2025-03-16 Thread Thomas Gleixner
On Sat, Mar 15 2025 at 16:22, John Stultz wrote: > On Sat, Mar 15, 2025 at 12:23 PM Thomas Gleixner wrote: >> > So to fix this, rework the timekeeping_advance() logic a bit >> > so that when we are called from do_adjtimex() and the offset >> > is smaller then cycle_interval, that we call >> > time

Re: [PATCH 1/5] rcu/exp: Protect against early QS report

2025-03-16 Thread Joel Fernandes
On 3/16/2025 7:07 AM, Frederic Weisbecker wrote: >>> diff --git a/kernel/rcu/tree_exp.h b/kernel/rcu/tree_exp.h >>> index c36c7d5575ca..2fa7aa9155bd 100644 >>> --- a/kernel/rcu/tree_exp.h >>> +++ b/kernel/rcu/tree_exp.h >>> @@ -141,6 +141,13 @@ static void __maybe_unused sync_exp_reset_tree(void

Re: [PATCH 1/4] selftests: ntsync: fix the wrong condition in wake_all

2025-03-16 Thread Su Hui
On 2025/3/16 04:29, Elizabeth Figura wrote: On Saturday, 15 March 2025 04:39:46 CDT Dan Carpenter wrote: On Fri, Mar 14, 2025 at 05:13:50PM -0500, Elizabeth Figura wrote: On Friday, 14 March 2025 05:14:30 CDT Su Hui wrote: On 2025/3/14 17:21, Dan Carpenter wrote: On Fri, Mar 14, 2025 at 03:14

Re: [PATCH v2] virtio_ring: Fix data race by tagging event_triggered as racy for KCSAN

2025-03-16 Thread Jason Wang
On Wed, Mar 12, 2025 at 9:04 PM Zhongqiu Han wrote: > > syzbot reports a data-race when accessing the event_triggered, here is the > simplified stack when the issue occurred: > > == > BUG: KCSAN: data-race in virtqueue_disable_cb / vi

Re: [PATCH 1/5] rcu/exp: Protect against early QS report

2025-03-16 Thread Frederic Weisbecker
Le Sun, Mar 16, 2025 at 10:23:45AM -0400, Joel Fernandes a écrit : > >> A small side effect of this patch could be: > >> > >> In the existing code, if between the sync_exp_reset_tree() and the > >> __sync_rcu_exp_select_node_cpus(), if a pre-existing reader unblocked and > >> completed, then I thin

[PATCH net v3 1/3] vsock/bpf: Fix EINTR connect() racing sockmap update

2025-03-16 Thread Michal Luczaj
Signal delivery during connect() may result in a disconnect of an already TCP_ESTABLISHED socket. Problem is that such established socket might have been placed in a sockmap before the connection was closed. We end up with a SS_UNCONNECTED vsock in a sockmap. And this, combined with the ability to

[PATCH net v3 2/3] selftest/bpf: Add test for AF_VSOCK connect() racing sockmap update

2025-03-16 Thread Michal Luczaj
Racing signal-interrupted connect() and sockmap update may result in an unconnected (and missing vsock transport) socket in a sockmap. Test spends 2 seconds attempting to reach WARN_ON_ONCE(). connect / state = SS_CONNECTED / sock_map_update_elem if signal_pend

[PATCH net v3 3/3] vsock/bpf: Fix bpf recvmsg() racing transport reassignment

2025-03-16 Thread Michal Luczaj
Signal delivery during connect() may lead to a disconnect of an already established socket. That involves removing socket from any sockmap and resetting state to SS_UNCONNECTED. While it correctly restores socket's proto, a call to vsock_bpf_recvmsg() might have been already under way in another th

[PATCH v2] remoteproc: Add device awake calls in rproc boot and shutdown path

2025-03-16 Thread Souradeep Chowdhury
Add device awake calls in case of rproc boot and rproc shutdown path. Currently, device awake call is only present in the recovery path of remoteproc. If a user stops and starts rproc by using the sysfs interface, then on pm suspension the firmware loading fails. Keep the device awake in such a cas

Re: [PATCH net-next v23 03/23] ovpn: add basic interface creation/destruction/management routines

2025-03-16 Thread Qingfang Deng
Hi Antonio, On Wed, 12 Mar 2025 21:54:32 +0100, Antonio Quartulli Wrote: > diff --git a/drivers/net/ovpn/main.c b/drivers/net/ovpn/main.c > index > 28133e7e15e74b8a4a937ed03f70d9f83d7a14c8..e71183e6f42cd801861caaec9eb0f6828b64cda9 > 100644 > --- a/drivers/net/ovpn/main.c > +++ b/drivers/net/ovpn

[PATCH net v3 0/3] vsock/bpf: Handle races between sockmap update and connect() disconnecting

2025-03-16 Thread Michal Luczaj
Signal delivery during connect() may disconnect an already established socket. Problem is that such socket might have been placed in a sockmap before the connection was closed. PATCH 1 ensures this race won't lead to an unconnected vsock staying in the sockmap. PATCH 2 selftests it. PATCH 3 fixe

Re: [PATCH v2] remoteproc: Add device awake calls in rproc boot and shutdown path

2025-03-16 Thread Greg KH
On Mon, Mar 17, 2025 at 12:08:03PM +0530, Souradeep Chowdhury wrote: > Add device awake calls in case of rproc boot and rproc shutdown path. > Currently, device awake call is only present in the recovery path > of remoteproc. If a user stops and starts rproc by using the sysfs > interface, then on

Re: [PATCH v1] remoteproc: Add device awake calls in rproc boot and shutdown path

2025-03-16 Thread Souradeep Chowdhury
On 3/13/2025 3:33 PM, Greg KH wrote: On Thu, Mar 13, 2025 at 02:42:10PM +0530, Souradeep Chowdhury wrote: Gentle Reminder. On 3/3/2025 2:38 PM, Souradeep Chowdhury wrote: Add device awake calls in case of rproc boot and rproc shutdown path. Currently, device awake call is only present in t

Re: [PATCH 1/5] rcu/exp: Protect against early QS report

2025-03-16 Thread Frederic Weisbecker
Le Sat, Mar 15, 2025 at 07:59:45PM -0400, Joel Fernandes a écrit : > Hi Frederic, > > On Fri, Mar 14, 2025 at 03:36:38PM +0100, Frederic Weisbecker wrote: > > When a grace period is started, the ->expmask of each node is set up > > from sync_exp_reset_tree(). Then later on each leaf node also init