[PATCH] kselftest: alsa: fixed a print formatting warning

2023-12-17 Thread Ghanshyam Agrawal
A statement used %d print formatter where %s should have been used. The same has been fixed in this commit. Signed-off-by: Ghanshyam Agrawal --- tools/testing/selftests/alsa/mixer-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/alsa/mixer-test.c

[PATCH] selftest: kvm: kvm_page_table_test: change default guest memory down to 128MB

2023-12-17 Thread Itaru Kitayama
ffset */ #define DEFAULT_GUEST_TEST_MEM 0xc000 --- base-commit: a39b6ac3781d46ba18193c9dbb2110f31e9bffe9 change-id: 20231217-selftest-dev-c769544c303d Best regards, -- Itaru Kitayama

Re: [PATCH net 0/4] mptcp: misc. fixes for v6.7

2023-12-17 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by David S. Miller : On Fri, 15 Dec 2023 17:04:23 +0100 you wrote: > Here are a few fixes related to MPTCP: > > Patch 1 avoids skipping some subtests of the MPTCP Join selftest by > mistake when using older versions of GCC. This fixes a pat

Re: [PATCH v6 0/6] iommufd: Add nesting infrastructure (part 2/2)

2023-12-17 Thread Joel Granados
Hey Yi I have been working with https://github.com/yiliu1765/qemu/tree/zhenzhong/wip/iommufd_nesting_rfcv1 and have some questions regarding one of the commits in that series. I however cannot find it in lore.kernel.org. Can you please direct me to where the rfc was posted? If it has not been pos

Re: [PATCH] kselftest: Add basic test for probing the rust sample modules

2023-12-17 Thread Sergio González Collado
On Fri, 15 Dec 2023 at 14:25, Laura Nao wrote: > > Add new basic kselftest that checks if the available rust sample modules > can be added and removed correctly. > > Signed-off-by: Laura Nao > --- > MAINTAINERS | 1 + > tools/testing/selftests/Makefile

RE: [PATCH v7 1/3] iommufd: Add data structure for Intel VT-d stage-1 cache invalidation

2023-12-17 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Sunday, December 17, 2023 2:49 AM > > On Fri, Dec 15, 2023 at 12:01:19PM +0800, Yi Liu wrote: > > On 2023/12/15 11:32, Nicolin Chen wrote: > > > On Fri, Dec 15, 2023 at 03:04:44AM +, Tian, Kevin wrote: > > > > > From: Nicolin Chen > > > > > Sent: Friday, December

[RFC PATCH net-next v5 00/14] Device Memory TCP

2023-12-17 Thread Mina Almasry
Major changes in RFC v5: 1. Rebased on top of 'Abstract page from net stack' series and used the new netmem type to refer to LSB set pointers instead of re-using struct page. 2. Downgraded this series back to RFC and called it RFC v5. This is because this series

[RFC PATCH net-next v5 01/14] net: page_pool: create hooks for custom page providers

2023-12-17 Thread Mina Almasry
From: Jakub Kicinski The page providers which try to reuse the same pages will need to hold onto the ref, even if page gets released from the pool - as in releasing the page from the pp just transfers the "ownership" reference from pp to the provider, and provider will wait for other references t

[RFC PATCH net-next v5 02/14] net: page_pool: factor out page_pool recycle check

2023-12-17 Thread Mina Almasry
The check is duplicated in 2 places, factor it out into a common helper. Signed-off-by: Mina Almasry --- net/core/page_pool.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/net/core/page_pool.c b/net/core/page_pool.c index 45bb4210412d..0edb9251d98d 100644 --- a/net

[RFC PATCH net-next v5 03/14] net: netdev netlink api to bind dma-buf to a net device

2023-12-17 Thread Mina Almasry
API takes the dma-buf fd as input, and binds it to the netdevice. The user can specify the rx queues to bind the dma-buf to. Suggested-by: Stanislav Fomichev Signed-off-by: Mina Almasry --- Changes in v1: - Add rx-queue-type to distingish rx from tx (Jakub) - Return dma-buf ID from netlink API

[RFC PATCH net-next v5 04/14] netdev: support binding dma-buf to netdevice

2023-12-17 Thread Mina Almasry
Add a netdev_dmabuf_binding struct which represents the dma-buf-to-netdevice binding. The netlink API will bind the dma-buf to rx queues on the netdevice. On the binding, the dma_buf_attach & dma_buf_map_attachment will occur. The entries in the sg_table from mapping will be inserted into a genpool

