Re: [PATCH v2 01/19] tools: Add gendwarfksyms

2024-08-16 Thread Greg Kroah-Hartman
On Thu, Aug 15, 2024 at 05:39:05PM +, Sami Tolvanen wrote: > --- /dev/null > +++ b/scripts/gendwarfksyms/dwarf.c > @@ -0,0 +1,87 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later Sorry, but I have to ask, do you _REALLY_ mean "or later" here and in other places in this series? If so, great,

Re: [PATCH v2 00/19] Implement DWARF modversions

2024-08-16 Thread Greg Kroah-Hartman
On Thu, Aug 15, 2024 at 05:39:04PM +, Sami Tolvanen wrote: > Changes in v2: > - Per Luis' request, dropped Rust-specific patches and added > gendwarfksyms as an alternative to genksyms for the entire > kernel. > > - Added support for missing DWARF features needed to handle > also non-Rus

Re: [PATCH v2 16/19] gendwarfksyms: Add support for reserved structure fields

2024-08-16 Thread Greg Kroah-Hartman
On Thu, Aug 15, 2024 at 05:39:20PM +, Sami Tolvanen wrote: > Distributions that want to maintain a stable kABI need the ability to > add reserved fields to kernel data structures that they anticipate > will be modified during the ABI support timeframe, either by LTS > updates or backports. > >

Re: [PATCH v4 2/3] remoteproc: k3-r5: Acquire mailbox handle during probe routine

2024-08-16 Thread Beleswar Prasad Padhi
Hi Mathieu, On 14-08-2024 21:22, Mathieu Poirier wrote: Hi Beleswar, On Thu, Aug 08, 2024 at 01: 11: 26PM +0530, Beleswar Padhi wrote: > Acquire the mailbox handle during device probe and do not release handle > in stop/detach routine or error paths. This removes the redundant > requests for

[PATCH vhost v2 00/10] vdpa/mlx5: Parallelize device suspend/resume

2024-08-16 Thread Dragos Tatulea
This series parallelizes the mlx5_vdpa device suspend and resume operations through the firmware async API. The purpose is to reduce live migration downtime. The series starts with changing the VQ suspend and resume commands to the async API. After that, the switch is made to issue multiple comman

[PATCH vhost v2 02/10] vdpa/mlx5: Introduce error logging function

2024-08-16 Thread Dragos Tatulea
mlx5_vdpa_err() was missing. This patch adds it and uses it in the necessary places. Signed-off-by: Dragos Tatulea Reviewed-by: Tariq Toukan Acked-by: Eugenio Pérez --- drivers/vdpa/mlx5/core/mlx5_vdpa.h | 5 + drivers/vdpa/mlx5/net/mlx5_vnet.c | 24 2 files chan

[PATCH mlx5-vhost v2 01/10] net/mlx5: Support throttled commands from async API

2024-08-16 Thread Dragos Tatulea
Currently, commands that qualify as throttled can't be used via the async API. That's due to the fact that the throttle semaphore can sleep but the async API can't. This patch allows throttling in the async API by using the tentative variant of the semaphore and upon failure (semaphore at 0) retur

[PATCH vhost v2 03/10] vdpa/mlx5: Introduce async fw command wrapper

2024-08-16 Thread Dragos Tatulea
Introduce a new function mlx5_vdpa_exec_async_cmds() which wraps the mlx5_core async firmware command API in a way that will be used to parallelize certain operation in this driver. The wrapper deals with the case when mlx5_cmd_exec_cb() returns EBUSY due to the command being throttled. Signed-of

[PATCH vhost v2 04/10] vdpa/mlx5: Use async API for vq query command

2024-08-16 Thread Dragos Tatulea
Switch firmware vq query command to be issued via the async API to allow future parallelization. For now the command is still serial but the infrastructure is there to issue commands in parallel, including ratelimiting the number of issued async commands to firmware. A later patch will switch to

[PATCH vhost v2 05/10] vdpa/mlx5: Use async API for vq modify commands

2024-08-16 Thread Dragos Tatulea
Switch firmware vq modify command to be issued via the async API to allow future parallelization. The new refactored function applies the modify on a range of vqs and waits for their execution to complete. For now the command is still used in a serial fashion. A later patch will switch to modifyin

