Re: [PATCH] ftrace: make extra rcu_is_watching() validation check optional

2024-04-02 Thread Andrii Nakryiko
On Tue, Apr 2, 2024 at 9:00 PM Andrii Nakryiko wrote: > > On Tue, Apr 2, 2024 at 5:52 PM Steven Rostedt wrote: > > > > On Wed, 3 Apr 2024 09:40:48 +0900 > > Masami Hiramatsu (Google) wrote: > > > > > OK, for me, this last sentence is preferred for the help message. That > > > explains > > >

Re: [RFC PATCH] ftrace: riscv: move from REGS to ARGS

2024-04-02 Thread Google
On Tue, 02 Apr 2024 15:02:41 +0200 Björn Töpel wrote: > Puranjay Mohan writes: > > > This commit replaces riscv's support for FTRACE_WITH_REGS with support > > for FTRACE_WITH_ARGS. This is required for the ongoing effort to stop > > relying on stop_machine() for RISCV's implementation of

Re: [PATCH] ftrace: make extra rcu_is_watching() validation check optional

2024-04-02 Thread Andrii Nakryiko
On Tue, Apr 2, 2024 at 5:52 PM Steven Rostedt wrote: > > On Wed, 3 Apr 2024 09:40:48 +0900 > Masami Hiramatsu (Google) wrote: > > > OK, for me, this last sentence is preferred for the help message. That > > explains > > what this is for. > > > > All callbacks that attach to the function

[linus:master] [filelock] c69ff40719: stress-ng.dup.ops_per_sec 1.9% improvement

2024-04-02 Thread kernel test robot
Hello, kernel test robot noticed a 1.9% improvement of stress-ng.dup.ops_per_sec on: commit: c69ff4071935f946f1cddc59e1d36a03442ed015 ("filelock: split leases out of struct file_lock") https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git master testcase: stress-ng test machine:

Re:Re: [PATCH v3] vhost/vdpa: Add MSI translation tables to iommu for software-managed MSI

2024-04-02 Thread tab
Ineedtodiscussinternally,andtheremaybesomeoneelsewilldothat. 在 2024-03-29 18:39:54,"Jason Wang" 写道: On Fri, Mar 29, 2024 at 5:13 PM Michael S. Tsirkin wrote: > > On Fri, Mar 29, 2024 at 11:55:50AM +0800, Jason Wang wrote: > > On Wed, Mar 27, 2024 at 5:08 PM Jason Wang wrote: > > > > > > On Thu,

Re: [PATCH net v2] vsock/virtio: fix packet delivery to tap device

2024-04-02 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Fri, 29 Mar 2024 17:12:59 +0100 you wrote: > Commit 82dfb540aeb2 ("VSOCK: Add virtio vsock vsockmon hooks") added > virtio_transport_deliver_tap_pkt() for handing packets to the > vsockmon device. However, in

Re: [PATCHv2 1/3] uprobe: Add uretprobe syscall to speed up return probe

2024-04-02 Thread Google
Hi Jiri, On Tue, 2 Apr 2024 11:33:00 +0200 Jiri Olsa wrote: > Adding uretprobe syscall instead of trap to speed up return probe. This is interesting approach. But I doubt we need to add additional syscall just for this purpose. Can't we use another syscall or ioctl? Also, we should run

Re: [PATCH] ftrace: make extra rcu_is_watching() validation check optional

2024-04-02 Thread Steven Rostedt
On Wed, 3 Apr 2024 09:40:48 +0900 Masami Hiramatsu (Google) wrote: > OK, for me, this last sentence is preferred for the help message. That > explains > what this is for. > > All callbacks that attach to the function tracing have some sort > of protection against recursion.

Re: [PATCH] ftrace: make extra rcu_is_watching() validation check optional

2024-04-02 Thread Google
On Mon, 1 Apr 2024 22:47:33 -0400 Steven Rostedt wrote: > On Mon, 1 Apr 2024 19:29:46 -0700 > Andrii Nakryiko wrote: > > > On Mon, Apr 1, 2024 at 5:38 PM Masami Hiramatsu wrote: > > > > > > On Mon, 1 Apr 2024 12:09:18 -0400 > > > Steven Rostedt wrote: > > > > > > > On Mon, 1 Apr 2024

[PATCH] vhost-vdpa: change ioctl # for VDPA_GET_VRING_SIZE

2024-04-02 Thread Michael S. Tsirkin
VDPA_GET_VRING_SIZE by mistake uses the already occupied ioctl # 0x80 and we never noticed - it happens to work because the direction and size are different, but confuses tools such as perf which like to look at just the number, and breaks the extra robustness of the ioctl numbering macros. To