[RFC PATCH net-next v5 05/14] netdev: netdevice devmem allocator

2023-12-17 Thread Mina Almasry
Implement netdev devmem allocator. The allocator takes a given struct netdev_dmabuf_binding as input and allocates net_iov from that binding. The allocation simply delegates to the binding's genpool for the allocation logic and wraps the returned memory region in a net_iov struct. Signed-off-by:

[RFC PATCH net-next v5 06/14] page_pool: convert to use netmem

2023-12-17 Thread Mina Almasry
Abstrace the memory type from the page_pool so we can later add support for new memory types. Convert the page_pool to use the new netmem type abstraction, rather than use struct page directly. As of this patch the netmem type is a no-op abstraction: it's always a struct page underneath. All the p

[RFC PATCH net-next v5 07/14] page_pool: devmem support

2023-12-17 Thread Mina Almasry
Convert netmem to be a union of struct page and struct netmem. Overload the LSB of struct netmem* to indicate that it's a net_iov, otherwise it's a page. Currently these entries in struct page are rented by the page_pool and used exclusively by the net stack: struct { unsigned long pp_mag

[RFC PATCH net-next v5 08/14] memory-provider: dmabuf devmem memory provider

2023-12-17 Thread Mina Almasry
Implement a memory provider that allocates dmabuf devmem in the form of net_iov. The provider receives a reference to the struct netdev_dmabuf_binding via the pool->mp_priv pointer. The driver needs to set this pointer for the provider in the net_iov. The provider obtains a reference on the netde

[RFC PATCH net-next v5 09/14] net: support non paged skb frags

2023-12-17 Thread Mina Almasry
Make skb_frag_page() fail in the case where the frag is not backed by a page, and fix its relevant callers to handle this case. Signed-off-by: Mina Almasry --- Changes in v1: - Fix illegal_highdma() (Yunsheng). - Rework napi_pp_put_page() slightly to reduce code churn (Willem). (cherry picked

[RFC PATCH net-next v5 10/14] net: add support for skbs with unreadable frags

2023-12-17 Thread Mina Almasry
For device memory TCP, we expect the skb headers to be available in host memory for access, and we expect the skb frags to be in device memory and unaccessible to the host. We expect there to be no mixing and matching of device memory frags (unaccessible) with host memory frags (accessible) in the

[RFC PATCH net-next v5 11/14] tcp: RX path for devmem TCP

2023-12-17 Thread Mina Almasry
In tcp_recvmsg_locked(), detect if the skb being received by the user is a devmem skb. In this case - if the user provided the MSG_SOCK_DEVMEM flag - pass it to tcp_recvmsg_devmem() for custom handling. tcp_recvmsg_devmem() copies any data in the skb header to the linear buffer, and returns a cmsg

[RFC PATCH net-next v5 12/14] net: add SO_DEVMEM_DONTNEED setsockopt to release RX frags

2023-12-17 Thread Mina Almasry
Add an interface for the user to notify the kernel that it is done reading the devmem dmabuf frags returned as cmsg. The kernel will drop the reference on the frags to make them available for re-use. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry ---

[RFC PATCH net-next v5 13/14] net: add devmem TCP documentation

2023-12-17 Thread Mina Almasry
Signed-off-by: Mina Almasry --- v1 -> v2: - Missing spdx (simon) - add to index.rst (simon) --- Documentation/networking/devmem.rst | 271 Documentation/networking/index.rst | 1 + 2 files changed, 272 insertions(+) create mode 100644 Documentation/networking/

[RFC PATCH net-next v5 14/14] selftests: add ncdevmem, netcat for devmem TCP

2023-12-17 Thread Mina Almasry
ncdevmem is a devmem TCP netcat. It works similarly to netcat, but it sends and receives data using the devmem TCP APIs. It uses udmabuf as the dmabuf provider. It is compatible with a regular netcat running on a peer, or a ncdevmem running on a peer. In addition to normal netcat support, ncdevmem

RE: [xdp-hints] Re: [PATCH bpf-next v3 2/3] net: stmmac: add Launch Time support to XDP ZC

2023-12-17 Thread Song, Yoong Siang
Hi all, Fyi, I submitted a patch [1] to enable tx metadata for igc driver as a preparation to add launch time to it. After the patch is accepted, I will include igc driver in next version of launch time patch set. [1] https://patchwork.kernel.org/project/netdevbpf/patch/20231215162158.951925-1