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

2025-06-10 Thread Peng Fan
On Tue, Jun 10, 2025 at 12:27:38PM -0700, Tanmay Shah wrote: >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 Reviewed-by:

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

2025-06-10 Thread Peng Fan
On Tue, Jun 10, 2025 at 03:42:57AM +, Junhui Liu wrote: >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 i

Re: [PATCH bpf-next v2 2/2] selftests/bpf: Add test to cover ktls with bpf_msg_pop_data

2025-06-10 Thread John Fastabend
On 2025-06-09 10:08:53, Jiayuan Chen wrote: > The selftest can reproduce an issue where using bpf_msg_pop_data() in > ktls causes errors on the receiving end. > > Signed-off-by: Jiayuan Chen > --- Reviewed-by: John Fastabend > .../selftests/bpf/prog_tests/sockmap_ktls.c | 91 +++

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

2025-06-10 Thread Anshuman Khandual
On 10/06/25 10:31 PM, Marc Zyngier wrote: > On Tue, 10 Jun 2025 06:31:28 +0100, > Anshuman Khandual wrote: >> >> 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:

Re: [RESEND PATCH] rpmsg: Use strscpy() instead of strscpy_pad()

2025-06-10 Thread Bjorn Andersson
On Tue, Jun 10, 2025 at 12:38:14PM +0200, Thorsten Blum wrote: > Hi Mathieu, > > On 30. Apr 2025, at 16:59, Mathieu Poirier wrote: > > On Tue, 29 Apr 2025 at 04:46, Thorsten Blum wrote: > >> > >> kzalloc() already zero-initializes the destination buffer, making > >> strscpy() sufficient for safel

Re: [PATCH v2] remoteproc: qcom: pas: Conclude the rename from adsp

2025-06-10 Thread Bjorn Andersson
On Thu, 05 Jun 2025 17:17:47 -0500, Bjorn Andersson wrote: > The change that renamed the driver from "adsp" to "pas" didn't change > any of the implementation. The result is an aesthetic eyesore, and > confusing to many. > > Conclude the rename of the driver, by updating function, structures and

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

2025-06-10 Thread Peng Fan
> Subject: Re: [PATCH v4 3/3] remoteproc: imx_rproc: detect and attach > to pre-booted remote cores > > 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 Fra

[PATCH v2 3/3] soc: qcom: mdt_loader: Actually use the e_phoff

2025-06-10 Thread Bjorn Andersson
Rather than relying/assuming that the tools generating the firmware places the program headers immediately following the ELF header, use e_phoff as intended to find the program headers. Reviewed-by: Dmitry Baryshkov Signed-off-by: Bjorn Andersson --- drivers/soc/qcom/mdt_loader.c | 10 +

[PATCH v2 2/3] soc: qcom: mdt_loader: Rename mdt_phdr_valid()

2025-06-10 Thread Bjorn Andersson
The function checks if a program header refers to a PT_LOAD segment, that isn't a hash segment (which should be PT_LOAD in the first place), andwith non-zero size. That's not the definition of "valid", but rather if it's "loadable". Rename the function to reflect what it does. Reviewed-by: Dmitry

[PATCH v2 0/3] soc: qcom: mdt_loader: Validation and cleanup fixes

2025-06-10 Thread Bjorn Andersson
Signed-off-by: Bjorn Andersson --- Changes in v2: - Validate e_phentsize and and e_shentsize as well --- Bjorn Andersson (3): soc: qcom: mdt_loader: Ensure we don't read past the ELF header soc: qcom: mdt_loader: Rename mdt_phdr_valid() soc: qcom: mdt_loader: Actually use the e_

[PATCH v2 1/3] soc: qcom: mdt_loader: Ensure we don't read past the ELF header

2025-06-10 Thread Bjorn Andersson
When the MDT loader is used in remoteproc, the ELF header is sanitized beforehand, but that's not necessary the case for other clients. Validate the size of the firmware buffer to ensure that we don't read past the end as we iterate over the header. e_phentsize and e_shentsize are validated as wel

Re: [PATCH] mm: Remove PFN_MAP, PFN_SPECIAL, PFN_SG_CHAIN and PFN_SG_LAST