[PATCH v9 9/9] MAINTAINERS: add myself as Marvell PXA1908 maintainer

2024-04-02 Thread Duje Mihanović
Add myself as the maintainer for Marvell PXA1908 SoC support. Signed-off-by: Duje Mihanović --- MAINTAINERS | 9 + 1 file changed, 9 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7c121493f43d..a7c19ffb739e 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2371,6 +2371,15 @@

[PATCH v9 8/9] arm64: dts: Add DTS for Marvell PXA1908 and samsung,coreprimevelte

2024-04-02 Thread Duje Mihanović
Add DTS for Marvell PXA1908 SoC and Samsung Galaxy Core Prime Value Edition LTE, a smartphone based on said SoC. Signed-off-by: Duje Mihanović To: Michael Turquette , Stephen Boyd , Linus Walleij , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Tony Lindgren , Haojian Zhuang ,

[PATCH v9 5/9] clk: mmp: Add Marvell PXA1908 clock driver

2024-04-02 Thread Duje Mihanović
Add driver for Marvell PXA1908 clock controller blocks. The SoC has numerous clock controller blocks, currently supporting APBC, APBCP, MPMU and APMU. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-of-pxa1908.c | 328

[PATCH v9 1/9] clk: mmp: Switch to use struct u32_fract instead of custom one

2024-04-02 Thread Duje Mihanović
From: Andy Shevchenko The struct mmp_clk_factor_tbl repeats the generic struct u32_fract. Kill the custom one and use the generic one instead. Signed-off-by: Andy Shevchenko Tested-by: Duje Mihanović Reviewed-by: Linus Walleij Signed-off-by: Duje Mihanović --- drivers/clk/mmp/clk-frac.c

[PATCH v9 7/9] arm64: Kconfig.platforms: Add config for Marvell PXA1908 platform

2024-04-02 Thread Duje Mihanović
Add ARCH_MMP configuration option for Marvell PXA1908 SoC. Signed-off-by: Duje Mihanović --- arch/arm64/Kconfig.platforms | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms index 24335565bad5..d71b0b6e75aa 100644 ---

[PATCH v9 3/9] pinctrl: single: add marvell,pxa1908-padconf compatible

2024-04-02 Thread Duje Mihanović
Add the "marvell,pxa1908-padconf" compatible to allow migrating to a separate pinctrl driver later. Acked-by: Linus Walleij Signed-off-by: Duje Mihanović --- drivers/pinctrl/pinctrl-single.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/pinctrl-single.c

[PATCH v9 2/9] dt-bindings: pinctrl: pinctrl-single: add marvell,pxa1908-padconf compatible

2024-04-02 Thread Duje Mihanović
Add the "marvell,pxa1908-padconf" compatible to allow migrating to a separate pinctrl driver later. Reviewed-by: Rob Herring Acked-by: Linus Walleij Signed-off-by: Duje Mihanović --- Documentation/devicetree/bindings/pinctrl/pinctrl-single.yaml | 4 1 file changed, 4 insertions(+) diff

[PATCH v9 4/9] dt-bindings: clock: Add Marvell PXA1908 clock bindings

2024-04-02 Thread Duje Mihanović
Add dt bindings and documentation for the Marvell PXA1908 clock controller. Reviewed-by: Conor Dooley Signed-off-by: Duje Mihanović --- .../devicetree/bindings/clock/marvell,pxa1908.yaml | 48 include/dt-bindings/clock/marvell,pxa1908.h| 88 ++ 2 files

[PATCH v9 0/9] Initial Marvell PXA1908 support

2024-04-02 Thread Duje Mihanović
Hello, This series adds initial support for the Marvell PXA1908 SoC and "samsung,coreprimevelte", a smartphone using the SoC. USB works and the phone can boot a rootfs from an SD card, but there are some warnings in the dmesg: During SMP initialization: [0.006519] CPU features: SANITY

[PATCH v9 6/9] dt-bindings: marvell: Document PXA1908 SoC

2024-04-02 Thread Duje Mihanović
Add dt binding for the Marvell PXA1908 SoC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Duje Mihanović --- Documentation/devicetree/bindings/arm/mrvl/mrvl.yaml | 5 + 1 file changed, 5 insertions(+) diff --git a/Documentation/devicetree/bindings/arm/mrvl/mrvl.yaml

Re: Re: [PATCH v9 15/15] selftests/sgx: Add scripts for EPC cgroup testing

