Re: [PATCH v3 06/13] remoteproc: qcom_q6v5_mss: Add modem support on MSM8926

2025-01-27 Thread Stephan Gerhold
On Mon, Jan 27, 2025 at 11:45:38PM +0100, Luca Weiss wrote: > While MSM8926 being 'just' an LTE-capable variant of MSM8226 it appears > the modem setup has changed significantly, by requiring mss-supply and > not using the ext-bhs-reg. > > Add a new compatible and new struct to support that. > >

Re: [PATCH v3 05/13] remoteproc: qcom_q6v5_mss: Add modem support on MSM8226

2025-01-27 Thread Stephan Gerhold
On Mon, Jan 27, 2025 at 11:45:37PM +0100, Luca Weiss wrote: > Add support for the external power block headswitch register needed by > MSM8226 and some other qcom platforms. > > Co-developed-by: Matti Lehtimäki > Signed-off-by: Matti Lehtimäki > Signed-off-by: Luca Weiss > --- > drivers/remote

Re: [PATCH v3 03/13] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add MSM8926

2025-01-27 Thread Krzysztof Kozlowski
On Mon, Jan 27, 2025 at 11:45:35PM +0100, Luca Weiss wrote: > Compared to MSM8226 the LTE-capable MSM8926 requires mss-supply and > doesn't require qcom,ext-bhs-reg. > > Signed-off-by: Luca Weiss > --- > .../devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml | 12 > +--- > 1 file

Re: [PATCH v3 04/13] remoteproc: qcom_q6v5_mss: Handle platforms with one power domain

2025-01-27 Thread Stephan Gerhold
On Mon, Jan 27, 2025 at 11:45:36PM +0100, Luca Weiss wrote: > For example MSM8974 has mx voltage rail exposed as regulator and only cx > voltage rail is exposed as power domain. This power domain (cx) is > attached internally in power domain and cannot be attached in this driver. > > Fixes: 8750cf

Re: [PATCH v2 3/9] remoteproc: qcom_q6v5_mss: Handle platforms with one power domain

2025-01-27 Thread Stephan Gerhold
On Mon, Jan 27, 2025 at 11:21:04PM +0100, Luca Weiss wrote: > On maandag 27 januari 2025 09:58:45 Midden-Europese standaardtijd Stephan > Gerhold wrote: > > On Sun, Jan 26, 2025 at 09:57:22PM +0100, Luca Weiss wrote: > > > For example MSM8974 has mx voltage rail exposed as regulator and only cx >

[PATCH] virtio_console: Convert to use devm funcs

2025-01-27 Thread oushixiong1025
From: Shixiong Ou Convert to devm_* funcs so that no need to manual free in error path. Signed-off-by: Shixiong Ou --- drivers/char/virtio_console.c | 43 ++- 1 file changed, 17 insertions(+), 26 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers

Re: [GIT PULL] virtio: features, fixes, cleanups

2025-01-27 Thread pr-tracker-bot
The pull request you sent on Mon, 27 Jan 2025 09:51:38 -0500: > https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/deee7487f5d495d0d9e5ab40d866d69ad524c46a Thank you! -- Deet-doot-dot, I am a b

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Paul E. McKenney
On Mon, Jan 27, 2025 at 09:37:12PM +0100, Uladzislau Rezki wrote: > > > > > > > > > > > > need more CPUs for TREE05. > > > > > > > > > > > > > > > > > > > > > > > > I will not resist, we just drop this patch :) > > > > > > > > > > > > > > > > > > > > > > Thank you! > > > > > > > > > > > > > > >

Re: [PATCH] rcu: Merge rcu_seq_done_exact() logic into rcu_seq_done()

2025-01-27 Thread Joel Fernandes
On Mon, Jan 27, 2025 at 7:07 PM Joel Fernandes (Google) wrote: > > The rcu_seq_done() API has a large "false-negative" windows of size > ULONG_MAX/2, where after wrap around, it is possible that it will think > that a GP has not completed if a wrap around happens and the delta is > large. > > rcu_

[PATCH] rcu: Merge rcu_seq_done_exact() logic into rcu_seq_done()

2025-01-27 Thread Joel Fernandes (Google)
The rcu_seq_done() API has a large "false-negative" windows of size ULONG_MAX/2, where after wrap around, it is possible that it will think that a GP has not completed if a wrap around happens and the delta is large. rcu_seq_done_exact() is more accurate avoiding this wrap around issue, by making

[PATCH v3 13/13] ARM: dts: qcom: msm8226-samsung-matisse-common: Enable modem

2025-01-27 Thread Luca Weiss
From: Matti Lehtimäki Enable modem remoteproc on samsung,matisse-wifi & matisselte. The mattisselte - being msm8926 - requires an extra mss-supply, so add that as well. Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dts

