[PATCH v3 11/11] arm64: dts: qcom: sm6115-pro1x: Enable ATH10K WLAN

2024-07-31 Thread Dang Huynh
Enable onboard Wi-Fi on the F(x)tec Pro1X. For reference, HW/SW identifies as: qmi chip_id 0x120 chip_family 0x4007 board_id 0xff soc_id 0x4067 qmi fw_version 0x324103d6 fw_build_timestamp 2021-12-02 08:20 fw_build_id QC_IMAGE_VERSION_STRING=WLAN.HL.3.2.4-00982-QCAHLSWMTPLZ-1 Reviewed-by:

[PATCH v3 10/11] arm64: dts: qcom: sm6115-pro1x: Enable remoteprocs

2024-07-31 Thread Dang Huynh
Enable [A,C]DSP and MPSS remote processor on this device. Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts

[PATCH v3 09/11] arm64: dts: qcom: sm6115-pro1x: Enable RGB LED

2024-07-31 Thread Dang Huynh
This device has an RGB LED. It is used for notifications. Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 27 + 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts

[PATCH v3 08/11] arm64: dts: qcom: sm6115-pro1x: Add PMI632 Type-C property

2024-07-31 Thread Dang Huynh
The USB-C port is used for powering external devices and transfer data from/to them. Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 51 +++-- 1 file changed, 48 insertions(+), 3 deletions(-) diff --git

[PATCH v3 07/11] arm64: dts: qcom: sm6115-pro1x: Hook up USB3 SS

2024-07-31 Thread Dang Huynh
The F(x)tec Pro1X supports USB 3.0 through it's USB-C port. Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts

[PATCH v3 06/11] arm64: dts: qcom: sm6115-pro1x: Enable MDSS and GPU

2024-07-31 Thread Dang Huynh
Fxtec Pro1x uses the same display (BOE BF060Y8M-AJ0) as Pro1. Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 84 +++-- 1 file changed, 80 insertions(+), 4 deletions(-) diff --git

[PATCH v3 05/11] arm64: dts: qcom: sm6115-pro1x: Enable SD card slot

2024-07-31 Thread Dang Huynh
Fxtec Pro1X has two card slots and allow either 2xSIM cards or 1xSIM, 1xSD Card configuration. Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 32 + 1 file changed, 32 insertions(+) diff --git

[PATCH v3 04/11] arm64: dts: qcom: sm6115-pro1x: Add Caps Lock LED

2024-07-31 Thread Dang Huynh
The Pro1X has a caps lock LED on the keyboard. Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 14 ++ 1 file changed, 14 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts

[PATCH v3 03/11] arm64: dts: qcom: sm6115-pro1x: Add Goodix Touchscreen

2024-07-31 Thread Dang Huynh
The Fxtec Pro1X touchscreen uses Goodix GT9286 chip. Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 49 + 1 file changed, 49 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts

[PATCH v3 02/11] arm64: dts: qcom: sm6115-pro1x: Add PCA9534 IO Expander

2024-07-31 Thread Dang Huynh
F(x)tec Pro1X comes with PCA9534 IO Expander, it is used for enabling touch screen VDD/VDDIO and keyboard's caps lock LED. Reviewed-by: Konrad Dybcio Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 21 + 1 file changed, 21 insertions(+) diff

[PATCH v3 01/11] arm64: dts: qcom: sm6115-pro1x: Add Hall Switch and Camera Button

2024-07-31 Thread Dang Huynh
The Pro1X has a flip keyboard and a single-state camera button. Signed-off-by: Dang Huynh --- arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts | 34 +++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm6115-fxtec-pro1x.dts

[PATCH v3 00/11] F(x)tec Pro1X feature expansion

2024-07-31 Thread Dang Huynh
This patch series expand F(x)tec Pro1X (QX1050) device tree to support various components of the device. Most notably: + SD Card slot + Touchscreen + MDSS, DRM display panel + WLAN (ATH10K) + Hall sensor and camera button This patch series has been tested on Buildroot Linux with TQFTPSERV and

Re: [PATCH v2 5/5] uprobes: make uprobe_register() return struct uprobe *

2024-07-30 Thread Google
On Mon, 29 Jul 2024 15:45:35 +0200 Oleg Nesterov wrote: > This way uprobe_unregister() and uprobe_apply() can use "struct uprobe *" > rather than inode + offset. This simplifies the code and allows to avoid > the unnecessary find_uprobe() + put_uprobe() in these functions. > > TODO:

Re: [PATCH v2 4/5] uprobes: kill uprobe_register_refctr()

2024-07-30 Thread Google
On Mon, 29 Jul 2024 15:45:30 +0200 Oleg Nesterov wrote: > It doesn't make any sense to have 2 versions of _register(). Note that > trace_uprobe_enable(), the only user of uprobe_register(), doesn't need > to check tu->ref_ctr_offset to decide which one should be used, it could > safely pass

Re: [PATCH v1] MAINTAINERS: add me as reviewer of AF_VSOCK and virtio-vsock

