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

2024-07-08 Thread Jason Wang
On Mon, Jul 8, 2024 at 2:56 PM 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 Great. > > Signed-off-by: Cindy Lu I guess this should be part of the ser

Re: [PATCH v3 1/2] vdpa: support set mac address from vdpa tool

2024-07-08 Thread Jason Wang
On Mon, Jul 8, 2024 at 2:48 PM 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 **:**:**:**:**:**

Re: [PATCH] vdpa_sim_blk: add `capacity` module parameter

2024-07-08 Thread Cindy Lu
On Fri, 5 Jul 2024 at 20:42, Stefano Garzarella wrote: > > On Fri, Jul 05, 2024 at 07:30:51AM GMT, Michael S. Tsirkin wrote: > >On Fri, Jul 05, 2024 at 01:28:21PM +0200, Stefano Garzarella wrote: > >> The vDPA block simulator always allocated a 128 MiB ram-disk, but some > >> filesystems (e.g. XFS

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

2024-07-08 Thread Jason Wang
On Mon, Jul 8, 2024 at 2:48 PM 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 > --- > driv

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

2024-07-08 Thread Cindy Lu
On Mon, 8 Jul 2024 at 15:06, Jason Wang wrote: > > On Mon, Jul 8, 2024 at 2:48 PM 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 functio

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

2024-07-08 Thread Dragos Tatulea
On Mon, 2024-07-08 at 14:55 +0800, 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 > --- > drivers/vdpa/mlx5/net/mlx5_vnet.c |

Re: [PATCH 0/4] remoteproc: k3-r5: Introduce suspend to ram support

2024-07-08 Thread Richard GENOUD
Le 01/07/2024 à 11:59, Hari Nagalla a écrit : On 6/21/24 10:00, Richard Genoud wrote: Richard Genoud (4):    remoteproc: k3-r5: Fix IPC-only mode detection    remoteproc: k3-r5: Introduce PM suspend/resume handlers    remoteproc: k3-r5: k3_r5_rproc_stop: code reorder    remoteproc: k3-r5: suppor

Re: [PATCH] vdpa_sim_blk: add `capacity` module parameter

2024-07-08 Thread Jason Wang
On Mon, Jul 8, 2024 at 3:06 PM Cindy Lu wrote: > > On Fri, 5 Jul 2024 at 20:42, Stefano Garzarella wrote: > > > > On Fri, Jul 05, 2024 at 07:30:51AM GMT, Michael S. Tsirkin wrote: > > >On Fri, Jul 05, 2024 at 01:28:21PM +0200, Stefano Garzarella wrote: > > >> The vDPA block simulator always alloc

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

2024-07-08 Thread Jason Wang
On Mon, Jul 8, 2024 at 3:19 PM Cindy Lu wrote: > > On Mon, 8 Jul 2024 at 15:06, Jason Wang wrote: > > > > On Mon, Jul 8, 2024 at 2:48 PM 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 con

Re: [PATCH] vdpa_sim_blk: add `capacity` module parameter

2024-07-08 Thread Stefano Garzarella
Hi Cindy, Jason, On Mon, Jul 08, 2024 at 03:59:34PM GMT, Jason Wang wrote: On Mon, Jul 8, 2024 at 3:06 PM Cindy Lu wrote: On Fri, 5 Jul 2024 at 20:42, Stefano Garzarella wrote: > > On Fri, Jul 05, 2024 at 07:30:51AM GMT, Michael S. Tsirkin wrote: > >On Fri, Jul 05, 2024 at 01:28:21PM +0200,

Re: [PATCH v3 1/2] vdpa: support set mac address from vdpa tool

2024-07-08 Thread kernel test robot
'--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Cindy-Lu/vdpa-support-set-mac-address-from-vdpa-tool/20240708-144942 base: linus/master patch link: https://lore.ke

Re: [RFC PATCH v3] ptp: Add vDSO-style vmclock support

2024-07-08 Thread Simon Horman
On Sat, Jul 06, 2024 at 04:14:39PM +0100, David Woodhouse wrote: > From: David Woodhouse > > The vmclock "device" provides a shared memory region with precision clock > information. By using shared memory, it is safe across Live Migration. > > Like the KVM PTP clock, this can convert TSC-based c

Re: [RFC PATCH v3] ptp: Add vDSO-style vmclock support

2024-07-08 Thread David Woodhouse
On Mon, 2024-07-08 at 10:17 +0100, Simon Horman wrote: > Hi David, > > As per my comment on v2, although it is harmless in this case, > it would be nicer to use strscpy() here and avoid fortification > warnings. > Oh, pants! I have fixed that; must have sent the wrong version. V4 coming up short

[RFC PATCH v4] ptp: Add vDSO-style vmclock support

2024-07-08 Thread David Woodhouse
From: David Woodhouse The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration. Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so o

Re: [PATCHv2 bpf-next 1/9] uprobe: Add support for session consumer

2024-07-08 Thread Peter Zijlstra
On Fri, Jul 05, 2024 at 03:38:12PM +0200, Jiri Olsa wrote: > > Agreed. BTW, even if the uprobe is removed, the ret_handler should be > > called? > > I think both 1 and 2 case, we should skip ret_handler. > > do you mean what happens when the uretprobe is installed and its consumer > is unregiste

Re: [PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-07-08 Thread Huacai Chen
On Mon, Jul 8, 2024 at 9:16 AM maobibo wrote: > > > > On 2024/7/6 下午5:41, Huacai Chen wrote: > > On Sat, Jul 6, 2024 at 2:59 PM maobibo wrote: > >> > >> Huacai, > >> > >> On 2024/7/6 上午11:00, Huacai Chen wrote: > >>> Hi, Bibo, > >>> > >>> On Fri, May 24, 2024 at 3:38 PM Bibo Mao wrote: > >

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Dragos Tatulea
On Wed, 2024-07-03 at 18:01 +0200, Eugenio Perez Martin wrote: > On Wed, Jun 26, 2024 at 11:27 AM Dragos Tatulea wrote: > > > > On Wed, 2024-06-19 at 17:54 +0200, Eugenio Perez Martin wrote: > > > On Mon, Jun 17, 2024 at 5:09 PM Dragos Tatulea > > > wrote: > > > > > > > > Currently, hardware V

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Michael S. Tsirkin
On Mon, Jul 08, 2024 at 11:01:39AM +, Dragos Tatulea wrote: > On Wed, 2024-07-03 at 18:01 +0200, Eugenio Perez Martin wrote: > > On Wed, Jun 26, 2024 at 11:27 AM Dragos Tatulea wrote: > > > > > > On Wed, 2024-06-19 at 17:54 +0200, Eugenio Perez Martin wrote: > > > > On Mon, Jun 17, 2024 at 5:

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Dragos Tatulea
On Mon, 2024-07-08 at 07:11 -0400, Michael S. Tsirkin wrote: > On Mon, Jul 08, 2024 at 11:01:39AM +, Dragos Tatulea wrote: > > On Wed, 2024-07-03 at 18:01 +0200, Eugenio Perez Martin wrote: > > > On Wed, Jun 26, 2024 at 11:27 AM Dragos Tatulea > > > wrote: > > > > > > > > On Wed, 2024-06-19

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Michael S. Tsirkin
On Mon, Jul 08, 2024 at 11:17:06AM +, Dragos Tatulea wrote: > On Mon, 2024-07-08 at 07:11 -0400, Michael S. Tsirkin wrote: > > On Mon, Jul 08, 2024 at 11:01:39AM +, Dragos Tatulea wrote: > > > On Wed, 2024-07-03 at 18:01 +0200, Eugenio Perez Martin wrote: > > > > On Wed, Jun 26, 2024 at 11:

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

2024-07-08 Thread Michael S. Tsirkin
On Mon, Jul 08, 2024 at 02:55:49PM +0800, 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 Is this on top of your other patchset

[PATCH vhost v3 00/24] vdpa/mlx5: Pre-create HW VQs to reduce LM downtime

2024-07-08 Thread Dragos Tatulea
According to the measurements for vDPA Live Migration downtime [0], one large source of downtime is the creation of hardware VQs and their associated resources on the devices on the destination VM. Previous series ([1], [2]) addressed the source part of the Live Migration downtime. This series add

[PATCH vhost v3 01/24] vdpa/mlx5: Clarify meaning thorough function rename

2024-07-08 Thread Dragos Tatulea
setup_driver()/teardown_driver() are a bit vague. These functions are used for virtqueue resources. Same for alloc_resources()/teardown_resources(): they represent fixed resources that are meant to exist during the device lifetime. Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez Signed-off-by

[PATCH vhost v3 05/24] vdpa/mlx5: Iterate over active VQs during suspend/resume

2024-07-08 Thread Dragos Tatulea
No need to iterate over max number of VQs. Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/net/ml

[PATCH vhost v3 02/24] vdpa/mlx5: Make setup/teardown_vq_resources() symmetrical

2024-07-08 Thread Dragos Tatulea
... by changing the setup_vq_resources() parameter type. Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/dri

[PATCH vhost v3 08/24] vdpa/mlx5: Clear and reinitialize software VQ data on reset

2024-07-08 Thread Dragos Tatulea
The hardware VQ configuration is mirrored by data in struct mlx5_vdpa_virtqueue . Instead of clearing just a few fields at reset, fully clear the struct and initialize with the appropriate default values. As clear_vqs_ready() is used only during reset, get rid of it. Reviewed-by: Cosmin Ratiu Ac

[PATCH vhost v3 09/24] vdpa/mlx5: Rename init_mvqs

2024-07-08 Thread Dragos Tatulea
Function is used to set default values, so name it accordingly. Reviewed-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5/ne

[PATCH vhost v3 04/24] vdpa/mlx5: Drop redundant check in teardown_virtqueues()

2024-07-08 Thread Dragos Tatulea
The check is done inside teardown_vq(). Reviewed-by: Cosmin Ratiu Reviewed-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 10 ++ 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa/mlx5

[PATCH vhost v3 10/24] vdpa/mlx5: Add support for modifying the virtio_version VQ field

2024-07-08 Thread Dragos Tatulea
This is done in preparation for the pre-creation of hardware virtqueues at device add time. Signed-off-by: Dragos Tatulea Reviewed-by: Cosmin Ratiu --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 16 include/linux/mlx5/mlx5_ifc_vdpa.h | 1 + 2 files changed, 17 insertions(+) diff --

[PATCH vhost v3 11/24] vdpa/mlx5: Add support for modifying the VQ features field

2024-07-08 Thread Dragos Tatulea
This is done in preparation for the pre-creation of hardware virtqueues at device add time. Signed-off-by: Dragos Tatulea Reviewed-by: Cosmin Ratiu --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 12 +++- include/linux/mlx5/mlx5_ifc_vdpa.h | 1 + 2 files changed, 12 insertions(+), 1 deletion(

[PATCH vhost v3 06/24] vdpa/mlx5: Remove duplicate suspend code

2024-07-08 Thread Dragos Tatulea
Use the dedicated suspend_vqs() function instead. Reviewed-by: Cosmin Ratiu Reviewed-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/drivers/vdpa/mlx5/net/mlx5_vnet.c b/drivers/vdpa

[PATCH vhost v3 03/24] vdpa/mlx5: Drop redundant code

2024-07-08 Thread Dragos Tatulea
Originally, the second loop initialized the CVQ. But (acde3929492b ("vdpa/mlx5: Use consistent RQT size") initialized all the queues in the first loop, so the second iteration in init_mvqs() is never called because the first one will iterate up to max_vqs. Reviewed-by: Cosmin Ratiu Acked-by: Euge

[PATCH vhost v3 07/24] vdpa/mlx5: Initialize and reset device with one queue pair

2024-07-08 Thread Dragos Tatulea
The virtio spec says that a vdpa device should start off with one queue pair. The driver is already compliant. This patch moves the initialization to device add and reset times. This is done in preparation for the pre-creation of hardware virtqueues at device add time. Reviewed-by: Cosmin Ratiu

[PATCH vhost v3 15/24] vdpa/mlx5: Allow creation of blank VQs

2024-07-08 Thread Dragos Tatulea
Based on the filled flag, create VQs that are filled or blank. Blank VQs will be filled in later through VQ modify. Later patches will make use of this to pre-create blank VQs at vdpa device creation. Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/

[PATCH vhost v3 12/24] vdpa/mlx5: Set an initial size on the VQ

2024-07-08 Thread Dragos Tatulea
The virtqueue size is a pre-requisite for setting up any virtqueue resources. For the upcoming optimization of creating virtqueues at device add, the virtqueue size has to be configured. The queue size check in setup_vq() will always be false. So remove it. Signed-off-by: Dragos Tatulea Reviewed

[PATCH vhost v3 13/24] vdpa/mlx5: Start off rqt_size with max VQPs

2024-07-08 Thread Dragos Tatulea
Currently rqt_size is initialized during device flag configuration. That's because it is the earliest moment when device knows if MQ (multi queue) is on or off. Shift this configuration earlier to device creation time. This implies that non-MQ devices will have a larger RQT size. But the configura

[PATCH vhost v3 14/24] vdpa/mlx5: Set mkey modified flags on all VQs

2024-07-08 Thread Dragos Tatulea
Otherwise, when virtqueues are moved from INIT to READY the latest mkey will not be set appropriately. Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drive

[PATCH vhost v3 17/24] vdpa/mlx5: Add error code for suspend/resume VQ

2024-07-08 Thread Dragos Tatulea
Instead of blindly calling suspend/resume_vqs(), make then return error codes. To keep compatibility, keep suspending or resuming VQs on error and return the last error code. The assumption here is that the error code would be the same. Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez Signed-o

[PATCH vhost v3 16/24] vdpa/mlx5: Accept Init -> Ready VQ transition in resume_vq()

2024-07-08 Thread Dragos Tatulea
Until now resume_vq() was used only for the suspend/resume scenario. This change also allows calling resume_vq() to bring it from Init to Ready state (VQ initialization). Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 24

[PATCH vhost v3 21/24] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Dragos Tatulea
Currently, hardware VQs are created right when the vdpa device gets into DRIVER_OK state. That is easier because most of the VQ state is known by then. This patch switches to creating all VQs and their associated resources at device creation time. The motivation is to reduce the vdpa device live m

[PATCH vhost v3 18/24] vdpa/mlx5: Consolidate all VQ modify to Ready to use resume_vq()

2024-07-08 Thread Dragos Tatulea
There are a few more places modifying the VQ to Ready directly. Let's consolidate them into resume_vq(). The redundant warnings for resume_vq() errors can also be dropped. There is one special case that needs to be handled for virtio-vdpa: the initialized flag must be set to true earlier in setup

[PATCH vhost v3 22/24] vdpa/mlx5: Re-create HW VQs under certain conditions

2024-07-08 Thread Dragos Tatulea
There are a few conditions under which the hardware VQs need a full teardown and setup: - VQ size changed to something else than default value. Hardware VQ size modification is not supported. - User turns off certain device features: mergeable buffers, checksum virtio 1.0 compliance. In these

[PATCH vhost v3 19/24] vdpa/mlx5: Forward error in suspend/resume device

2024-07-08 Thread Dragos Tatulea
Start using the suspend/resume_vq() error return codes previously added. Reviewed-by: Cosmin Ratiu Reviewed-by: Zhu Yanjun Reviewed-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --

[PATCH vhost v3 24/24] vdpa/mlx5: Don't enable non-active VQs in .set_vq_ready()

2024-07-08 Thread Dragos Tatulea
VQ indices in the range [cur_num_qps, max_vqs) represent queues that have not yet been activated. .set_vq_ready should not activate these VQs. Reviewed-by: Cosmin Ratiu Acked-by: Eugenio Pérez Signed-off-by: Dragos Tatulea --- drivers/vdpa/mlx5/net/mlx5_vnet.c | 3 +++ 1 file changed, 3 insert

[PATCH vhost v3 20/24] vdpa/mlx5: Use suspend/resume during VQP change

2024-07-08 Thread Dragos Tatulea
Resume a VQ if it is already created when the number of VQ pairs increases. This is done in preparation for VQ pre-creation which is coming in a later patch. It is necessary because calling setup_vq() on an already created VQ will return early and will not enable the queue. For symmetry, suspend a

[PATCH vhost v3 23/24] vdpa/mlx5: Don't reset VQs more than necessary

2024-07-08 Thread Dragos Tatulea
The vdpa device can be reset many times in sequence without any significant state changes in between. Previously this was not a problem: VQs were torn down only on first reset. But after VQ pre-creation was introduced, each reset will delete and re-create the hardware VQs and their associated resou

Re: [PATCH 1/2] x86/tdx: Add prctl to allow userlevel TDX hypercalls

2024-07-08 Thread Kirill A . Shutemov
On Wed, Jul 03, 2024 at 11:36:00PM +, Tim Merrifield wrote: > Add a new prctl option to enable/disable user-level hypercalls when > running in a confidential VM. Add support for checking this flag on > VMCALL #VE for TDX and transfer control to a hypervisor > vendor-specific handler. > > Signe

Re: [PATCH 2/2] x86/vmware: VMware support for TDX userspace hypercalls

2024-07-08 Thread Kirill A . Shutemov
On Wed, Jul 03, 2024 at 11:36:01PM +, Tim Merrifield wrote: > @@ -539,6 +547,24 @@ unsigned long vmware_tdx_hypercall(unsigned long cmd, > return args.r12; > } > EXPORT_SYMBOL_GPL(vmware_tdx_hypercall); > + > +static bool vmware_tdx_user_hcall(struct pt_regs *regs) > +{ > + struct t

Re: [PATCH v3] init: staging: Fix missing warning/taint on builtin code

2024-07-08 Thread Dan Carpenter
Thanks! Acked-by: Dan Carpenter regards, dan carpenter

Re: [PATCH v8 2/5] remoteproc: Add TEE support

2024-07-08 Thread Mathieu Poirier
On Fri, Jul 05, 2024 at 09:33:55AM +0200, Arnaud POULIQUEN wrote: > > > On 7/4/24 17:32, Mathieu Poirier wrote: > > On Thu, Jul 04, 2024 at 10:05:24AM +0200, Arnaud POULIQUEN wrote: > >> > >> > >> On 7/3/24 17:14, Mathieu Poirier wrote: > >>> On Wed, Jul 03, 2024 at 09:19:44AM +0200, Arnaud POULI

Re: [PATCH] remoteproc: mediatek: Increase MT8188/MT8195 SCP core0 DRAM size

2024-07-08 Thread Mathieu Poirier
On Wed, Jul 03, 2024 at 11:05:59AM +0200, AngeloGioacchino Del Regno wrote: > Il 03/07/24 05:44, Jason Chen ha scritto: > > The current DRAM size is insufficient for the HEVC feature, which > > requires more memory for proper functionality. This change ensures the > > feature has the necessary reso

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Zhu Yanjun
在 2024/6/17 17:07, Dragos Tatulea 写道: Currently, hardware VQs are created right when the vdpa device gets into DRIVER_OK state. That is easier because most of the VQ state is known by then. This patch switches to creating all VQs and their associated resources at device creation time. The motiva

Re: [PATCH vhost 20/23] vdpa/mlx5: Pre-create hardware VQs at vdpa .dev_add time

2024-07-08 Thread Dragos Tatulea
Hi Zhu Yanjun, On Mon, 2024-07-08 at 18:22 +0200, Zhu Yanjun wrote: > 在 2024/6/17 17:07, Dragos Tatulea 写道: > > Currently, hardware VQs are created right when the vdpa device gets into > > DRIVER_OK state. That is easier because most of the VQ state is known by > > then. > > > > This patch switch

Re: [PATCH] mailmap: Update Luca Weiss's email address

2024-07-08 Thread Bjorn Andersson
On Fri, 28 Jun 2024 19:40:55 +0200, Luca Weiss wrote: > I'm slowly migrating my mail to a new domain, add an entry to map the > mail address. Just for clarity, my work-related @fairphone.com email > stays unchanged. > > Applied, thanks! [1/1] mailmap: Update Luca Weiss's email address c

Re: [PATCH v2 00/12] uprobes: add batched register/unregister APIs and per-CPU RW semaphore

2024-07-08 Thread Andrii Nakryiko
On Thu, Jul 4, 2024 at 8:44 AM Paul E. McKenney wrote: > > On Thu, Jul 04, 2024 at 11:15:59AM +0200, Peter Zijlstra wrote: > > On Wed, Jul 03, 2024 at 02:33:06PM -0700, Andrii Nakryiko wrote: > > > > > 2. More tactically, RCU protection seems like the best way forward. We > > > got hung up on SRCU

Re: [PATCH v2 00/12] uprobes: add batched register/unregister APIs and per-CPU RW semaphore

2024-07-08 Thread Andrii Nakryiko
On Thu, Jul 4, 2024 at 2:16 AM Peter Zijlstra wrote: > > On Wed, Jul 03, 2024 at 02:33:06PM -0700, Andrii Nakryiko wrote: > > > 2. More tactically, RCU protection seems like the best way forward. We > > got hung up on SRCU vs RCU Tasks Trace. Thanks to Paul, we also > > clarified that RCU Tasks Tr

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

2024-07-08 Thread Andrew Lunn
On Mon, Jul 08, 2024 at 02:55:49PM +0800, 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 > --- > drivers/vdpa/mlx5/net/mlx5_vn

Re: [PATCH] kallsyms, livepatch: Fix livepatch with CONFIG_LTO_CLANG

2024-07-08 Thread Luis Chamberlain
On Thu, Jul 04, 2024 at 11:02:18AM +0200, Petr Mladek wrote: > On Wed 2024-07-03 08:30:33, Luis Chamberlain wrote: > > On Tue, Jul 02, 2024 at 10:56:41PM -0700, Josh Poimboeuf wrote: > > > On Mon, Jul 01, 2024 at 03:13:23PM +0200, Petr Mladek wrote: > > > > So, you suggest to search the symbols by

Re: [PATCH] rust: add `module_params` macro

2024-07-08 Thread Luis Chamberlain
On Fri, Jul 05, 2024 at 11:15:11AM +, Andreas Hindborg wrote: > From: Andreas Hindborg > > This patch includes changes required for Rust kernel modules to utilize > module parameters. This code implements read only support for integer > types without `sysfs` support. > > This code is a reduc

[PATCH v4] perf,x86: avoid missing caller address in stack traces captured in uprobe

2024-07-08 Thread Andrii Nakryiko
When tracing user functions with uprobe functionality, it's common to install the probe (e.g., a BPF program) at the first instruction of the function. This is often going to be `push %rbp` instruction in function preamble, which means that within that function frame pointer hasn't been established

[PATCH for-next v4] tracing/kprobes: Add symbol counting check when module loads

2024-07-08 Thread Masami Hiramatsu (Google)
From: Masami Hiramatsu (Google) Currently, kprobe event checks whether the target symbol name is unique or not, so that it does not put a probe on an unexpected place. But this skips the check if the target is on a module because the module may not be loaded. To fix this issue, this patch checks

Re: [PATCH] kallsyms, livepatch: Fix livepatch with CONFIG_LTO_CLANG

2024-07-08 Thread Sami Tolvanen
On Mon, Jul 8, 2024 at 2:33 PM Luis Chamberlain wrote: > > Looking at this again its not to me why Masahiro Yamada's suggestion on > that old patch series to just increase the length and put long symbols > names into its own section [0] could not be embraced with a new kconfig > option, so new ker

Re: [PATCH v4 1/2] LoongArch: KVM: Add steal time support in kvm side

2024-07-08 Thread maobibo
On 2024/7/8 下午5:47, Huacai Chen wrote: On Mon, Jul 8, 2024 at 9:16 AM maobibo wrote: On 2024/7/6 下午5:41, Huacai Chen wrote: On Sat, Jul 6, 2024 at 2:59 PM maobibo wrote: Huacai, On 2024/7/6 上午11:00, Huacai Chen wrote: Hi, Bibo, On Fri, May 24, 2024 at 3:38 PM Bibo Mao wrote: Ste

Re: [PATCH] vdpa_sim_blk: add `capacity` module parameter

2024-07-08 Thread Jason Wang
On Mon, Jul 8, 2024 at 4:15 PM Stefano Garzarella wrote: > > Hi Cindy, Jason, > > On Mon, Jul 08, 2024 at 03:59:34PM GMT, Jason Wang wrote: > >On Mon, Jul 8, 2024 at 3:06 PM Cindy Lu wrote: > >> > >> On Fri, 5 Jul 2024 at 20:42, Stefano Garzarella > >> wrote: > >> > > >> > On Fri, Jul 05, 2024

RE: [PATCH v3 0/2] vdpa: support set mac address from vdpa tool

2024-07-08 Thread Parav Pandit
Hi Cindy, > From: Cindy Lu > Sent: Monday, July 8, 2024 12:17 PM > > 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.

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

2024-07-08 Thread Parav Pandit
Hi Andrew, > From: Andrew Lunn > Sent: Tuesday, July 9, 2024 12:31 AM > To: Cindy Lu > Cc: Dragos Tatulea ; m...@redhat.com; > jasow...@redhat.com; Parav Pandit ; > sgarz...@redhat.com; net...@vger.kernel.org; virtualization@lists.linux- > foundation.org; linux-kernel@vger.kernel.org; k...@vger.

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

2024-07-08 Thread Ratheesh Kannoth
On 2024-07-08 at 12:25:49, Cindy Lu (l...@redhat.com) wrote: > +static int mlx5_vdpa_set_attr_mac(struct vdpa_mgmt_dev *v_mdev, > + struct vdpa_device *dev, > + const struct vdpa_dev_set_config *add_config) > +{ > + struct mlx5_vdpa_de

Re: [PATCH] rust: add `module_params` macro

2024-07-08 Thread nmi
Hi Luis, On Monday, July 8th, 2024 at 23:42, Luis Chamberlain wrote: > I'm starting to feel the same way about modules, but modules requires > more work than the firmware loader. And since I also know Andreas has > already a lot on his plate, I'm at a cross roads. My above request for > the firm

Re: [PATCH v3 0/2] vdpa: support set mac address from vdpa tool

2024-07-08 Thread Cindy Lu
On Tue, 9 Jul 2024 at 11:59, Parav Pandit wrote: > > Hi Cindy, > > > From: Cindy Lu > > Sent: Monday, July 8, 2024 12:17 PM > > > > 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_ne

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

2024-07-08 Thread Naik, Avadhut
On 6/26/2024 13:18, Borislav Petkov wrote: > On Wed, Jun 26, 2024 at 12:24:20PM -0500, Naik, Avadhut wrote: >> >> >> On 6/26/2024 06:10, Borislav Petkov wrote: >>> On Tue, Jun 25, 2024 at 02:56:22PM -0500, Avadhut Naik wrote: AMD's Scalable MCA systems viz. Genoa will include two new regist

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

2024-07-08 Thread Naik, Avadhut
On 6/26/2024 13:20, Borislav Petkov wrote: > On Wed, Jun 26, 2024 at 01:00:30PM -0500, Naik, Avadhut wrote: >>> >>> Why are you clearing it if you're overwriting it immediately? >>> >> Since its a local variable, wanted to ensure that the memory is zeroed out >> to prevent >> any issues with th

[PATCH v4 0/5] Add MPSS remoteproc support for SDX75

2024-07-08 Thread Naina Mehta
Add modem support to SDX75 using the PAS remoteproc driver. Also, add qlink_logging memory region and split MPSS DSM region into 2 separate regions. These patches were co-authored by Rohit Agarwal while at Qualcomm. Changes in v4: - Updated commit message for reserved memory updation for mpss to

[PATCH v4 1/5] dt-bindings: remoteproc: qcom,sm8550-pas: document the SDX75 PAS

2024-07-08 Thread Naina Mehta
Document the MPSS Peripheral Authentication Service on SDX75 platform. Signed-off-by: Naina Mehta Reviewed-by: Krzysztof Kozlowski --- .../devicetree/bindings/remoteproc/qcom,sm8550-pas.yaml| 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/remotepr

[PATCH v4 2/5] remoteproc: qcom: pas: Add SDX75 remoteproc support

2024-07-08 Thread Naina Mehta
Add MPSS Peripheral Authentication Service support for SDX75 platform. Signed-off-by: Naina Mehta --- drivers/remoteproc/qcom_q6v5_pas.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c index 8458bcfe9e19..833e2f9c2c5e 1

[PATCH v4 4/5] arm64: dts: qcom: sdx75: Add remoteproc node

2024-07-08 Thread Naina Mehta
Add MPSS remoteproc node for SDX75 SoC. Signed-off-by: Naina Mehta Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdx75.dtsi | 47 + 1 file changed, 47 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdx75.dtsi b/arch/arm64/boot/dts/qcom/sdx75.dtsi

[PATCH v4 5/5] arm64: dts: qcom: sdx75-idp: enable MPSS remoteproc node

2024-07-08 Thread Naina Mehta
Enable MPSS remoteproc node on sdx75-idp platform. Signed-off-by: Naina Mehta Reviewed-by: Dmitry Baryshkov --- arch/arm64/boot/dts/qcom/sdx75-idp.dts | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sdx75-idp.dts b/arch/arm64/boot/dts/qcom/sdx75-idp.dts index

[PATCH v4 3/5] arm64: dts: qcom: sdx75: update reserved memory regions for mpss

2024-07-08 Thread Naina Mehta
Rename qdss@8880 memory region as qlink_logging memory region and add qdss_mem memory region at address of 0x8850, qlink_logging is being added at the memory region at the address of 0x8880 as the region is being used by modem firmware. Since different DSM region size is required for di

Re: [PATCH v3] init: staging: Fix missing warning/taint on builtin code

2024-07-08 Thread Uwe Kleine-König
Hello, On Sat, Jul 06, 2024 at 12:15:01AM -0300, Ágatha Isabelle Chris Moreira Guedes wrote: > Fix the absence of warning message and kernel tainting when initializing > drivers from the `drivers/staging` subtree from initcalls (when > configured as built-in). > > When such a driver is built as