2025-06-10 Thread Alistair Popple
0682653 pmd:20f23c01 > page: refcount:1 mapcount:-1 mapping: index:0x0 pfn:0x81a09 > flags: 0x2004(referenced|reserved|zone=0) > raw: 2004 ff1c00068248 ff1c00068248 > raw: 0001fffe 000

Re: [PATCH v4 6/7] mm/maps: read proc/pid/maps under per-vma lock

2025-06-10 Thread Suren Baghdasaryan
On Tue, Jun 10, 2025 at 10:43 AM Lorenzo Stoakes wrote: > > On Sat, Jun 07, 2025 at 06:41:35PM -0700, Suren Baghdasaryan wrote: > > On Sat, Jun 7, 2025 at 10:43 AM Lorenzo Stoakes > > wrote: > > > > > > Hi Suren, > > > > > > Forgive me but I am going to ask a lot of questions here :p just want to

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

2025-06-10 Thread Jason Gunthorpe
On Tue, Jun 10, 2025 at 11:48:44AM -0700, Nicolin Chen wrote: > On Tue, Jun 10, 2025 at 09:09:02AM -0300, Jason Gunthorpe wrote: > > On Tue, Jun 10, 2025 at 01:38:22PM +0200, Thomas Weißschuh wrote: > > > > -- > > > > # RUN

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

2025-06-10 Thread Nicolin Chen
On Tue, Jun 10, 2025 at 02:21:25PM +0200, Thomas Weißschuh wrote: > The following diff *alone* also prevents the warning, but that doesn't > make any sense either: > > --- a/tools/testing/selftests/iommu/iommufd_utils.h > +++ b/tools/testing/selftests/iommu/iommufd_utils.h > @@ -65,7 +65,7 @@ stat

Re: [PATCH v3 1/6] mm: userfaultfd: generic continue for non hugetlbfs

2025-06-10 Thread Peter Xu
On Fri, Apr 04, 2025 at 03:43:47PM +, Nikita Kalyazin wrote: > Remove shmem-specific code from UFFDIO_CONTINUE implementation for > non-huge pages by calling vm_ops->fault(). A new VMF flag, > FAULT_FLAG_USERFAULT_CONTINUE, is introduced to avoid recursive call to > handle_userfault(). It's n