2024-07-30 Thread Arseniy Krasnov
On 31.07.2024 00:54, Michael S. Tsirkin wrote: > On Tue, Jul 30, 2024 at 08:47:07AM -0700, Jakub Kicinski wrote: >> On Sun, 28 Jul 2024 21:33:25 +0300 Arseniy Krasnov wrote: >>> I'm working on AF_VSOCK and virtio-vsock. >> >> If you want to review the code perhaps you can use lore+lei >> and

Re: [PATCH] x86/cpufeatures: SGX: Adjust the error message when BIOS does not support SGX

2024-07-30 Thread WangYuli
On 2024/7/31 06:48, Huang, Kai wrote: FWIW, this could easily happen with a virtual machine, e.g. running an old QEMU with `-cpu host`. Hmm.. it appears so, if the old Qemu doesn't have SGX support. Thanks. Perhaps "SGX disabled or unsupported by BIOS." or "SGX not enabled by BIOS" is

Re: [PATCH v11 10/12] arm64: Kconfig.platforms: Add config for Marvell PXA1908 platform

2024-07-30 Thread kernel test robot
Hi Duje, kernel test robot noticed the following build warnings: [auto build test WARNING on 8400291e289ee6b2bf9779ff1c83a291501f017b] url: https://github.com/intel-lab-lkp/linux/commits/Duje-Mihanovi-via-B4-Relay/clk-mmp-Switch-to-use-struct-u32_fract-instead-of-custom-one/20240730-204129

Re: [PATCH] x86/cpufeatures: SGX: Adjust the error message when BIOS does not support SGX

2024-07-30 Thread WangYuli
On 2024/7/30 19:57, Huang, Kai wrote: +linux-sgx list, Jarkko, Haitao. This message is only printed when SGX is reported in CPUID but is not enabled in the FEAT_CTL MSR. I can only recall this can happen when the BIOS actually provides an option for the user to turn on/off SGX, in which case

Re: [PATCH v8 3/3] vdpa/mlx5: Add the support of set mac address

2024-07-30 Thread Jason Wang
On Wed, Jul 31, 2024 at 11:17 AM Cindy Lu wrote: > > Add the function to support setting the MAC address. > For vdpa/mlx5, the function will use mlx5_mpfs_add_mac > to set the mac address > > Tested in ConnectX-6 Dx device > > Signed-off-by: Cindy Lu > --- Acked-by: Jason Wang Thanks

Re: [PATCH v8 2/3] vdpa_sim_net: Add the support of set mac address

2024-07-30 Thread Jason Wang
On Wed, Jul 31, 2024 at 11:17 AM Cindy Lu wrote: > > Add the function to support setting the MAC address. > For vdpa_sim_net, the driver will write the MAC address > to the config space, and other devices can implement > their own functions to support this. > > Signed-off-by: Cindy Lu > ---

Re: [PATCH v8 1/3] vdpa: support set mac address from vdpa tool

2024-07-30 Thread Jason Wang
On Wed, Jul 31, 2024 at 11:17 AM Cindy Lu wrote: > > Add new UAPI to support the mac address from vdpa tool > Function vdpa_nl_cmd_dev_attr_set_doit() will get the > new MAC address from the vdpa tool and then set it to the device. > > The usage is: vdpa dev set name vdpa_name mac

[PATCH v8 3/3] vdpa/mlx5: Add the support of set mac address

2024-07-30 Thread Cindy Lu
Add the function to support setting the MAC address. For vdpa/mlx5, the function will use mlx5_mpfs_add_mac to set the mac address Tested in ConnectX-6 Dx device Signed-off-by: Cindy Lu --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 28 1 file changed, 28 insertions(+)

[PATCH v8 2/3] vdpa_sim_net: Add the support of set mac address

2024-07-30 Thread Cindy Lu
Add the function to support setting the MAC address. For vdpa_sim_net, the driver will write the MAC address to the config space, and other devices can implement their own functions to support this. Signed-off-by: Cindy Lu --- drivers/vdpa/vdpa_sim/vdpa_sim_net.c | 21 - 1

[PATCH v8 1/3] vdpa: support set mac address from vdpa tool

2024-07-30 Thread Cindy Lu
Add new UAPI to support the mac address from vdpa tool Function vdpa_nl_cmd_dev_attr_set_doit() will get the new MAC address from the vdpa tool and then set it to the device. The usage is: vdpa dev set name vdpa_name mac **:**:**:**:**:** Here is example: root@L1# vdpa -jp dev config show vdpa0

[PATCH v8 0/3] vdpa: support set mac address from vdpa tool

2024-07-30 Thread Cindy Lu
Add support for setting the MAC address using the VDPA tool. This feature will allow setting the MAC address using the VDPA tool. For example, in vdpa_sim_net, the implementation sets the MAC address to the config space. However, for other drivers, they can implement their own function, not

[PATCH V4 net-next 3/3] virtio-net: synchronize operstate with admin state on up/down

2024-07-30 Thread Jason Wang
This patch synchronize operstate with admin state per RFC2863. This is done by trying to toggle the carrier upon open/close and synchronize with the config change work. This allows propagate status correctly to stacked devices like: ip link add link enp0s3 macvlan0 type macvlan ip link set link

[PATCH V4 net-next 2/3] virtio: allow driver to disable the configure change notification

