Re: [PATCH net-next v3] selftests: forwarding: Reorder (ar)ping arguments to obey POSIX getopt

2025-09-20 Thread Ido Schimmel
On Fri, Sep 19, 2025 at 01:35:33PM +0800, David Yang wrote: > Quoted from musl wiki: > > GNU getopt permutes argv to pull options to the front, ahead of > non-option arguments. musl and the POSIX standard getopt stop > processing options at the first non-option argument with no > permutati

Re: [PATCH v3 00/36] sparc64: vdso: Switch to the generic vDSO library

2025-09-20 Thread John Paul Adrian Glaubitz
Hi Thomas, On Sat, 2025-09-20 at 16:37 +0200, Thomas Weißschuh wrote: > Sep 20, 2025 15:25:11 John Paul Adrian Glaubitz > : > > > On Wed, 2025-09-17 at 16:00 +0200, Thomas Weißschuh wrote: > > > The generic vDSO provides a lot common functionality shared between > > > different architectures. SP

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

2025-09-20 Thread Bjorn Andersson
On Thu, Aug 28, 2025 at 02:56:15PM +0530, Souradeep Chowdhury wrote: > If an user stops and starts rproc by using the sysfs interface, then on > pm suspension the firmware fails to load as the request_firmware call > under adsp_load relies on usermodehelper process via firmware_fallback_sysfs > wh

Re: [PATCH v7 03/21] slab: add opt-in caching layer of percpu sheaves

2025-09-20 Thread Vlastimil Babka
On 9/8/25 13:19, Harry Yoo wrote: > On Wed, Sep 03, 2025 at 02:59:45PM +0200, Vlastimil Babka wrote: >> diff --git a/mm/slab_common.c b/mm/slab_common.c >> index >> bfe7c401a01c175766935c1e3c0304434a53..e2b197e47866c30acdbd1fee4159f262a751c5a7 >> 100644 >> --- a/mm/slab_common.c >> +++ b/mm/s

Re: [PATCH 0/6] remoteproc: imx_proc: Simplify driver by removing the switch-case

2025-09-20 Thread Peng Fan
On Mon, Sep 08, 2025 at 09:07:33PM +0800, Peng Fan wrote: >This patchset serves as a preparing patchset for i.MX95 support. > >The current code logic is complicated, with mix the usage of switch-case >and if-else. > >To simplify the code logic: > Introduce struct imx_rproc_plat_ops to wrap platform

[PATCH net 3/5] selftests: mptcp: userspace pm: validate deny-join-id0 flag

2025-09-20 Thread Matthieu Baerts (NGI0)
The previous commit adds the MPTCP_PM_EV_FLAG_DENY_JOIN_ID0 flag. Make sure it is correctly announced by the other peer when it has been received. pm_nl_ctl will now display 'deny_join_id0:1' when monitoring the events, and when this flag was set by the other peer. The 'Fixes' tag here below is t

[PATCH v8 11/23] maple_tree: Drop bulk insert support

2025-09-20 Thread Vlastimil Babka
From: "Liam R. Howlett" Bulk insert mode was added to facilitate forking faster, but forking now uses __mt_dup() to duplicate the tree. The addition of sheaves has made the bulk allocations difficult to maintain - since the expected entries would preallocate into the maple state. A big part of

[PATCH v8 23/23] maple_tree: Convert forking to use the sheaf interface

2025-09-20 Thread Vlastimil Babka
From: "Liam R. Howlett" Use the generic interface which should result in less bulk allocations during a forking. A part of this is to abstract the freeing of the sheaf or maple state allocations into its own function so mas_destroy() and the tree duplication code can use the same functionality t

Re: [PATCH net-next 4/5] netconsole: resume previously deactivated target