[PATCH vhost v2 06/10] vdpa/mlx5: Parallelize device suspend

2024-08-16 Thread Dragos Tatulea
Currently device suspend works on vqs serially. Building up on previous changes that converted vq operations to the async api, this patch parallelizes the device suspend: 1) Suspend all active vqs parallel. 2) Query suspended vqs in parallel. For 1 vDPA device x 32 VQs (16 VQPs) attached to a larg

[PATCH vhost v2 07/10] vdpa/mlx5: Parallelize device resume

2024-08-16 Thread Dragos Tatulea
Currently device resume works on vqs serially. Building up on previous changes that converted vq operations to the async api, this patch parallelizes the device resume. For 1 vDPA device x 32 VQs (16 VQPs) attached to a large VM (256 GB RAM, 32 CPUs x 2 threads per core), the device resume time is

[PATCH vhost v2 08/10] vdpa/mlx5: Keep notifiers during suspend but ignore

2024-08-16 Thread Dragos Tatulea
Unregistering notifiers is a costly operation. Instead of removing the notifiers during device suspend and adding them back at resume, simply ignore the call when the device is suspended. At resume time call queue_link_work() to make sure that the device state is propagated in case there were chan

[PATCH vhost v2 09/10] vdpa/mlx5: Small improvement for change_num_qps()

2024-08-16 Thread Dragos Tatulea
change_num_qps() has a lot of multiplications by 2 to convert the number of VQ pairs to number of VQs. This patch simplifies the code by doing the VQP -> VQ count conversion at the beginning in a variable. Signed-off-by: Dragos Tatulea Reviewed-by: Tariq Toukan --- drivers/vdpa/mlx5/net/mlx5_vn

[PATCH vhost v2 10/10] vdpa/mlx5: Parallelize VQ suspend/resume for CVQ MQ command

2024-08-16 Thread Dragos Tatulea
change_num_qps() is still suspending/resuming VQs one by one. This change switches to parallel suspend/resume. When increasing the number of queues the flow has changed a bit for simplicity: the setup_vq() function will always be called before resume_vqs(). If the VQ is initialized, setup_vq() wil

Re: [PATCH vhost 0/7] vdpa/mlx5: Parallelize device suspend/resume

2024-08-16 Thread Dragos Tatulea
On 02.08.24 15:14, Michael S. Tsirkin wrote: > On Fri, Aug 02, 2024 at 10:20:17AM +0300, Dragos Tatulea wrote: >> This series parallelizes the mlx5_vdpa device suspend and resume >> operations through the firmware async API. The purpose is to reduce live >> migration downtime. >> >> The series s

[PATCH v7 0/5] Tracepoints and static branch in Rust

2024-08-16 Thread Alice Ryhl
An important part of a production ready Linux kernel driver is tracepoints. So to write production ready Linux kernel drivers in Rust, we must be able to call tracepoints from Rust code. This patch series adds support for calling tracepoints declared in C from Rust. To use the tracepoint support,

[PATCH v7 1/5] rust: add generic static_key_false