[PATCH v3 11/13] ARM: dts: qcom: Introduce dtsi for LTE-capable MSM8926

2025-01-27 Thread Luca Weiss
MSM8926, while being 'just' an LTE-capable variant of MSM8226, the dts needs to slightly change since the modem doesn't use the ext-bhs-reg and needs mss-supply, therefore it gets a new compatible. Since we already have two -common.dtsi files which are used on both APQ8026/MSM8226 and MSM8926 devi

[PATCH v3 12/13] ARM: dts: qcom: msm8926-htc-memul: Enable modem

2025-01-27 Thread Luca Weiss
Enable the modem found on the MSM8926 HTC One Mini 2. Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts b/arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul

[PATCH v3 10/13] ARM: dts: qcom: msm8226: Add BAM DMUX Ethernet/IP device

2025-01-27 Thread Luca Weiss
BAM DMUX is used as the network interface to the modem. Reviewed-by: Stephan Gerhold Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/d

[PATCH v3 09/13] ARM: dts: qcom: msm8226: Add modem remoteproc node

2025-01-27 Thread Luca Weiss
Add a node for the modem remoteproc found on MSM8226. Co-developed-by: Matti Lehtimäki Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- .../dts/qcom/qcom-apq8026-samsung-milletwifi.dts | 2 + .../qcom/qcom-msm8226-samsung-matisse-common.dtsi | 6 +- arch/arm/boot/dts/qcom/qcom

[PATCH v3 08/13] ARM: dts: qcom: msm8226: Add smsm node

2025-01-27 Thread Luca Weiss
From: Matti Lehtimäki Add smsm node for remoteproc cores. Reviewed-by: Stephan Gerhold Signed-off-by: Matti Lehtimäki Co-developed-by: Luca Weiss Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 34 1 file changed, 34 insertions(+) d

[PATCH v3 05/13] remoteproc: qcom_q6v5_mss: Add modem support on MSM8226

2025-01-27 Thread Luca Weiss
Add support for the external power block headswitch register needed by MSM8226 and some other qcom platforms. Co-developed-by: Matti Lehtimäki Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- drivers/remoteproc/qcom_q6v5_mss.c | 113 + 1 file cha

[PATCH v3 07/13] ARM: dts: qcom: msm8226: Add node for TCSR halt regs

2025-01-27 Thread Luca Weiss
From: Matti Lehtimäki Add a syscon device node for the TCSR halt regs needed by modem and other remoteprocs. Signed-off-by: Matti Lehtimäki Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qc

[PATCH v3 06/13] remoteproc: qcom_q6v5_mss: Add modem support on MSM8926

2025-01-27 Thread Luca Weiss
While MSM8926 being 'just' an LTE-capable variant of MSM8226 it appears the modem setup has changed significantly, by requiring mss-supply and not using the ext-bhs-reg. Add a new compatible and new struct to support that. Signed-off-by: Luca Weiss --- drivers/remoteproc/qcom_q6v5_mss.c | 48 ++

[PATCH v3 04/13] remoteproc: qcom_q6v5_mss: Handle platforms with one power domain