Re: [PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging

2025-06-10 Thread Dmitry Baryshkov
On Tue, Jun 10, 2025 at 08:34:52PM +0200, Luca Weiss wrote: > From: Kevin Widjaja > > Set usb-charge-current-limit to enable charging over USB for all > sony-rhine devices. > > Signed-off-by: Kevin Widjaja > Signed-off-by: Luca Weiss > --- > arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhi

Re: [PATCH v3 4/6] KVM: guest_memfd: add support for userfaultfd minor

2025-06-10 Thread Peter Xu
On Fri, Apr 04, 2025 at 03:43:50PM +, Nikita Kalyazin wrote: > Add support for sending a pagefault event if userfaultfd is registered. > Only page minor event is currently supported. > > Signed-off-by: Nikita Kalyazin > --- > virt/kvm/guest_memfd.c | 10 ++ > 1 file changed, 10 inser

[PATCH v2] selftests: Add version file to kselftest installation dir

2025-06-10 Thread Tianyi Cui
As titled, adding version file to kselftest installation dir, so the user of the tarball can know which kernel version the tarball belongs to. Signed-off-by: Tianyi Cui <1997...@gmail.com> --- tools/testing/selftests/Makefile | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/testin

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

2025-06-10 Thread Ira Weiny
Drew Fustini wrote: > 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.

[PATCH v2] selftests: Add version file to kselftest

2025-06-10 Thread Tianyi Cui
Thanks for your patience for review! I've updated the patch to make it easier to understand. Specifically, `stdout` of `git describe` is stored into `VERSION` variable, then write into `VERSION` file rather than print on-screen. Please refer below for the sample output and the content in `VERSION`.

Re: [PATCH net-next v3 0/4] netconsole: Optimize console registration and improve testing

2025-06-10 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Mon, 09 Jun 2025 02:46:25 -0700 you wrote: > During performance analysis of console subsystem latency, I discovered that > netconsole registers console handlers even when no active targets exist. > These orphaned

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

2025-06-10 Thread Jakub Kicinski
On Tue, 10 Jun 2025 22:18:32 +0700 Bui Quang Minh wrote: > >> Furthermore, we are in the zerocopy so we cannot linearize by > >> allocating a large enough buffer to cover the whole frame then copy the > >> frame data to it. That's not zerocopy anymore. Also, XDP socket zerocopy > >> receive has ass

Re: [PATCH RFC net-next v2] page_pool: import Jesper's page_pool benchmark

2025-06-10 Thread Arnaldo Carvalho de Melo
On Tue, Jun 10, 2025 at 10:41:49AM +0300, Ilias Apalodimas wrote: > On Wed, 4 Jun 2025 at 11:39, Jesper Dangaard Brouer wrote: > > Okay, I think Ilias'es comment[1] and ACK convinced me, let us merge > > this as-is. We have been asking people to run it over several years > > before accepting patc

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

2025-06-10 Thread Josh Poimboeuf
On Tue, Jun 10, 2025 at 08:39:10AM -0400, Joe Lawrence wrote: > >> Should we check for other data section prefixes here, like: > >> > >>else { > >>snprintf(sec_name, SEC_NAME_LEN, ".rodata.%s", > >> sym->name); > >>if (!st

Re: [PATCH 1/3] rcu: Return early if callback is not specified

2025-06-10 Thread Joel Fernandes
On 6/10/2025 1:34 PM, Uladzislau Rezki (Sony) wrote: > Currently the call_rcu() API does not check whether a callback > pointer is NULL. If NULL is passed, rcu_core() will try to invoke > it, resulting in NULL pointer dereference and a kernel crash. > > To prevent this and improve debuggability

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

2025-06-10 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 --- Change in v2: - limit core_count to max 2 drivers/remoteproc/xlnx_r5_remoteproc.c | 5 + 1 file changed, 1 insertion(+), 4 de

Re: [PATCH] ARM: dts: qcom: msm8974-samsung-hlte: Add touchkey support

2025-06-10 Thread Konrad Dybcio
On 6/10/25 6:57 PM, Luca Weiss wrote: > On 22-04-2025 9:43 p.m., Konrad Dybcio wrote: >> On 4/19/25 11:08 AM, Luca Weiss wrote: >>> From: Adam Honse >>> >>> Add support for the touchkeys on the Samsung Galaxy Note 3 (hlte). >>> >>> Signed-off-by: Adam Honse >>> --- >>> Signed-off-by: Luca Weiss

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

2025-06-10 Thread Daniel Gomez
On 07/06/2025 18.16, 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: Petr Pavlu Reviewe

[PATCH v2 0/4] Add support for Sony Xperia Z Ultra (togari)

2025-06-10 Thread Luca Weiss
Do some tweaks to the common file for the devices in the 'rhine' family of Sony devices, and add a dts for togari. Signed-off-by: Luca Weiss --- Changes in v2: - Move non-vendor property first as per style guide in first patch (Dmitry) - Add msm8974- to commit messages - Pick up tags - Link to

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

2025-06-10 Thread Daniel Gomez
On 07/06/2025 18.16, 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 initially set to 0 and is updated when a call to > module_memory_alloc() fai

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

2025-06-10 Thread Nicolin Chen
On Tue, Jun 10, 2025 at 09:09:02AM -0300, Jason Gunthorpe wrote: > On Tue, Jun 10, 2025 at 01:38:22PM +0200, Thomas Weißschuh wrote: > > > -- > > > # RUN > > > iommufd_dirty_tracking.domain_dirty128M_huge.enforce_dirty ...

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

2025-06-10 Thread Drew Fustini
On Mon, Jun 09, 2025 at 07:10:42PM -0700, Drew Fustini wrote: > 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

[PATCH v2 2/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Move camera buttons to amami & honami

2025-06-10 Thread Luca Weiss
From: Kevin Widjaja An upcoming board in the sony-xperia-rhine family (sony-togari) does not have dedicated camera buttons, so move those from common rhine dtsi to amami and honami dts files. Signed-off-by: Kevin Widjaja Reviewed-by: Dmitry Baryshkov Signed-off-by: Luca Weiss --- .../dts/qco

[PATCH v2 1/4] ARM: dts: qcom: msm8974-sony-xperia-rhine: Enable USB charging

2025-06-10 Thread Luca Weiss
From: Kevin Widjaja Set usb-charge-current-limit to enable charging over USB for all sony-rhine devices. Signed-off-by: Kevin Widjaja Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8974-sony-xperia-rhine.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dt

[PATCH v2 4/4] ARM: dts: qcom: Add initial support for Sony Xperia Z Ultra (togari)

2025-06-10 Thread Luca Weiss
From: Kevin Widjaja Add the dts for the Z Ultra. This is currently almost the same as Z1 Compact (amami) and Z1 (honami) as they share almost the same hardware. Only USB Networking and volume button are confirmed working. Signed-off-by: Kevin Widjaja Reviewed-by: Dmitry Baryshkov Signed-off-b

[PATCH v2 3/4] dt-bindings: arm: qcom: Add Sony Xperia Z Ultra (togari)

2025-06-10 Thread Luca Weiss
From: Kevin Widjaja Based on the msm8974. Signed-off-by: Kevin Widjaja Acked-by: Rob Herring (Arm) Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Documentatio

Re: [PATCH 2/3] rcu: Enable rcu_normal_wake_from_gp on small systems

2025-06-10 Thread Joel Fernandes
On 6/10/2025 1:34 PM, Uladzislau Rezki (Sony) wrote: > Automatically enable the rcu_normal_wake_from_gp parameter on > systems with a small number of CPUs. The activation threshold > is set to 16 CPUs. > > This helps to reduce a latency of normal synchronize_rcu() API > by waking up GP-waiters

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

2025-06-10 Thread Tanmay Shah
Hello, Thanks for your reviews. On 6/9/25 8:10 PM, Peng Fan wrote: 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

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

2025-06-10 Thread Drew Fustini
On Mon, Jun 09, 2025 at 08:32:41AM -0500, Rob Herring wrote: > 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 > > A

Re: [PATCH 0/4] Add support for Sony Xperia Z Ultra (togari)

2025-06-10 Thread Luca Weiss
On 23-04-2025 1:55 a.m., Konrad Dybcio wrote: On 4/19/25 11:00 AM, Luca Weiss wrote: Do some tweaks to the common file for the devices in the 'rhine' family of Sony devices, and add a dts for togari. Signed-off-by: Luca Weiss --- I don't really know for sure, but maybe this driver could be s

Re: [PATCH v4 6/7] mm/maps: read proc/pid/maps under per-vma lock

2025-06-10 Thread Lorenzo Stoakes
On Sat, Jun 07, 2025 at 06:41:35PM -0700, Suren Baghdasaryan wrote: > On Sat, Jun 7, 2025 at 10:43 AM Lorenzo Stoakes > wrote: > > > > Hi Suren, > > > > Forgive me but I am going to ask a lot of questions here :p just want to > > make sure I'm getting everything right here. > > No worries and than

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

2025-06-10 Thread Mathieu Poirier
On Mon, 9 Jun 2025 at 10:33, Arnaud POULIQUEN wrote: > > 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

[PATCH 3/3] Documentation/kernel-parameters: Update rcu_normal_wake_from_gp doc

2025-06-10 Thread Uladzislau Rezki (Sony)
Update the documentation about rcu_normal_wake_from_gp parameter. Signed-off-by: Uladzislau Rezki (Sony) --- Documentation/admin-guide/kernel-parameters.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-

[PATCH 2/3] rcu: Enable rcu_normal_wake_from_gp on small systems

2025-06-10 Thread Uladzislau Rezki (Sony)
Automatically enable the rcu_normal_wake_from_gp parameter on systems with a small number of CPUs. The activation threshold is set to 16 CPUs. This helps to reduce a latency of normal synchronize_rcu() API by waking up GP-waiters earlier and decoupling synchronize_rcu() callers from regular callba

[PATCH 1/3] rcu: Return early if callback is not specified

2025-06-10 Thread Uladzislau Rezki (Sony)
Currently the call_rcu() API does not check whether a callback pointer is NULL. If NULL is passed, rcu_core() will try to invoke it, resulting in NULL pointer dereference and a kernel crash. To prevent this and improve debuggability, this patch adds a check for NULL and emits a kernel stack trace

Re: [PATCH] selftests/mm: Check for YAMA ptrace_scope configuraiton before modifying it

2025-06-10 Thread Mike Rapoport
On Tue, Jun 10, 2025 at 03:07:44PM +0100, Mark Brown wrote: > When running the memfd_secret test run_vmtests.sh unconditionally tries > to confgiure the YAMA LSM's ptrace_scope configuration, leading to an error > if YAMA is not in the running kernel: > > # ./run_vmtests.sh: line 432: /proc/sys/ke

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

2025-06-10 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 v3 3/4] netdevsim: remove udp_ports_sleep

2025-06-10 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 Reviewed-by: Aleksandr Loktionov Signed-off-by: Stanislav Fomichev --- drivers/net/netdevsim/netdevsim.h | 2 -- drivers/net/netdevsim/udp_

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

2025-06-10 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 v3 1/4] udp_tunnel: remove rtnl_lock dependency

2025-06-10 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 v3 0/4] udp_tunnel: remove rtnl_lock dependency

2025-06-10 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. v3: - fix 2 test failures (Jakub NIPA) v2: - move the lock into udp_tunnel_nic (Jakub) - reorder the lock ordering (Jakub) - move udp_ports_sleep re

[PATCH v2 1/3] ARM: dts: qcom: msm8974-oneplus-bacon: Add alias for mmc0

2025-06-10 Thread Luca Weiss
Add an alias for the internal storage so it always becomes mmcblk0. This avoids issues with internal storage becoming mmcblk1 unexpectedly and aligns this board with other boards that use MMC storage. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8974pro-oneplus-bacon.dts | 1 +

[PATCH v2 3/3] ARM: dts: qcom: msm8974-sony-xperia-rhine: Add alias for mmc0 & mmc1

2025-06-10 Thread Luca Weiss
Add an alias for the internal storage so it always becomes mmcblk0 and SD card becomes mmcblk1. This avoids issues with internal storage becoming mmcblk1 unexpectedly and aligns this board with other boards that use MMC storage. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8974-

[PATCH v2 2/3] ARM: dts: qcom: msm8974-hammerhead: Add alias for mmc0

2025-06-10 Thread Luca Weiss
Add an alias for the internal storage so it always becomes mmcblk0. This avoids issues with internal storage becoming mmcblk1 unexpectedly and aligns this board with other boards that use MMC storage. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8974-lge-nexus5-hammerhead.dts |

[PATCH v2 0/3] Add devicetree aliases for mmc on multiple MSM8974 devices

2025-06-10 Thread Luca Weiss
Add an alias for the internal storage so it always becomes mmcblk0 and - where applicable - SD card becomes mmcblk1. This avoids issues with internal storage becoming mmcblk1 unexpectedly and aligns this board with other boards that use MMC storage. Signed-off-by: Luca Weiss --- Changes in v2: -

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

2025-06-10 Thread Marc Zyngier
On Tue, 10 Jun 2025 06:31:28 +0100, Anshuman Khandual wrote: > > 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

Re: [PATCH] ARM: dts: qcom: msm8974-samsung-hlte: Add touchkey support

2025-06-10 Thread Luca Weiss
On 22-04-2025 9:43 p.m., Konrad Dybcio wrote: On 4/19/25 11:08 AM, Luca Weiss wrote: From: Adam Honse Add support for the touchkeys on the Samsung Galaxy Note 3 (hlte). Signed-off-by: Adam Honse --- Signed-off-by: Luca Weiss --- .../boot/dts/qcom/qcom-msm8974-samsung-hlte.dts| 45

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

2025-06-10 Thread Thomas Weißschuh
On 2025-06-10 13:29:45+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 arguments for c

Re: [PATCH] kunit: qemu_configs: Add riscv32 config

2025-06-10 Thread patchwork-bot+linux-riscv
Hello: This patch was applied to riscv/linux.git (fixes) by Shuah Khan : On Mon, 07 Apr 2025 10:17:12 +0200 you wrote: > Add a basic config to run kunit tests on riscv32. > > Signed-off-by: Thomas Weißschuh > --- > tools/testing/kunit/qemu_configs/riscv32.py | 17 + > 1 file ch

[PATCH] alloc_tag: remove empty module tag section

2025-06-10 Thread Casey Chen
The empty MOD_CODETAG_SECTIONS() macro added an incomplete .data section in module linker script, which caused symbol lookup tools like gdb to misinterpret symbol addresses e.g., __ib_process_cq incorrectly mapping to unrelated functions like below. (gdb) disas __ib_process_cq Dump of assemble

Re: [PATCH] mm: Remove PFN_MAP, PFN_SPECIAL, PFN_SG_CHAIN and PFN_SG_LAST

2025-06-10 Thread Marek Szyprowski
4044411 anon_vma: mapping: index:0 file:(null) fault:special_mapping_fault mmap:0x0 mmap_prepare: 0x0 read_folio:0x0 CPU: 1 UID: 0 PID: 58 Comm: modprobe Not tainted 6.16.0-rc1-next-20250610+ #15719 NONE Hardware name: riscv-virtio,qemu (DT) Call Trace: [] dump_ba

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

2025-06-10 Thread Josh Poimboeuf
On Mon, Jun 09, 2025 at 10:34:43PM -0400, Joe Lawrence wrote: > 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

[PATCH net-next 1/7] netpoll: remove __netpoll_cleanup from exported API

2025-06-10 Thread Breno Leitao
Since commit 97714695ef90 ("net: netconsole: Defer netpoll cleanup to avoid lock release during list traversal"), netconsole no longer uses __netpoll_cleanup(). With no remaining users, remove this function from the exported netpoll API. The function remains available internally within netpoll for

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

2025-06-10 Thread Joel Fernandes
On 6/10/2025 8:23 AM, Frederic Weisbecker wrote: > Le Mon, Jun 09, 2025 at 02:01:24PM -0400, Joel Fernandes a écrit : >> 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 causi

[PATCH net-next 2/7] netpoll: expose netpoll logging macros in public header

2025-06-10 Thread Breno Leitao
Move np_info(), np_err(), and np_notice() macros from internal implementation to the public netpoll header file to make them available for use by netpoll consumers. These logging macros provide consistent formatting for netpoll-related messages by automatically prefixing log output with the netpol

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

2025-06-10 Thread Josh Poimboeuf
On Mon, Jun 09, 2025 at 10:05:53PM -0400, Joe Lawrence wrote: > 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 mod

[PATCH net-next 6/7] netconsole: improve code style in parser function

2025-06-10 Thread Breno Leitao
Split assignment from conditional checks and use preferred null pointer check style (!delim instead of == NULL) in netconsole_parser_cmdline(). This improves code readability and follows kernel coding style conventions. Signed-off-by: Breno Leitao --- drivers/net/netconsole.c | 15 ++

[PATCH net-next 0/7] netpoll: Untangle netconsole and netpoll

2025-06-10 Thread Breno Leitao
Initially netpoll and netconsole were created together, and some functions are in the wrong file. Seperate netconsole-only functions in netconsole, avoiding exports. 1. Expose netpoll logging macros in the public header to enable consistent log formatting across netpoll consumers. 2. Relocate

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

2025-06-10 Thread Bui Quang Minh
On 6/9/25 23:58, Jakub Kicinski wrote: 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 fai

[PATCH net-next 7/7] selftest: netconsole: add test for cmdline configuration

2025-06-10 Thread Breno Leitao
Add a new selftest to verify netconsole module loading with command line arguments. This test exercises the init_netconsole() path and validates proper parsing of the netconsole= parameter format. The test: - Loads netconsole module with cmdline configuration instead of dynamic reconfiguration -

[PATCH net-next 3/7] netpoll: relocate netconsole-specific functions to netconsole module

2025-06-10 Thread Breno Leitao
Move netpoll_parse_ip_addr() and netpoll_parse_options() from the generic netpoll module to the netconsole module where they are actually used. These functions were originally placed in netpoll but are only consumed by netconsole. This refactoring improves code organization by: - Removing unnece

[PATCH net-next 5/7] netconsole: rename functions to better reflect their purpose

2025-06-10 Thread Breno Leitao
Rename netpoll_parse_options() to netconsole_parser_cmdline() and netpoll_print_options() to netconsole_print_banner() to better describe what these functions actually do within the netconsole context. Also fix minor code style issues including variable declaration ordering and spacing. These fun

[PATCH net-next 4/7] netpoll: move netpoll_print_options to netconsole

2025-06-10 Thread Breno Leitao
Move netpoll_print_options() from net/core/netpoll.c to drivers/net/netconsole.c and make it static. This function is only used by netconsole, so there's no need to export it or keep it in the public netpoll API. This reduces the netpoll API surface and improves code locality by keeping netconsole

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

2025-06-10 Thread Yury Khrustalev
On Mon, Jun 09, 2025 at 01:54:05PM +0100, Mark Brown wrote: > 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 s

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

2025-06-10 Thread Cosmin Ratiu
On Mon, 2025-06-09 at 09:25 -0700, Stanislav Fomichev wrote: > 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

Re: [PATCH v2] module: Make sure relocations are applied to the per-CPU section

2025-06-10 Thread Sebastian Andrzej Siewior
On 2025-06-05 18:50:27 [+0200], Petr Pavlu wrote: > On 6/5/25 5:54 PM, Sebastian Andrzej Siewior wrote: > > On 2025-06-05 15:44:23 [+0200], Petr Pavlu wrote: > >> Isn't this broken earlier by "Don't relocate non-allocated regions in > >> modules." > >> (pre-Git, [1])? > > > > Looking further back

[PATCH 0/4] selftests/mm: Tweaks to the cow test

2025-06-10 Thread Mark Brown
A collection of non-functional updates from David Hildenbrand's review. Signed-off-by: Mark Brown --- Mark Brown (4): kselftest/mm: Clarify errors for pipe() selftests/mm: Convert some cow error reports to ksft_perror() selftests/mm: Don't compare return values to in cow s

[PATCH 2/4] selftests/mm: Convert some cow error reports to ksft_perror()

2025-06-10 Thread Mark Brown
This prints the errno and a string decode of it. Reported-by: David Hildenbrand Signed-off-by: Mark Brown --- tools/testing/selftests/mm/cow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/testing/selftests/mm/cow.c b/tools/testing/selftests/mm/cow.c index 0adc

[PATCH 3/4] selftests/mm: Don't compare return values to in cow

2025-06-10 Thread Mark Brown
Tweak the coding style for checking for non-zero return values. While we're at it also remove a now redundant oring of the madvise() return code. Suggested-by: David Hildenbrand Signed-off-by: Mark Brown --- tools/testing/selftests/mm/cow.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletio

[PATCH 4/4] selftests/mm: Add messages about test errors to the cow tests

2025-06-10 Thread Mark Brown
It is not sufficiently clear what the individual tests in the cow test program are checking so add messages for the failure cases. Suggested-by: David Hildenbrand Signed-off-by: Mark Brown --- tools/testing/selftests/mm/cow.c | 28 1 file changed, 20 insertions(+),

[PATCH 1/4] kselftest/mm: Clarify errors for pipe()

2025-06-10 Thread Mark Brown
Specify that errors reported from pipe() failures are the result of failures. Suggested-by: David Hildenbrand Signed-off-by: Mark Brown --- tools/testing/selftests/mm/cow.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/mm/cow.c b/tools/testing/s

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

2025-06-10 Thread Joe Lawrence
On 6/9/25 7:21 PM, Josh Poimboeuf wrote: > 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 =

[PATCH] selftests/mm: Check for YAMA ptrace_scope configuraiton before modifying it

2025-06-10 Thread Mark Brown
When running the memfd_secret test run_vmtests.sh unconditionally tries to confgiure the YAMA LSM's ptrace_scope configuration, leading to an error if YAMA is not in the running kernel: # ./run_vmtests.sh: line 432: /proc/sys/kernel/yama/ptrace_scope: No such file or directory # # ---

Re: [PATCH v4 6/7] mm/maps: read proc/pid/maps under per-vma lock

2025-06-10 Thread Suren Baghdasaryan
stamp: 3793 > [ 41.735058][ T353] hardirqs last enabled at (3805): __console_unlock > (arch/x86/include/asm/irqflags.h:26 arch/x86/include/asm/irqflags.h:109 > arch/x86/include/asm/irqflags.h:151 kernel/printk/printk.c:344 > kernel/printk/printk.c:2885) > [ 41.735754][ T353] hardirqs last disabled at (3814): __console_unlock > (kernel/printk/printk.c:342) > [ 41.736478][ T353] softirqs last enabled at (3488): handle_softirqs > (arch/x86/include/asm/preempt.h:27 kernel/softirq.c:426 kernel/softirq.c:607) > [ 41.737219][ T353] softirqs last disabled at (3835): __irq_exit_rcu > (arch/x86/include/asm/atomic.h:23) > [ 41.737925][ T353] ---[ end trace ]--- > > > The kernel config and materials to reproduce are available at: > https://download.01.org/0day-ci/archive/20250610/202506101503.903c6ffa-...@intel.com > > > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki >

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

2025-06-10 Thread Sebastian Ott
Hej Miguel, On Mon, 9 Jun 2025, Miguel Luis wrote: 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

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

2025-06-10 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 --- Changes in v2: - Add replacement of

[PATCH v2 4/4] selftests/nolibc: Add coverage of vfork()

2025-06-10 Thread Mark Brown
Generalise the existing fork() test to also cover the newly added vfork() implementation. Signed-off-by: Mark Brown --- tools/testing/selftests/nolibc/nolibc-test.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/nolibc/nolibc-

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

2025-06-10 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 v2 1/4] tools/nolibc: Replace ifdef with if defined() in sys.h