2024-04-02 Thread Haitao Huang
On Tue, 02 Apr 2024 12:40:03 -0500, Michal Koutný wrote: On Tue, Apr 02, 2024 at 11:20:21AM -0500, Haitao Huang wrote: Do we really want to have it implemented in c? I only pointed to the available C boilerplate. There are much fewer lines of code in shell scripts. Note we are not

Re: Re: [PATCH v9 15/15] selftests/sgx: Add scripts for EPC cgroup testing

2024-04-02 Thread Michal Koutný
On Tue, Apr 02, 2024 at 11:20:21AM -0500, Haitao Huang wrote: > Do we really want to have it implemented in c? I only pointed to the available C boilerplate. > There are much fewer lines of > code in shell scripts. Note we are not really testing basic cgroup stuff. > All we needed were

Re: [PATCH v2] selftests/sgx: Improve cgroup test scripts

2024-04-02 Thread Haitao Huang
On Tue, 02 Apr 2024 02:43:25 -0500, Jarkko Sakkinen wrote: On Tue Apr 2, 2024 at 4:42 AM EEST, Haitao Huang wrote: Make cgroup test scripts ash compatible. Remove cg-tools dependency. Add documentation for functions. Tested with busybox on Ubuntu. Signed-off-by: Haitao Huang --- v2: -

Re: [PATCH bpf-next] rethook: Remove warning messages printed for finding return address of a frame.

2024-04-02 Thread Andrii Nakryiko
On Mon, Apr 1, 2024 at 12:16 PM Kui-Feng Lee wrote: > > rethook_find_ret_addr() prints a warning message and returns 0 when the > target task is running and not the "current" task to prevent returning an > incorrect return address. However, this check is incomplete as the target > task can still

Re: [PATCH v9 15/15] selftests/sgx: Add scripts for EPC cgroup testing

2024-04-02 Thread Haitao Huang
On Tue, 02 Apr 2024 06:58:40 -0500, Jarkko Sakkinen wrote: On Tue Apr 2, 2024 at 2:23 PM EEST, Michal Koutný wrote: Hello. On Sat, Mar 30, 2024 at 01:26:08PM +0200, Jarkko Sakkinen wrote: > > > It'd be more complicated and less readable to do all the stuff without the > > >

Re: [PATCH 1/1] clk: qcom: smd-rpm: Restore msm8976 num_clk

2024-04-02 Thread Konrad Dybcio
On 1.04.2024 7:16 PM, Adam Skladowski wrote: > During rework somehow msm8976 num_clk got removed, restore it. > > Fixes: d6edc31f3a68 ("clk: qcom: smd-rpm: Separate out interconnect bus > clocks") > Signed-off-by: Adam Skladowski > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH 3/3] arm64: dts: msm8996: add fastrpc nodes

2024-04-02 Thread Dmitry Baryshkov
On Tue, 2 Apr 2024 at 17:47, Konrad Dybcio wrote: > > On 31.03.2024 11:10 PM, Dmitry Baryshkov wrote: > > From: Srinivas Kandagatla > > > > The ADSP provides fastrpc/compute capabilities. Enable support for the > > fastrpc on this DSP. > > > > Signed-off-by: Srinivas Kandagatla > >

Re: [PATCH v9 15/15] selftests/sgx: Add scripts for EPC cgroup testing

2024-04-02 Thread Dave Hansen
On 3/30/24 04:23, Jarkko Sakkinen wrote: >>> I also wonder is cgroup-tools dependency absolutely required or could >>> you just have a function that would interact with sysfs? >> I should have checked email before hit the send button for v10 . >> >> It'd be more complicated and less readable to

Re: [PATCH 3/3] arm64: dts: msm8996: add fastrpc nodes

2024-04-02 Thread Konrad Dybcio
On 31.03.2024 11:10 PM, Dmitry Baryshkov wrote: > From: Srinivas Kandagatla > > The ADSP provides fastrpc/compute capabilities. Enable support for the > fastrpc on this DSP. > > Signed-off-by: Srinivas Kandagatla > Signed-off-by: Dmitry Baryshkov > --- > arch/arm64/boot/dts/qcom/msm8996.dtsi

Re: [PATCH 0/3] Documentation/smatch: RST conversion and fixes

2024-04-02 Thread Dan Carpenter
On Mon, Apr 01, 2024 at 10:45:09PM +0200, Javier Carrasco wrote: > This series converts the existing smatch.txt to RST and adds it to the > index, so it can be built together with the sparse documentation. > > When at it, a couple of small fixes has been included. > > Signed-off-by: Javier