2025-01-27 Thread Luca Weiss
For example MSM8974 has mx voltage rail exposed as regulator and only cx voltage rail is exposed as power domain. This power domain (cx) is attached internally in power domain and cannot be attached in this driver. Fixes: 8750cf392394 ("remoteproc: qcom_q6v5_mss: Allow replacing regulators with p

[PATCH v3 03/13] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add MSM8926

2025-01-27 Thread Luca Weiss
Compared to MSM8226 the LTE-capable MSM8926 requires mss-supply and doesn't require qcom,ext-bhs-reg. Signed-off-by: Luca Weiss --- .../devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Documentation/devicet

[PATCH v3 02/13] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add MSM8226

2025-01-27 Thread Luca Weiss
From: Matti Lehtimäki Add support for external power block headswitch (BHS) registers. Similarly to MSM8974 also MSM8226 has the mx voltage rail exposed as regulator and only cx voltage rail as power domain. Signed-off-by: Matti Lehtimäki Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca We

[PATCH v3 01/13] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Support platforms with one power domain

2025-01-27 Thread Luca Weiss
From: Matti Lehtimäki Add support for platforms such as MSM8974 which have the mx voltage rail exposed as regulator and only cx voltage rail as power domain. Signed-off-by: Matti Lehtimäki Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- .../bindings/remoteproc/qcom,msm8916-mss

[PATCH v3 00/13] Modem support for MSM8226

2025-01-27 Thread Luca Weiss
This series adds support for modem remoteproc found on MSM8226. It also adds needed device tree nodes and enables modem used for location service on matisse-wifi. Also bam-dmux node is added for mobile data which is used on 3G/4G-enabled devices. Signed-off-by: Luca Weiss --- Changes in v3: - In

[RFC PATCH 4/4] perf: arm_pmuv3: Keep out of guest counter partition

2025-01-27 Thread Colton Lewis
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 accessible by EL1 and EL0 while HPMN..PMCR.N is reserved for EL2. De

Re: [RFC net-next v3 2/4] virtio_net: Prepare for NAPI to queue mapping

2025-01-27 Thread Joe Damato
On Mon, Jan 27, 2025 at 02:24:00PM -0800, Jakub Kicinski wrote: > On Mon, 27 Jan 2025 17:07:54 -0500 Joe Damato wrote: > > > Tx NAPIs are one aspect, whether they have ID or not we may want direct > > > access to the struct somewhere in the core, via txq, at some point, and > > > then people may fo

Re: [RFC net-next v3 2/4] virtio_net: Prepare for NAPI to queue mapping

2025-01-27 Thread Jakub Kicinski
On Mon, 27 Jan 2025 17:07:54 -0500 Joe Damato wrote: > > Tx NAPIs are one aspect, whether they have ID or not we may want direct > > access to the struct somewhere in the core, via txq, at some point, and > > then people may forget the linking has an unintended effect of also > > changing the netli

Re: [PATCH v2 3/9] remoteproc: qcom_q6v5_mss: Handle platforms with one power domain

2025-01-27 Thread Luca Weiss
On maandag 27 januari 2025 09:58:45 Midden-Europese standaardtijd Stephan Gerhold wrote: > On Sun, Jan 26, 2025 at 09:57:22PM +0100, Luca Weiss wrote: > > For example MSM8974 has mx voltage rail exposed as regulator and only cx > > voltage rail is exposed as power domain. This power domain (cx) is

[RFC PATCH 1/4] perf: arm_pmuv3: Introduce module param to partition the PMU

2025-01-27 Thread Colton Lewis
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 EL2. Introduce a module parameter in the PMUv3 driver to set this register. The name reserved_guest_c

[RFC PATCH 3/4] perf: arm_pmuv3: Generalize counter bitmasks

2025-01-27 Thread Colton Lewis
These bitmasks are valid for enable and interrupt registers as well as overflow registers. Generalize the names. Signed-off-by: Colton Lewis --- include/linux/perf/arm_pmuv3.h | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/include/linux/perf/arm_pmuv3.h

[RFC PATCH 2/4] KVM: arm64: Make guests see only counters they can access

2025-01-27 Thread Colton Lewis
The ARM architecture specifies that when MDCR_EL2.HPMN is set, EL1 and EL0, which includes KVM guests, should read that value for PMCR.N. Signed-off-by: Colton Lewis --- arch/arm64/kvm/pmu-emul.c | 8 +++- tools/testing/selftests/kvm/aarch64/vpmu_counter_acces

[RFC PATCH 0/4] PMU partitioning driver support

2025-01-27 Thread Colton Lewis
This series introduces support in the ARM PMUv3 driver for partitioning PMU counters into two separate ranges by taking advantage of the MDCR_EL2.HPMN register field. The advantage of a partitioned PMU would be to allow KVM guests direct access to a subset of PMU functionality, greatly reducing th

Re: [RFC net-next v3 2/4] virtio_net: Prepare for NAPI to queue mapping

2025-01-27 Thread Joe Damato
On Mon, Jan 27, 2025 at 01:33:04PM -0800, Jakub Kicinski wrote: > On Mon, 27 Jan 2025 14:31:21 -0500 Joe Damato wrote: > > Actually, I missed a patch Jakub submit to net [1], which prevents > > dumping TX-only NAPIs. > > That patch only addresses NAPI ops, here I think we're talking about > attrib

[PATCH 8/8] arm64: Enable livepatch for ARM64

2025-01-27 Thread Weinan Liu
Since SFrame is considered as reliable stacktrace, enable livepatch in arch/arm64/Kconfig Signed-off-by: Weinan Liu --- arch/arm64/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 100570a048c5..c292bc73b65c 100644 --- a/arch/arm64/Kconf

[PATCH 7/8] arm64: Define TIF_PATCH_PENDING for livepatch

2025-01-27 Thread Weinan Liu
From: "Madhavan T. Venkataraman" - Define TIF_PATCH_PENDING in arch/arm64/include/asm/thread_info.h for livepatch. - Check TIF_PATCH_PENDING in do_notify_resume() to patch the current task for livepatch. Signed-off-by: Suraj Jitindar Singh Signed-off-by: Mad

[PATCH 5/8] unwind: arm64: Add sframe unwinder on arm64

2025-01-27 Thread Weinan Liu
Add unwind_next_frame_sframe() function to unwind by sframe info. Built with GNU Binutils 2.42 to verify that this sframe unwinder can backtrace correctly on arm64. Signed-off-by: Weinan Liu --- arch/arm64/include/asm/stacktrace/common.h | 4 ++ arch/arm64/kernel/setup.c | 2 +

[PATCH 6/8] unwind: arm64: add reliable stacktrace support for arm64

2025-01-27 Thread Weinan Liu
To support livepatch, we need to add arch_stack_walk_reliable to support reliable stacktrace according to https://docs.kernel.org/livepatch/reliable-stacktrace.html#requirements report stacktrace is not reliable if we are not able to unwind the stack by sframe unwinder and fallback to FP based unw

[PATCH 4/8] unwind: Implement generic sframe unwinder library

2025-01-27 Thread 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] https://lore.kernel.org/lkml/42c0a99236af65c09c8182e260af7bcf5