2025-09-20 Thread Breno Leitao
On Tue, Sep 09, 2025 at 10:12:15PM +0100, Andre Carvalho wrote: > @@ -1460,6 +1493,10 @@ static int netconsole_netdev_event(struct > notifier_block *this, > stopped = true; > } > } > + if (nt->state == STATE_DEACTIVATED

[PATCH] selftests/mm: remove PROT_EXEC req from file-collapse tests

2025-09-20 Thread Zach O'Keefe
As of v6.8 commit 7fbb5e188248 ("mm: remove VM_EXEC requirement for THP eligibility") thp collapse no longer requires file-backed mappings be created with PROT_EXEC. Remove the overly-strict dependency from thp collapse tests so we test the least-strict requirement for success. Signed-off-by: Za

Re: [PATCH net v3 1/3] netpoll: fix incorrect refcount handling causing incorrect cleanup

2025-09-20 Thread Calvin Owens
On Friday 09/05 at 10:25 -0700, Breno Leitao wrote: > commit efa95b01da18 ("netpoll: fix use after free") incorrectly > ignored the refcount and prematurely set dev->npinfo to NULL during > netpoll cleanup, leading to improper behavior and memory leaks. > > Scenario causing lack of proper cleanup:

[PATCH v3 32/36] sparc64: vdso2c: Drop sym_vvar_start handling

2025-09-20 Thread Thomas Weißschuh
After the adoption of the generic vDSO library this symbol does not exist. The alignment invariant is now guaranteed by the generic code. Signed-off-by: Thomas Weißschuh --- arch/sparc/include/asm/vdso.h | 2 -- arch/sparc/vdso/vdso2c.c | 6 -- arch/sparc/vdso/vdso2c.h | 4 3

Re: [PATCH v2 11/11] media: iris: Enable Secure PAS support with IOMMU managed by Linux

2025-09-20 Thread Mukesh Ojha
On Mon, Sep 08, 2025 at 10:23:31AM +0200, Stephan Gerhold wrote: > On Mon, Aug 25, 2025 at 04:49:56PM +0530, Mukesh Ojha wrote: > > On Sat, Aug 23, 2025 at 10:43:52PM +0200, Stephan Gerhold wrote: > > > On Fri, Aug 22, 2025 at 10:10:30PM +0530, Mukesh Ojha wrote: > > > > On Fri, Aug 22, 2025 at 06:

[PATCH v8 05/23] slab: sheaf prefilling for guaranteed allocations

2025-09-20 Thread Vlastimil Babka
Add functions for efficient guaranteed allocations e.g. in a critical section that cannot sleep, when the exact number of allocations is not known beforehand, but an upper limit can be calculated. kmem_cache_prefill_sheaf() returns a sheaf containing at least given number of objects. kmem_cache_a

[PATCH v8 21/23] maple_tree: Prefilled sheaf conversion and testing

2025-09-20 Thread Vlastimil Babka
From: "Liam R. Howlett" Use prefilled sheaves instead of bulk allocations. This should speed up the allocations and the return path of unused allocations. Remove the push and pop of nodes from the maple state as this is now handled by the slab layer with sheaves. Testing has been removed as nec

[PATCH v8 17/23] testing/radix-tree/maple: Hack around kfree_rcu not existing

2025-09-20 Thread Vlastimil Babka
From: "Liam R. Howlett" liburcu doesn't have kfree_rcu (or anything similar). Despite that, we can hack around it in a trivial fashion, by adding a wrapper. The wrapper only works for maple_nodes because we cannot get the kmem_cache pointer any other way in the test code. Link: https://lore.ker

[PATCH net-next v4 3/8] net: ethtool: remove the duplicated handling from ethtool_get_rxrings

2025-09-20 Thread Breno Leitao
ethtool_get_rxrings() was a copy of ethtool_get_rxnfc(). Clean the code that will never be executed for GRXRINGS specifically. Signed-off-by: Breno Leitao --- net/ethtool/ioctl.c | 33 ++--- 1 file changed, 10 insertions(+), 23 deletions(-) diff --git a/net/ethtool/i

[PATCH v2 00/13] arm64: dts: qcom: sdm845-lg-{common, judyln}: Improve HW support in dts

2025-09-20 Thread Paul Sajna
Rollup of improved hardware support via devicetree for LG G7 ThinQ (judyln) from sdm845-mainline kernel fork Notably, this patch-series enables full DRM acceleration and wifi, among other small improvements in individual commits after this patch-series the main things that remain to be worked on

[PATCH v3 08/36] LoongArch: vDSO: Explicitly include asm/vdso/vdso.h

2025-09-20 Thread Thomas Weißschuh
The usage of 'struct old_timespec32' requires asm/vdso/vdso.h. Currently this header is included transitively, but that transitive inclusion is about to go away. Explicitly include the header. Signed-off-by: Thomas Weißschuh --- arch/loongarch/kernel/process.c | 1 + arch/loongarch/kernel/vdso.

[PATCH V3 20/20] cxl/pmem: Add CXL LSA 2.1 support in cxl pmem

2025-09-20 Thread Neeraj Kumar
Add support of CXL LSA 2.1 using NDD_REGION_LABELING flag. It creates cxl region based on region information parsed from LSA. Signed-off-by: Neeraj Kumar --- drivers/cxl/core/pmem_region.c | 53 ++ drivers/cxl/cxl.h | 4 +++ drivers/cxl/pmem.c

Re: [PATCH] remoteproc: mtk_scp: Construct FW path if firmware-name not present

2025-09-20 Thread Mathieu Poirier
On Fri, Sep 12, 2025 at 12:34:01PM +0200, AngeloGioacchino Del Regno wrote: > Il 12/09/25 11:51, Matthias Brugger ha scritto: > > > > > > On 12/09/2025 10:45, AngeloGioacchino Del Regno wrote: > > > Il 12/09/25 09:01, Matthias Brugger ha scritto: > > > > > > > > > > > > On 11/09/2025 16:00, Ang

Re: [PATCH 0/2] rcu: replace wq users and add WQ_PERCPU to alloc_workqueue() users

2025-09-20 Thread Paul E. McKenney
On Fri, Sep 05, 2025 at 11:07:45AM +0200, Marco Crivellari wrote: > Hi! > > Below is a summary of a discussion about the Workqueue API and cpu isolation > considerations. Details and more information are available here: > > "workqueue: Always use wq_select_unbound_cpu() for WORK_CPU_UNBOU

[PATCH 02/14] x86/paravirt: remove some unneeded struct declarations

2025-09-20 Thread Juergen Gross
In paravirt_types.h there are some struct declarations which are not needed. Remove them. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt_types.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/arch/x86/include/asm/paravirt_types.h b/arch/x86/include/asm/paravirt_types.h

Re: [PATCH v2 1/4] dt-bindings: remoteproc: Add VCP support for mt8196

2025-09-20 Thread AngeloGioacchino Del Regno
Il 14/09/25 14:29, Xiangzhi Tang ha scritto: Add the new binding document for MediaTek Video Companion Processor(VCP) on MediaTek mt8196. Signed-off-by: Xiangzhi Tang --- .../remoteproc/mediatek,mt8196-vcp.yaml | 165 ++ 1 file changed, 165 insertions(+) create mode 1

[PATCH v8 1/8] s390: vmlinux.lds.S: Reorder sections

2025-09-20 Thread Alexey Gladkov
In the upcoming changes, the ELF_DETAILS macro will be extended with the ".modinfo" section, which will cause an error: >> s390x-linux-ld: .tmp_vmlinux1: warning: allocated section `.modinfo' not in >> segment >> s390x-linux-ld: .tmp_vmlinux2: warning: allocated section `.modinfo' not in >> segm

[PATCH v3 0/3] HID: hidraw: rework ioctls

2025-09-20 Thread Benjamin Tissoires
Arnd sent the v1 of the series in July, and it was bogus. So with a little help from claude-sonnet I built up the missing ioctls tests and tried to figure out a way to apply Arnd's logic without breaking the existing ioctls. The end result is in patch 3/3, which makes use of subfunctions to keep t

Re: [PATCH 1/2] dt-bindings: input: pm8941-pwrkey: Document wakeup-source property

2025-09-20 Thread Krzysztof Kozlowski
On 09/09/2025 15:23, Luca Weiss wrote: > The 'resin' keys (usually connected to a volume-down button) are > generally not supposed to wake up the device from suspend, so explicitly > document a wakeup-source property to enable this wakeup behavior. > > For 'pwrkey' the default stays that pressing

Re: [PATCH] srcu/tiny: Remove preempt_disable/enable() in srcu_gp_start_if_needed()

2025-09-20 Thread Paul E. McKenney
On Mon, Sep 08, 2025 at 01:19:44PM +, Zqiang wrote: > > > > On Mon, Sep 08, 2025 at 08:31:55AM +0800, Zqiang wrote: > > > > > > > > Currently, the srcu_gp_start_if_needed() is always be invoked in > > > preempt disable's critical section, this commit therefore remove > > > redundant preemp

[PATCH 4/5] KVM: nVMX: Implement cache for L1 APIC pages

2025-09-20 Thread Fred Griffoul
From: Fred Griffoul Replace kvm_host_map usage with persistent gfn_to_pfn_cache for L1 APIC virtualization pages (APIC access, virtual APIC, and posted interrupt descriptor pages) to improve performance with unmanaged guest memory. The conversion involves several key changes: - Page loading in

Re: [PATCH v2 4/6] unwind: Implement generic sframe unwinder library

2025-09-20 Thread Puranjay Mohan
Dylan Hatch writes: > From: Weinan Liu > > This change introduces a kernel space unwinder using sframe table for > architectures without ORC unwinder support. > > The implementation is adapted from Josh's userspace sframe unwinder > proposal[1] according to the sframe v2 spec[2]. > > [1] > http

Re: [PATCH 9/9] um: switch ptrace FP register access to nolibc

2025-09-20 Thread Berg, Benjamin
Hi, On Mon, 2025-09-15 at 11:07 +0200, Thomas Weißschuh wrote: > On 2025-09-15 09:11:15+0200, Benjamin Berg wrote: > > From: Benjamin Berg > > > > The registers.c file only contain the routines for floating point > > register access in ptrace mode and initial size detection. The file can > > be

[PATCH 10/14] riscv/paravirt: use common code for paravirt_steal_clock()

2025-09-20 Thread Juergen Gross
Remove the arch specific variant of paravirt_steal_clock() and use the common one instead. Signed-off-by: Juergen Gross --- arch/riscv/Kconfig| 1 + arch/riscv/include/asm/paravirt.h | 10 -- arch/riscv/kernel/paravirt.c | 7 --- 3 files changed, 1 insertion(+)

[PATCH 0/2] Disable wakeup for resin keys by default

2025-09-20 Thread Luca Weiss
'Resin' (*Res*et *In*put) on Qualcomm PMICs is usually connected to volume down buttons on devices, which are usually not expected to wake up the device from suspend. On the other hand, pwrkey should keep wakeup on. Note, that this does change behavior by turning off wakeup by default for 'resin'

[RFC PATCH v3] ipvs: Defer ip_vs_ftp unregister during netns cleanup

2025-09-20 Thread Slavin Liu
On the netns cleanup path, __ip_vs_ftp_exit() may unregister ip_vs_ftp before connections with valid cp->app pointers are flushed, leading to a use-after-free. Fix this by introducing a global `module_removing` flag, set to true in ip_vs_ftp_exit() before unregistering the pernet subsystem. In __i

Re: [PATCH net-next 4/5] netconsole: resume previously deactivated target

2025-09-20 Thread kernel test robot
Hi Andre, kernel test robot noticed the following build warnings: [auto build test WARNING on 3b4296f5893d3a4e19edfc3800cb79381095e55f] url: https://github.com/intel-lab-lkp/linux/commits/Andre-Carvalho/netconsole-add-target_state-enum/20250910-051601 base: 3b4296f5893d3a4e19edfc3800cb7938

Re: [PATCH net v3 1/3] netpoll: fix incorrect refcount handling causing incorrect cleanup

2025-09-20 Thread Jakub Kicinski
On Wed, 10 Sep 2025 07:12:03 -0700 Breno Leitao wrote: > On Tue, Sep 09, 2025 at 04:16:25PM -0700, Jakub Kicinski wrote: > > On Tue, 9 Sep 2025 13:17:27 -0700 Breno Leitao wrote: > > > On Mon, Sep 08, 2025 at 06:29:58PM -0700, Jakub Kicinski wrote: > > > > On Mon, 8 Sep 2025 13:47:24 -0700 Calv

Re: [PATCH v7 3/8] kbuild: keep .modinfo section in vmlinux.unstripped

2025-09-20 Thread Alexey Gladkov
On Tue, Sep 16, 2025 at 11:36:54AM +0200, Nicolas Schier wrote: > On Tue, Sep 16, 2025 at 09:12:22AM +0200, Alexey Gladkov wrote: > > On Mon, Sep 15, 2025 at 07:56:16AM +0200, Nicolas Schier wrote: > > > On Mon, Aug 18, 2025 at 06:54:57PM +0200, Alexey Gladkov wrote: > > > > From: Masahiro Yamada

[PATCH] kunit: Extend kconfig help text for KUNIT_UML_PCI

2025-09-20 Thread Thomas Weißschuh
Checkpatch.pl expects at least 4 lines of help text. Extend the help text to make checkpatch.pl happy. Fixes: 031cdd3bc3f3 ("kunit: Enable PCI on UML without triggering WARN()") Suggested-by: Shuah Khan Link: https://lore.kernel.org/lkml/3dc95227-2be9-48a0-bdea-3f283d9b2...@linuxfoundation.org/

Re: [PATCH] selftests/mm: remove PROT_EXEC req from file-collapse tests

2025-09-20 Thread David Hildenbrand
On 10.09.25 11:16, Wei Yang wrote: On Tue, Sep 09, 2025 at 12:05:34PM -0700, Zach O'Keefe wrote: As of v6.8 commit 7fbb5e188248 ("mm: remove VM_EXEC requirement for THP eligibility") thp collapse no longer requires file-backed mappings be created with PROT_EXEC. One question, what if user ru

vhost_iotlb_miss tight loop lockup - RE vhost/net: Defer TX queue re-enable until after sendmsg

2025-09-20 Thread Jon Kohler
> On May 5, 2025, at 9:40 PM, patchwork-bot+netdev...@kernel.org wrote: > > Hello: > > This patch was applied to netdev/net-next.git (main) > by Jakub Kicinski : Hey all, Writing to fire up a flare and point out a problem that we’re seeing with this patch internally, specifically when we enabl

[PATCH v2 08/11] um: use nolibc for the --showconfig implementation

2025-09-20 Thread Benjamin Berg
From: Benjamin Berg This is one of the simplest files and it can be switched over to use nolibc without any modifications. Signed-off-by: Benjamin Berg --- arch/um/kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/kernel/Makefile b/arch/um/kernel/Makef

Re: [PATCH net-next 0/7] net: ethtool: add dedicated GRXRINGS driver callbacks

2025-09-20 Thread Lei Yang
Tested this patch with virtio-net regression tests, everything works fine. Tested-by: Lei Yang On Wed, Sep 10, 2025 at 4:24 AM Breno Leitao wrote: > > This patchset introduces a new dedicated ethtool_ops callback, > .get_rx_ring_count, which enables drivers to provide the number of RX > rings

Re: [PATCH v2 4/6] unwind: Implement generic sframe unwinder library

2025-09-20 Thread Indu Bhagat
On 9/9/25 9:44 AM, Puranjay Mohan wrote: Dylan Hatch writes: From: Weinan Liu This change introduces a kernel space unwinder using sframe table for architectures without ORC unwinder support. The implementation is adapted from Josh's userspace sframe unwinder proposal[1] according to the sf

[PATCH vhost 2/3] Revert "vhost/net: Defer TX queue re-enable until after sendmsg"

2025-09-20 Thread Jason Wang
This reverts commit 8c2e6b26ffe243be1e78f5a4bfb1a857d6e6f6d6. It tries to defer the notification enabling by moving the logic out of the loop after the vhost_tx_batch() when nothing new is spotted. This will bring side effects as the new logic would be reused for several other error conditions. On

[PATCH v8 7/8] modpost: Create modalias for builtin modules

2025-09-20 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 2/2] KVM: arm64: selftests: Cover ID_AA64ISAR3_EL1 in set_id_regs

