[PATCH 2/2] kunit: qemu_configs: Add MIPS configurations

2025-02-12 Thread Thomas Weißschuh
Add basic support to run various MIPS variants via kunit_tool using the virtualized malta platform. Signed-off-by: Thomas Weißschuh --- tools/testing/kunit/qemu_configs/mips.py | 18 ++ tools/testing/kunit/qemu_configs/mips64.py | 19 +++ tools/testing/kunit

[PATCH 1/2] MIPS: mm: Avoid blocking DMA zone with memory map memblock allocation

2025-02-12 Thread Thomas Weißschuh
On MIPS the memblock allocator is configured to allocate bottom-up. The memory map is allocated by the mm core through memblock and uses MEMBLOCK_LOW_LIMIT as minimal address. This constant is defined as zero because it assumes that "we are using top down, so it is safe to use 0 here". So the memor

[PATCH 0/2] kunit: qemu_configs: Add MIPS configurations

2025-02-12 Thread Thomas Weißschuh
Add basic support to run various MIPS variants via kunit_tool using the virtualized malta platform. Various kunit tests from drivers/firmware/cirrus/ are failing on MIPS. They are fixed in [0]. [0] https://lore.kernel.org/lkml/20250211-cs_dsp-kunit-strings-v1-1-d9bc2035d...@linutronix.de/ Signed

Re: [PATCH v2 1/2] get_maintainer: add --substatus for reporting subsystem status

2025-02-12 Thread Geert Uytterhoeven
Hi Vlastimil, On Tue, 11 Feb 2025 at 17:01, Vlastimil Babka wrote: > On 2/3/25 12:13, Vlastimil Babka wrote: > > The subsystem status is currently reported with --role(stats) by > > adjusting the maintainer role for any status different from Maintained. > > This has two downsides: > > > > - if a

Re: [PATCH v1 1/1] virtio_console: Get rid of unneeded temporary variable

2025-02-12 Thread Amit Shah
On Mon, 2025-02-10 at 11:59 +0200, Andy Shevchenko wrote: > When compiling a kernel with GCC using `make W=1` with > CONFIG_WERROR=y > (which is default nowadays), the build fails: > > drivers/char/virtio_console.c:1427:9: note: ‘snprintf’ output between > 9 and 27 bytes into a destination of size

Re: [PATCH] virtio: console: Use str_yes_no() helper in port_debugfs_show()

2025-02-12 Thread Amit Shah
On Wed, 2025-02-12 at 12:48 +0100, Thorsten Blum wrote: > Remove hard-coded strings by using the str_yes_no() helper function. > > Signed-off-by: Thorsten Blum > --- >  drivers/char/virtio_console.c | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Amit Shah

Re: [PATCH] ww_mutex: convert self-test to KUnit