[PATCH 3/8] unwind: add sframe v2 header

2025-01-27 Thread Weinan Liu
Add sframe header so that we know how to access the sframe section generated by compilers. This is the sframe header file borrowed from the patchset [1] Josh Poimboeuf according to sframe v2 spec [2]. [1]: https://lore.kernel.org/lkml/42c0a99236af65c09c8182e260af7bcf5aa1e158.1730150953.git.jpoim

[PATCH 2/8] arm64: entry: add unwind info for various kernel entries

2025-01-27 Thread Weinan Liu
DWARF CFI (Call Frame Information) specifies how to recover the return address and callee-saved registers at each PC in a given function. Compilers are able to generate the CFI annotations when they compile the code to assembly language. For handcrafted assembly, we need to annotate them by hand.

[PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-01-27 Thread Weinan Liu
This patchset implements a generic kernel sframe-based [1] unwinder. The main goal is to support reliable stacktraces on arm64. On x86 orc unwinder provides reliable stacktraces. But arm64 misses the required support from objtool: it cannot generate orc unwind tables for arm64. Currently, there's

Re: [RFC net-next v3 2/4] virtio_net: Prepare for NAPI to queue mapping

2025-01-27 Thread Jakub Kicinski
On Mon, 27 Jan 2025 14:31:21 -0500 Joe Damato wrote: > Actually, I missed a patch Jakub submit to net [1], which prevents > dumping TX-only NAPIs. That patch only addresses NAPI ops, here I think we're talking about attributes of the queue object. > So, I think this RFC as-is (only calling netif_

[PATCH 1/8] unwind: build kernel with sframe info

2025-01-27 Thread Weinan Liu
Use the -Wa,--gsframe flags to build the code, so GAS will generate a new .sframe section for the stack trace information. Currently, the sframe format only supports arm64 and x86_64 architectures. Add this configuration on arm64 to enable sframe unwinder in the future. Signed-off-by: Weinan Liu

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Uladzislau Rezki
> > > > > > > > > > > need more CPUs for TREE05. > > > > > > > > > > > > > > > > > > > > > > I will not resist, we just drop this patch :) > > > > > > > > > > > > > > > > > > > > Thank you! > > > > > > > > > > > > > > > > > > > > The bug you are chasing happens when a given > > > > > > > > > >

Re: [RFC net-next v3 2/4] virtio_net: Prepare for NAPI to queue mapping

2025-01-27 Thread Joe Damato
On Mon, Jan 27, 2025 at 12:52:06PM -0500, Joe Damato wrote: > On Sun, Jan 26, 2025 at 04:04:02PM +0800, Jason Wang wrote: > > On Sat, Jan 25, 2025 at 4:19 AM Joe Damato wrote: > > > > > > On Fri, Jan 24, 2025 at 09:14:54AM +0800, Jason Wang wrote: > > > > On Thu, Jan 23, 2025 at 10:47 AM Joe Damat

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Uladzislau Rezki
On Mon, Jan 27, 2025 at 10:15:21AM -0800, Paul E. McKenney wrote: > On Mon, Jan 27, 2025 at 06:26:59PM +0100, Uladzislau Rezki wrote: > > On Mon, Jan 27, 2025 at 08:51:01AM -0800, Paul E. McKenney wrote: > > > On Mon, Jan 27, 2025 at 04:42:58PM +0100, Uladzislau Rezki wrote: > > > > On Mon, Jan 27,

Re: [PATCH] firmware: cs_dsp: FW_CS_DSP_KUNIT_TEST should not select REGMAP

2025-01-27 Thread Mark Brown
On Sat, 25 Jan 2025 20:32:15 +0100, Geert Uytterhoeven wrote: > Enabling a (modular) test should not silently enable additional kernel > functionality, as that may increase the attack vector of a product. > > Fix this by making FW_CS_DSP_KUNIT_TEST (and FW_CS_DSP_KUNIT_TEST_UTILS) > depend on REGM