2025-09-20 Thread Mark Brown
We have a couple of writable bitfields in ID_AA64ISAR3_EL1 but the set_id_regs selftest does not cover this register at all, add coverage. Signed-off-by: Mark Brown --- tools/testing/selftests/kvm/arm64/set_id_regs.c | 9 + 1 file changed, 9 insertions(+) diff --git a/tools/testing/self

[PATCH v3 01/12] dt-bindings: remoteproc: qcom,pas: Add iommus property

2025-09-20 Thread Mukesh Ojha
Most Qualcomm platforms feature Gunyah hypervisor which handles IOMMU configuration for remote processor and when it is not present, the operating system must perform these configurations instead and for that firmware stream should be presented to the operating system. Hence, add iommus property as

[PATCH v3 02/12] firmware: qcom_scm: Rename peripheral as pas_id

2025-09-20 Thread Mukesh Ojha
Peripheral and pas_id refers to unique id for a subsystem and used only when peripheral authentication service from secure world is utilized. Lets rename peripheral to pas_id to reflect closer to its meaning. Signed-off-by: Mukesh Ojha --- drivers/firmware/qcom/qcom_scm.c | 30 +++

[PATCH 1/2] KVM: arm64: selftests: Remove a duplicate register listing in set_id_regs

2025-09-20 Thread Mark Brown
Currently we list the main set of registers with bits we test three times, once in the test_regs array which is used at runtime, once in the guest code and once in a list of ARRAY_SIZE() operations we use to tell kselftest how many tests we plan to execute. This is needlessly fiddly, when adding ne