2024-07-30 Thread Jason Wang
Sometime, it would be useful to disable the configure change notification from the driver. So this patch allows this by introducing a variable config_change_driver_disabled and only allow the configure change notification callback to be triggered when it is allowed by both the virtio core and the

[PATCH V4 net-next 1/3] virtio: rename virtio_config_enabled to virtio_config_core_enabled

2024-07-30 Thread Jason Wang
Following patch will allow the config interrupt to be disabled by a specific driver via another boolean. So this patch renames virtio_config_enabled and relevant helpers to virtio_config_core_enabled. Cc: Venkat Venkatsubra Cc: Gia-Khanh Nguyen Signed-off-by: Jason Wang ---

[PATCH V4 net-next 0/3] virtio-net: synchronize op/admin state

2024-07-30 Thread Jason Wang
Hi All: This series tries to synchronize the operstate with the admin state which allows the lower virtio-net to propagate the link status to the upper devices like macvlan. This is done by toggling carrier during ndo_open/stop while doing other necessary serialization about the carrier settings

Re: [PATCH 3/3] tracing/kprobes: Use APIs that matches symbols with .llvm. suffix

2024-07-30 Thread Song Liu
Hi Masami, > On Jul 30, 2024, at 6:04 AM, Masami Hiramatsu wrote: > > On Mon, 29 Jul 2024 17:54:33 -0700 > Song Liu wrote: > >> Use the new kallsyms APIs that matches symbols name with .llvm. >> suffix. This allows userspace tools to get kprobes on the expected >> function name, while the

Re: [PATCH 2/3] kallsyms: Add APIs to match symbol without .llmv. suffix.

2024-07-30 Thread Song Liu
Hi Masami, > On Jul 30, 2024, at 6:03 AM, Masami Hiramatsu wrote: > > On Mon, 29 Jul 2024 17:54:32 -0700 > Song Liu wrote: > >> With CONFIG_LTO_CLANG=y, the compiler may add suffix to function names >> to avoid duplication. This causes confusion with users of kallsyms. >> On one hand, users

Re: [PATCH v4 1/3] LoongArch: KVM: Enable paravirt feature control from VMM

2024-07-30 Thread kernel test robot
Hi Bibo, kernel test robot noticed the following build errors: [auto build test ERROR on 8400291e289ee6b2bf9779ff1c83a291501f017b] url: https://github.com/intel-lab-lkp/linux/commits/Bibo-Mao/LoongArch-KVM-Enable-paravirt-feature-control-from-VMM/20240730-155814 base:

Re: [PATCH] x86/cpufeatures: SGX: Adjust the error message when BIOS does not support SGX

2024-07-30 Thread Huang, Kai
On Tue, 2024-07-30 at 10:56 -0700, Sean Christopherson wrote: > On Tue, Jul 30, 2024, Kai Huang wrote: > > On Tue, 2024-07-30 at 10:49 +0800, WangYuli wrote: > > > When SGX is not supported by the BIOS, we still output the error > > > 'SGX disabled by BIOS', which can be confusing since there

Re: [PATCH 3/3] uprobes: shift put_uprobe() from delete_uprobe() to uprobe_unregister()

2024-07-30 Thread Andrii Nakryiko
On Tue, Jul 30, 2024 at 1:55 PM Peter Zijlstra wrote: > > On Tue, Jul 30, 2024 at 08:08:49AM -0700, Andrii Nakryiko wrote: > > Also, can you please push this and your previous patch set into some > > branch somewhere I can pull from, preferably based on the latest > > linux-trace's

Re: [PATCH v1] MAINTAINERS: add me as reviewer of AF_VSOCK and virtio-vsock

2024-07-30 Thread Michael S. Tsirkin
On Tue, Jul 30, 2024 at 08:47:07AM -0700, Jakub Kicinski wrote: > On Sun, 28 Jul 2024 21:33:25 +0300 Arseniy Krasnov wrote: > > I'm working on AF_VSOCK and virtio-vsock. > > If you want to review the code perhaps you can use lore+lei > and filter on the paths? > > Adding people to MAINTAINERS is

Re: [PATCH 3/3] uprobes: shift put_uprobe() from delete_uprobe() to uprobe_unregister()

2024-07-30 Thread Peter Zijlstra
On Tue, Jul 30, 2024 at 08:08:49AM -0700, Andrii Nakryiko wrote: > Also, can you please push this and your previous patch set into some > branch somewhere I can pull from, preferably based on the latest > linux-trace's probes/for-next? Thanks! I can stick then in tip/perf/core if you want.

Re: [PATCH bpf-next v2] bpf: kprobe: remove unused declaring of bpf_kprobe_override

2024-07-30 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to bpf/bpf-next.git (master) by Andrii Nakryiko : On Tue, 30 Jul 2024 13:37:33 +0800 you wrote: > After the commit 5ad2f102 ("tracing/kprobe: bpf: Compare instruction > pointer with original one"), "bpf_kprobe_override" is not used anywhere > anymore, and we can

Re: [PATCH v3] tracing: Have format file honor EVENT_FILE_FL_FREED