Re: [PATCH RFC v2 rcu] Fix get_state_synchronize_rcu_full() GP-start detection

2025-01-27 Thread Joel Fernandes
On Mon, Jan 27, 2025 at 11:49 AM Paul E. McKenney wrote: > > On Sun, Jan 26, 2025 at 09:58:11PM -0500, Joel Fernandes wrote: > > On Sun, Jan 26, 2025 at 9:55 PM Joel Fernandes > > wrote: > > > > > > On Sun, Jan 26, 2025 at 9:03 PM Paul E. McKenney > > > wrote: > > > > > > > > On Sun, Jan 26, 2

Re: [PATCH] acpi: nfit: fix narrowing conversion in acpi_nfit_ctl

2025-01-27 Thread Murad Masimov
> I tend to agree this is not ideal. But IMO the issue is that family is > treated as an int throughout the code rather than u64. Even u32 would > have been better than int because negative numbers are not allowed AFAICT > just skimming the code. > > Unfortunately, ripping through the code to ch

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Uladzislau Rezki
On Mon, Jan 27, 2025 at 10:15:21AM -0800, Paul E. McKenney wrote: > On Mon, Jan 27, 2025 at 06:26:59PM +0100, Uladzislau Rezki wrote: > > On Mon, Jan 27, 2025 at 08:51:01AM -0800, Paul E. McKenney wrote: > > > On Mon, Jan 27, 2025 at 04:42:58PM +0100, Uladzislau Rezki wrote: > > > > On Mon, Jan 27,

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Paul E. McKenney
On Mon, Jan 27, 2025 at 06:26:59PM +0100, Uladzislau Rezki wrote: > On Mon, Jan 27, 2025 at 08:51:01AM -0800, Paul E. McKenney wrote: > > On Mon, Jan 27, 2025 at 04:42:58PM +0100, Uladzislau Rezki wrote: > > > On Mon, Jan 27, 2025 at 06:51:44AM -0800, Paul E. McKenney wrote: > > > > On Mon, Jan 27,

Re: [RFC net-next v3 2/4] virtio_net: Prepare for NAPI to queue mapping

2025-01-27 Thread Joe Damato
On Sun, Jan 26, 2025 at 04:04:02PM +0800, Jason Wang wrote: > On Sat, Jan 25, 2025 at 4:19 AM Joe Damato wrote: > > > > On Fri, Jan 24, 2025 at 09:14:54AM +0800, Jason Wang wrote: > > > On Thu, Jan 23, 2025 at 10:47 AM Joe Damato wrote: > > > > > > > > On Thu, Jan 23, 2025 at 10:40:43AM +0800, Ja

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Uladzislau Rezki
On Mon, Jan 27, 2025 at 08:51:01AM -0800, Paul E. McKenney wrote: > On Mon, Jan 27, 2025 at 04:42:58PM +0100, Uladzislau Rezki wrote: > > On Mon, Jan 27, 2025 at 06:51:44AM -0800, Paul E. McKenney wrote: > > > On Mon, Jan 27, 2025 at 02:27:51PM +0100, Uladzislau Rezki wrote: > > > > On Fri, Jan 24,

Re: [PATCH] udp: gso: fix MTU check for small packets

2025-01-27 Thread Yan Zhai
Hi Willem, Thanks for getting back to me. On Mon, Jan 27, 2025 at 8:33 AM Willem de Bruijn wrote: > > Yan Zhai wrote: > > Commit 4094871db1d6 ("udp: only do GSO if # of segs > 1") avoided GSO > > for small packets. But the kernel currently dismisses GSO requests only > > after checking MTU on gs

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Paul E. McKenney
On Mon, Jan 27, 2025 at 04:42:58PM +0100, Uladzislau Rezki wrote: > On Mon, Jan 27, 2025 at 06:51:44AM -0800, Paul E. McKenney wrote: > > On Mon, Jan 27, 2025 at 02:27:51PM +0100, Uladzislau Rezki wrote: > > > On Fri, Jan 24, 2025 at 11:34:03AM -0800, Paul E. McKenney wrote: > > > > On Fri, Jan 24,

Re: [PATCH RFC v2 rcu] Fix get_state_synchronize_rcu_full() GP-start detection

2025-01-27 Thread Paul E. McKenney
On Sun, Jan 26, 2025 at 09:58:11PM -0500, Joel Fernandes wrote: > On Sun, Jan 26, 2025 at 9:55 PM Joel Fernandes wrote: > > > > On Sun, Jan 26, 2025 at 9:03 PM Paul E. McKenney wrote: > > > > > > On Sun, Jan 26, 2025 at 08:22:23PM -0500, Joel Fernandes wrote: > > > > On Sun, Jan 26, 2025 at 8:13 