Re: [PATCH 2/2] remoteproc: mediatek: Don't parse extraneous subnodes for multi-core

2024-04-02 Thread AngeloGioacchino Del Regno
Il 02/04/24 16:23, Mathieu Poirier ha scritto: On Tue, 2 Apr 2024 at 03:56, AngeloGioacchino Del Regno wrote: Il 28/03/24 15:38, Mathieu Poirier ha scritto: On Wed, Mar 27, 2024 at 01:49:58PM +0100, AngeloGioacchino Del Regno wrote: Il 21/03/24 16:27, Mathieu Poirier ha scritto: On Thu,

Re: [PATCH 2/3] arm64: dts: qcom: msm8996: add glink-edge nodes

2024-04-02 Thread Konrad Dybcio
On 31.03.2024 11:10 PM, Dmitry Baryshkov wrote: > MSM8996 provides limited glink support, so add corresponding device tree > nodes. For example the following interfaces are provided on db820c: > > modem: > 208.remoteproc:glink-edge.LOOPBACK_CTL_MPSS.-1.-1 >

Re: [PATCH 2/2] remoteproc: mediatek: Don't parse extraneous subnodes for multi-core

2024-04-02 Thread Mathieu Poirier
On Tue, 2 Apr 2024 at 03:56, AngeloGioacchino Del Regno wrote: > > Il 28/03/24 15:38, Mathieu Poirier ha scritto: > > On Wed, Mar 27, 2024 at 01:49:58PM +0100, AngeloGioacchino Del Regno wrote: > >> Il 21/03/24 16:27, Mathieu Poirier ha scritto: > >>> On Thu, Mar 21, 2024 at 09:46:14AM +0100,

Re: [PATCH] livepatch: Add KLP_IDLE state

2024-04-02 Thread Joe Lawrence
On Tue, Apr 02, 2024 at 11:09:54AM +0800, zhangwar...@gmail.com wrote: > From: Wardenjohn > > In livepatch, using KLP_UNDEFINED is seems to be confused. > When kernel is ready, livepatch is ready too, which state is > idle but not undefined. What's more, if one livepatch process > is finished,

Re: [RFC PATCH] ftrace: riscv: move from REGS to ARGS

2024-04-02 Thread Björn Töpel
Puranjay Mohan writes: > This commit replaces riscv's support for FTRACE_WITH_REGS with support > for FTRACE_WITH_ARGS. This is required for the ongoing effort to stop > relying on stop_machine() for RISCV's implementation of ftrace. > > The main relevant benefit that this change will bring for

Re: [PATCH 64/64] i2c: reword i2c_algorithm in drivers according to newest specification

2024-04-02 Thread Linus Walleij
On Fri, Mar 22, 2024 at 2:27 PM Wolfram Sang wrote: > Match the wording in i2c_algorithm in I2C drivers wrt. the newest I2C > v7, SMBus 3.2, I3C specifications and replace "master/slave" with more > appropriate terms. For some drivers, this means no more conversions are > needed. For the others

Re: [PATCH v9 15/15] selftests/sgx: Add scripts for EPC cgroup testing

2024-04-02 Thread Jarkko Sakkinen
On Tue Apr 2, 2024 at 2:23 PM EEST, Michal Koutný wrote: > Hello. > > On Sat, Mar 30, 2024 at 01:26:08PM +0200, Jarkko Sakkinen > wrote: > > > > It'd be more complicated and less readable to do all the stuff without > > > > the > > > > cgroup-tools, esp cgexec. I checked dependency,

Re: Re: [PATCH v9 15/15] selftests/sgx: Add scripts for EPC cgroup testing

2024-04-02 Thread Michal Koutný
Hello. On Sat, Mar 30, 2024 at 01:26:08PM +0200, Jarkko Sakkinen wrote: > > > It'd be more complicated and less readable to do all the stuff without > > > the > > > cgroup-tools, esp cgexec. I checked dependency, cgroup-tools only depends > > > > > > on libc so I hope this would not cause

Re: [PATCH v2 4/4] arm64: dts: qcom: msm8976: Add WCNSS node

2024-04-02 Thread Bryan O'Donoghue
On 01/04/2024 18:21, Adam Skladowski wrote: Add node describing wireless connectivity subsystem. Signed-off-by: Adam Skladowski --- arch/arm64/boot/dts/qcom/msm8976.dtsi | 104 ++ 1 file changed, 104 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/msm8976.dtsi