2024-07-30 Thread Mathias Krause
On 30.07.24 17:15, Steven Rostedt wrote: > On Tue, 30 Jul 2024 11:06:57 -0400 > Steven Rostedt wrote: > >> Link: >> https://lore.kernel.org/all/20240719204701.1605950-1-mini...@grsecurity.net/ >> >> Cc: sta...@vger.kernel.org >> Fixes: b63db58e2fa5d ("eventfs/tracing: Add callback for release

Re: [PATCH 0/3] uprobes: simplify _unregister paths

2024-07-30 Thread Jiri Olsa
On Tue, Jul 30, 2024 at 08:10:27AM -0700, Andrii Nakryiko wrote: > On Tue, Jul 30, 2024 at 5:34 AM Oleg Nesterov wrote: > > > > On top of > > > > [PATCH v2 0/5] uprobes: misc cleanups/simplifications > > https://lore.kernel.org/all/2024072913.ga12...@redhat.com/ > > > > I sent

[PATCH net-next v4 2/2] vsock/virtio: avoid queuing packets when intermediate queue is empty

2024-07-30 Thread Luigi Leonardi via B4 Relay
From: Luigi Leonardi When the driver needs to send new packets to the device, it always queues the new sk_buffs into an intermediate queue (send_pkt_queue) and schedules a worker (send_pkt_work) to then queue them into the virtqueue exposed to the device. This increases the chance of batching,

[PATCH net-next v4 1/2] vsock/virtio: refactor virtio_transport_send_pkt_work

2024-07-30 Thread Luigi Leonardi via B4 Relay
From: Marco Pinna Preliminary patch to introduce an optimization to the enqueue system. All the code used to enqueue a packet into the virtqueue is removed from virtio_transport_send_pkt_work() and moved to the new virtio_transport_send_skb() function. Co-developed-by: Luigi Leonardi

[PATCH net-next v4 0/2] vsock: avoid queuing on intermediate queue if possible

2024-07-30 Thread Luigi Leonardi via B4 Relay
This series introduces an optimization for vsock/virtio to reduce latency and increase the throughput: When the guest sends a packet to the host, and the intermediate queue (send_pkt_queue) is empty, if there is enough space, the packet is put directly in the virtqueue. v3->v4 While running

Re: [PATCH v2 2/5] dt-bindings: soc: qcom: smd-rpm: add generic compatibles

2024-07-30 Thread Rob Herring (Arm)
On Mon, 29 Jul 2024 22:52:15 +0300, Dmitry Baryshkov wrote: > Add two generic compatibles to all smd-rpm devices, they follow the same > RPMSG protocol and are either accessed through the smd-edge or through > the glink-edge. > > Signed-off-by: Dmitry Baryshkov > --- >

[PATCH net-next v4 1/3] vsock: add support for SIOCOUTQ ioctl

2024-07-30 Thread Luigi Leonardi via B4 Relay
From: Luigi Leonardi Add support for ioctl(s) in AF_VSOCK. The only ioctl available is SIOCOUTQ/TIOCOUTQ, which returns the number of unsent bytes in the socket. This information is transport-specific and is delegated to them using a callback. Suggested-by: Daan De Meyer Signed-off-by: Luigi

[PATCH net-next v4 3/3] test/vsock: add ioctl unsent bytes test

2024-07-30 Thread Luigi Leonardi via B4 Relay
From: Luigi Leonardi Introduce two tests, one for SOCK_STREAM and one for SOCK_SEQPACKET, which use SIOCOUTQ ioctl to check that the number of unsent bytes is zero after delivering a packet. vsock_connect and vsock_accept are no longer static: this is to create more generic tests, allowing code

[PATCH net-next v4 2/3] vsock/virtio: add SIOCOUTQ support for all virtio based transports

2024-07-30 Thread Luigi Leonardi via B4 Relay
From: Luigi Leonardi Introduce support for virtio_transport_unsent_bytes ioctl for virtio_transport, vhost_vsock and vsock_loopback. For all transports the unsent bytes counter is incremented in virtio_transport_get_credit. In virtio_transport (G2H) and in vhost-vsock (H2G) the counter is

[PATCH net-next v4 0/3] ioctl support for AF_VSOCK and virtio-based transports

2024-07-30 Thread Luigi Leonardi via B4 Relay
This patch series introduce the support for ioctl(s) in AF_VSOCK. The only ioctl currently available is SIOCOUTQ, which returns the number of unsent or unacked packets. It is available for SOCK_STREAM, SOCK_SEQPACKET and SOCK_DGRAM. As this information is transport-dependent, a new optional

[PATCH v3 4/4] EDAC/mce_amd: Add support for FRU Text in MCA

2024-07-30 Thread Avadhut Naik
From: Yazen Ghannam A new "FRU Text in MCA" feature is defined where the Field Replaceable Unit (FRU) Text for a device is represented by a string in the new MCA_SYND1 and MCA_SYND2 registers. This feature is supported per MCA bank, and it is advertised by the McaFruTextInMca bit

[PATCH v3 3/4] x86/mce/apei: Handle variable register array size

2024-07-30 Thread Avadhut Naik
From: Yazen Ghannam ACPI Boot Error Record Table (BERT) is being used by the kernel to report errors that occurred in a previous boot. On some modern AMD systems, these very errors within the BERT are reported through the x86 Common Platform Error Record (CPER) format which consists of one or