[PATCH v6 3/3] selftests/lam: Test get_user() LAM pointer handling

2025-01-27 Thread Maciej Wieczor-Retman
Recent change in how get_user() handles pointers [1] has a specific case for LAM. It assigns a different bitmask that's later used to check whether a pointer comes from userland in get_user(). Add test case to LAM that utilizes a ioctl (FIOASYNC) syscall which uses get_user() in its implementation

[GIT PULL] virtio: features, fixes, cleanups

2025-01-27 Thread Michael S. Tsirkin
There are still some known issues that I hope to address by rc2. Giving them more time to get tested for now - none of them are regressions. The following changes since commit 9d89551994a430b50c4fffcb1e617a057fa76e20: Linux 6.13-rc6 (2025-01-05 14:13:40 -0800) are available in the Git reposito

Re: [linux-next:master] [modpost] e8639b7ef0: WARNING:at_include/trace/events/printk.h:#printk_sprint

2025-01-27 Thread Matthew Maurer
3d: 1f (bad) > 3e: 44 rex.R > ... > > Code starting with the faulting instruction > === >0: 5d pop%rbp >1: 5a pop%rdx >2: 59 pop%rcx >3: c3 ret >4: cc int3 >5: 90 nop >6: 90 nop >7: 90 nop >8: 66 2e 0f 1f 84 00 00cs nopw 0x0(%rax,%rax,1) >f: 00 00 00 > 12: 0f .byte 0xf > 13: 1f (bad) > 14: 44 rex.R > > > The kernel config and materials to reproduce are available at: > https://download.01.org/0day-ci/archive/20250127/202501272252.4f499056-...@intel.com > > > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki >

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Uladzislau Rezki
On Mon, Jan 27, 2025 at 06:51:44AM -0800, Paul E. McKenney wrote: > On Mon, Jan 27, 2025 at 02:27:51PM +0100, Uladzislau Rezki wrote: > > On Fri, Jan 24, 2025 at 11:34:03AM -0800, Paul E. McKenney wrote: > > > On Fri, Jan 24, 2025 at 06:48:40PM +0100, Uladzislau Rezki wrote: > > > > On Fri, Jan 24,

Re: [RFC PATCH 2/2] livepatch: Implement livepatch hybrid mode

2025-01-27 Thread Yafang Shao
On Mon, Jan 27, 2025 at 10:31 PM Petr Mladek wrote: > > On Mon 2025-01-27 14:35:26, Yafang Shao wrote: > > The atomic replace livepatch mechanism was introduced to handle scenarios > > where we want to unload a specific livepatch without unloading others. > > However, its current implementation ha

[PATCH v6 2/3] selftests/lam: Skip test if LAM is disabled

2025-01-27 Thread Maciej Wieczor-Retman
Until LASS is merged into the kernel [1], LAM is left disabled in the config file. Running the LAM selftest with disabled LAM only results in unhelpful output. Use one of LAM syscalls() to determine whether the kernel was compiled with LAM support (CONFIG_ADDRESS_MASKING) or not. Skip running the

[PATCH v6 1/3] selftests/lam: Move cpu_has_la57() to use cpuinfo flag

2025-01-27 Thread Maciej Wieczor-Retman
In current form cpu_has_la57() reports platform's support for LA57 through reading the output of cpuid. A much more useful information is whether 5-level paging is actually enabled on the running system. Check whether 5-level paging is enabled by trying to map a page in the high linear address spa

[PATCH v6 0/3] selftests/lam: get_user additions and LAM enabled check

2025-01-27 Thread Maciej Wieczor-Retman
Changes in v6: - Move la57 check to using mmap(). - Merge kernel_has_lam() and cpu_has_lam() into lam_is_available() since the syscall (if CONFIG_ADDRESS_MASKING is set) and cpuid check provides the same information. Recent change in how get_user() handles pointers [1] has a specific case for

Re: [PATCH v2 9/9] ARM: dts: qcom: msm8226-samsung-matisse-common: Enable modem

2025-01-27 Thread Konrad Dybcio
On 27.01.2025 2:34 PM, Luca Weiss wrote: > On maandag 27 januari 2025 10:44:19 Midden-Europese standaardtijd Stephan > Gerhold wrote: >> On Sun, Jan 26, 2025 at 09:57:28PM +0100, Luca Weiss wrote: >>> From: Matti Lehtimäki >>> >>> Enable modem remoteproc on samsung,matisse-wifi & matisselte. >>>

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Paul E. McKenney
On Mon, Jan 27, 2025 at 02:27:51PM +0100, Uladzislau Rezki wrote: > On Fri, Jan 24, 2025 at 11:34:03AM -0800, Paul E. McKenney wrote: > > On Fri, Jan 24, 2025 at 06:48:40PM +0100, Uladzislau Rezki wrote: > > > On Fri, Jan 24, 2025 at 09:36:07AM -0800, Paul E. McKenney wrote: > > > > On Fri, Jan 24,