2025-02-12 Thread Dan Carpenter
-ww_mutex-kunit-convert-v1-1-972f0201f71e%40gmail.com patch subject: [PATCH] ww_mutex: convert self-test to KUnit config: i386-randconfig-141-20250212 (https://download.01.org/0day-ci/archive/20250212/202502121806.cs6r741y-...@intel.com/config) compiler: clang version 19.1.3 (https://github.com/llvm/llvm

[PATCH] virtio: console: Use str_yes_no() helper in port_debugfs_show()

2025-02-12 Thread Thorsten Blum
Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum --- drivers/char/virtio_console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c index 24442485e73e..35af0cc11d

Re: kvm: nVHE hyp panic at: __kvm_nvhe_kvm_hyp_handle_sysre

2025-02-12 Thread Naresh Kamboju
On Wed, 12 Feb 2025 at 17:11, Dan Carpenter wrote: > > On Tue, Feb 11, 2025 at 11:36:31AM +, Marc Zyngier wrote: > > For the crash at hand, which clearly shows nVHE, can you report > > whether the following hack fixes it for you? > > > > M. > > No luck, I'm afraid. It still crashes the

Re: kvm: nVHE hyp panic at: __kvm_nvhe_kvm_hyp_handle_sysre

2025-02-12 Thread Dan Carpenter
On Tue, Feb 11, 2025 at 11:36:31AM +, Marc Zyngier wrote: > For the crash at hand, which clearly shows nVHE, can you report > whether the following hack fixes it for you? > > M. No luck, I'm afraid. It still crashes the same way. https://tuxapi.tuxsuite.com/v1/groups/linaro/projects/a

Re: kvm: nVHE hyp panic at: __kvm_nvhe_kvm_hyp_handle_sysre

2025-02-12 Thread Dan Carpenter
On Tue, Feb 11, 2025 at 11:36:31AM +, Marc Zyngier wrote: > On Tue, 11 Feb 2025 11:24:06 +, > Naresh Kamboju wrote: > > > > Regression on rk3399-rock-pi-4b while running kvm-unit-tests with > > nvhe, protected and vhe mode with virtualization enabled. > > I do not buy this. RK3399 only h

[PATCH bpf-next v5 6/6] selftests/bpf: Remove test_xdp_redirect_multi.sh

2025-02-12 Thread Bastien Curutchet (eBPF Foundation)
The tests done by test_xdp_redirect_multi.sh are now fully covered by the CI through test_xdp_veth.c. Remove test_xdp_redirect_multi.sh Remove xdp_redirect_multi.c that was used by the script to load and attach the BPF programs. Remove their entries in the Makefile Acked-by: Stanislav Fomichev S

[PATCH bpf-next v5 4/6] selftests/bpf: test_xdp_veth: Add XDP broadcast redirection tests

2025-02-12 Thread Bastien Curutchet (eBPF Foundation)
XDP redirections with BPF_F_BROADCAST and BPF_F_EXCLUDE_INGRESS flags are tested by test_xdp_redirect_multi.sh but not within the test_progs framework. Add a broadcast test case in test_xdp_veth.c to test them. Use the same BPF programs than the one used by test_xdp_redirect_multi.sh. Use a BPF ma

[PATCH bpf-next v5 5/6] selftests/bpf: test_xdp_veth: Add XDP program on egress test

2025-02-12 Thread Bastien Curutchet (eBPF Foundation)
XDP programs loaded on egress is tested by test_xdp_redirect_multi.sh but not by the test_progs framework. Add a test case in test_xdp_veth.c to test the XDP program on egress. Use the same BPF program than test_xdp_redirect_multi.sh that replaces the source MAC address by one provided through a B

[PATCH bpf-next v5 3/6] selftests/bpf: Optionally select broadcasting flags

2025-02-12 Thread Bastien Curutchet (eBPF Foundation)
Broadcasting flags are hardcoded for each kind for protocol. Create a redirect_flags map that allows to select the broadcasting flags to use in the bpf_redirect_map(). The protocol ID is used as a key. Set the old hardcoded values as default if the map isn't filled by the BPF caller. Acked-by: St

[PATCH bpf-next v5 2/6] selftests/bpf: test_xdp_veth: Use a dedicated namespace

2025-02-12 Thread Bastien Curutchet (eBPF Foundation)
Tests use the root network namespace, so they aren't fully independent of each other. For instance, the index of the created veth interfaces is incremented every time a new test is launched. Wrap the network topology in a network namespace to ensure full isolation. Use the append_tid() helper to e

[PATCH bpf-next v5 1/6] selftests/bpf: test_xdp_veth: Create struct net_configuration

2025-02-12 Thread Bastien Curutchet (eBPF Foundation)
The network configuration is defined by a table of struct veth_configuration. This isn't convenient if we want to add a network configuration that isn't linked to a veth pair. Create a struct net_configuration that holds the veth_configuration table to ease adding new configuration attributes in u

[PATCH bpf-next v5 0/6] selftests/bpf: Migrate test_xdp_redirect_multi.sh to test_progs

2025-02-12 Thread Bastien Curutchet (eBPF Foundation)
Hi all, This patch series continues the work to migrate the *.sh tests into prog_tests framework. test_xdp_redirect_multi.sh tests the XDP redirections done through bpf_redirect_map(). This is already partly covered by test_xdp_veth.c that already tests map redirections at XDP level. What isn't

Re: [PATCH v5 6/8] iio: light: stk3310: use dev_err_probe where possible

2025-02-12 Thread Andy Shevchenko
On Tue, Feb 11, 2025 at 07:43:11PM +, Jonathan Cameron wrote: > On Sun, 9 Feb 2025 16:47:44 +0200 > Andy Shevchenko wrote: > > On Sat, Feb 08, 2025 at 04:13:24PM -0500, Aren Moynihan wrote: > > > Using dev_err_probe instead of dev_err and return makes the errors > > > > Use dev_err_probe()

Re: [PATCH RFC v2 rcu] Fix get_state_synchronize_rcu_full() GP-start detection

2025-02-12 Thread Paul E. McKenney
On Wed, Feb 12, 2025 at 02:14:19AM -0800, Paul E. McKenney wrote: > On Mon, Feb 10, 2025 at 08:22:24PM -0500, Joel Fernandes wrote: > > On Mon, Feb 10, 2025 at 7:28 PM Joel Fernandes > > wrote: > > > On Mon, Jan 27, 2025 at 1:45 PM Joel Fernandes > > > wrote: > > > > On Mon, Jan 27, 2025 at 11:

Re: [PATCH] x86: sgx: Don't track poisoned pages for reclaiming

2025-02-12 Thread Huang, Kai
On 12/02/2025 12:31 pm, Dave Hansen wrote: On 2/11/25 13:18, Huang, Kai wrote: This requires low-level SGX implementation knowledge to fully understand. Both what "ETRACK, EBLOCK and EWB" are in the first place, how they are involved in reclaim and also why EREMOVE doesn't lead to the same fa

Re: [PATCH RFC v2 rcu] Fix get_state_synchronize_rcu_full() GP-start detection

2025-02-12 Thread Paul E. McKenney
On Mon, Feb 10, 2025 at 08:22:24PM -0500, Joel Fernandes wrote: > On Mon, Feb 10, 2025 at 7:28 PM Joel Fernandes wrote: > > On Mon, Jan 27, 2025 at 1:45 PM Joel Fernandes > > wrote: > > > On Mon, Jan 27, 2025 at 11:49 AM Paul E. McKenney > > > wrote: > > > > On Sun, Jan 26, 2025 at 09:58:11PM

Re: [PATCH] ww_mutex: convert self-test to KUnit

2025-02-12 Thread David Gow
On Wed, 12 Feb 2025 at 06:43, Tamir Duberstein wrote: > > On Tue, Feb 11, 2025 at 5:38 PM Boqun Feng wrote: > > > > Hi Tamir, > > Hi Boqun, thanks for taking a look. > > > On Mon, Feb 10, 2025 at 10:59:12AM -0500, Tamir Duberstein wrote: > > > Convert this unit test to a KUnit test. > > > > > > >

Re: [PATCH v2 2/2] unicode: kunit: change tests filename and path

2025-02-12 Thread David Gow
On Wed, 12 Feb 2025 at 14:45, Thorsten Leemhuis wrote: > > On 04.10.24 21:00, Gabriel Krisman Bertazi wrote: > > Pedro Orlando writes: > >> From: Gabriela Bittencourt > >> > >> Change utf8 kunit test filename and path to follow the style > >> convention on Documentation/dev-tools/kunit/style.rst

Re: [PATCH 0/2] printf: convert self-test to KUnit

2025-02-12 Thread David Gow
On Tue, 11 Feb 2025 at 16:40, Rasmus Villemoes wrote: > > On Tue, Feb 11 2025, David Gow wrote: > > > On Mon, 10 Feb 2025 at 19:57, Rasmus Villemoes > > wrote: > >> > >> On Fri, Feb 07 2025, Tamir Duberstein wrote: > >> > >> > On Fri, Feb 7, 2025 at 5:01 AM Rasmus Villemoes > >> > wrote: > >>

Re: [PATCH v6 2/6] rust: str: implement `Index` for `BStr`

2025-02-12 Thread Gary Guo
On Tue, 11 Feb 2025 21:24:44 +0100 Andreas Hindborg wrote: > "Gary Guo" writes: > > > On Tue, 11 Feb 2025 16:57:36 +0100 > > Andreas Hindborg wrote: > > > >> The `Index` implementation on `BStr` was lost when we switched `BStr` from > >> a type alias of `[u8]` to a newtype. This patch adds b

Re: [PATCH v6 5/6] rust: str: add radix prefixed integer parsing functions

2025-02-12 Thread Gary Guo
On Tue, 11 Feb 2025 21:13:10 +0100 Andreas Hindborg wrote: > "Gary Guo" writes: > > > On Tue, 11 Feb 2025 16:57:39 +0100 > > Andreas Hindborg wrote: > > > >> Add the trait `ParseInt` for parsing string representations of integers > >> where the string representations are optionally prefixed