Re: [PATCH] tools/nolibc: add support for clock_nanosleep() and nanosleep()

2025-07-05 Thread Willy Tarreau
Hi Thomas, On Fri, Jul 04, 2025 at 04:19:48PM +0200, Thomas Weißschuh wrote: > +static __attribute__((unused)) > +int sys_clock_nanosleep(clockid_t clockid, int flags, const struct timespec > *rqtp, > + struct timespec *rmtp) > +{ > +#if defined(__NR_clock_nanosleep) > + r

Re: [PATCH 0/2] selftests/nolibc: correctly report errors from printf() and friends

2025-07-05 Thread Willy Tarreau
On Fri, Jul 04, 2025 at 03:43:11PM +0200, Thomas Weißschuh wrote: > When an error is encountered by printf() it needs to be reported. > > Signed-off-by: Thomas Weißschuh Good catch! Acked-by: Willy Tarreau Willy

Re: [PATCH v3] selftests/vm: Add tests for process_madvise()

2025-07-05 Thread 王炼
Hi Lorenzo, Thanks for the review and for pointing out these critical bugs. I will fix the assertion failure in the remote_collapse test and the resource cleanup logic that causes the script to freeze. A new version will be sent out once this is resolved. I'll also remember to include links to prev

Re: [PATCH 01/15] selftests: kselftest: Create ksft_print_dbg_msg()

2025-07-05 Thread kernel test robot
Hi André, kernel test robot noticed the following build errors: [auto build test ERROR on a24cc6ce1933eade12aa2b9859de0fcd2dac2c06] url: https://github.com/intel-lab-lkp/linux/commits/Andr-Almeida/selftests-kselftest-Create-ksft_print_dbg_msg/20250704-231034 base: a24cc6ce1933eade12aa2b985

RE: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM regions

2025-07-05 Thread Peng Fan
> Subject: RE: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM > regions > > > Subject: Re: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM > > regions > > > > Hi Mathieu, > > > > On Fri, Jul 04, 2025 at 10:25:19AM -0600, Mathieu Poirier wrote: > > > Good morning, > > > > > > On Thu, Jul 03,

Re: [PATCH 2/4] remoteproc: qcom_q6v5_pas: Use resource with CX PD for MSM8974

2025-07-05 Thread Dmitry Baryshkov
On Sat, Jun 21, 2025 at 03:19:57PM +0200, Luca Weiss wrote: > MSM8974 requires the CX power domain, so use the msm8996_adsp_resource > which has cx under proxy_pd_names and is otherwise equivalent. > > Signed-off-by: Luca Weiss > --- > drivers/remoteproc/qcom_q6v5_pas.c | 2 +- > 1 file changed,

Re: [PATCH RFC 1/3] rcu: Fix rcu_read_unlock() deadloop due to IRQ work

2025-07-05 Thread Joel Fernandes
Bleh, my commit message got lost, but hey this is an RFC ;-) For context, it repairs this issue: https://lore.kernel.org/all/9acd5f9f-6732-7701-6880-4b51190aa...@huawei.com/ Will add commit message when sending non-RFC later. thanks, - Joel On 7/5/2025 4:39 PM, Joel Fernandes wrote: > Signed-

[PATCH RFC 2/3] rcu: Refactor expedited handling check in rcu_read_unlock_special()

2025-07-05 Thread Joel Fernandes
Extract the complex expedited handling condition in rcu_read_unlock_special() into a separate function rcu_unlock_needs_exp_handling() with detailed comments explaining each condition. This improves code readability. No functional change intended. Signed-off-by: Joel Fernandes --- kernel/rcu/tr

[PATCH RFC 3/3] rcu: Remove redundant check for irq state during unlock

2025-07-05 Thread Joel Fernandes
The check for irqs_were_disabled is redundant in rcu_unlock_needs_exp_handling() as the caller already checks for this. This includes the boost case as well. Just remove the redundant check. This is a first win for the refactor of the needs_exp (formerly expboost) condition into a new rcu_unlock_n

[PATCH RFC 1/3] rcu: Fix rcu_read_unlock() deadloop due to IRQ work

2025-07-05 Thread Joel Fernandes
Signed-off-by: Joel Fernandes --- kernel/rcu/tree.h| 11 ++- kernel/rcu/tree_plugin.h | 29 ++--- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/kernel/rcu/tree.h b/kernel/rcu/tree.h index 3830c19cf2f6..f8f612269e6e 100644 --- a/kernel/rcu/

Re: [PATCH v3] selftests/mm: add process_madvise() tests

2025-07-05 Thread Lorenzo Stoakes
Andrew - can we drop this for now? Hi Wang, Something's broken here, the collapse test isn't working properly: # RUN process_madvise.remote_collapse ... # process_madv.c:304:remote_collapse:Expected get_smaps_anon_huge_pages(child_pid, info.map_addr) (4194304) == 0 (0) # remote_colla

[PATCH bpf-next v3 2/2] selftests/bpf: Add Spectre v4 tests

2025-07-05 Thread Luis Gerhorst
Add the following tests: 1. A test with an (unimportant) ldimm64 (16 byte insn) and a Spectre-v4--induced nospec that clarifies and serves as a basic Spectre v4 test. 2. Make sure a Spectre v4 nospec_result does not prevent a Spectre v1 nospec from being added before the dangerous instru

[PATCH bpf-next v3 1/2] bpf: Fix aux usage after do_check_insn()

2025-07-05 Thread Luis Gerhorst
We must terminate the speculative analysis if the just-analyzed insn had nospec_result set. Using cur_aux() here is wrong because insn_idx might have been incremented by do_check_insn(). Therefore, introduce and use insn_aux variable. Also change cur_aux(env)->nospec in case do_check_insn() ever m

