Re: [PATCH 1/2] dt-bindings: arm: qcom: Add Lenovo Xiaoxin Pad Pro 2021

2025-02-17 Thread Krzysztof Kozlowski
On Mon, Feb 17, 2025 at 12:32:54PM +0100, David Wronek wrote: > Document the Lenovo Xiaoxin Pad Pro 2021 Android tablet based on the > Qualcomm Snapdragon 870 (SM8250-AC) SoC. > > Signed-off-by: David Wronek > --- > Documentation/devicetree/bindings/arm/qcom.yaml | 1 + > 1 file changed, 1 inser

Re: [PATCH] kunit: Clarify kunit_skip() argument name

2025-02-17 Thread David Gow
On Mon, 17 Feb 2025 at 22:00, Kevin Brodsky wrote: > > kunit_skip() and kunit_mark_skipped() can only be passed a pointer > to a struct kunit, not struct kunit_suite (only kunit_log() actually > supports both). Rename their first argument accordingly. > > Signed-off-by: Kevin Brodsky > --- > Cc:

Re: [PATCH] kunit: tool: Build GDB scripts

2025-02-17 Thread David Gow
On Tue, 21 Jan 2025 at 21:01, Brendan Jackman wrote: > > Following a similar rationale as commit e4835f1da425f ("kunit: tool: > Build compile_commands.json"), make a common developer tool available by > default for KUnit users. > > Compared to compile_commands.json, there is a little more work to

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-17 Thread Josh Poimboeuf
On Mon, Feb 17, 2025 at 08:38:22PM -0800, Song Liu wrote: > On Fri, Feb 14, 2025 at 3:23 PM Josh Poimboeuf wrote: > > Poking around the arm64 module code, arch/arm64/kernel/module-plts.c > > is looking at all the relocations in order to set up the PLT. That also > > needs to be done for klp relas

Re: [PATCH] tools/nolibc: add support for N64 and N32 ABIs