[linux-next:master] [modpost] e8639b7ef0: WARNING:at_include/trace/events/printk.h:#printk_sprint

2025-01-27 Thread kernel test robot
1f 84 00 00cs nopw 0x0(%rax,%rax,1) f: 00 00 00 12: 0f .byte 0xf 13: 1f (bad) 14: 44 rex.R The kernel config and materials to reproduce are available at: https://download.01.org/0day-ci/archive/20250127/2025012722

Re: [RFC PATCH 0/2] livepatch: Add support for hybrid mode

2025-01-27 Thread Yafang Shao
On Mon, Jan 27, 2025 at 9:46 PM Petr Mladek wrote: > > On Mon 2025-01-27 14:35:24, Yafang Shao wrote: > > The atomic replace livepatch mechanism was introduced to handle scenarios > > where we want to unload a specific livepatch without unloading others. > > However, its current implementation has

Re: [PATCH] udp: gso: fix MTU check for small packets

2025-01-27 Thread Willem de Bruijn
Yan Zhai wrote: > Commit 4094871db1d6 ("udp: only do GSO if # of segs > 1") avoided GSO > for small packets. But the kernel currently dismisses GSO requests only > after checking MTU on gso_size. This means any packets, regardless of > their payload sizes, would be dropped when MTU is smaller than

Re: [RFC PATCH 2/2] livepatch: Implement livepatch hybrid mode

2025-01-27 Thread Petr Mladek
On Mon 2025-01-27 14:35:26, Yafang Shao wrote: > The atomic replace livepatch mechanism was introduced to handle scenarios > where we want to unload a specific livepatch without unloading others. > However, its current implementation has significant shortcomings, making > it less than ideal in prac

Re: [RFC PATCH 0/2] livepatch: Add support for hybrid mode

2025-01-27 Thread Petr Mladek
On Mon 2025-01-27 14:35:24, Yafang Shao wrote: > The atomic replace livepatch mechanism was introduced to handle scenarios > where we want to unload a specific livepatch without unloading others. > However, its current implementation has significant shortcomings, making > it less than ideal in prac

Re: [PATCH v2 9/9] ARM: dts: qcom: msm8226-samsung-matisse-common: Enable modem

2025-01-27 Thread Stephan Gerhold
On Mon, Jan 27, 2025 at 02:34:08PM +0100, Luca Weiss wrote: > On maandag 27 januari 2025 10:44:19 Midden-Europese standaardtijd Stephan > Gerhold wrote: > > On Sun, Jan 26, 2025 at 09:57:28PM +0100, Luca Weiss wrote: > > > From: Matti Lehtimäki > > > > > > Enable modem remoteproc on samsung,mati

Re: [PATCH v2 9/9] ARM: dts: qcom: msm8226-samsung-matisse-common: Enable modem

2025-01-27 Thread Luca Weiss
On maandag 27 januari 2025 10:44:19 Midden-Europese standaardtijd Stephan Gerhold wrote: > On Sun, Jan 26, 2025 at 09:57:28PM +0100, Luca Weiss wrote: > > From: Matti Lehtimäki > > > > Enable modem remoteproc on samsung,matisse-wifi & matisselte. > > > > Signed-off-by: Matti Lehtimäki > > Sign

Re: [PATCH 2/4] torture: Remove CONFIG_NR_CPUS configuration

2025-01-27 Thread Uladzislau Rezki
On Fri, Jan 24, 2025 at 11:34:03AM -0800, Paul E. McKenney wrote: > On Fri, Jan 24, 2025 at 06:48:40PM +0100, Uladzislau Rezki wrote: > > On Fri, Jan 24, 2025 at 09:36:07AM -0800, Paul E. McKenney wrote: > > > On Fri, Jan 24, 2025 at 06:21:30PM +0100, Uladzislau Rezki wrote: > > > > On Fri, Jan 24,

Re: [PATCH v2 7/9] ARM: dts: qcom: msm8226: Add modem remoteproc node

2025-01-27 Thread Luca Weiss
On maandag 27 januari 2025 10:19:21 Midden-Europese standaardtijd Stephan Gerhold wrote: > On Sun, Jan 26, 2025 at 09:57:26PM +0100, Luca Weiss wrote: > > Add a node for the modem remoteproc found on MSM8226. > > > > For the apq8026 smartwatches, delete the modem reserved-memory again > > since t

Re: [PATCH v3 00/28] module: Use RCU instead of RCU-sched.