[PATCH bpf-next v3 0/2] bpf: Fix and test aux usage after do_check_insn()

2025-07-05 Thread Luis Gerhorst
Fix cur_aux()->nospec_result test after do_check_insn() referring to the to-be-analyzed (potentially unsafe) instruction, not the already-analyzed (safe) instruction. This might allow a unsafe insn to slip through on a speculative path. Create some tests from the reproducer [1]. Commit d6f1c85f225

[PATCH v2] smp: Document preemption and stop_machine() mutual exclusion

2025-07-05 Thread Joel Fernandes
Recently while revising RCU's cpu online checks, there was some discussion around how IPIs synchronize with hotplug. Add comments explaining how preemption disable creates mutual exclusion with CPU hotplug's stop_machine mechanism. The key insight is that stop_machine() atomically updates CPU mask

[PATCH] smp: Document preemption and stop_machine() mutual exclusion

2025-07-05 Thread Joel Fernandes
Recently while revising RCU's cpu online checks, there was some discussion around how IPIs synchronize with hotplug. Add comments explaining how preemption disable creates mutual exclusion with CPU hotplug's stop_machine mechanism. The key insight is that stop_machine() atomically updates CPU mask

Re: [PATCH 0/4] Start using rpmpd for power domains on MSM8974

2025-07-05 Thread Dmitry Baryshkov
On Sat, Jul 05, 2025 at 04:16:44PM +0200, Luca Weiss wrote: > Hi Dmitry, > > On 24-06-2025 11:03 p.m., Dmitry Baryshkov wrote: > > On 24/06/2025 21:46, Luca Weiss wrote: > > > Hi Dmitry, > > > > > > On 24-06-2025 2:59 a.m., Dmitry Baryshkov wrote: > > > > On Sat, Jun 21, 2025 at 03:19:55PM +0200,

Re: [PATCH 0/4] Start using rpmpd for power domains on MSM8974

2025-07-05 Thread Luca Weiss
Hi Dmitry, On 24-06-2025 11:03 p.m., Dmitry Baryshkov wrote: On 24/06/2025 21:46, Luca Weiss wrote: Hi Dmitry, On 24-06-2025 2:59 a.m., Dmitry Baryshkov wrote: On Sat, Jun 21, 2025 at 03:19:55PM +0200, Luca Weiss wrote: Switch over the ADSP PIL to use power-domains instead of a regulator, an

RE: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM regions

2025-07-05 Thread Peng Fan
> Subject: Re: [PATCH] remoteproc: imx_rproc: merge ITCM and DTCM > regions > > Hi Mathieu, > > On Fri, Jul 04, 2025 at 10:25:19AM -0600, Mathieu Poirier wrote: > > Good morning, > > > > On Thu, Jul 03, 2025 at 10:08:31AM -0300, Hiago De Franco wrote: > > > From: Hiago De Franco > > > > > > Merg

Re: [QUESTION] problems report: rcu_read_unlock_special() called in irq_exit() causes dead loop

2025-07-05 Thread Joel Fernandes
On Thu, Jul 03, 2025 at 09:04:31AM +0800, Xiongfeng Wang wrote: > > > On 2025/7/3 1:24, Joel Fernandes wrote: > > > > > > On 7/2/2025 6:59 AM, Joel Fernandes wrote: > >> > >> > >> On 7/2/2025 5:14 AM, Qi Xi wrote: > >>> Hi Joel, > >>> > >>> After applying the 2 patches, the problem still exists

[PATCH v2 0/3] Add support for AW8898 Amplifier

2025-07-05 Thread Luca Weiss
Add devicetree bindings and a driver for the AW8898 Amplifier, and add it to the devicetree for the Fairphone 3 smartphone. Note, that this is the first audio driver I've worked on, so please complain if something doesn't quite look right, it probably wasn't done on purpose. Unfortunately we can'

[PATCH v2 2/3] ASoC: codecs: Add Awinic AW8898 amplifier driver

2025-07-05 Thread Luca Weiss
Add a driver for the AW8898 Audio Amplifier. Signed-off-by: Luca Weiss --- sound/soc/codecs/Kconfig | 10 + sound/soc/codecs/Makefile | 1 + sound/soc/codecs/snd-soc-aw8898.c | 561 ++ 3 files changed, 572 insertions(+) diff --git a/sound/

[PATCH v2 3/3] arm64: dts: qcom: sdm632-fairphone-fp3: Add AW8898 amplifier

2025-07-05 Thread Luca Weiss
Add a node for the amplifier found on Fairphone 3, receiving sound via I2S from the SoC and being connected to the speaker. Reviewed-by: Konrad Dybcio Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sdm632-fairphone-fp3.dts | 20 1 f

[PATCH v2 1/3] ASoC: dt-bindings: Document Awinic AW8898 amplifier

2025-07-05 Thread Luca Weiss
Add the bindings for the Awinic AW8898 amplifier. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- .../devicetree/bindings/sound/awinic,aw8898.yaml | 78 ++ 1 file changed, 78 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/awinic,aw8898.y

[PATCH net-next] virtio-net: xsk: rx: move the xdp->data adjustment to buf_to_xdp()

2025-07-05 Thread Bui Quang Minh
This commit does not do any functional changes. It moves xdp->data adjustment for buffer other than first buffer to buf_to_xdp() helper so that the xdp_buff adjustment does not scatter over different functions. Signed-off-by: Bui Quang Minh --- drivers/net/virtio_net.c | 11 +-- 1 file c