2025-02-17 Thread Willy Tarreau
Mi Maciej, On Mon, Feb 17, 2025 at 11:23:11PM +, Maciej W. Rozycki wrote: > > > Why is this code breaking stack alignment just to have to fix it up two > > > instructions down the line? Or is it that the incoming $sp is not > > > aligned > > > in the first place (in which case we're havin

Re: [PATCH 0/8] unwind, arm64: add sframe unwinder for kernel

2025-02-17 Thread Song Liu
On Fri, Feb 14, 2025 at 3:23 PM Josh Poimboeuf wrote: > > On Fri, Feb 14, 2025 at 02:04:17PM -0800, Song Liu wrote: > > Hi Josh, > > > > On Fri, Feb 14, 2025 at 11:34 AM Josh Poimboeuf wrote: > > > > > > On Fri, Feb 14, 2025 at 09:51:41AM -0800, Song Liu wrote: > > > > > Ignorant arm64 question:

Re: [PATCH v7 4/8] mm/huge_memory: add buddy allocator like (non-uniform) folio_split()

2025-02-17 Thread Andrew Morton
On Mon, 17 Feb 2025 10:22:44 -0500 Zi Yan wrote: > > > > Thanks. The patch below should fix it. > > > > I am going to send V8, since > > 1. there have been 4 fixes so far for V7, a new series would help people > > review; > > > > 2. based on the discussion with you in THP cabal meeting, to > > c

[PATCH net-next] virtio-net: tweak for better TX performance in NAPI mode

2025-02-17 Thread Jason Wang
There are several issues existed in start_xmit(): - Transmitted packets need to be freed before sending a packet, this introduces delay and increases the average packets transmit time. This also increase the time that spent in holding the TX lock. - Notification is enabled after free_old_xmit_

Re: [PATCH bpf-next v2 6/6] selftests/bpf: fix file descriptor assertion in open_tuntap helper

2025-02-17 Thread Willem de Bruijn
Marcus Wichelmann wrote: > The open_tuntap helper function uses open() to get a file descriptor for > /dev/net/tun. > > The open(2) manpage writes this about its return value: > > On success, open(), openat(), and creat() return the new file > descriptor (a nonnegative integer). On error, -1

Re: [PATCH bpf-next v2 3/6] selftests/bpf: move open_tuntap to network helpers

2025-02-17 Thread Willem de Bruijn
Marcus Wichelmann wrote: > To test the XDP metadata functionality of the tun driver, it's necessary > to create a new tap device first. A helper function for this already > exists in lwt_helpers.h. Move it to the common network helpers header, > so it can be reused in other tests. > > Signed-off-b

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2025-02-17 Thread Ning, Hongyu
On 2025/2/18 8:12, Michael S. Tsirkin wrote: On Tue, Feb 18, 2025 at 07:57:23AM +0800, Ning, Hongyu wrote: On 2025/2/17 17:25, Eric Auger wrote: Hi Michael, Hongyu, On 2/14/25 1:16 PM, Michael S. Tsirkin wrote: On Fri, Feb 14, 2025 at 08:56:56AM +0100, Eric Auger wrote: Hi, On 2/14/25

Re: [PATCH bpf-next v2 2/6] net: tun: enable transfer of XDP metadata to skb

2025-02-17 Thread Willem de Bruijn
Marcus Wichelmann wrote: > When the XDP metadata area was used, it is expected that the same > metadata can also be accessed from TC, as can be read in the description > of the bpf_xdp_adjust_meta helper function. In the tun driver, this was > not yet implemented. > > To make this work, the skb th

Re: [PATCH bpf-next v2 2/6] net: tun: enable transfer of XDP metadata to skb

2025-02-17 Thread Willem de Bruijn
Marcus Wichelmann wrote: > When the XDP metadata area was used, it is expected that the same > metadata can also be accessed from TC, as can be read in the description > of the bpf_xdp_adjust_meta helper function. In the tun driver, this was > not yet implemented. > > To make this work, the skb th

Re: [PATCH net-next v8 0/3] netdev-genl: Add an xsk attribute to queues

2025-02-17 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 14 Feb 2025 21:12:28 + you wrote: > Greetings: > > Welcome to v8. Minor change, see changelog below. Re-tested on my mlx5 > system both with and without CONFIG_XDP_SOCKETS enabled and both with > and wit

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2025-02-17 Thread Michael S. Tsirkin
On Tue, Feb 18, 2025 at 07:57:23AM +0800, Ning, Hongyu wrote: > > > On 2025/2/17 17:25, Eric Auger wrote: > > Hi Michael, Hongyu, > > > > On 2/14/25 1:16 PM, Michael S. Tsirkin wrote: > > > On Fri, Feb 14, 2025 at 08:56:56AM +0100, Eric Auger wrote: > > > > Hi, > > > > > > > > On 2/14/25 8:21 A

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2025-02-17 Thread Ning, Hongyu
On 2025/2/17 17:25, Eric Auger wrote: Hi Michael, Hongyu, On 2/14/25 1:16 PM, Michael S. Tsirkin wrote: On Fri, Feb 14, 2025 at 08:56:56AM +0100, Eric Auger wrote: Hi, On 2/14/25 8:21 AM, Ning, Hongyu wrote: On 2025/2/6 16:59, Eric Auger wrote: Hi, On 2/4/25 12:46 PM, Eric Auger wrote

Re: [PATCH v2] selftests/vDSO: fix GNU hash table entry size for s390x

2025-02-17 Thread Vasily Gorbik
On Mon, Feb 17, 2025 at 02:04:18PM +0100, Thomas Weißschuh wrote: > Commit 14be4e6f3522 ("selftests: vDSO: fix ELF hash table entry size for > s390x") > changed the type of the ELF hash table entries to 64bit on s390x. > However the *GNU* hash tables entries are always 32bit. > The "bucket" pointe

Re: [PATCH] tools/nolibc: add support for N64 and N32 ABIs

2025-02-17 Thread Maciej W. Rozycki
Hi Thomas, > thanks for your feedback! You're welcome. Sadly little MIPS-fu seems still available nowadays and for me it's often too easy to miss MIPS-related topics in the mailing list flood. > > Why is this code breaking stack alignment just to have to fix it up two > > instructions down

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2025-02-17 Thread Michael S. Tsirkin
On Mon, Feb 17, 2025 at 05:59:30PM +0100, Eric Auger wrote: > Hi Michael, > > On 2/17/25 10:25 AM, Eric Auger wrote: > > Hi Michael, Hongyu, > > > > On 2/14/25 1:16 PM, Michael S. Tsirkin wrote: > >> On Fri, Feb 14, 2025 at 08:56:56AM +0100, Eric Auger wrote: > >>> Hi, > >>> > >>> On 2/14/25 8:21

[PATCH v5 10/13] ARM: dts: qcom: msm8226: Add BAM DMUX Ethernet/IP device

2025-02-17 Thread Luca Weiss
BAM DMUX is used as the network interface to the modem. Reviewed-by: Stephan Gerhold Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8226.dtsi b/arch/arm/boot/d

[PATCH v5 12/13] ARM: dts: qcom: msm8926-htc-memul: Enable modem

2025-02-17 Thread Luca Weiss
Enable the modem found on the MSM8926 HTC One Mini 2. Reviewed-by: Stephan Gerhold Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm/boot/dts/qcom/qcom-msm8926-htc-memul.dts b/arch/arm/boot/d

[PATCH v5 13/13] ARM: dts: qcom: msm8226-samsung-matisse-common: Enable modem

2025-02-17 Thread Luca Weiss
From: Matti Lehtimäki Enable modem remoteproc on samsung,matisse-wifi & matisselte. The mattisselte - being msm8926 - requires an extra mss-supply, so add that as well. Signed-off-by: Matti Lehtimäki Reviewed-by: Stephan Gerhold Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8

[PATCH v5 11/13] ARM: dts: qcom: Introduce dtsi for LTE-capable MSM8926

2025-02-17 Thread Luca Weiss
MSM8926, while being 'just' an LTE-capable variant of MSM8226, the dts needs to slightly change since the modem doesn't use the ext-bhs-reg and needs mss-supply, therefore it gets a new compatible. Since we already have two -common.dtsi files which are used on both APQ8026/MSM8226 and MSM8926 devi

[PATCH v5 09/13] ARM: dts: qcom: msm8226: Add modem remoteproc node

2025-02-17 Thread Luca Weiss
Add a node for the modem remoteproc found on MSM8226. Co-developed-by: Matti Lehtimäki Signed-off-by: Matti Lehtimäki Reviewed-by: Stephan Gerhold Signed-off-by: Luca Weiss --- .../dts/qcom/qcom-apq8026-samsung-milletwifi.dts | 2 + .../qcom/qcom-msm8226-samsung-matisse-common.dtsi | 6 +

[PATCH v5 08/13] ARM: dts: qcom: msm8226: Add smsm node

2025-02-17 Thread Luca Weiss
From: Matti Lehtimäki Add smsm node for remoteproc cores. Reviewed-by: Stephan Gerhold Signed-off-by: Matti Lehtimäki Co-developed-by: Luca Weiss Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 34 1 file changed, 34 insertions(+) d

[PATCH v5 07/13] ARM: dts: qcom: msm8226: Add node for TCSR halt regs

2025-02-17 Thread Luca Weiss
From: Matti Lehtimäki Add a syscon device node for the TCSR halt regs needed by modem and other remoteprocs. Signed-off-by: Matti Lehtimäki Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm/boot/dts/qcom/qcom-msm8226.dtsi | 5 + 1 file changed, 5 insertions(+) diff --git

[PATCH v5 05/13] remoteproc: qcom_q6v5_mss: Add modem support on MSM8226

2025-02-17 Thread Luca Weiss
Add support for the external power block headswitch register needed by MSM8226 and some other qcom platforms. Co-developed-by: Matti Lehtimäki Signed-off-by: Matti Lehtimäki Reviewed-by: Stephan Gerhold Signed-off-by: Luca Weiss --- drivers/remoteproc/qcom_q6v5_mss.c | 117 +++

[PATCH v5 06/13] remoteproc: qcom_q6v5_mss: Add modem support on MSM8926

2025-02-17 Thread Luca Weiss
While MSM8926 being 'just' an LTE-capable variant of MSM8226 it appears the modem setup has changed significantly, by requiring mss-supply and not using the ext-bhs-reg. Add a new compatible and new struct to support that. Reviewed-by: Stephan Gerhold Signed-off-by: Luca Weiss --- drivers/remo

[PATCH v5 04/13] remoteproc: qcom_q6v5_mss: Handle platforms with one power domain

2025-02-17 Thread Luca Weiss
For example MSM8974 has mx voltage rail exposed as regulator and only cx voltage rail is exposed as power domain. This power domain (cx) is attached internally in power domain and cannot be attached in this driver. Fixes: 8750cf392394 ("remoteproc: qcom_q6v5_mss: Allow replacing regulators with p

[PATCH v5 02/13] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add MSM8226

2025-02-17 Thread Luca Weiss
From: Matti Lehtimäki Add support for external power block headswitch (BHS) registers. Similarly to MSM8974 also MSM8226 has the mx voltage rail exposed as regulator and only cx voltage rail as power domain. Signed-off-by: Matti Lehtimäki Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca We

[PATCH v5 01/13] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Support platforms with one power domain

2025-02-17 Thread Luca Weiss
From: Matti Lehtimäki Add support for platforms such as MSM8974 which have the mx voltage rail exposed as regulator and only cx voltage rail as power domain. Signed-off-by: Matti Lehtimäki Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- .../bindings/remoteproc/qcom,msm8916-mss

[PATCH v5 03/13] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add MSM8926

2025-02-17 Thread Luca Weiss
Compared to MSM8226 the LTE-capable MSM8926 requires mss-supply and doesn't require qcom,ext-bhs-reg. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- .../devicetree/bindings/remoteproc/qcom,msm8916-mss-pil.yaml | 12 +--- 1 file changed, 9 insertions(+), 3 deletions(-) d

[PATCH v5 00/13] Modem support for MSM8226

2025-02-17 Thread Luca Weiss
This series adds support for modem remoteproc found on MSM8226. It also adds needed device tree nodes and enables modem used for location service on matisse-wifi. Also bam-dmux node is added for mobile data which is used on 3G/4G-enabled devices. Signed-off-by: Luca Weiss --- Changes in v5: - Co

Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-17 Thread Zi Yan
On 17 Feb 2025, at 16:44, David Hildenbrand wrote: > On 11.02.25 16:50, Zi Yan wrote: >> It is a preparation patch for non-uniform folio split, which always split >> a folio into half iteratively, and minimal xarray entry split. >> >> Currently, xas_split_alloc() and xas_split() always split all s

Re: [PATCH v7 1/8] xarray: add xas_try_split() to split a multi-index entry.

2025-02-17 Thread David Hildenbrand
On 11.02.25 16:50, Zi Yan wrote: It is a preparation patch for non-uniform folio split, which always split a folio into half iteratively, and minimal xarray entry split. Currently, xas_split_alloc() and xas_split() always split all slots from a multi-index entry. They cost the same number of xa_

Re: [PATCH] tools/nolibc: add support for N64 and N32 ABIs

2025-02-17 Thread Thomas Weißschuh
Hi Maciej, thanks for your feedback! On 2025-02-16 15:41:55+, Maciej W. Rozycki wrote: > On Wed, 12 Feb 2025, Thomas Weißschuh wrote: > > diff --git a/tools/include/nolibc/arch-mips.h > > b/tools/include/nolibc/arch-mips.h > > index > > 753a8ed2cf695f0b5eac4b5e4d317fdb383ebf93..638520a3427a

Re: [PATCH 2/2] selftests/mm: Allow tests to run with no huge pages support

2025-02-17 Thread Nico Pache
On Wed, Feb 12, 2025 at 10:52 AM Mark Brown wrote: > > Currently the mm selftests refuse to run if huge pages are not available in > the current system but this is an optional feature and not all the tests > actually require them. Change the test during startup to be non-fatal and > skip or omit t

Re: [PATCH 1/2] selftests/mm: Fix check for running THP tests

2025-02-17 Thread Nico Pache
On Wed, Feb 12, 2025 at 10:52 AM Mark Brown wrote: > > When testing if we should try to compact memory or drop caches before we > run the THP or HugeTLB tests we use | as an or operator. This doesn't work > since run_vmtests.sh is written in shell where this is used to pipe the > output of the fir

Re: [PATCH] tools/nolibc: add support for N64 and N32 ABIs

2025-02-17 Thread Thomas Weißschuh
On 2025-02-16 10:49:38+0100, Willy Tarreau wrote: > On Wed, Feb 12, 2025 at 07:49:53PM +0100, Thomas Weißschuh wrote: > > +#if defined(_ABIO32) > > + > > #define _NOLIBC_SYSCALL_CLOBBERLIST \ > > "memory", "cc", "at", "v1", "hi", "lo", \ > > "t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7",

Re: [PATCH] selftests/nolibc: only run constructor tests on nolibc

2025-02-17 Thread Thomas Weißschuh
On 2025-02-16 10:39:40+0100, Willy Tarreau wrote: > On Wed, Feb 12, 2025 at 07:01:01PM +0100, Thomas Weißschuh wrote: > > The nolibc testsuite can be run against other libcs to test for > > interoperability. Some aspects of the constructor execution are not > > standardized and musl does not provid

Re: [PATCH 2/2] rseq/selftests: Add test for mm_cid compaction

2025-02-17 Thread Mathieu Desnoyers
On 2025-02-17 06:23, Gabriele Monaco wrote: A task in the kernel (task_mm_cid_work) runs somewhat periodically to compact the mm_cid for each process. Add a test to validate that it runs correctly and timely. The test spawns 1 thread pinned to each CPU, then each thread, including the main one,

[PATCH vhost] vdpa/mlx5: Fix oversized null mkey longer than 32bit

2025-02-17 Thread Dragos Tatulea
From: Si-Wei Liu create_user_mr() has correct code to count the number of null keys used to fill in a hole for the memory map. However, fill_indir() does not follow the same to cap the range up to the 1GB limit correspondinly. Fill in more null keys for the gaps in between, so that null keys are

Re: [PATCH net 2/4] vsock/bpf: Warn on socket without transport

2025-02-17 Thread Michal Luczaj
On 2/17/25 11:59, Stefano Garzarella wrote: > On Thu, Feb 13, 2025 at 12:58:50PM +0100, Michal Luczaj wrote: >> In the spirit of commit 91751e248256 ("vsock: prevent null-ptr-deref in >> vsock_*[has_data|has_space]"), armorize the "impossible" cases with a >> warning. >> >> Fixes: 634f1a7110b4 ("vs

[PATCH] selftests/damon/damos_quota_goal: handle minimum quota that cannot be further reduced

2025-02-17 Thread SeongJae Park
damos_quota_goal.py selftest see if DAMOS quota goals tuning feature increases or reduces the effective size quota for given score as expected. The tuning feature sets the minimum quota size as one byte, so if the effective size quota is already one, we cannot expect it further be reduced. Howeve

Re: [PATCH net-next v5 8/8] net: pktgen: use defines for the various dec/hex number parsing digits lengths

2025-02-17 Thread Jakub Kicinski
On Sun, 16 Feb 2025 09:17:39 + Simon Horman wrote: > On Fri, Feb 14, 2025 at 08:11:45PM -0800, Jakub Kicinski wrote: > > On Thu, 13 Feb 2025 12:00:25 +0100 Peter Seiderer wrote: > > > Use defines for the various dec/hex number parsing digits lengths > > > (hex32_arg/num_arg calls). > > > >

[PATCH bpf-next v2 1/6] net: tun: enable XDP metadata support

2025-02-17 Thread Marcus Wichelmann
Enable the support for the bpf_xdp_adjust_meta helper function for XDP buffers initialized by the tun driver. This allows to reserve a metadata area that is useful to pass any information from one XDP program to another one, for example when using tail-calls. Whether this helper function can be us

[PATCH bpf-next v2 0/6] XDP metadata support for tun driver

2025-02-17 Thread Marcus Wichelmann
Hi all, Thank you for your review comments. Here is an updated patch series with the requested changes. To add a selftest for the metadata support of the tun driver, I refactored an existing "xdp_context_functional" test which already tested something similar but for the veth driver. I made the t

[PATCH bpf-next v2 4/6] selftests/bpf: refactor xdp_context_functional test and bpf program

2025-02-17 Thread Marcus Wichelmann
The existing XDP metadata test works by creating a veth pair and attaching XDP & TC programs that drop the packet when the condition of the test isn't fulfilled. The test then pings through the veth pair and succeeds when the ping comes through. While this test works great for a veth pair, it is h

[PATCH bpf-next v2 2/6] net: tun: enable transfer of XDP metadata to skb

2025-02-17 Thread Marcus Wichelmann
When the XDP metadata area was used, it is expected that the same metadata can also be accessed from TC, as can be read in the description of the bpf_xdp_adjust_meta helper function. In the tun driver, this was not yet implemented. To make this work, the skb that is being built on XDP_PASS should

[PATCH bpf-next v2 3/6] selftests/bpf: move open_tuntap to network helpers

2025-02-17 Thread Marcus Wichelmann
To test the XDP metadata functionality of the tun driver, it's necessary to create a new tap device first. A helper function for this already exists in lwt_helpers.h. Move it to the common network helpers header, so it can be reused in other tests. Signed-off-by: Marcus Wichelmann --- tools/test

[PATCH bpf-next v2 6/6] selftests/bpf: fix file descriptor assertion in open_tuntap helper

2025-02-17 Thread Marcus Wichelmann
The open_tuntap helper function uses open() to get a file descriptor for /dev/net/tun. The open(2) manpage writes this about its return value: On success, open(), openat(), and creat() return the new file descriptor (a nonnegative integer). On error, -1 is returned and errno is set to indi

[PATCH bpf-next v2 5/6] selftests/bpf: add test for XDP metadata support in tun driver

2025-02-17 Thread Marcus Wichelmann
Add a selftest that creates a tap device, attaches XDP and TC programs, writes a packet with a test payload into the tap device and checks the test result. This test ensures that the XDP metadata support in the tun driver is enabled and that the metadata size is correctly passed to the skb. See th

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2025-02-17 Thread Eric Auger
Hi Michael, On 2/17/25 10:25 AM, Eric Auger wrote: > Hi Michael, Hongyu, > > On 2/14/25 1:16 PM, Michael S. Tsirkin wrote: >> On Fri, Feb 14, 2025 at 08:56:56AM +0100, Eric Auger wrote: >>> Hi, >>> >>> On 2/14/25 8:21 AM, Ning, Hongyu wrote: On 2025/2/6 16:59, Eric Auger wrote: >>>

[PATCH bpf-next 2/3] selftests/bpf: tc_link/tc_opts: Use unique namespace

2025-02-17 Thread Bastien Curutchet (eBPF Foundation)
All the tests use the loopback interface. It prevents from running them in parallel. Use the create_and_open_tid_ns() helper to run each test in its own network namespace. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- tools/testing/selftests/bpf/prog_tests/tc_links.c | 124 +++

Re: [PATCH] virtio: console: Prepare for making REMOTEPROC modular

2025-02-17 Thread Uwe Kleine-König
On Mon, Feb 17, 2025 at 11:53:01AM +0100, Amit Shah wrote: > On Fri, 2025-02-14 at 18:47 +0100, Uwe Kleine-König wrote: > > On Fri, Feb 14, 2025 at 05:55:41PM +0100, Amit Shah wrote: > > > On Fri, 2025-02-14 at 17:52 +0100, Uwe Kleine-König wrote: > > > > Hello Amit, > > > > > > > > On Fri, Feb 14

Re: [PATCH v7 4/8] mm/huge_memory: add buddy allocator like (non-uniform) folio_split()

2025-02-17 Thread Zi Yan
On 16 Feb 2025, at 9:17, Zi Yan wrote: > On 16 Feb 2025, at 5:32, David Hildenbrand wrote: > >> On 11.02.25 16:50, Zi Yan wrote: >>> folio_split() splits a large folio in the same way as buddy allocator >>> splits a large free page for allocation. The purpose is to minimize the >>> number of folio

Re: [PATCH RFC v2 03/10] locking/local_lock: Introduce localtry_lock_t

2025-02-17 Thread Sebastian Andrzej Siewior
On 2025-02-17 15:35:11 [+0100], Vlastimil Babka wrote: > > spin_trylock() is not safe due to explicit locking in the underneath > > rt_spin_trylock() implementation. Removing this explicit locking and > > attempting only "trylock" is undesired due to PI implications. > > Just to be sure, you're su

Re: [PATCH v8 3/4] scanf: convert self-test to KUnit

2025-02-17 Thread Tamir Duberstein
On Sun, Feb 16, 2025 at 3:22 PM Andy Shevchenko wrote: > > Please, when reply, remove boielrplate stuff! > I have just wasted a couple of minutes to understand what's going on in the > message that is 2700 lines of text as the reply to the bot message which was > ~700 lines. My apologies. I forgo

Re: [PATCH RFC v2 03/10] locking/local_lock: Introduce localtry_lock_t

2025-02-17 Thread Vlastimil Babka
On 2/17/25 15:19, Sebastian Andrzej Siewior wrote: > On 2025-02-14 17:27:39 [+0100], Vlastimil Babka wrote: >> From: Sebastian Andrzej Siewior >> >> In !PREEMPT_RT local_lock_irqsave() disables interrupts to protect >> critical section, but it doesn't prevent NMI, so the fully reentrant >> code c

Re: [PATCH RFC v2 03/10] locking/local_lock: Introduce localtry_lock_t

2025-02-17 Thread Sebastian Andrzej Siewior
On 2025-02-14 17:27:39 [+0100], Vlastimil Babka wrote: > From: Sebastian Andrzej Siewior > > In !PREEMPT_RT local_lock_irqsave() disables interrupts to protect > critical section, but it doesn't prevent NMI, so the fully reentrant > code cannot use local_lock_irqsave() for exclusive access. > >

[PATCH 2/2] arm64: dts: qcom: sm8250: Add support for Lenovo Xiaoxin Pad Pro 2021

2025-02-17 Thread David Wronek
Add the initial devicetree for the Lenovo Xiaoxin Pad Pro 2021 Android tablet with the following features: - Wi-Fi and Bluetooth (QCA6390) - Detachable keyboard & touchpad accessory (Connected to an MCU) - Fuel gauge (TI BQ27541) - USB - UFS - Buttons - Remoteprocs - simple-framebuffer Signed-off

[PATCH] kunit: Clarify kunit_skip() argument name

2025-02-17 Thread Kevin Brodsky
kunit_skip() and kunit_mark_skipped() can only be passed a pointer to a struct kunit, not struct kunit_suite (only kunit_log() actually supports both). Rename their first argument accordingly. Signed-off-by: Kevin Brodsky --- Cc: Brendan Higgins Cc: David Gow Cc: Rae Moar Cc: linux-kselft...@v

[PATCH] selftets: lib: remove reference to prime_numbers

2025-02-17 Thread Tamir Duberstein
scanf.sh include ../lib.mk --- base-commit: 0ae0fa3bf0b44c8611d114a9f69985bf451010c3 change-id: 20250217-fix-prime-numbers-f5202155b226 Best regards, -- Tamir Duberstein

[PATCH v2] selftests/vDSO: fix GNU hash table entry size for s390x

2025-02-17 Thread Thomas Weißschuh
Commit 14be4e6f3522 ("selftests: vDSO: fix ELF hash table entry size for s390x") changed the type of the ELF hash table entries to 64bit on s390x. However the *GNU* hash tables entries are always 32bit. The "bucket" pointer is shared between both hash algorithms. On s390x the GNU algorithm assigns

[PATCH bpf-next 3/3] selftests/bpf: tc_links/tc_opts: Serialize tests

2025-02-17 Thread Bastien Curutchet (eBPF Foundation)
The tests aren't allowed to be run in parallel while they could be. Replace serial_test_*() calls by test_*() ones to allow parallelization of these tests. Rename some 'subtests' functions to avoid name conflicts with the actual tests. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- too

[PATCH bpf-next 1/3] selftests/bpf: tc_helpers: Add create_and_open_tid_ns()

2025-02-17 Thread Bastien Curutchet (eBPF Foundation)
Add a create_and_open_tid_ns() helper that creates a new network namespace and open it. Use the append_tid() helper to ensure the uniqueness of the namespace name. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- tools/testing/selftests/bpf/prog_tests/tc_helpers.h | 12 1 fi

[PATCH bpf-next 0/3] selftests/bpf: tc_links/tc_opts: Unserialize tests

2025-02-17 Thread Bastien Curutchet (eBPF Foundation)
Hi all, Both tc_links.c and tc_opts.c do their tests on the loopback interface. It prevents from parallelizing their executions. Use namespaces and the new append_tid() helper to allow this parallelization. Signed-off-by: Bastien Curutchet (eBPF Foundation) --- Bastien Curutchet (eBPF Foundati

[PATCH 1/2] dt-bindings: arm: qcom: Add Lenovo Xiaoxin Pad Pro 2021

2025-02-17 Thread David Wronek
Document the Lenovo Xiaoxin Pad Pro 2021 Android tablet based on the Qualcomm Snapdragon 870 (SM8250-AC) SoC. Signed-off-by: David Wronek --- Documentation/devicetree/bindings/arm/qcom.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/arm/qcom.yaml b/Doc

[PATCH 0/2] Add initial devicetree for Lenovo Xiaoxin Pad Pro 2021

2025-02-17 Thread David Wronek
change-id: 20250217-lenovo-j716f-79c28f63e5d6 Best regards, -- David Wronek

[PATCH 2/2] rseq/selftests: Add test for mm_cid compaction

2025-02-17 Thread Gabriele Monaco
A task in the kernel (task_mm_cid_work) runs somewhat periodically to compact the mm_cid for each process. Add a test to validate that it runs correctly and timely. The test spawns 1 thread pinned to each CPU, then each thread, including the main one, runs in short bursts for some time. During thi

Re: [PATCH] virtio: console: Prepare for making REMOTEPROC modular

2025-02-17 Thread Amit Shah
On Mon, 2025-02-17 at 11:53 +0100, Amit Shah wrote: > On Fri, 2025-02-14 at 18:47 +0100, Uwe Kleine-König wrote: > > On Fri, Feb 14, 2025 at 05:55:41PM +0100, Amit Shah wrote: > > > On Fri, 2025-02-14 at 17:52 +0100, Uwe Kleine-König wrote: > > > > Hello Amit, > > > > > > > > On Fri, Feb 14, 2025

[PATCH v6 3/6] syscall.h: introduce syscall_set_nr()

2025-02-17 Thread Dmitry V. Levin
Similar to syscall_set_arguments() that complements syscall_get_arguments(), introduce syscall_set_nr() that complements syscall_get_nr(). syscall_set_nr() is going to be needed along with syscall_set_arguments() on all HAVE_ARCH_TRACEHOOK architectures to implement PTRACE_SET_SYSCALL_INFO API. S

Re: [PATCH net 2/4] vsock/bpf: Warn on socket without transport

2025-02-17 Thread Stefano Garzarella
On Thu, Feb 13, 2025 at 12:58:50PM +0100, Michal Luczaj wrote: In the spirit of commit 91751e248256 ("vsock: prevent null-ptr-deref in vsock_*[has_data|has_space]"), armorize the "impossible" cases with a warning. Fixes: 634f1a7110b4 ("vsock: support sockmap") Signed-off-by: Michal Luczaj --- n

Re: [PATCH] virtio: console: Prepare for making REMOTEPROC modular

2025-02-17 Thread Amit Shah
On Fri, 2025-02-14 at 18:47 +0100, Uwe Kleine-König wrote: > On Fri, Feb 14, 2025 at 05:55:41PM +0100, Amit Shah wrote: > > On Fri, 2025-02-14 at 17:52 +0100, Uwe Kleine-König wrote: > > > Hello Amit, > > > > > > On Fri, Feb 14, 2025 at 05:37:52PM +0100, Amit Shah wrote: > > > > I'm thinking of th

Re: [PATCH v6 6/6] rust: add parameter support to the `module!` macro

2025-02-17 Thread Petr Pavlu
On 2/11/25 16:57, Andreas Hindborg wrote: > 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. > > Signed-off-by: Andreas Hindborg For what it's worth, this looks reasona

Re: [PATCH] virtio: Remove virtio devices on device_shutdown()

2025-02-17 Thread Eric Auger
Hi Michael, Hongyu, On 2/14/25 1:16 PM, Michael S. Tsirkin wrote: > On Fri, Feb 14, 2025 at 08:56:56AM +0100, Eric Auger wrote: >> Hi, >> >> On 2/14/25 8:21 AM, Ning, Hongyu wrote: >>> >>> >>> On 2025/2/6 16:59, Eric Auger wrote: Hi, On 2/4/25 12:46 PM, Eric Auger wrote: > Hi, >

Re: [PATCH v7 1/6] pidfd: add PIDFD_SELF* sentinels to refer to own thread/process

2025-02-17 Thread Christian Brauner
On Tue, Feb 11, 2025 at 03:45:20PM +, Lorenzo Stoakes wrote: > On Tue, Feb 11, 2025 at 04:24:07PM +0100, Michal Koutný wrote: > > On Thu, Jan 30, 2025 at 08:40:26PM +, Lorenzo Stoakes > > wrote: > > > > > > Signed-off-by: Lorenzo Stoakes > > > --- > > > include/uapi/linux/pidfd.h | 24

[PATCH] remoteproc: omap: add comment for is_iomem

2025-02-17 Thread Peng Fan (OSS)
From: Peng Fan Address warning: "Function parameter or struct member 'is_iomem' not described in 'omap_rproc_da_to_va'" with adding comment for is_iomem. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202502161648.wzwrfv7i-...@intel.com/ Cc: Andrew Davis Signed-o