[PATCH v3 2/4] x86/mce, EDAC/mce_amd: Add support for new MCA_SYND{1,2} registers

2024-07-30 Thread Avadhut Naik
Starting with Zen4, AMD's Scalable MCA systems incorporate two new registers: MCA_SYND1 and MCA_SYND2. These registers will include supplemental error information in addition to the existing MCA_SYND register. The data within these registers is considered valid if MCA_STATUS[SyndV] is set.

[PATCH v3 1/4] x86/mce: Add wrapper for struct mce to export vendor specific info

2024-07-30 Thread Avadhut Naik
Currently, exporting new additional machine check error information involves adding new fields for the same at the end of the struct mce. This additional information can then be consumed through mcelog or tracepoint. However, as new MSRs are being added (and will be added in the future) by CPU

[PATCH v3 0/4] MCE wrapper and support for new SMCA syndrome MSRs

2024-07-30 Thread Avadhut Naik
This patchset adds a new wrapper for struct mce to prevent its bloating and export vendor specific error information. Additionally, support is also introduced for two new "syndrome" MSRs used in newer AMD Scalable MCA (SMCA) systems. Also, a new "FRU Text in MCA" feature that uses these new

Re: [PATCH] x86/cpufeatures: SGX: Adjust the error message when BIOS does not support SGX

2024-07-30 Thread Sean Christopherson
On Tue, Jul 30, 2024, Kai Huang wrote: > On Tue, 2024-07-30 at 10:49 +0800, WangYuli wrote: > > When SGX is not supported by the BIOS, we still output the error > > 'SGX disabled by BIOS', which can be confusing since there might not be > > an SGX-related option in the BIOS settings. > >

Re: [PATCH 3/3] uprobes: shift put_uprobe() from delete_uprobe() to uprobe_unregister()

2024-07-30 Thread Andrii Nakryiko
On Tue, Jul 30, 2024 at 10:17 AM Oleg Nesterov wrote: > > Thanks for looking at this! > > On 07/30, Andrii Nakryiko wrote: > > > > BTW, do you have anything against me changing refcounting so that > > uprobes_tree itself doesn't hold a refcount, and all the refcounting > > is done based on

Re: [PATCH 3/3] uprobes: shift put_uprobe() from delete_uprobe() to uprobe_unregister()

2024-07-30 Thread Oleg Nesterov
Thanks for looking at this! On 07/30, Andrii Nakryiko wrote: > > BTW, do you have anything against me changing refcounting so that > uprobes_tree itself doesn't hold a refcount, and all the refcounting > is done based on consumers holding implicit refcount and whatever > temporary get/put uprobe

Re: [PATCH v1] MAINTAINERS: add me as reviewer of AF_VSOCK and virtio-vsock

2024-07-30 Thread Arseniy Krasnov
On 30.07.2024 18:47, Jakub Kicinski wrote: > On Sun, 28 Jul 2024 21:33:25 +0300 Arseniy Krasnov wrote: >> I'm working on AF_VSOCK and virtio-vsock. > > If you want to review the code perhaps you can use lore+lei > and filter on the paths? > > Adding people to MAINTAINERS is somewhat fraught.

Re: [PATCH] trace-cmd: Add meson build targets to Makefile

2024-07-30 Thread Daniel Wagner
On Wed, Jul 24, 2024 at 02:42:47PM GMT, Steven Rostedt wrote: > From: "Steven Rostedt (Google)" > > Add make targets for building with meson: > > make meson > make meson_install > make meson_docs > > Signed-off-by: Steven Rostedt (Google) Reviewed-by: Daniel Wagner

[PATCH v1] platform/x86/intel/ifs: trace: Avoid hole in ifs_status trace struct

2024-07-30 Thread Kuppuswamy Sathyanarayanan
Rearrange the ifs_status trace struct members to eliminate a 4-byte alignment hole. It reduces memory overhead. Suggested-by: Steven Rostedt (Google) Reviewed-by: Jithu Joseph Reviewed-by: Ashok Raj Signed-off-by: Kuppuswamy Sathyanarayanan --- include/trace/events/intel_ifs.h | 2 +- 1

Re: [PATCH v1] MAINTAINERS: add me as reviewer of AF_VSOCK and virtio-vsock

2024-07-30 Thread Jakub Kicinski
On Sun, 28 Jul 2024 21:33:25 +0300 Arseniy Krasnov wrote: > I'm working on AF_VSOCK and virtio-vsock. If you want to review the code perhaps you can use lore+lei and filter on the paths? Adding people to MAINTAINERS is somewhat fraught.

Re: [PATCH v3 6/8] pwm: Add tracing for waveform callbacks

2024-07-30 Thread Uwe Kleine-König
On Tue, Jul 30, 2024 at 10:12:46AM -0400, Steven Rostedt wrote: > On Mon, 29 Jul 2024 16:34:22 +0200 > Uwe Kleine-König wrote: > > > diff --git a/include/trace/events/pwm.h b/include/trace/events/pwm.h > > index 8022701c446d..8ba898fd335c 100644 > > --- a/include/trace/events/pwm.h > > +++

Re: [PATCH v3] tracing: Have format file honor EVENT_FILE_FL_FREED