[PATCH 0/2] KVM: arm64: selftests: Cover ID_AA64ISAR3_EL1 in set_id_regs

2025-09-20 Thread Mark Brown
The set_id_regs selftest lacks coverag for ID_AA64ISR3_EL1 which has several features exposed to KVM guests in it. Add coverage, and while we're here adjust the test to improve maintainability a bit. The test will fail without the recently applied change adding FEAT_LSFE: https://lore.kern

[PATCH v3 12/12] arm64: dts: qcom: Add EL2 overlay for Lemans

2025-09-20 Thread Mukesh Ojha
All the Lemans IOT variants boards are using Gunyah hypervisor which means that, so far, Linux-based OS could only boot in EL1 on those devices. However, it is possible for us to boot Linux at EL2 on these devices [1]. When running under Gunyah, remote processor firmware IOMMU streams is controll

Re: [PATCH RESEND v2] rpmsg: qcom_smd: Fix fallback to qcom,ipc parse

2025-09-20 Thread Barnabás Czémán
Should i resend/reword the commit? This change is important for SoCs like 8917 what are still using qcom,ipc (because of cycling dependency) in the rpm,smd node. On 31 August 2025 00:39:43 CEST, "Barnabás Czémán" wrote: >mbox_request_channel() returning value was changed in case of error. >It