Re: [PATCH 2/2] remoteproc: mediatek: Don't parse extraneous subnodes for multi-core

2024-04-02 Thread AngeloGioacchino Del Regno
Il 28/03/24 15:38, Mathieu Poirier ha scritto: On Wed, Mar 27, 2024 at 01:49:58PM +0100, AngeloGioacchino Del Regno wrote: Il 21/03/24 16:27, Mathieu Poirier ha scritto: On Thu, Mar 21, 2024 at 09:46:14AM +0100, AngeloGioacchino Del Regno wrote: When probing multi-core SCP, this driver is

[PATCHv2 bpf-next 3/3] selftests/bpf: Add uretprobe test for regs changes

2024-04-02 Thread Jiri Olsa
Adding test that creates uprobe consumer on uretprobe which changes some of the registers. Making sure the changed registers are propagated to the user space from the ureprobe trampoline on x86_64. To be able to do this, adding support to bpf_testmod to create uprobe via new attribute file:

[PATCHv2 bpf-next 2/3] selftests/bpf: Add uretprobe test for regs integrity

2024-04-02 Thread Jiri Olsa
Add uretprobe test that compares register values before and after the uretprobe is hit. It also compares the register values seen from attached bpf program. Acked-by: Andrii Nakryiko Signed-off-by: Jiri Olsa --- tools/include/linux/compiler.h| 4 +

[PATCHv2 1/3] uprobe: Add uretprobe syscall to speed up return probe

2024-04-02 Thread Jiri Olsa
Adding uretprobe syscall instead of trap to speed up return probe. At the moment the uretprobe setup/path is: - install entry uprobe - when the uprobe is hit, it overwrites probed function's return address on stack with address of the trampoline that contains breakpoint instruction

[PATCHv2 0/3] uprobe: uretprobe speed up

2024-04-02 Thread Jiri Olsa
hi, as part of the effort on speeding up the uprobes [0] coming with return uprobe optimization by using syscall instead of the trap on the uretprobe trampoline. The speed up depends on instruction type that uprobe is installed and depends on specific HW type, please check patch 1 for details. I

Re: [PATCH v2] selftests/sgx: Improve cgroup test scripts

2024-04-02 Thread Jarkko Sakkinen
On Tue Apr 2, 2024 at 4:42 AM EEST, Haitao Huang wrote: > Make cgroup test scripts ash compatible. > Remove cg-tools dependency. > Add documentation for functions. > > Tested with busybox on Ubuntu. > > Signed-off-by: Haitao Huang > --- > v2: > - Fixes for v2 cgroup > - Turn off swapping before

Re: [PATCH] selftests/sgx: Improve cgroup test scripts

2024-04-02 Thread Jarkko Sakkinen
On Tue Apr 2, 2024 at 1:55 AM EEST, Haitao Huang wrote: > On Mon, 01 Apr 2024 09:22:21 -0500, Jarkko Sakkinen > wrote: > > > On Sun Mar 31, 2024 at 8:44 PM EEST, Haitao Huang wrote: > >> Make cgroup test scripts ash compatible. > >> Remove cg-tools dependency. > >> Add documentation for

Re: [PATCH v3 6/7] KVM: arm64: Participate in bitmap-based PTE aging

2024-04-02 Thread Marc Zyngier
On Tue, 02 Apr 2024 05:06:56 +0100, Yu Zhao wrote: > > On Mon, Apr 1, 2024 at 7:30 PM James Houghton wrote: > > > > Participate in bitmap-based aging while grabbing the KVM MMU lock for > > reading. Ideally we wouldn't need to grab this lock at all, but that > > would require a more intrustive

Re: [PATCH v3 6/7] KVM: arm64: Participate in bitmap-based PTE aging

2024-04-02 Thread Oliver Upton
On Tue, Apr 02, 2024 at 12:06:56AM -0400, Yu Zhao wrote: > On Mon, Apr 1, 2024 at 7:30 PM James Houghton wrote: > > Suggested-by: Yu Zhao > > Thanks but I did not suggest this. Entirely up to you, but I would still want to credit everyone who contributed to a feature even if the underlying

[PATCH] dax/bus.c: replace WARN_ON_ONCE() with lockdep asserts

2024-04-02 Thread Vishal Verma
v_dax, struct resource *res, r struct device *dev = _dax->dev; int rc; - WARN_ON_ONCE(!rwsem_is_locked(_region_rwsem)); + lockdep_assert_held_write(_region_rwsem); if (dev_WARN_ONCE(dev, !size, "deletion is handled by dev_dax_shrink\n"))