2024-07-30 Thread Steven Rostedt
On Tue, 30 Jul 2024 11:06:57 -0400 Steven Rostedt wrote: > Link: > https://lore.kernel.org/all/20240719204701.1605950-1-mini...@grsecurity.net/ > > Cc: sta...@vger.kernel.org > Fixes: b63db58e2fa5d ("eventfs/tracing: Add callback for release of an > eventfs_inode") > Reported-by: Mathias

Re: [PATCH] pwm: Make info in traces about affected pwm more useful

2024-07-30 Thread Uwe Kleine-König
On Tue, Jul 30, 2024 at 10:39:10AM -0400, Steven Rostedt wrote: > On Tue, 30 Jul 2024 09:22:53 +0200 > Uwe Kleine-König wrote: > > > I think the patch is obvious enough to be ok even without the tracing > > maintainer's blessing. I applied it to > >

Re: [PATCH 0/3] uprobes: simplify _unregister paths

2024-07-30 Thread Andrii Nakryiko
On Tue, Jul 30, 2024 at 5:34 AM Oleg Nesterov wrote: > > On top of > > [PATCH v2 0/5] uprobes: misc cleanups/simplifications > https://lore.kernel.org/all/2024072913.ga12...@redhat.com/ > > I sent yesterday. > > Oleg. > --- > Both patch sets look good to me. It would be nice

Re: [PATCH 3/3] uprobes: shift put_uprobe() from delete_uprobe() to uprobe_unregister()

2024-07-30 Thread Andrii Nakryiko
On Tue, Jul 30, 2024 at 5:35 AM Oleg Nesterov wrote: > > Kill the extra get_uprobe() + put_uprobe() in uprobe_unregister() and > move the possibly final put_uprobe() from delete_uprobe() to its only > caller, uprobe_unregister(). > > Signed-off-by: Oleg Nesterov > --- > kernel/events/uprobes.c

[PATCH v3] tracing: Have format file honor EVENT_FILE_FL_FREED

2024-07-30 Thread Steven Rostedt
From: Steven Rostedt When eventfs was introduced, special care had to be done to coordinate the freeing of the file meta data with the files that are exposed to user space. The file meta data would have a ref count that is set when the file is created and would be decremented and freed after the

Re: [PATCH 2/3] uprobes: fold __uprobe_unregister() into uprobe_unregister()

2024-07-30 Thread Andrii Nakryiko
On Tue, Jul 30, 2024 at 5:35 AM Oleg Nesterov wrote: > > Fold __uprobe_unregister() into its single caller, uprobe_unregister(). > A separate patch to simplify the next change. > > Signed-off-by: Oleg Nesterov > --- > kernel/events/uprobes.c | 25 ++--- > 1 file changed, 10

Re: [PATCH 1/3] uprobes: change uprobe_register() to use uprobe_unregister() instead of __uprobe_unregister()

2024-07-30 Thread Andrii Nakryiko
On Tue, Jul 30, 2024 at 5:34 AM Oleg Nesterov wrote: > > If register_for_each_vma() fails uprobe_register() can safely drop > uprobe->register_rwsem and use uprobe_unregister(). There is no worry > about the races with another register/unregister, consumer_add() was > already called so this case

Re: [PATCH] pwm: Make info in traces about affected pwm more useful

2024-07-30 Thread Steven Rostedt
On Tue, 30 Jul 2024 09:22:53 +0200 Uwe Kleine-König wrote: > I think the patch is obvious enough to be ok even without the tracing > maintainer's blessing. I applied it to > https://git.kernel.org/pub/scm/linux/kernel/git/ukleinek/linux.git > pwm/for-next > . No problem. Thanks for the Cc. I

Re: [PATCH v3 6/8] pwm: Add tracing for waveform callbacks

2024-07-30 Thread Steven Rostedt
On Mon, 29 Jul 2024 16:34:22 +0200 Uwe Kleine-König wrote: > diff --git a/include/trace/events/pwm.h b/include/trace/events/pwm.h > index 8022701c446d..8ba898fd335c 100644 > --- a/include/trace/events/pwm.h > +++ b/include/trace/events/pwm.h > @@ -8,15 +8,135 @@ > #include > #include > >

Re: [PATCH 3/3] tracing/kprobes: Use APIs that matches symbols with .llvm. suffix

2024-07-30 Thread Google
On Mon, 29 Jul 2024 17:54:33 -0700 Song Liu wrote: > Use the new kallsyms APIs that matches symbols name with .llvm. > suffix. This allows userspace tools to get kprobes on the expected > function name, while the actual symbol has a .llvm. suffix. > _kprobe_addr@kernel/kprobes.c may also fail

Re: [PATCH 2/3] kallsyms: Add APIs to match symbol without .llmv. suffix.

2024-07-30 Thread Google
On Mon, 29 Jul 2024 17:54:32 -0700 Song Liu wrote: > With CONFIG_LTO_CLANG=y, the compiler may add suffix to function names > to avoid duplication. This causes confusion with users of kallsyms. > On one hand, users like livepatch are required to match the symbols > exactly. On the other hand,