[PATCH v2] selftests/kselftest_harness: Add harness-selftest.expected to TEST_FILES

2025-09-20 Thread Yi Lai
The harness-selftest.expected is not installed in INSTALL_PATH. Attempting to execute harness-selftest.sh shows warning: diff: ./kselftest_harness/harness-selftest.expected: No such file or directory Add harness-selftest.expected to TEST_FILES. Fixes: df82ffc5a3c1 ("selftests: harness: Add kself

Re: [PATCH v7 04/21] slab: add sheaf support for batching kfree_rcu() operations

2025-09-20 Thread Uladzislau Rezki
On Tue, Sep 09, 2025 at 10:35:15AM -0400, Liam R. Howlett wrote: > * Uladzislau Rezki [250909 05:08]: > > ... > > > > > > > - call_rcu() can be slow, therefore we do not use it in the > > > > kvfree_rcu(). > > > > > > If call_rcu() is called once per 32 kfree_rcu() filling up the rcu sheaf,

[PATCH v3 11/12] remoteproc: qcom: pas: Enable Secure PAS support with IOMMU managed by Linux

2025-09-20 Thread Mukesh Ojha
Most Qualcomm platforms feature a proprietary hypervisor (such as Gunyah or QHEE), which typically handles IOMMU configuration. This includes mapping memory regions and device memory resources for remote processors by intercepting qcom_scm_pas_auth_and_reset() calls. These mappings are later remove

[PATCH v3 10/12] remoteproc: pas: Extend parse_fw callback to fetch resources via SMC call

2025-09-20 Thread Mukesh Ojha
Qualcomm remote processor may rely on static and dynamic resources for it to be functional. For most of the Qualcomm SoCs, when run with Gunyah or older QHEE hypervisor, all the resources whether it is static or dynamic, is managed by the hypervisor. Dynamic resources if it is present for a remote

[PATCH v3 09/12] firmware: qcom_scm: Add qcom_scm_pas_get_rsc_table() to get resource table

2025-09-20 Thread Mukesh Ojha
Qualcomm remote processor may rely on Static and Dynamic resources for it to be functional. Static resources are fixed like for example, memory-mapped addresses required by the subsystem and dynamic resources, such as shared memory in DDR etc., are determined at runtime during the boot process. Fo

[PATCH v3 08/12] firmware: qcom_scm: Add shmbridge support to pas_init/release function

2025-09-20 Thread Mukesh Ojha
For memory passed to Qualcomm TrustZone, it must either be part of a pool registered with TZ or be directly registered via SHMbridge SMC calls. When QHEE is present, PAS SMC calls from Linux running at EL1 are trapped by QHEE (running at EL2), which then creates or retrieves memory from the SHM bri

[PATCH v3 07/12] firmware: qcom_scm: Simplify qcom_scm_pas_init_image()

2025-09-20 Thread Mukesh Ojha
Simplify qcom_scm_pas_init_image() by making the memory allocation, copy and free work in a separate function than the actual SMC call. Reviewed-by: Bryan O'Donoghue Signed-off-by: Mukesh Ojha --- drivers/firmware/qcom/qcom_scm.c | 58 +++- 1 file changed, 33

[PATCH v3 05/12] remoteproc: pas: Use PAS context awareness in smc and mdt functions

2025-09-20 Thread Mukesh Ojha
Since, we have introduced PAS context data structure to better handle the code when SoC run with Gunyah or in absence. Let's put these awareness in some of SMC and meta data functions and replace metadata context as PAS context structure is superset and will help in unifying remoteproc and non-remo

[PATCH v3 06/12] firmware: qcom_scm: Add a prep version of auth_and_reset function

2025-09-20 Thread Mukesh Ojha
Qualcomm SoCs running with QHEE (Qualcomm Hypervisor Execution Environment—a library present in the Gunyah hypervisor) utilize the Peripheral Authentication Service (PAS) from TrustZone (TZ) firmware to securely authenticate and reset remote processors via a sequence of SMC calls such as qcom_scm_p

[PATCH v3 04/12] soc: qcom: mdtloader: Add context aware qcom_mdt_pas_load() helper

2025-09-20 Thread Mukesh Ojha
Currently, remoteproc and non-remoteproc subsystems use different variants of the MDT loader helper API, primarily due to the handling of the metadata context. Remoteproc subsystems retain this context until authentication and reset, while non-remoteproc subsystems (e.g., video, graphics) do not ne

[PATCH v3 03/12] firmware: qcom_scm: Introduce PAS context initialization and destroy helper

2025-09-20 Thread Mukesh Ojha
When Secure Peripheral Authentication Service (PAS) method runs on a SoC where Linux runs at EL2 (Gunyah absence) where reset sequences move to EL3 and Linux need to do some extra stuff before calling PAS SMC calls like creating SHMbridge. So, PAS SMC call need awareness and need handling of things

[PATCH v3 00/12] Peripheral Image Loader support for Qualcomm SoCs running Linux host at EL2

2025-09-20 Thread Mukesh Ojha
A few months ago, we discussed the challenges at Linaro Connect 2025 [1] related to Secure PAS remoteproc enablement when Linux is running at EL2. [1] https://resources.linaro.org/en/resource/sF8jXifdb9V1mUefdbfafa Below, is the summary of the discussion. Qualcomm is working to enable remote pr

[PATCH v1 1/2] livepatch: Add config LIVEPATCH_DEBUG to get debug information

2025-09-20 Thread Tiezhu Yang
Add config LIVEPATCH_DEBUG and define DEBUG if CONFIG_LIVEPATCH_DEBUG is set, then pr_debug() can print a debug level message, it is a easy way to get debug information without dynamic debugging. Signed-off-by: Tiezhu Yang --- kernel/livepatch/Kconfig | 8 kernel/livepatch/transiti

Re: [PATCH net-next v2 4/7] net: ethtool: add get_rx_ring_count callback to optimize RX ring queries

2025-09-20 Thread Breno Leitao
On Sun, Sep 14, 2025 at 12:59:49PM -0700, Jakub Kicinski wrote: > On Fri, 12 Sep 2025 08:59:13 -0700 Breno Leitao wrote: > > @@ -1225,9 +1242,7 @@ static noinline_for_stack int > > ethtool_get_rxrings(struct net_device *dev, > > if (ret) > > return ret; > > > > - ret = ops->get

[PATCH v3 21/36] vdso/datastore: Reduce scope of some variables in vvar_fault()

2025-09-20 Thread Thomas Weißschuh
These variables are only used inside a single branch. Move their declarations there. Signed-off-by: Thomas Weißschuh --- lib/vdso/datastore.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/vdso/datastore.c b/lib/vdso/datastore.c index a565c30c71a04ff4116c14f43f44

[PATCH v3 36/36] clocksource: drop include of asm/clocksource.h from linux/clocksource.h

2025-09-20 Thread Thomas Weißschuh
The same inclusion is already satisfied by vdso/clocksource.h. Signed-off-by: Thomas Weißschuh --- include/linux/clocksource.h | 4 1 file changed, 4 deletions(-) diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 12d853b1883265cb47d93e33d8370e3957e7e695..afa03e9

[PATCH V3 19/20] cxl/pmem_region: Add sysfs attribute cxl region label updation/deletion

2025-09-20 Thread Neeraj Kumar
Using these attributes region label is added/deleted into LSA. These attributes are called from userspace (ndctl) after region creation. Signed-off-by: Neeraj Kumar --- Documentation/ABI/testing/sysfs-bus-cxl | 22 ++ drivers/cxl/core/pmem_region.c | 91 - dr

[PATCH 6.1 12/15] selftests: net: genetlink: add Generic Netlink controller tests

2025-09-20 Thread Yana Bashlykova
Add comprehensive test coverage for nlctrl (Generic Netlink controller) Add my_genl_ctrl_resolve function for resolving family ID Signed-off-by: Yana Bashlykova --- tools/testing/selftests/net/genetlink.c | 925 1 file changed, 925 insertions(+) diff --git a/tools/test

Re: [PATCH] remoteproc: mtk_scp: Construct FW path if firmware-name not present

2025-09-20 Thread AngeloGioacchino Del Regno
Il 12/09/25 11:51, Matthias Brugger ha scritto: On 12/09/2025 10:45, AngeloGioacchino Del Regno wrote: Il 12/09/25 09:01, Matthias Brugger ha scritto: On 11/09/2025 16:00, AngeloGioacchino Del Regno wrote: After a reply on the mailing lists [1] it emerged that the DT property "firmware-nam

[PATCH net-next 3/6] mptcp: pm: netlink: deprecate server-side attribute

2025-09-20 Thread Matthieu Baerts (NGI0)
Now that such info is in the 'flags' attribute, it is time to deprecate the dedicated 'server-side' attribute. It will be removed in a few versions. Reviewed-by: Geliang Tang Signed-off-by: Matthieu Baerts (NGI0) --- Documentation/netlink/specs/mptcp_pm.yaml | 1 + net/mptcp/pm_netlink.c

Re: [PATCH 3/3] arm64: dts: qcom: sm6350: Add MDSS_CORE reset to mdss

2025-09-20 Thread Dmitry Baryshkov
On Fri, Sep 19, 2025 at 11:57:25AM +0200, Luca Weiss wrote: > Like on other platforms, if the OS does not support recovering the state > left by the bootloader it needs access to MDSS_CORE, so that it can > clear the MDSS configuration. Add a reference to the relevant reset. > > This also fixes di

[PATCH v2 1/5] remoteproc: imx_rproc: Simplify clock enable logic using dcfg flags

2025-09-20 Thread Peng Fan
Simplify the clock enable logic by removing the dedicated imx_rproc_clk_enable() function and integrate the clock handling directly into the probe function to simplify the code. Add a new IMX_RPROC_NEED_CLKS flag in dcfg to indicate whether clock management is required for a given SoC. Update prob

Re: [PATCH V3 04/20] nvdimm/label: Update mutex_lock() with guard(mutex)()

2025-09-20 Thread Ira Weiny
Dave Jiang wrote: [snip] > > @@ -998,9 +998,8 @@ static int init_labels(struct nd_mapping *nd_mapping, > > int num_labels) > > label_ent = kzalloc(sizeof(*label_ent), GFP_KERNEL); > > if (!label_ent) > > return -ENOMEM; > > - mutex_lock(&nd_m

[PATCH v2 3/5] remoteproc: imx_rproc: Enable PM runtime support unconditionally

2025-09-20 Thread Peng Fan
PM runtime support is safe and applicable across all i.MX platforms, not just those using the SCU API. Remove the conditional check and enable PM runtime unconditionally to simplify the code and ensure consistent power management behavior. Reviewed-by: Daniel Baluta Reviewed-by: Frank Li Signed-

Re: [PATCH v3 00/36] sparc64: vdso: Switch to the generic vDSO library

2025-09-20 Thread John Paul Adrian Glaubitz
Hi Thomas, On Wed, 2025-09-17 at 16:00 +0200, Thomas Weißschuh wrote: > The generic vDSO provides a lot common functionality shared between > different architectures. SPARC is the last architecture not using it, > preventing some necessary code cleanup. > > Make use of the generic infrastructure.

[PATCH 05/10] ARM: dts: mediatek: mt6582: remove compatible property from root node

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino SoC's DTSI does not require compatible property. Drop that. Signed-off-by: Cristian Cozzolino --- arch/arm/boot/dts/mediatek/mt6582.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/boot/dts/mediatek/mt6582.dtsi b/arch/arm/boot/dts/mediatek/mt6582.dtsi

[PATCH 01/10] ARM: mediatek: add board_dt_compat entry for the MT6582 SoC

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino Add a compatible string for the MT6582 SoC. Signed-off-by: Cristian Cozzolino --- arch/arm/mach-mediatek/mediatek.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-mediatek/mediatek.c b/arch/arm/mach-mediatek/mediatek.c index 5c28124bd0078b31665fef6

[PATCH 09/10] dt-bindings: arm: mediatek: Add MT6582 yarisxl

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino Add an entry for Alcatel Pop C7 (OT-7041D) smartphone board, named yarisxl, based on MT6582 SoC. Signed-off-by: Cristian Cozzolino --- Documentation/devicetree/bindings/arm/mediatek.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindi

[PATCH 08/10] ARM: dts: mediatek: mt6582: add enable-method property to cpus

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino Add missing property for SMP. Signed-off-by: Cristian Cozzolino --- arch/arm/boot/dts/mediatek/mt6582.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/boot/dts/mediatek/mt6582.dtsi b/arch/arm/boot/dts/mediatek/mt6582.dtsi index 82564c740c2182448f8f88

[PATCH 04/10] ARM: dts: mediatek: mt6582: sort nodes and properties

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino Sort fixed clocks nodes by clock frequency and memory mapped device nodes by reg address. Also, sort properties as shown in dt-bindings examples. Signed-off-by: Cristian Cozzolino --- arch/arm/boot/dts/mediatek/mt6582.dtsi | 46 +++--- 1 fil

[PATCH 10/10] ARM: dts: mediatek: add basic support for Alcatel yarisxl board

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino This smartphone uses a MediaTek MT6582 system-on-chip with 512MB of RAM. It can currently boot into initramfs with a working UART and Simple Framebuffer using already initialized panel by the bootloader. Signed-off-by: Cristian Cozzolino --- arch/arm/boot/dts/mediatek/

[PATCH 07/10] ARM: dts: mediatek: mt6582: add clock-names property to uart nodes

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino Other SoC DTSI files define this property for their uart nodes. Do the same here too, to be consistent. Signed-off-by: Cristian Cozzolino --- arch/arm/boot/dts/mediatek/mt6582.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/boot/dts/mediatek/mt658

[PATCH 00/10] ARM: Add support for yarisxl mt6582 board

2025-09-20 Thread Cristian Cozzolino via B4 Relay
| 4 + arch/arm/mach-mediatek/mediatek.c | 1 + arch/arm/mach-mediatek/platsmp.c | 1 + 7 files changed, 142 insertions(+), 69 deletions(-) --- base-commit: 846bd2225ec3cfa8be046655e02b9457ed41973e change-id: 20250920-mt6582-9339d7fceb34 Best

[PATCH 06/10] ARM: dts: mediatek: mt6582: add mt6582 compatible to timer

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino Bindings already have mt6582 compatible for timer, so add that to DTSI. While at it, remove clock-names property (which is not required by timer node) and fix node address. Signed-off-by: Cristian Cozzolino --- arch/arm/boot/dts/mediatek/mt6582.dtsi | 5 ++--- 1 file c

[PATCH 02/10] ARM: mediatek: add MT6582 smp bring up code

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino Add support for booting secondary CPUs on MT6582. Signed-off-by: Cristian Cozzolino --- arch/arm/mach-mediatek/Kconfig | 4 arch/arm/mach-mediatek/platsmp.c | 1 + 2 files changed, 5 insertions(+) diff --git a/arch/arm/mach-mediatek/Kconfig b/arch/arm/mach-medi

[PATCH 03/10] ARM: dts: mediatek: mt6582: move MMIO devices under soc node

2025-09-20 Thread Cristian Cozzolino via B4 Relay
From: Cristian Cozzolino Memory mapped devices are part of soc. So, add such node and move those devices into it. Signed-off-by: Cristian Cozzolino --- arch/arm/boot/dts/mediatek/mt6582.dtsi | 129 + 1 file changed, 68 insertions(+), 61 deletions(-) diff --git

Re: [PATCH v5 0/2] KVM: guest_memfd: use write for population

2025-09-20 Thread Nikita Kalyazin
On 10/09/2025 22:37, James Houghton wrote: On Tue, Sep 2, 2025 at 4:20 AM Kalyazin, Nikita wrote: [ based on kvm/next ] Implement guest_memfd allocation and population via the write syscall. This is useful in non-CoCo use cases where the host can access guest memory. Even though the same

[PATCH v8 6/8] modpost: Add modname to mod_device_table alias

2025-09-20 Thread Alexey Gladkov
At this point, if a symbol is compiled as part of the kernel, information about which module the symbol belongs to is lost. To save this it is possible to add the module name to the alias name. It's not very pretty, but it's possible for now. Cc: Miguel Ojeda Cc: Andreas Hindborg Cc: Danilo Kru

[PATCH][next] selftest/futex: Fix spelling mistake "boundarie" -> "boundary"

2025-09-20 Thread Colin Ian King
There is a spelling mistake in a test message. Fix it. Signed-off-by: Colin Ian King --- tools/testing/selftests/futex/functional/futex_numa_mpol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/futex/functional/futex_numa_mpol.c b/tools/testing/self

Re: [PATCH bpf-next v2] selftests/bpf: Fix incorrect array size calculation

2025-09-20 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Tue, 9 Sep 2025 20:47:04 +0800 you wrote: > The loop in bench_sockmap_prog_destroy() has two issues: > > 1. Using 'sizeof(ctx.fds)' as the loop bound results in the number of >bytes, not the number of file de

[PATCH RFC net-next 0/5] selftests: drv-net: Convert XDP program to bpf_dynptr

2025-09-20 Thread Nimrod Oren
Hi all, This series updates the drv-net XDP program used by the new xdp.py selftest to use the bpf_dynptr APIs for packet access. The selftest itself is unchanged. The original program accessed packet headers directly via ctx->data/data_end, implicitly assuming headers are always in the linear r

Re: [PATCH] rcu/rcutorture: Improve error handling in rcu_torture_fwd_prog_init()

2025-09-20 Thread Markus Elfring
> Restructure error handling in rcu_torture_fwd_prog_init() to provide > cleaner allocation failure paths. The current code checks both > allocations > in a single condition, making error handling less efficient and clear. … I suggest to refine the word wrapping for such a change description. http

Re: [PATCH v1 2/2] LoongArch: Return 0 for user tasks in arch_stack_walk_reliable()

2025-09-20 Thread Tiezhu Yang
On 2025/9/12 上午9:55, Jinyang He wrote: On 2025-09-11 19:49, Tiezhu Yang wrote: On 2025/9/10 上午9:11, Jinyang He wrote: On 2025-09-09 19:31, Tiezhu Yang wrote: When testing the kernel live patching with "modprobe livepatch-sample", there is a timeout over 15 seconds from "starting patching tra

Re: [PATCH v3 3/4] clk: mmp: pxa1908: Instantiate power driver through auxiliary bus

2025-09-20 Thread Peng Fan
On Fri, Aug 29, 2025 at 06:21:06PM +0200, Duje Mihanovi?? wrote: >The power domain driver shares the APMU clock controller's registers. >Instantiate the power domain driver through the APMU clock driver using >the auxiliary bus. > >Also create a separate Kconfig entry for the PXA1908 clock driver t

[PATCH v2 8/8] media: i2c: dw9719: Fix power on/off sequence

2025-09-20 Thread André Apitzsch via B4 Relay
From: Val Packett The "jiggle" code was not actually expecting failure, which it should because that's what actually happens when the device wasn't already woken up by the regulator power-on (i.e. in the case of a shared regulator). Also, do actually enter the internal suspend mode on shutdown,

[PATCH] selftests/kvm: remove stale TODO in xapic_state_test

2025-09-20 Thread Sukrut Heroorkar
The TODO about using the number of vCPUs instead of vcpu.id + 1 was already addressed by commit 376bc1b458c9 ("KVM: selftests: Don't assume vcpu->id is '0' in xAPIC state test"). The comment is now stale and can be removed. Signed-off-by: Sukrut Heroorkar --- tools/testing/selftests/kvm/x86/xapi

Re: [PATCH v2] rcu/segcblist: Use WRITE_ONCE() for rclp->len decrement

2025-09-20 Thread Paul E. McKenney
On Thu, Sep 11, 2025 at 09:56:41PM +0530, Kaushlendra Kumar wrote: > Use WRITE_ONCE() for rclp->len decrement in rcu_cblist_dequeue() to > maintain consistency with rcu_cblist_enqueue(), which already uses > WRITE_ONCE() for rclp->len increment. It maintains consistent access > patterns to the rclp

Re: [PATCH v7 3/8] kbuild: keep .modinfo section in vmlinux.unstripped

2025-09-20 Thread Nicolas Schier
On Wed, Sep 17, 2025 at 02:38:06PM +0200, Alexey Gladkov wrote: > On Wed, Sep 17, 2025 at 01:55:36PM +0200, Nicolas Schier wrote: > > On Tue, Sep 16, 2025 at 02:42:48PM +0200, Nicolas Schier wrote: > > > On Tue, Sep 16, 2025 at 01:30:20PM +0200, Alexey Gladkov wrote: > > ... > > > > I think in the

  1   2   >