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

2025-03-25 Thread Miroslav Lichvar
On Thu, Mar 20, 2025 at 01:03:00PM -0700, John Stultz wrote: > +static u64 timekeeping_accumulate(struct timekeeper *tk, u64 offset, > + enum timekeeping_adv_mode mode, > + unsigned int *clock_set) > + * Also reset tk::ntp_error as i

Re: [PATCH v15 2/8] remoteproc: Add TEE support

2025-03-25 Thread Arnaud POULIQUEN
On 12/6/24 23:07, Bjorn Andersson wrote: > On Thu, Nov 28, 2024 at 09:42:09AM GMT, Arnaud Pouliquen wrote: >> Add a remoteproc TEE (Trusted Execution Environment) driver >> that will be probed by the TEE bus. If the associated Trusted >> application is supported on secure part this driver offers

Re: [PATCH net-next v24 18/23] ovpn: implement peer add/get/dump/delete via netlink

2025-03-25 Thread Sabrina Dubroca
2025-03-25, 00:15:48 +0100, Antonio Quartulli wrote: > On 24/03/2025 11:48, Sabrina Dubroca wrote: > > Hello Antonio, > > > > A few questions wrt the API: > > > > 2025-03-18, 02:40:53 +0100, Antonio Quartulli wrote: > > > +static bool ovpn_nl_attr_sockaddr_remote(struct nlattr **attrs, > > > +

Re: [PATCH] virtio_console: fix order of fields cols and rows

2025-03-25 Thread Michael S. Tsirkin
On Mon, Mar 24, 2025 at 12:53:29PM -0700, Daniel Verkamp wrote: > On Mon, Mar 24, 2025 at 7:43 AM Maximilian Immanuel Brandtner > wrote: > > > > According to section 5.3.6.2 (Multiport Device Operation) of the virtio > > spec(version 1.2) a control buffer with the event VIRTIO_CONSOLE_RESIZE > > i

Re: [PATCH net-next v24 09/23] ovpn: implement packet processing

2025-03-25 Thread Sabrina Dubroca
2025-03-24, 21:53:02 +0100, Antonio Quartulli wrote: > On 24/03/2025 12:02, Sabrina Dubroca wrote: > > 2025-03-18, 02:40:44 +0100, Antonio Quartulli wrote: > > > +int ovpn_crypto_state_reset(struct ovpn_crypto_state *cs, > > > + const struct ovpn_peer_key_reset *pkr) > > > +{ >

[PATCH v16 1/6] remoteproc: core: Introduce rproc_pa_to_va helper

2025-03-25 Thread Arnaud Pouliquen
When a resource table is loaded by an external entity such as U-boot or OP-TEE, we do not necessarily get the device address(da) but the physical address(pa). This helper performs similar translation than the rproc_da_to_va() but based on a physical address. Signed-off-by: Arnaud Pouliquen --- d

[PATCH v16 6/6] remoteproc: stm32: Add support of an OP-TEE TA to load the firmware

2025-03-25 Thread Arnaud Pouliquen
The new TEE remoteproc driver is used to manage remote firmware in a secure, trusted context. The 'st,stm32mp1-m4-tee' compatibility is introduced to delegate the loading of the firmware to the trusted execution context. In such cases, the firmware should be signed and adhere to the image format de

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

2025-03-25 Thread Arnaud Pouliquen
Main updates from version V15[1]: - Removed the rproc_ops:load_fw() operation introduced in the previous version. - Returned to managing the remoteproc firmware loading in rproc_tee_parse_fw to load and authenticate the firmware before getting the resource table. - Added spinlock and dev_link mec

[PATCH v16 5/6] remoteproc: stm32: Create sub-functions to request shutdown and release

2025-03-25 Thread Arnaud Pouliquen
To prepare for the support of TEE remoteproc, create sub-functions that can be used in both cases, with and without remoteproc TEE support. Signed-off-by: Arnaud Pouliquen --- drivers/remoteproc/stm32_rproc.c | 82 +++- 1 file changed, 49 insertions(+), 33 deletions(-

[PATCH v16 3/6] remoteproc: Introduce release_fw optional operation

2025-03-25 Thread Arnaud Pouliquen
The release_fw operation is the inverse operation of the load, responsible for releasing the remote processor resources configured from the loading of the remoteproc firmware (e.g., memories). The operation is called in the following cases: - An error occurs on boot of the remote processor. - An

Re: [PATCH 03/10] samples/livepatch: add module descriptions

2025-03-25 Thread Petr Mladek
On Mon 2025-03-24 18:32:28, Arnd Bergmann wrote: > From: Arnd Bergmann > > Every module should have a description, so add one for each of these modules. > > --- a/samples/livepatch/livepatch-callbacks-busymod.c > +++ b/samples/livepatch/livepatch-callbacks-busymod.c > @@ -56,4 +56,5 @@ static vo

[PATCH v16 2/6] remoteproc: Add TEE support

2025-03-25 Thread Arnaud Pouliquen
Add a remoteproc TEE (Trusted Execution Environment) driver that will be probed by the TEE bus. If the associated Trusted application is supported on the secure part, this driver offers a client interface to load firmware by the secure part. This firmware could be authenticated by the secure truste

[PATCH v3 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-25 Thread Filipe Xavier
This patchset add ftrace helpers functions and add a new test makes sure that ftrace can trace a function that was introduced by a livepatch. Signed-off-by: Filipe Xavier Suggested-by: Marcos Paulo de Souza Reviewed-by: Marcos Paulo de Souza Acked-by: Miroslav Benes --- Changes in v3: - functi

[PATCH v16 4/6] dt-bindings: remoteproc: Add compatibility for TEE support

2025-03-25 Thread Arnaud Pouliquen
The "st,stm32mp1-m4-tee" compatible is utilized in a system configuration where the Cortex-M4 firmware is loaded by the Trusted Execution Environment (TEE). For instance, this compatible is used in both the Linux and OP-TEE device trees: - In OP-TEE, a node is defined in the device tree with the

Re: [PATCH v3 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-25 Thread Petr Mladek
On Mon 2025-03-24 19:50:17, Filipe Xavier wrote: > This patchset add ftrace helpers functions and > add a new test makes sure that ftrace can trace > a function that was introduced by a livepatch. > > Signed-off-by: Filipe Xavier > Acked-by: Miroslav Benes For both patches: Reviewed-by: Petr M

Re: [PATCH v3 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-25 Thread Petr Mladek
On Mon 2025-03-24 19:50:17, Filipe Xavier wrote: > This patchset add ftrace helpers functions and > add a new test makes sure that ftrace can trace > a function that was introduced by a livepatch. > > Signed-off-by: Filipe Xavier > Acked-by: Miroslav Benes JFYI, the patchset has been committed

Re: [PATCH v3 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-25 Thread Filipe Xavier
On 3/25/25 11:01 AM, Petr Mladek wrote: On Mon 2025-03-24 19:50:17, Filipe Xavier wrote: This patchset add ftrace helpers functions and add a new test makes sure that ftrace can trace a function that was introduced by a livepatch. Signed-off-by: Filipe Xavier Acked-by: Miroslav Benes JFYI,

Re: [PATCH] firmware: cs_dsp: Ensure cs_dsp_load[_coeff]() returns 0 on success

2025-03-25 Thread Mark Brown
On Sun, 23 Mar 2025 17:05:29 +, Richard Fitzgerald wrote: > Set ret = 0 on successful completion of the processing loop in > cs_dsp_load() and cs_dsp_load_coeff() to ensure that the function > returns 0 on success. > > All normal firmware files will have at least one data block, and > processi

Re: [PATCH net-next v2 0/7] selftests/net: Mixed select()+polling mode for TCP-AO tests

2025-03-25 Thread Jakub Kicinski
On Wed, 19 Mar 2025 03:13:33 + Dmitry Safonov via B4 Relay wrote: > Should fix flaky tcp-ao/connect-deny-ipv6 test. > Begging pardon for the delay since the report and for sending it this > late in the release cycle. Better late than never, thanks a lot! :)

Re: [PATCH 03/10] samples/livepatch: add module descriptions

2025-03-25 Thread Jeff Johnson
On 3/25/2025 3:01 AM, Petr Mladek wrote: > Arnd, should I push this via the livepatch tree or would you prefer to push > the entire patchset together? Both ways work for me. My past experience was to let individual maintainers take the ones that apply to their trees, and then Andrew can pick up th

Re: [PATCH v3 0/2] arm64: livepatch: Enable livepatch without sframe

2025-03-25 Thread Song Liu
Hi Petr, > On Mar 25, 2025, at 8:53 AM, Petr Mladek wrote: [...] >> >> Given the increasing need of livepatching, and relatively long time before >> sframe is fully ready (for both gcc and clang), we would like to enable >> livepatch without sframe. >> >> Thanks! >> >> [1] >> https://lore.k

Re: [PATCH 3/3] selftests: vDSO: chacha: Provide default definition of HWCAP_S390_VXRS

2025-03-25 Thread Heiko Carstens
On Tue, Mar 25, 2025 at 07:48:48AM +0100, Thomas Weißschuh wrote: > On Mon, Mar 24, 2025 at 04:55:13PM +0100, Heiko Carstens wrote: > > On Mon, Mar 24, 2025 at 03:03:17PM +0100, Thomas Weißschuh wrote: > > > s390 does not provide a hwcap.h UAPI header. > > > > > > Add an inline definition for the

Re: [PATCH 3/3] selftests: vDSO: chacha: Provide default definition of HWCAP_S390_VXRS

2025-03-25 Thread Thomas Weißschuh
On Mon, Mar 24, 2025 at 04:55:13PM +0100, Heiko Carstens wrote: > On Mon, Mar 24, 2025 at 03:03:17PM +0100, Thomas Weißschuh wrote: > > s390 does not provide a hwcap.h UAPI header. > > > > Add an inline definition for the constant HWCAP_S390_VXRS until a proper > > UAPI header is introduced. > >

Re: [PATCH 3/3] selftests: vDSO: chacha: Provide default definition of HWCAP_S390_VXRS

2025-03-25 Thread Thomas Weißschuh
On Tue, Mar 25, 2025 at 08:18:40AM +0100, Heiko Carstens wrote: > On Tue, Mar 25, 2025 at 07:48:48AM +0100, Thomas Weißschuh wrote: > > On Mon, Mar 24, 2025 at 04:55:13PM +0100, Heiko Carstens wrote: > > > On Mon, Mar 24, 2025 at 03:03:17PM +0100, Thomas Weißschuh wrote: > > > > s390 does not provi

Re: [PATCH] selftests/x86/lam: fix memory leak and resource leak in lam.c

2025-03-25 Thread Ingo Molnar
* Peter Zijlstra wrote: > On Mon, Mar 24, 2025 at 06:17:50PM +0530, Malaya Kumar Rout wrote: > > Static Analyis for bench_htab_mem.c with cppcheck:error > > tools/testing/selftests/x86/lam.c:585:3: > > error: Resource leak: file_fd [resourceLeak] > > tools/testing/selftests/x86/lam.c:593:3: > >

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-25 Thread Christoph Hellwig
On Thu, Mar 20, 2025 at 11:23:57AM -0700, Joe Damato wrote: > In my other message to Jens I proposed: > - SPLICE_F_ZC for splice to generate zc completion notifications > to the error queue > - Modifying sendfile so that if SO_ZEROCOPY (which already exists) > is set on a network socket

Re: [PATCH net-next v2 0/4] virtio_net: Fixes and improvements

2025-03-25 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 21 Mar 2025 15:48:31 +0900 you wrote: > Jason Wang recently proposed an improvement to struct > virtio_net_rss_config: > https://lore.kernel.org/r/CACGkMEud0Ki8p=z299q7b4qedonpydzbvqhhxcnvk_vo-kd...@mail.gmai

Re: [RFC PATCH v3 7/8] perf: arm_pmuv3: Keep out of guest counter partition

2025-03-25 Thread Colton Lewis
James Clark writes: On 13/02/2025 6:03 pm, Colton Lewis wrote: If the PMU is partitioned, keep the driver out of the guest counter partition and only use the host counter partition. Partitioning is defined by the MDCR_EL2.HPMN register field and saved in cpu_pmu->hpmn. The range 0..HPMN-1 is a

Re: [PATCH net-next v24 18/23] ovpn: implement peer add/get/dump/delete via netlink

2025-03-25 Thread Antonio Quartulli
On 25/03/2025 11:56, Sabrina Dubroca wrote: 2025-03-25, 00:15:48 +0100, Antonio Quartulli wrote: On 24/03/2025 11:48, Sabrina Dubroca wrote: Hello Antonio, A few questions wrt the API: 2025-03-18, 02:40:53 +0100, Antonio Quartulli wrote: +static bool ovpn_nl_attr_sockaddr_remote(struct nlatt

Re: [PATCH v2 2/2] KVM: selftests: access_tracking_perf_test: add option to skip the sanity check

2025-03-25 Thread James Houghton
On Mon, Mar 24, 2025 at 6:57 PM Maxim Levitsky wrote: > > Add an option to skip sanity check of number of still idle pages, > and set it by default to skip, in case hypervisor or NUMA balancing > is detected. > > Signed-off-by: Maxim Levitsky Thanks Maxim! I'm still working on a respin of this t

Re: [RFC PATCH v3 5/8] KVM: arm64: Introduce module param to partition the PMU

2025-03-25 Thread Colton Lewis
Hi James, Thanks for the review. James Clark writes: On 13/02/2025 6:03 pm, Colton Lewis wrote: For PMUv3, the register MDCR_EL2.HPMN partitiones the PMU counters into two ranges where counters 0..HPMN-1 are accessible by EL1 and, if allowed, EL0 while counters HPMN..N are only accessible by

Re: [PATCH v3 1/7] dt-bindings: input: syna,rmi4: document syna,pdt-fallback-desc

2025-03-25 Thread Caleb Connolly
On 3/25/25 08:36, Krzysztof Kozlowski wrote: On 24/03/2025 19:00, David Heidelberg wrote: On 10/03/2025 10:45, Krzysztof Kozlowski wrote: On Sat, Mar 08, 2025 at 03:08:37PM +0100, David Heidelberg wrote: From: Caleb Connolly This new property allows devices to specify some register values

Re: [PATCH v3 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-25 Thread Joe Lawrence
On Mon, Mar 24, 2025 at 07:50:17PM -0300, Filipe Xavier wrote: > This patchset add ftrace helpers functions and > add a new test makes sure that ftrace can trace > a function that was introduced by a livepatch. > > Signed-off-by: Filipe Xavier > Suggested-by: Marcos Paulo de Souza > Reviewed-by:

[no subject]

2025-03-25 Thread Malaya Kumar Rout
>From 92c5ac2ffa37f6e4fe0cfa49a20857432bc67718 Mon Sep 17 00:00:00 2001 From: Malaya Kumar Rout Date: Tue, 25 Mar 2025 18:42:33 +0530 Subject: [PATCH v2] selftests/x86/lam: fix resource leak in do_uring() and allocate_dsa_pasid() Exception branch returns without closing the file descript

Re: [PATCH v4] hrtimers: Force migrate away hrtimers queued after CPUHP_AP_HRTIMERS_DYING

2025-03-25 Thread 張維哲
On Tue, 2025-01-21 at 09:08 -0800, Paul E. McKenney wrote: > On Sat, Jan 18, 2025 at 12:24:33AM +0100, Frederic Weisbecker wrote: > > hrtimers are migrated away from the dying CPU to any online target > > at > > the CPUHP_AP_HRTIMERS_DYING stage in order not to delay bandwidth > > timers > > handli

Re: [PATCH 2/3] of: Simplify of_dma_set_restricted_buffer() to use of_for_each_phandle()

2025-03-25 Thread Chen-Yu Tsai
Hi, On Tue, Mar 18, 2025 at 7:29 AM Rob Herring (Arm) wrote: > > Simplify of_dma_set_restricted_buffer() by using of_property_present() > and of_for_each_phandle() iterator. > > Signed-off-by: Rob Herring (Arm) > --- > drivers/of/device.c | 34 +- > 1 file change

Re: [PATCHv5 net-next 1/2] wireguard: selftests: convert iptables to nft

2025-03-25 Thread Hangbin Liu
On Sun, Mar 23, 2025 at 10:10:33PM +0100, Phil Sutter wrote: > On Sat, Mar 22, 2025 at 09:30:15AM +, Hangbin Liu wrote: > > Convert iptabels to nft as it is the replacement for iptables, which is used > > > Typo, but I would write "Convert the selftest to nft ..." instead si

Re: [PATCH 00/19] virtio_ring in order support

2025-03-25 Thread Eugenio Perez Martin
On Mon, Mar 24, 2025 at 3:44 PM Lei Yang wrote: > > QE tested this series of patches with virtio-net regression tests, > everything works fine. > Hi Lei, Is it possible to test this series also with virtio-net-pci,...,in_order=on? Thanks! > Tested-by: Lei Yang > > On Mon, Mar 24, 2025 at 1:45

[PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-03-25 Thread Peng Fan (OSS)
From: Peng Fan There is case as below could trigger kernel dump: Use U-Boot to start remote processor(rproc) with resource table published to a fixed address by rproc. After Kernel boots up, stop the rproc, load a new firmware which doesn't have resource table ,and start rproc. When starting rpr

Re: [PATCH] kunit: cs_dsp: Depend on FW_CS_DSP rather then enabling it

2025-03-25 Thread Mark Brown
On Sat, Mar 22, 2025 at 07:02:26PM +, Richard Fitzgerald wrote: > On 22/3/25 10:11, Richard Fitzgerald wrote: > > I got lucky on all the UM, X86 and ARM builds I tested. > It looks like that bugfix has got lost. > Mark sent an email on 20 Feb to say it has been merged into his > sound tree. B