Re: [PATCH v3 5/5] KVM: selftests: KVM: SVM: Add Idle HLT intercept test

2024-05-30 Thread Chao Gao
On Thu, May 30, 2024 at 06:49:56PM +0530, Manali Shukla wrote: >Hi Chao, >Thank you for reviewing my patches. > >On 5/28/2024 1:16 PM, Chao Gao wrote: >>> +static void guest_code(void) >>> +{ >>> + uint32_t icr_val; >>> + int i; >>> + >>> + xapic_enable(); >>> + >>> + icr_val = (APIC_DEST_S

Re: [PATCH v2 2/2] selftests/resctrl: Adjust SNC support messages

2024-05-30 Thread Maciej Wieczor-Retman
Hello! On 2024-05-30 at 16:07:34 -0700, Reinette Chatre wrote: >Hi Maciej, > >On 5/15/24 4:18 AM, Maciej Wieczor-Retman wrote: >> Resctrl selftest prints a message on test failure that Sub-Numa >> Clustering (SNC) could be enabled and points the user to check theirs BIOS >> settings. No actual che

Re: [PATCH v2 0/6] selftests/x86: fix build errors and warnings found via clang

2024-05-30 Thread Muhammad Usama Anjum
On 5/31/24 1:00 AM, John Hubbard wrote: > On 5/30/24 12:46 PM, Dave Hansen wrote: >> On 5/27/24 14:00, John Hubbard wrote: >>> John Hubbard (6): >>>    selftests/x86: build test_FISTTP.c with clang >>>    selftests/x86: build fsgsbase_restore.c with clang >>>    selftests/x86: build sysret_rip.c wi

RE: [PATCH v2 1/2] selftests/resctrl: Adjust effective L3 cache size with SNC enabled

2024-05-30 Thread Luck, Tony
> >>> When SNC mode is enabled the effective amount of L3 cache available > >>> for allocation is divided by the number of nodes per L3. > >> > >> This was a mistake in original implementation and no longer done. > > > > My original kernel code adjusted value reported in the "size" file in > > res

Re: [PATCH net-next v10 01/14] netdev: add netdev_rx_queue_restart()

2024-05-30 Thread David Wei
On 2024-05-30 13:16, Mina Almasry wrote: [...] > +err_start_queue: > + /* Restarting the queue with old_mem should be successful as we haven't > + * changed any of the queue configuration, and there is not much we can > + * do to recover from a failure here. > + * > + * WARN

Re: [PATCH v2 1/2] selftests/resctrl: Adjust effective L3 cache size with SNC enabled

2024-05-30 Thread Reinette Chatre
Hi Tony, On 5/30/24 4:46 PM, Luck, Tony wrote: When SNC mode is enabled the effective amount of L3 cache available for allocation is divided by the number of nodes per L3. This was a mistake in original implementation and no longer done. My original kernel code adjusted value reported in the

RE: [PATCH v2 1/2] selftests/resctrl: Adjust effective L3 cache size with SNC enabled

2024-05-30 Thread Luck, Tony
>> When SNC mode is enabled the effective amount of L3 cache available >> for allocation is divided by the number of nodes per L3. > > This was a mistake in original implementation and no longer done. My original kernel code adjusted value reported in the "size" file in resctrl. That's no longer d

Re: [PATCH bpf-next 3/8] selftests/bpf: Use bpf_link attachments in test_sockmap

2024-05-30 Thread John Fastabend
Geliang Tang wrote: > On Mon, 2024-05-27 at 21:36 +0200, Jakub Sitnicki wrote: > > On Mon, May 27, 2024 at 10:12 AM -07, John Fastabend wrote: > > > Geliang Tang wrote: > > > > From: Geliang Tang > > > > > > > > Switch attachments to bpf_link using > > > > bpf_program__attach_sockmap() instead >

[PATCH net-next v2 2/2] selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a netns

2024-05-30 Thread technoboy85
From: Matteo Croce Add a selftest which checks that the sysctl is present in a netns, that the value is read from the init one, and that it's readonly. Signed-off-by: Matteo Croce --- tools/testing/selftests/net/Makefile| 1 + tools/testing/selftests/net/netns-sysctl.sh | 40 +

[PATCH net-next v2 1/2] net: make net.core.{r,w}mem_{default,max} namespaced

2024-05-30 Thread technoboy85
From: Matteo Croce The following sysctl are global and can't be read from a netns: net.core.rmem_default net.core.rmem_max net.core.wmem_default net.core.wmem_max Make the following sysctl parameters available readonly from within a network namespace, allowing a container to read them. Signed-

[PATCH net-next v2 0/2] net: visibility of memory limits in netns

2024-05-30 Thread technoboy85
From: Matteo Croce Some programs need to know the size of the network buffers to operate correctly, export the following sysctls read-only in network namespaces: - net.core.rmem_default - net.core.rmem_max - net.core.wmem_default - net.core.wmem_max Matteo Croce (2): net: make net.core.{r,w}m

Re: [PATCH v2 2/2] selftests/resctrl: Adjust SNC support messages

2024-05-30 Thread Reinette Chatre
Hi Maciej, On 5/15/24 4:18 AM, Maciej Wieczor-Retman wrote: Resctrl selftest prints a message on test failure that Sub-Numa Clustering (SNC) could be enabled and points the user to check theirs BIOS settings. No actual check is performed before printing that message so it is not very accurate in

Re: [PATCH v2 1/2] selftests/resctrl: Adjust effective L3 cache size with SNC enabled

2024-05-30 Thread Reinette Chatre
Hi Maciej, Regarding shortlog: L3 cache size should no longer be adjusted when SNC is enabled. You mention that the tests are passing when running with this adjustment ... I think that this may be because the test now just runs on a smaller portion of the cache? On 5/15/24 4:18 AM, Maciej Wieczo

Re: [PATCH v5 6/8] riscv: hwprobe: add zve Vector subextensions into hwprobe interface

2024-05-30 Thread Conor Dooley
On Thu, May 30, 2024 at 02:35:51PM -0700, Palmer Dabbelt wrote: > On Thu, 09 May 2024 09:26:56 PDT (-0700), andy.c...@sifive.com wrote: > > diff --git a/arch/riscv/kernel/sys_hwprobe.c > > b/arch/riscv/kernel/sys_hwprobe.c > > index 969ef3d59dbe..35390b4a5a17 100644 > > --- a/arch/riscv/kernel/sys

Re: [PATCH v5 6/8] riscv: hwprobe: add zve Vector subextensions into hwprobe interface

2024-05-30 Thread Palmer Dabbelt
On Thu, 09 May 2024 09:26:56 PDT (-0700), andy.c...@sifive.com wrote: The following Vector subextensions for "embedded" platforms are added into RISCV_HWPROBE_KEY_IMA_EXT_0: - ZVE32X - ZVE32F - ZVE64X - ZVE64F - ZVE64D Extensions ending with an X indicates that the platform doesn't have a v

Re: [PATCH v2 2/3] selftests/futex: don't pass a const char* to asprintf(3)

2024-05-30 Thread John Hubbard
On 5/30/24 2:13 PM, Shuah Khan wrote: On 5/30/24 13:16, John Hubbard wrote: On 5/30/24 12:04 PM, Shuah Khan wrote: On 5/28/24 20:29, John Hubbard wrote: When building with clang, via: make LLVM=1 -C tools/testing/selftests ...clang issues a warning, because test_name is passed into asp

Re: [PATCH v2 1/3] selftests/futex: don't redefine .PHONY targets (all, clean)

2024-05-30 Thread John Hubbard
On 5/30/24 2:12 PM, Shuah Khan wrote: On 5/30/24 13:13, John Hubbard wrote: On 5/30/24 12:03 PM, Shuah Khan wrote: On 5/28/24 20:29, John Hubbard wrote: The .PHONY targets "all" and "clean"  are both defined in the file that is included in the very next line: ../lib.mk. What problems are yo

Re: [PATCH v2 2/3] selftests/futex: don't pass a const char* to asprintf(3)

2024-05-30 Thread Shuah Khan
On 5/30/24 13:16, John Hubbard wrote: On 5/30/24 12:04 PM, Shuah Khan wrote: On 5/28/24 20:29, John Hubbard wrote: When building with clang, via: make LLVM=1 -C tools/testing/selftests ...clang issues a warning, because test_name is passed into asprintf(3), which then changes it. Pleas

Re: [PATCH v5 08/16] riscv: add ISA parsing for Zca, Zcf, Zcd and Zcb

2024-05-30 Thread Palmer Dabbelt
On Wed, 22 May 2024 00:20:09 PDT (-0700), cle...@rivosinc.com wrote: On 21/05/2024 21:49, Conor Dooley wrote: On Fri, May 17, 2024 at 04:52:48PM +0200, Clément Léger wrote: +static int riscv_ext_zca_depends(const struct riscv_isa_ext_data *data, +const unsigne

Re: [PATCH v2 1/3] selftests/futex: don't redefine .PHONY targets (all, clean)

2024-05-30 Thread Shuah Khan
On 5/30/24 13:13, John Hubbard wrote: On 5/30/24 12:03 PM, Shuah Khan wrote: On 5/28/24 20:29, John Hubbard wrote: The .PHONY targets "all" and "clean"  are both defined in the file that is included in the very next line: ../lib.mk. What problems are you seeing without this patch? Code dup

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

2024-05-30 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

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

2024-05-30 Thread Mina Almasry
Add documentation outlining the usage and details of devmem TCP. Signed-off-by: Mina Almasry --- v9: https://lore.kernel.org/netdev/20240403002053.2376017-14-almasrym...@google.com/ - Bagas doc suggestions. v8: - Applied docs suggestions (Randy). Thanks! v7: - Applied docs suggestions (Jakub

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

2024-05-30 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 reuse. Signed-off-by: Willem de Bruijn Signed-off-by: Kaiyuan Zhang Signed-off-by: Mina Almasry --- v

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

2024-05-30 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

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

2024-05-30 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

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

2024-05-30 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 --- v10: - Fixed newly generated kdoc warnings found by patchwork. While we're at it, fix the Return section of the functions I touched.

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

2024-05-30 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

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

2024-05-30 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

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

2024-05-30 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

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

2024-05-30 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

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

2024-05-30 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:

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

2024-05-30 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 --- v7: - Use flags: [ admin-perm ] instead of a CAP_NET_ADMIN check. Changes in v1: - Add rx-queue-type to

[PATCH net-next v10 02/14] net: page_pool: create hooks for custom page providers

2024-05-30 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

[PATCH net-next v10 01/14] netdev: add netdev_rx_queue_restart()

2024-05-30 Thread Mina Almasry
Add netdev_rx_queue_restart() function to netdev_rx_queue.h Signed-off-by: David Wei Signed-off-by: Mina Almasry --- v9: https://lore.kernel.org/all/20240502045410.3524155-4...@davidwei.uk/ (submitted by David). - fixed SPDX license identifier (Simon). - Rebased on top of merged queue API defi

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

2024-05-30 Thread Mina Almasry
v10: https://patchwork.kernel.org/project/netdevbpf/list/?series=852422&state=* Major Changes: -- v9 was sent right before the merge window closed (sorry!). v10 is almost a re-send of the series now that the merge window re-opened. Only rebased to latest net-next and addressed so

Re: [PATCH v2 0/6] selftests/x86: fix build errors and warnings found via clang

2024-05-30 Thread John Hubbard
On 5/30/24 12:46 PM, Dave Hansen wrote: On 5/27/24 14:00, John Hubbard wrote: John Hubbard (6): selftests/x86: build test_FISTTP.c with clang selftests/x86: build fsgsbase_restore.c with clang selftests/x86: build sysret_rip.c with clang selftests/x86: avoid -no-pie warnings from cla

Re: [PATCH v2 0/6] selftests/x86: fix build errors and warnings found via clang

2024-05-30 Thread Dave Hansen
On 5/27/24 14:00, John Hubbard wrote: > John Hubbard (6): > selftests/x86: build test_FISTTP.c with clang > selftests/x86: build fsgsbase_restore.c with clang > selftests/x86: build sysret_rip.c with clang > selftests/x86: avoid -no-pie warnings from clang during compilation > selftests/x

Re: [PATCH 2/2] selftests/lib.mk: silence some clang warnings that gcc already ignores

2024-05-30 Thread John Hubbard
On 5/30/24 7:25 AM, Shuah Khan wrote: On 5/28/24 20:08, John Hubbard wrote: gcc defaults to silence (off) for the following warnings, but clang defaults to the opposite. These warnings are not useful for kselftests, so silence them for the clang builds as well: Please you add more information

Re: [PATCH v2] selftests/vDSO: fix clang build errors and warnings

2024-05-30 Thread John Hubbard
On 5/29/24 1:05 AM, Muhammad Usama Anjum wrote: On 5/28/24 2:16 AM, John Hubbard wrote: When building with clang, via: make LLVM=1 -C tools/testing/selftests ...there are several warnings, and an error. This fixes all of those and allows these tests to run and pass. 1. Fix linker error (

Re: [PATCH v2 0/6] selftests/x86: fix build errors and warnings found via clang

2024-05-30 Thread John Hubbard
On 5/30/24 7:58 AM, Shuah Khan wrote: On 5/27/24 15:00, John Hubbard wrote: Hi, Just a bunch of build and warnings fixes that show up when building with clang. Some of these depend on each other, so I'm sending them as a series. Changes since the first version: 1) Rebased onto Linux 6.10-rc1

Re: [PATCH v2 2/3] selftests/futex: don't pass a const char* to asprintf(3)

2024-05-30 Thread John Hubbard
On 5/30/24 12:04 PM, Shuah Khan wrote: On 5/28/24 20:29, John Hubbard wrote: When building with clang, via: make LLVM=1 -C tools/testing/selftests ...clang issues a warning, because test_name is passed into asprintf(3), which then changes it. Please include the warning in the commit log

Re: [PATCH v2 1/3] selftests/futex: don't redefine .PHONY targets (all, clean)

2024-05-30 Thread John Hubbard
On 5/30/24 12:03 PM, Shuah Khan wrote: On 5/28/24 20:29, John Hubbard wrote: The .PHONY targets "all" and "clean"  are both defined in the file that is included in the very next line: ../lib.mk. What problems are you seeing without this patch? Code duplication. It's a sin. :) If I recall

Re: [PATCH v2 0/3] selftests/futex: clang-inspired fixes

2024-05-30 Thread Shuah Khan
On 5/30/24 08:23, Shuah Khan wrote: On 5/28/24 20:29, John Hubbard wrote: Hi, Here's a few fixes that are part of my effort to get all selftests building cleanly under clang. Plus one that I noticed by inspection. Changes since the first version: 1) Rebased onto Linux 6.10-rc1 2) Added Review

Re: [PATCH v2 3/3] selftests/futex: pass _GNU_SOURCE without a value to the compiler

2024-05-30 Thread Shuah Khan
On 5/28/24 20:29, John Hubbard wrote: It's slightly better to set _GNU_SOURCE in the source code, but if one must do it via the compiler invocation, then the best way to do so is this: $(CC) -D_GNU_SOURCE= ...because otherwise, if this form is used: $(CC) -D_GNU_SOURCE ...then that

Re: [PATCH v2 2/3] selftests/futex: don't pass a const char* to asprintf(3)

2024-05-30 Thread Shuah Khan
On 5/28/24 20:29, John Hubbard wrote: When building with clang, via: make LLVM=1 -C tools/testing/selftests ...clang issues a warning, because test_name is passed into asprintf(3), which then changes it. Please include the warning in the commit log. Fix this by simply removing the con

Re: [PATCH v2 1/3] selftests/futex: don't redefine .PHONY targets (all, clean)

2024-05-30 Thread Shuah Khan
On 5/28/24 20:29, John Hubbard wrote: The .PHONY targets "all" and "clean" are both defined in the file that is included in the very next line: ../lib.mk. What problems are you seeing without this patch? If I recall correctly, futex needs these defined. Please provide information on why this

Re: [PATCH v2 4/4] selftests/resctrl: Enable MBA/MBA tests on AMD

2024-05-30 Thread Moger, Babu
Hi Reinette, On 5/9/24 16:11, Reinette Chatre wrote: > > > On 4/26/2024 12:06 AM, Ilpo Järvinen wrote: >> On Thu, 25 Apr 2024, Babu Moger wrote: >> >>> Enable MBA/MBM tests if UMC (Unified Memory Controller) support is >>> available on the system. Tests will be skipped otherwise. >>> >>> Update

Re: [PATCH v2 3/4] selftests/resctrl: Add support for MBM and MBA tests on AMD

2024-05-30 Thread Moger, Babu
Hi Reinette, On 5/9/24 16:11, Reinette Chatre wrote: > Hi Babu, > > On 4/25/2024 1:17 PM, Babu Moger wrote: >> Add support to read UMC (Unified Memory Controller) perf events to compare >> the numbers with QoS monitor for AMD. >> >> Signed-off-by: Babu Moger >> --- >> tools/testing/selftests/re

Re: [PATCH v2 2/4] selftests/resctrl: Pass sysfs controller name of the vendor

2024-05-30 Thread Moger, Babu
Hi Reinette, On 5/9/24 16:11, Reinette Chatre wrote: > Hi Babu, > > On 4/25/2024 1:17 PM, Babu Moger wrote: >> Detect the vendor and pass the sysfs name for the vendor for searching >> the controller information. > > Could you please write a proper changelog? Sure. Will do. > >> >> Signed-off

Re: [PATCH v2 0/4] selftests/resctrl: Enable MBM and MBA tests on AMD

2024-05-30 Thread Moger, Babu
Hi Reinette, On 5/9/24 16:10, Reinette Chatre wrote: > Hi Babu, > > On 4/25/2024 1:16 PM, Babu Moger wrote: >> >> The MBM (Memory Bandwidth Monitoring) and MBA (Memory Bandwidth Allocation) >> features are not enabled for AMD systems. The reason was lack of perf >> counters to compare the resctrl

Re: [PATCH v2 1/4] selftests/resctrl: Rename variable imcs and num_of_imcs() to generic names

2024-05-30 Thread Moger, Babu
Hi Reinette, Was doing few other things. Sorry for the delay. On 5/9/24 16:10, Reinette Chatre wrote: > Hi Babu, > > On 4/25/2024 1:16 PM, Babu Moger wrote: >> In an effort to support MBM and MBA tests for AMD, renaming for variable >> and functions to generic names. For Intel, the memory control

Re: [PATCH 1/2] Fix userfaultfd_api to return EINVAL as expected

2024-05-30 Thread Audra Mitchell
On Wed, May 08, 2024 at 10:11:28AM -0400, Peter Xu wrote: > On Wed, May 08, 2024 at 08:58:42AM -0400, Audra Mitchell wrote: > > On Wed, May 08, 2024 at 09:39:10AM +0200, David Hildenbrand wrote: > > > On 07.05.24 21:55, Audra Mitchell wrote: > > > > Currently if we request a feature that is not set

Re: [PATCH v5 13/16] riscv: add ISA extension parsing for Zcmop

2024-05-30 Thread Charlie Jenkins
On Fri, May 17, 2024 at 04:52:53PM +0200, Clément Léger wrote: > Add parsing for Zcmop ISA extension which was ratified in commit > b854a709c00 ("Zcmop is ratified/1.0") of the riscv-isa-manual. > > Signed-off-by: Clément Léger > --- > arch/riscv/include/asm/hwcap.h | 1 + > arch/riscv/kernel/cp

Re: [PATCH v5 09/16] riscv: hwprobe: export Zca, Zcf, Zcd and Zcb ISA extensions

2024-05-30 Thread Charlie Jenkins
On Fri, May 17, 2024 at 04:52:49PM +0200, Clément Léger wrote: > Export Zca, Zcf, Zcd and Zcb ISA extension through hwprobe. > > Signed-off-by: Clément Léger > --- > Documentation/arch/riscv/hwprobe.rst | 20 > arch/riscv/include/uapi/asm/hwprobe.h | 4 > arch/riscv/k

Re: [PATCH v4 14/16] selftests/resctrl: Remove mongrp from MBA test

2024-05-30 Thread Reinette Chatre
Hi Ilpo, On 5/30/24 4:56 AM, Ilpo Järvinen wrote: On Wed, 29 May 2024, Reinette Chatre wrote: On 5/20/24 5:30 AM, Ilpo Järvinen wrote: Nothing during MBA test uses mongrp even if it has been defined ever since the introduction of the MBA test in the commit 01fee6b4d1f9 ("selftests/resctrl: Add

Re: [PATCH v4 02/16] selftests/resctrl: Calculate resctrl FS derived mem bw over sleep(1) only

2024-05-30 Thread Reinette Chatre
Hi Ilpo, On 5/30/24 4:11 AM, Ilpo Järvinen wrote: On Tue, 28 May 2024, Reinette Chatre wrote: On 5/28/24 3:19 AM, Ilpo Järvinen wrote: On Fri, 24 May 2024, Ilpo Järvinen wrote: On Fri, 24 May 2024, Reinette Chatre wrote: On 5/24/24 12:57 AM, Ilpo Järvinen wrote: On Thu, 23 May 2024, Reinett

Re: [PATCH v2 0/6] selftests/x86: fix build errors and warnings found via clang

2024-05-30 Thread Shuah Khan
On 5/27/24 15:00, John Hubbard wrote: Hi, Just a bunch of build and warnings fixes that show up when building with clang. Some of these depend on each other, so I'm sending them as a series. Changes since the first version: 1) Rebased onto Linux 6.10-rc1 x86 test patches usually go through x

Re: [PATCH v5 02/16] riscv: add ISA extension parsing for Zimop

2024-05-30 Thread Clément Léger
On 30/05/2024 16:37, Charlie Jenkins wrote: > On Thu, May 30, 2024 at 10:12:39AM +0200, Clément Léger wrote: >> >> >> On 30/05/2024 00:21, Charlie Jenkins wrote: >>> On Wed, May 29, 2024 at 03:08:39PM -0700, Charlie Jenkins wrote: On Fri, May 17, 2024 at 04:52:42PM +0200, Clément Léger wrot

Re: [PATCH v5 02/16] riscv: add ISA extension parsing for Zimop

2024-05-30 Thread Charlie Jenkins
On Thu, May 30, 2024 at 10:12:39AM +0200, Clément Léger wrote: > > > On 30/05/2024 00:21, Charlie Jenkins wrote: > > On Wed, May 29, 2024 at 03:08:39PM -0700, Charlie Jenkins wrote: > >> On Fri, May 17, 2024 at 04:52:42PM +0200, Clément Léger wrote: > >>> Add parsing for Zimop ISA extension which

Re: [PATCH 2/2] selftests/lib.mk: silence some clang warnings that gcc already ignores

2024-05-30 Thread Shuah Khan
On 5/28/24 20:08, John Hubbard wrote: gcc defaults to silence (off) for the following warnings, but clang defaults to the opposite. These warnings are not useful for kselftests, so silence them for the clang builds as well: Please you add more information on why they aren't useful for kselftest

Re: [PATCH v2 0/3] selftests/futex: clang-inspired fixes

2024-05-30 Thread Shuah Khan
On 5/28/24 20:29, John Hubbard wrote: Hi, Here's a few fixes that are part of my effort to get all selftests building cleanly under clang. Plus one that I noticed by inspection. Changes since the first version: 1) Rebased onto Linux 6.10-rc1 2) Added Reviewed-by's. ...and it turns out that al

Re: [PATCH net-next 2/2] selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a netns

2024-05-30 Thread Paolo Abeni
On Thu, 2024-05-30 at 05:10 -0700, Breno Leitao wrote: > On Tue, May 28, 2024 at 02:11:39PM +0200, Matteo Croce wrote: > > Add a selftest which checks that the sysctl is present in a netns, > > that the value is read from the init one, and that it's readonly. > > > > Signed-off-by: Matteo Croce >

Re: [PATCH v3 5/5] KVM: selftests: KVM: SVM: Add Idle HLT intercept test

2024-05-30 Thread Manali Shukla
Hi Chao, Thank you for reviewing my patches. On 5/28/2024 1:16 PM, Chao Gao wrote: >> +static void guest_code(void) >> +{ >> +uint32_t icr_val; >> +int i; >> + >> +xapic_enable(); >> + >> +icr_val = (APIC_DEST_SELF | APIC_INT_ASSERT | VINTR_VECTOR); >> + >> +for (i = 0; i < NUM

Re: [PATCH net-next 2/2] selftests: net: tests net.core.{r,w}mem_{default,max} sysctls in a netns

2024-05-30 Thread Breno Leitao
On Tue, May 28, 2024 at 02:11:39PM +0200, Matteo Croce wrote: > Add a selftest which checks that the sysctl is present in a netns, > that the value is read from the init one, and that it's readonly. > > Signed-off-by: Matteo Croce > --- > tools/testing/selftests/net/Makefile| 1 + > too

Re: [PATCH v4 14/16] selftests/resctrl: Remove mongrp from MBA test

2024-05-30 Thread Ilpo Järvinen
On Wed, 29 May 2024, Reinette Chatre wrote: > On 5/20/24 5:30 AM, Ilpo Järvinen wrote: > > Nothing during MBA test uses mongrp even if it has been defined ever > > since the introduction of the MBA test in the commit 01fee6b4d1f9 > > ("selftests/resctrl: Add MBA test"). > > > > Remove the mongrp f

Re: [PATCH v4 13/16] selftests/resctrl: Convert ctrlgrp & mongrp to pointers

2024-05-30 Thread Ilpo Järvinen
On Wed, 29 May 2024, Reinette Chatre wrote: > Hi Ilpo, > > On 5/20/24 5:30 AM, Ilpo Järvinen wrote: > > The struct resctrl_val_param has control and monitor groups as char > > arrays but they are not supposed to be mutated within resctrl_val(). > > > > Convert the ctrlgrp and mongrp char array w

Re: [PATCH 2/6] loongarch: defconfig: drop RT_GROUP_SCHED=y

2024-05-30 Thread Xi Ruoyao
On Thu, 2024-05-30 at 19:19 +0800, Celeste Liu wrote: > For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it > needs an RT budget assigned, otherwise the processes in it will not be able to > get RT at all. The problem with RT group scheduling is that it requires the > budg

[PATCH 6/6] arm: defconfig: drop RT_GROUP_SCHED=y from bcm2855/tegra/omap2plus

2024-05-30 Thread Celeste Liu
Commit 673ce00c5d6c ("ARM: omap2plus_defconfig: Add support for distros with systemd") said it's because of recommendation from systemd. But systemd changed their recommendation later.[1] For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, oth

[PATCH 5/6] sh: defconfig: drop RT_GROUP_SCHED=y from sdk7786/urquell

2024-05-30 Thread Celeste Liu
For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budge

[PATCH 4/6] powerpc: defconfig: drop RT_GROUP_SCHED=y from ppc6xx_defconfig

2024-05-30 Thread Celeste Liu
Commit 6e5f1537833a ("powerpc: Add a 6xx defconfig") said it was copied from fedore's ppc32 defconfig, but at least since 2015-06-10, Fedora has dropped this option.[1] For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processe

[PATCH 3/6] mips: defconfig: drop RT_GROUP_SCHED=y from generic/db1xxx/eyeq5

2024-05-30 Thread Celeste Liu
For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budge

[PATCH 2/6] loongarch: defconfig: drop RT_GROUP_SCHED=y

2024-05-30 Thread Celeste Liu
For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budge

[PATCH 1/6] riscv: defconfig: drop RT_GROUP_SCHED=y

2024-05-30 Thread Celeste Liu
Commit ba6cfef057e1 ("riscv: enable Docker requirements in defconfig") introduced it because of Docker, but Docker has removed this requirement since [1] (2023-04-19). For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes

[PATCH 0/6] defconfig: drop RT_GROUP_SCHED=y

2024-05-30 Thread Celeste Liu
For cgroup v1, if turned on, and there's any cgroup in the "cpu" hierarchy it needs an RT budget assigned, otherwise the processes in it will not be able to get RT at all. The problem with RT group scheduling is that it requires the budget assigned but there's no way we could assign a default budge

Re: [PATCH v4 02/16] selftests/resctrl: Calculate resctrl FS derived mem bw over sleep(1) only

2024-05-30 Thread Ilpo Järvinen
On Tue, 28 May 2024, Reinette Chatre wrote: > On 5/28/24 3:19 AM, Ilpo Järvinen wrote: > > On Fri, 24 May 2024, Ilpo Järvinen wrote: > > > On Fri, 24 May 2024, Reinette Chatre wrote: > > > > On 5/24/24 12:57 AM, Ilpo Järvinen wrote: > > > > > On Thu, 23 May 2024, Reinette Chatre wrote: > > > > > >

Re: [PATCH v5 02/16] riscv: add ISA extension parsing for Zimop

2024-05-30 Thread Clément Léger
On 30/05/2024 00:21, Charlie Jenkins wrote: > On Wed, May 29, 2024 at 03:08:39PM -0700, Charlie Jenkins wrote: >> On Fri, May 17, 2024 at 04:52:42PM +0200, Clément Léger wrote: >>> Add parsing for Zimop ISA extension which was ratified in commit >>> 58220614a5f of the riscv-isa-manual. >>> >>> S

[PATCH bpf-next 5/5] selftests/bpf: Drop useless arguments of do_test in bpf_tcp_ca

2024-05-30 Thread Geliang Tang
From: Geliang Tang bpf_map_lookup_elem() has been removed from do_test(), it makes the sk_stg_map argument of do_test() useless. In addition, two exactly the same opts are passed in all the places where do_test() is invoked, so cli_opts argument can be dropped too. This patch drops these two use

[PATCH bpf-next 4/5] selftests/bpf: Use start_test in test_dctcp in bpf_tcp_ca

2024-05-30 Thread Geliang Tang
From: Geliang Tang The "if (sk_stg_map)" block in do_test() is only used by test_dctcp(), it makes sense to move it from do_test() into test_dctcp(). Then do_test() can be used by other tests except test_dctcp(). Signed-off-by: Geliang Tang --- .../selftests/bpf/prog_tests/bpf_tcp_ca.c | 2

[PATCH bpf-next 3/5] selftests/bpf: Use start_test in test_dctcp_fallback in bpf_tcp_ca

2024-05-30 Thread Geliang Tang
From: Geliang Tang The newly added helper start_test() can be used in test_dctcp_fallback() too, to replace start_server_str() and connect_to_fd_opts(). In that way, two network_helper_opts srv_opts and cli_opts are used instead of the previously shared opts. Signed-off-by: Geliang Tang --- ..

[PATCH bpf-next 1/5] selftests/bpf: Use connect_to_fd_opts in do_test in bpf_tcp_ca

2024-05-30 Thread Geliang Tang
From: Geliang Tang This patch uses connect_to_fd_opts() instead of using connect_fd_to_fd() and settcpca() in do_test() in prog_tests/bpf_tcp_ca.c to accept a struct network_helper_opts argument. Then define a dctcp dedicated post_socket_cb callback stg_post_socket_cb(), invoking both settcpca()

[PATCH bpf-next 2/5] selftests/bpf: Add start_test helper in bpf_tcp_ca

2024-05-30 Thread Geliang Tang
From: Geliang Tang For moving the "if (sk_stg_map)" block out of do_test(), extract the code before this block as a new function start_test(). It creates server-side and client-side sockets and returns them to the caller. Signed-off-by: Geliang Tang --- .../selftests/bpf/prog_tests/bpf_tcp_ca.

[PATCH bpf-next 0/5] use network helpers, part 6

2024-05-30 Thread Geliang Tang
From: Geliang Tang For moving dctcp test dedicated code out of do_test() into test_dctcp(). This patchset adds a new helper start_test() in bpf_tcp_ca.c to refactor do_test(). Address Martin's comments for the previous series. Geliang Tang (5): selftests/bpf: Use connect_to_fd_opts in do_test