2025-06-10 Thread Mark Brown
Thomas has requested that if defined() be used in place of ifdef but currently ifdef is used consistently in sys.h. Update all the instances of ifdef to if defined(). Suggested-by: Thomas Weißschuh Signed-off-by: Mark Brown --- tools/include/nolibc/sys.h | 30 +++--- 1 f

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

2025-06-10 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 |

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

2025-06-10 Thread Frederic Weisbecker
Le Mon, Jun 09, 2025 at 02:01:24PM -0400, Joel Fernandes a écrit : > 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 Xiong

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

2025-06-10 Thread Thomas Weißschuh
Hi Nicolin, On Mon, Jun 09, 2025 at 11:40:34PM -0700, Nicolin Chen wrote: > 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

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

2025-06-10 Thread Jason Gunthorpe
On Tue, Jun 10, 2025 at 01:38:22PM +0200, Thomas Weißschuh wrote: > Hi Nicolin, > > On Mon, Jun 09, 2025 at 11:49:05PM -0700, Nicolin Chen wrote: > > 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 ne

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

2025-06-10 Thread Thomas Weißschuh
Hi Nicolin, On Mon, Jun 09, 2025 at 11:49:05PM -0700, Nicolin Chen wrote: > 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 fr

Re: [PATCH v4 1/1] selftests/mm/uffd: Refactor non-composite global vars into struct