[PATCH 3/3] uprobes: shift put_uprobe() from delete_uprobe() to uprobe_unregister()

2024-07-30 Thread Oleg Nesterov
Kill the extra get_uprobe() + put_uprobe() in uprobe_unregister() and move the possibly final put_uprobe() from delete_uprobe() to its only caller, uprobe_unregister(). Signed-off-by: Oleg Nesterov --- kernel/events/uprobes.c | 14 +- 1 file changed, 9 insertions(+), 5 deletions(-)

[PATCH 2/3] uprobes: fold __uprobe_unregister() into uprobe_unregister()

2024-07-30 Thread Oleg Nesterov
Fold __uprobe_unregister() into its single caller, uprobe_unregister(). A separate patch to simplify the next change. Signed-off-by: Oleg Nesterov --- kernel/events/uprobes.c | 25 ++--- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/kernel/events/uprobes.c

[PATCH 1/3] uprobes: change uprobe_register() to use uprobe_unregister() instead of __uprobe_unregister()

2024-07-30 Thread Oleg Nesterov
If register_for_each_vma() fails uprobe_register() can safely drop uprobe->register_rwsem and use uprobe_unregister(). There is no worry about the races with another register/unregister, consumer_add() was already called so this case doesn't differ from _unregister() right after the successful

[PATCH 0/3] uprobes: simplify _unregister paths

2024-07-30 Thread Oleg Nesterov
On top of [PATCH v2 0/5] uprobes: misc cleanups/simplifications https://lore.kernel.org/all/2024072913.ga12...@redhat.com/ I sent yesterday. Oleg. --- kernel/events/uprobes.c | 47 --- 1 file changed, 24 insertions(+), 23

Re: [PATCH] x86/cpufeatures: SGX: Adjust the error message when BIOS does not support SGX

2024-07-30 Thread Huang, Kai
On Tue, 2024-07-30 at 10:49 +0800, WangYuli wrote: > When SGX is not supported by the BIOS, we still output the error > 'SGX disabled by BIOS', which can be confusing since there might not be > an SGX-related option in the BIOS settings. +linux-sgx list, Jarkko, Haitao. This message is only

Re: [PATCH v4 2/2] rust: add tracepoint support

2024-07-30 Thread Gary Guo
On Fri, 28 Jun 2024 13:23:32 + Alice Ryhl wrote: > Make it possible to have Rust code call into tracepoints defined by C > code. It is still required that the tracepoint is declared in a C > header, and that this header is included in the input to bindgen. > > Signed-off-by: Alice Ryhl

[PATCH v11 10/12] arm64: Kconfig.platforms: Add config for Marvell PXA1908 platform

2024-07-30 Thread Duje Mihanović via B4 Relay
From: 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

[PATCH v11 11/12] arm64: dts: Add DTS for Marvell PXA1908 and samsung,coreprimevelte

2024-07-30 Thread Duje Mihanović via B4 Relay
From: 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ć --- arch/arm64/boot/dts/marvell/Makefile | 3 + .../dts/marvell/pxa1908-samsung-coreprimevelte.dts | 328

[PATCH v11 12/12] MAINTAINERS: add myself as Marvell PXA1908 maintainer

2024-07-30 Thread Duje Mihanović via B4 Relay
From: 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 42decde38320..40d14d11a09a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS

[PATCH v11 08/12] clk: mmp: Add Marvell PXA1908 MPMU driver

2024-07-30 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add driver for the MPMU controller block on Marvell's PXA1908 SoC. The driver is incomplete, currently only supporting the fixed PLL1; dynamic PLLs 2-4 and CPU/DDR/AXI clock support is missing. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +-

[PATCH v11 05/12] clk: mmp: Add Marvell PXA1908 APBC driver

2024-07-30 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add driver for the APBC controller block found on Marvell's PXA1908 SoC. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +- drivers/clk/mmp/clk-pxa1908-apbc.c | 131 + 2 files changed, 132 insertions(+), 1

[PATCH v11 07/12] clk: mmp: Add Marvell PXA1908 APMU driver

2024-07-30 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add driver for the APMU controller block found on Marvell's PXA1908 SoC. This driver is incomplete, lacking support for (at least) GPU, VPU, DSI and CCIC (camera related) clocks. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile | 2 +-

[PATCH v11 06/12] clk: mmp: Add Marvell PXA1908 APBCP driver

2024-07-30 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add driver for the APBCP controller block found on Marvell's PXA1908 SoC. Signed-off-by: Duje Mihanović --- drivers/clk/mmp/Makefile| 2 +- drivers/clk/mmp/clk-pxa1908-apbcp.c | 84 + 2 files changed, 85 insertions(+), 1

[PATCH v11 09/12] dt-bindings: marvell: Document PXA1908 SoC

2024-07-30 Thread Duje Mihanović via B4 Relay
From: 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

[PATCH v11 03/12] pinctrl: single: add marvell,pxa1908-padconf compatible

2024-07-30 Thread Duje Mihanović via B4 Relay
From: 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

[PATCH v11 01/12] clk: mmp: Switch to use struct u32_fract instead of custom one

2024-07-30 Thread Duje Mihanović via B4 Relay
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 Reviewed-by: Stephen Boyd Signed-off-by: Duje Mihanović ---