2024-08-16 Thread Alice Ryhl
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. This patch only provides a generic implementation without code patching (matching the one used when CONFIG_J

[PATCH v7 2/5] rust: add tracepoint support

2024-08-16 Thread Alice Ryhl
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. Instead of calling __DO_TRACE directly, the exported rust_do_trace_ function calls an inline hel

[PATCH v7 3/5] rust: samples: add tracepoint to Rust sample

2024-08-16 Thread Alice Ryhl
This updates the Rust printing sample to invoke a tracepoint. This ensures that we have a user in-tree from the get-go even though the patch is being merged before its real user. Signed-off-by: Alice Ryhl --- MAINTAINERS| 1 + include/trace/events/rust_sample.h | 31

[PATCH v7 4/5] jump_label: adjust inline asm to be consistent

2024-08-16 Thread Alice Ryhl
To avoid duplication of inline asm between C and Rust, we need to import the inline asm from the relevant `jump_label.h` header into Rust. To make that easier, this patch updates the header files to expose the inline asm via a new ARCH_STATIC_BRANCH_ASM macro. The header files are all updated to d

[PATCH v7 5/5] rust: add arch_static_branch

2024-08-16 Thread Alice Ryhl
To allow the Rust implementation of static_key_false to use runtime code patching instead of the generic implementation, pull in the relevant inline assembly from the jump_label.h header by running the C preprocessor on a .rs.S file. Build rules are added for .rs.S files. Since the relevant inline

Re: [PATCHv8 9/9] man2: Add uretprobe syscall page

2024-08-16 Thread Alejandro Colomar
Hi Steven, Jiri, On Wed, Aug 07, 2024 at 04:27:34PM GMT, Steven Rostedt wrote: > Just in case nobody pinged you, the rest of the series is now in Linus's > tree. Thanks for the ping! I have prepared some tweaks to the patch (see below). Also, I have some doubts. The prototype shows that it has

[GIT PULL] DAX for 6.11

2024-08-16 Thread Ira Weiny
Hi Linux, please pull from https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/ tags/libnvdimm-fixes-6.11-rc4 To get a fix for filesystem DAX. It has been in -next since August 12th without any reported issues. Thanks, Ira Weiny --- The following changes since commit afdab70

Re: [PATCH v11 3/9] remoteproc: k3-m4: Add a remoteproc driver for M4F subsystem

2024-08-16 Thread Mathieu Poirier
On Thu, Aug 15, 2024 at 10:46:41AM -0600, Mathieu Poirier wrote: > Hi, > > On Fri, Aug 02, 2024 at 10:21:03AM -0500, Andrew Davis wrote: > > From: Martyn Welch > > > > The AM62x and AM64x SoCs of the TI K3 family has a Cortex M4F core in > > the MCU domain. This core is typically used for safety

Re: [PATCH v4 2/3] remoteproc: k3-r5: Acquire mailbox handle during probe routine

2024-08-16 Thread Mathieu Poirier
On Fri, Aug 16, 2024 at 01:23:59PM +0530, Beleswar Prasad Padhi wrote: > Hi Mathieu, > > On 14-08-2024 21:22, Mathieu Poirier wrote: > > Hi Beleswar, On Thu, Aug 08, 2024 at 01: 11: 26PM +0530, Beleswar Padhi > > wrote: > Acquire the mailbox handle during device probe and do not > > release handle

Re: [PATCH v2 16/19] gendwarfksyms: Add support for reserved structure fields

2024-08-16 Thread Sami Tolvanen
Hi Greg, On Fri, Aug 16, 2024 at 12:20 AM Greg Kroah-Hartman wrote: > > On Thu, Aug 15, 2024 at 05:39:20PM +, Sami Tolvanen wrote: > > Distributions that want to maintain a stable kABI need the ability to > > add reserved fields to kernel data structures that they anticipate > > will be modif

Re: [POC 3/7] livepatch: Use per-state callbacks in state API tests

2024-08-16 Thread Petr Mladek
On Thu 2024-07-25 13:48:06, Miroslav Benes wrote: > Hi, > > On Fri, 10 Nov 2023, Petr Mladek wrote: > > > Recent changes in the livepatch core have allowed to connect states, > > shadow variables, and callbacks. Use these new features in > > the state tests. > > > > Use the shadow variable API t

Re: [PATCHv8 9/9] man2: Add uretprobe syscall page

2024-08-16 Thread Jiri Olsa
On Fri, Aug 16, 2024 at 01:42:26PM +0200, Alejandro Colomar wrote: > Hi Steven, Jiri, > > On Wed, Aug 07, 2024 at 04:27:34PM GMT, Steven Rostedt wrote: > > Just in case nobody pinged you, the rest of the series is now in Linus's > > tree. > > Thanks for the ping! > > I have prepared some tweaks

Re: [GIT PULL] DAX for 6.11

2024-08-16 Thread Ira Weiny
Ira Weiny wrote: > Hi Linux, please pull from ^ Linus. Apologies, Ira > > https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/ > tags/libnvdimm-fixes-6.11-rc4 > > To get a fix for filesystem DAX. > > It has been in -next since August 12th without any reported is

Re: [syzbot] [kvm?] [net?] [virt?] INFO: task hung in __vhost_worker_flush

2024-08-16 Thread Sean Christopherson
On Wed, May 29, 2024, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit:9b62e02e6336 Merge tag 'mm-hotfixes-stable-2024-05-25-09-1.. > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=16cb0eec98 > kernel config: https://sy

Re: [syzbot] [kvm?] [net?] [virt?] INFO: task hung in __vhost_worker_flush

2024-08-16 Thread syzbot
> On Wed, May 29, 2024, syzbot wrote: >> Hello, >> >> syzbot found the following issue on: >> >> HEAD commit:9b62e02e6336 Merge tag 'mm-hotfixes-stable-2024-05-25-09-1.. >> git tree: upstream >> console output: https://syzkaller.appspot.com/x/log.txt?x=16cb0eec98 >> kernel config:

Re: [syzbot] [kvm?] [net?] [virt?] INFO: task hung in __vhost_worker_flush

2024-08-16 Thread Sean Christopherson
On Fri, Aug 16, 2024, syzbot wrote: > > On Wed, May 29, 2024, syzbot wrote: > >> Hello, > >> > >> syzbot found the following issue on: > >> > >> HEAD commit:9b62e02e6336 Merge tag > >> 'mm-hotfixes-stable-2024-05-25-09-1.. > >> git tree: upstream > >> console output: https://syzkaller.

Re: [syzbot] [kvm?] [net?] [virt?] INFO: task hung in __vhost_worker_flush

2024-08-16 Thread Michael S. Tsirkin
On Fri, Aug 16, 2024 at 11:10:32AM -0700, Sean Christopherson wrote: > On Fri, Aug 16, 2024, syzbot wrote: > > > On Wed, May 29, 2024, syzbot wrote: > > >> Hello, > > >> > > >> syzbot found the following issue on: > > >> > > >> HEAD commit:9b62e02e6336 Merge tag > > >> 'mm-hotfixes-stable-20

Re: [GIT PULL] DAX for 6.11

2024-08-16 Thread Linus Torvalds
On Fri, 16 Aug 2024 at 10:15, Ira Weiny wrote: > > Ira Weiny wrote: > > Hi Linux, please pull from > ^ > Linus. > > Apologies, Heh. I've been called worse. And it's a fairly common typo with people whose fingers are used to type "Linux" and do so on auto-pilot. I have an evil twin

Re: [GIT PULL] DAX for 6.11

2024-08-16 Thread pr-tracker-bot
The pull request you sent on Fri, 16 Aug 2024 08:44:39 -0500: > https://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm.git/ > tags/libnvdimm-fixes-6.11-rc4 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/e4a55b555db6d2a006551605ef4404529e878cd2 Thank you! --

Re: [PATCHv8 9/9] man2: Add uretprobe syscall page

2024-08-16 Thread Alejandro Colomar
On Fri, Aug 16, 2024 at 07:03:59PM GMT, Jiri Olsa wrote: > On Fri, Aug 16, 2024 at 01:42:26PM +0200, Alejandro Colomar wrote: > > Hi Steven, Jiri, > > > > On Wed, Aug 07, 2024 at 04:27:34PM GMT, Steven Rostedt wrote: > > > Just in case nobody pinged you, the rest of the series is now in Linus's >

[PATCH v4] filemap: add trace events for get_pages, map_pages, and fault

2024-08-16 Thread Takaya Saeki
To allow precise tracking of page caches accessed, add new tracepoints that trigger when a process actually accesses them. The ureadahead program used by ChromeOS traces the disk access of programs as they start up at boot up. It uses mincore(2) or the 'mm_filemap_add_to_page_cache' trace event to

Re: [PATCHv8 9/9] man2: Add uretprobe syscall page

2024-08-16 Thread Alejandro Colomar
Hi Jiri, Steven, On Fri, Aug 16, 2024 at 08:55:47PM GMT, Alejandro Colomar wrote: > > hi, > > there are no args for x86.. it's there just to note that it might > > be different on other archs, so not sure what man page should say > > in such case.. keeping (void) is fine with me > > Hmmm, then I'

Re: [PATCH v3 14/16] modules: Support extended MODVERSIONS info

2024-08-16 Thread Michael Ellerman
Matthew Maurer writes: > Adds a new format for MODVERSIONS which stores each field in a separate > ELF section. This initially adds support for variable length names, but > could later be used to add additional fields to MODVERSIONS in a > backwards compatible way if needed. Any new fields will be