2025-06-10 Thread Brendan Jackman
On Sat May 31, 2025 at 7:46 AM UTC, Ujwal Kundur wrote: > Refactor macros and non-composite global variable definitions into a > struct that is defined at the start of a test and is passed around > instead of relying on global vars. > > Renders the implementation / use of test_uffdio_copy_eexist >

[PATCH net-next, v2] selftest: Add selftest for multicast address notifications

2025-06-10 Thread Yuyang Huang
This commit adds a new kernel selftest to verify RTNLGRP_IPV4_MCADDR and RTNLGRP_IPV6_MCADDR notifications. The test works by adding and removing a dummy interface and then confirming that the system correctly receives join and removal notifications for the 224.0.0.1 and ff02::1 multicast addresses

Re: [RESEND PATCH] rpmsg: Use strscpy() instead of strscpy_pad()

2025-06-10 Thread Thorsten Blum
Hi Mathieu, On 30. Apr 2025, at 16:59, Mathieu Poirier wrote: > On Tue, 29 Apr 2025 at 04:46, Thorsten Blum wrote: >> >> kzalloc() already zero-initializes the destination buffer, making >> strscpy() sufficient for safely copying the name. The additional NUL- >> padding performed by strscpy_pad()

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

2025-06-10 Thread Jonathan Cameron
On Mon, 9 Jun 2025 16:25:49 -0700 "Koralahalli Channabasappa, Smita" wrote: > 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 alwa

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

2025-06-10 Thread Jonathan Cameron
Hi Smita, > >> +/* > >> + * normalize_resource > >> + * > >> + * The walk_iomem_res_desc() returns a copy of a resource, not a reference > >> + * to the actual resource in the iomem_resource tree. As a result, > >> + * __release_resource() which relies on pointer equality will fail. > > > > Pro

  1   2   >