[PATCH v11 00/12] Initial Marvell PXA1908 support

2024-07-30 Thread Duje Mihanović via B4 Relay
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 v11 02/12] dt-bindings: pinctrl: pinctrl-single: add marvell,pxa1908-padconf compatible

2024-07-30 Thread Duje Mihanović via B4 Relay
From: 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,

[PATCH v11 04/12] dt-bindings: clock: Add Marvell PXA1908 clock bindings

2024-07-30 Thread Duje Mihanović via B4 Relay
From: Duje Mihanović Add dt bindings and documentation for the Marvell PXA1908 clock controller. Reviewed-by: Conor Dooley Reviewed-by: Stephen Boyd Signed-off-by: Duje Mihanović --- .../devicetree/bindings/clock/marvell,pxa1908.yaml | 48

Re: [PATCH v4 1/2] rust: add static_key_false

2024-07-30 Thread Gary Guo
On Fri, 28 Jun 2024 13:23:31 + Alice Ryhl wrote: > Add just enough support for static key so that we can use it from > tracepoints. Tracepoints rely on `static_key_false` even though it is > deprecated, so we add the same functionality to Rust. > > It is not possible to use the existing C

Re: [PATCH v4] x86/paravirt: Disable virt spinlock on bare metal

2024-07-30 Thread maobibo
On 2024/7/30 下午4:46, Chen Yu wrote: Hi Bibo, On 2024-07-30 at 09:21:45 +0800, maobibo wrote: Chenyu, Sorry to bother you, I am porting pv spinlock to LoongArch platform, I do not know the history about function virt_spin_lock(). When CONFIG_PARAVIRT_SPINLOCKS is enabled, there is

Re: [PATCH v4] x86/paravirt: Disable virt spinlock on bare metal

2024-07-30 Thread Chen Yu
Hi Bibo, On 2024-07-30 at 09:21:45 +0800, maobibo wrote: > Chenyu, > > Sorry to bother you, I am porting pv spinlock to LoongArch platform, I do > not know the history about function virt_spin_lock(). > > When CONFIG_PARAVIRT_SPINLOCKS is enabled, there is pv_enabled() before >

Re: [PATCH v2 4/5] ARM: dts: qcom: add generic compat string to RPM glink channels

2024-07-30 Thread Konrad Dybcio
On 29.07.2024 9:52 PM, Dmitry Baryshkov wrote: > Add the generic qcom,smd-rpm compatible to RPM nodes to follow the > schema. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH v2 5/5] arm64: dts: qcom: add generic compat string to RPM glink channels

2024-07-30 Thread Konrad Dybcio
On 29.07.2024 9:52 PM, Dmitry Baryshkov wrote: > Add the generic qcom,smd-rpm / qcom,glink-smd-rpm compatible to RPM > nodes to follow the schema. > > Signed-off-by: Dmitry Baryshkov > --- Reviewed-by: Konrad Dybcio Konrad

RE: [PATCH v2 2/2] remoteproc: imx_rproc: handle system off for i.MX7ULP

2024-07-30 Thread Peng Fan
> Subject: Re: [PATCH v2 2/2] remoteproc: imx_rproc: handle system off > for i.MX7ULP > > On Fri, Jul 19, 2024 at 04:49:04PM +0800, Peng Fan (OSS) wrote: > > From: Peng Fan > > > > The i.MX7ULP Cortex-A7 is under control of Cortex-M4. The > i.MX7ULP > > Linux poweroff and restart rely on rpmsg

[PATCH v4 3/3] irqchip/loongson-eiointc: Add extioi virt extension support

2024-07-30 Thread Bibo Mao
Interrupts can be routed to maximal four virtual CPUs with one external hardware interrupt. Add the extioi virt extension support so that Interrupts can be routed to 256 vcpus on hypervisor mode. Co-developed-by: Song Gao Signed-off-by: Song Gao Signed-off-by: Bibo Mao ---

[PATCH v4 1/3] LoongArch: KVM: Enable paravirt feature control from VMM

2024-07-30 Thread Bibo Mao
Export kernel paravirt features to user space, so that VMM can control the single paravirt feature. By default paravirt features will the same with kvm supported features if VMM does not set it. Also a new feature KVM_FEATURE_VIRT_EXTIOI is added which can be set from user space. This feature

[PATCH v4 2/3] LoongArch: KVM: Implement function kvm_para_has_feature

2024-07-30 Thread Bibo Mao
Function kvm_para_has_feature() is to detect supported paravirt features, it can be used by device driver to detect and enable paravirt features, such as extioi irqchip driver can detect KVM_FEATURE_VIRT_EXTIOI and do some optimization. Signed-off-by: Bibo Mao ---

[PATCH v4 0/3] Add extioi virt extension support

2024-07-30 Thread Bibo Mao
KVM_FEATURE_VIRT_EXTIOI is paravirt feature defined with EXTIOI interrupt controller, it can route interrupt to 256 CPUs and cpu Interrupt Pin IP0-IP7. Now irqchip is emulated in user space rather than kernel space, here interface is provide for VMM to pass it to KVM hyperviso. Also interface is

  1   2   3   4   5   6   7   8   9   10   >