2025-01-27 Thread Petr Pavlu
On 1/24/25 18:49, Sebastian Andrzej Siewior wrote: > On 2025-01-13 12:09:27 [+0100], Petr Pavlu wrote: >> Thanks for this cleanup. I've queued the fix in patch #1 on >> modules-fixes. For the rest, I plan to give folks more time to look at >> the changes as this affects a number of subsystems. If t

Re: [PATCH 2/2] selftests/bpf: Select NUMA node of current CPU to create map

2025-01-27 Thread Saket Kumar Bhaskar
On Sat, Jan 25, 2025 at 09:02:37AM -0800, Alexei Starovoitov wrote: > On Sat, Jan 25, 2025 at 7:25 AM Saket Kumar Bhaskar > wrote: > > > > On powerpc, a CPU does not necessarily originate from NUMA node 0. > > This contrasts with architectures like x86, where CPU 0 is not > > hot-pluggable, makin

Re: [PATCH] dt-bindings: power: rpmpd: Fix comment for SM6375

2025-01-27 Thread Luca Weiss
On Mon Dec 2, 2024 at 4:45 PM CET, Luca Weiss wrote: > During an earlier commit, the comment from SM6350 was copied without > modifying. Adjust the comment to reflect the defines. Ping, could this trivial patch be picked up please? Regards Luca > > Signed-off-by: Luca Weiss > --- > include/dt-

Re: [PATCH v2 9/9] ARM: dts: qcom: msm8226-samsung-matisse-common: Enable modem

2025-01-27 Thread Stephan Gerhold
On Sun, Jan 26, 2025 at 09:57:28PM +0100, Luca Weiss wrote: > From: Matti Lehtimäki > > Enable modem remoteproc on samsung,matisse-wifi & matisselte. > > Signed-off-by: Matti Lehtimäki > Signed-off-by: Luca Weiss > --- > arch/arm/boot/dts/qcom/qcom-msm8226-samsung-matisse-common.dtsi | 7

Re: [PATCH v2 6/9] ARM: dts: qcom: msm8226: Add smsm node

2025-01-27 Thread Stephan Gerhold
On Sun, Jan 26, 2025 at 09:57:25PM +0100, Luca Weiss wrote: > From: Matti Lehtimäki > > Add smsm node for remoteproc cores. > > Signed-off-by: Matti Lehtimäki > Co-developed-by: Luca Weiss > Signed-off-by: Luca Weiss Reviewed-by: Stephan Gerhold > --- > arch/arm/boot/dts/qcom/qcom-msm8226

Re: [PATCH v2 8/9] ARM: dts: qcom: msm8226: Add BAM DMUX Ethernet/IP device

2025-01-27 Thread Stephan Gerhold
On Sun, Jan 26, 2025 at 09:57:27PM +0100, Luca Weiss wrote: > BAM DMUX is used as the network interface to the modem. > > Signed-off-by: Luca Weiss Reviewed-by: Stephan Gerhold > --- > arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 26 ++ > 1 file changed, 26 insertions(+)

Re: [PATCH v2 7/9] ARM: dts: qcom: msm8226: Add modem remoteproc node

2025-01-27 Thread Stephan Gerhold
On Sun, Jan 26, 2025 at 09:57:26PM +0100, Luca Weiss wrote: > Add a node for the modem remoteproc found on MSM8226. > > For the apq8026 smartwatches, delete the modem reserved-memory again > since they have very little RAM in the first place anyways, and all of > these devices don't have functiona

Re: [PATCH v2 4/9] remoteproc: qcom_q6v5_mss: Add modem support on MSM8226

2025-01-27 Thread Stephan Gerhold
On Sun, Jan 26, 2025 at 09:57:23PM +0100, Luca Weiss wrote: > Add support for the external power block headswitch register needed by > MSM8226 and some other qcom platforms. > > Co-developed-by: Matti Lehtimäki > Signed-off-by: Matti Lehtimäki > Signed-off-by: Luca Weiss > --- > Changes in v2:

Re: [PATCH v2 3/9] remoteproc: qcom_q6v5_mss: Handle platforms with one power domain

2025-01-27 Thread Stephan Gerhold
On Sun, Jan 26, 2025 at 09:57:22PM +0100, Luca Weiss wrote: > For example MSM8974 has mx voltage rail exposed as regulator and only cx > voltage rail is exposed as power domain. This power domain (cx) is > attached internally in power domain and cannot be attached in this driver. > > Fixes: 8750cf

Re: [PATCH] selftests/vDSO: Fix undefined CLONE_NEWTIME by including

2025-01-27 Thread Christophe Leroy
Le 26/01/2025 à 11:59, Purva Yeshi a écrit : [Vous ne recevez pas souvent de courriers de purvayeshi...@gmail.com. Découvrez pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] Fix the build failure caused by the undefined `CLONE_NEWTIME`. Include the `linux/sched.h