[PATCH v2 2/2] book3s64/radix : Align section vmemmap start address to PAGE_SIZE

2025-03-07 Thread Donet Tom
A vmemmap altmap is a device-provided region used to provide backing storage for struct pages. For each namespace, the altmap should belong to that same namespace. If the namespaces are created unaligned, there is a chance that the section vmemmap start address could also be unaligned. If the secti

[PATCH v2 1/2] book3s64/radix: Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n

2025-03-07 Thread Donet Tom
From: "Ritesh Harjani (IBM)" Fix compile errors when CONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=n Signed-off-by: Ritesh Harjani (IBM) Signed-off-by: Donet Tom --- arch/powerpc/mm/book3s64/radix_pgtable.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/mm/book3s64

Re: [PATCH v5 3/3] printf: implicate test line in failure messages

2025-03-07 Thread Petr Mladek
On Fri 2025-02-21 15:34:32, Tamir Duberstein wrote: > This improves the failure output by pointing to the failing line at the > top level of the test, e.g.: > # test_number: EXPECTATION FAILED at lib/printf_kunit.c:103 > lib/printf_kunit.c:167: vsnprintf(buf, 256, "%#-12x", ...) wrote > '0

Re: crng init: was: Re: [PATCH v5 2/3] printf: break kunit into test cases

2025-03-07 Thread Tamir Duberstein
On Fri, Mar 7, 2025 at 11:18 AM Petr Mladek wrote: > > On Fri 2025-02-21 15:34:31, Tamir Duberstein wrote: > > Move all tests into `printf_test_cases`. This gives us nicer output in > > the event of a failure. > > > > Combine `plain_format` and `plain_hash` into `hash_pointer` since > > they're te

Re: [PATCH v5 3/3] printf: implicate test line in failure messages

2025-03-07 Thread Tamir Duberstein
On Fri, Mar 7, 2025 at 11:23 AM Petr Mladek wrote: > > On Fri 2025-02-21 15:34:32, Tamir Duberstein wrote: > > This improves the failure output by pointing to the failing line at the > > top level of the test, e.g.: > > # test_number: EXPECTATION FAILED at lib/printf_kunit.c:103 > > lib/pr

RE: [PATCH v3 net-next 01/13] net: enetc: add initial netc-lib driver to support NTMP

2025-03-07 Thread Wei Fang
> > On Tue, 4 Mar 2025 15:21:49 +0800 Wei Fang wrote: > > > +config NXP_NETC_LIB > > > + tristate "NETC Library" > > > > Remove the string after "tristate", the user should not be prompted > > to make a choice for this, since the consumers "select" this config > > directly. > > > > Okay, I will r

RE: [PATCH v3 net-next 01/13] net: enetc: add initial netc-lib driver to support NTMP

2025-03-07 Thread Wei Fang
> On Sat, 8 Mar 2025 02:05:35 + Wei Fang wrote: > > > > On Tue, 4 Mar 2025 15:21:49 +0800 Wei Fang wrote: > > > hm..., there are some interfaces of netc-lib are used in common .c > > > files in downstream, so I used "ifdef" in downstream. Now for the > > > upstream, I'm going to separate them

[PATCH v6 3/3] printf: implicate test line in failure messages

2025-03-07 Thread Tamir Duberstein
This improves the failure output by pointing to the failing line at the top level of the test, e.g.: # test_number: EXPECTATION FAILED at lib/printf_kunit.c:103 lib/printf_kunit.c:167: vsnprintf(buf, 256, "%#-12x", ...) wrote '0x1234abcd ', expected '0x1234abce ' # test_number: EXP

Re: [PATCH] book3s64/radix : Align section vmemmap start address to PAGE_SIZE

2025-03-07 Thread Aneesh Kumar K . V
Donet Tom writes: > A vmemmap altmap is a device-provided region used to provide > backing storage for struct pages. For each namespace, the altmap > should belong to that same namespace. If the namespaces are > created unaligned, there is a chance that the section vmemmap > start address could a

Re: [PATCH v5 1/3] printf: convert self-test to KUnit

2025-03-07 Thread Petr Mladek
On Thu 2025-03-06 09:41:44, Tamir Duberstein wrote: > On Thu, Mar 6, 2025 at 9:25 AM Tamir Duberstein wrote: > > > > On Thu, Mar 6, 2025 at 7:25 AM Petr Mladek wrote: > > > > > > On Fri 2025-02-21 15:34:30, Tamir Duberstein wrote: > > > > Convert the printf() self-test to a KUnit test. > > > > >

Re: [PATCH v5 1/3] printf: convert self-test to KUnit

2025-03-07 Thread Petr Mladek
On Thu 2025-03-06 09:25:43, Tamir Duberstein wrote: > On Thu, Mar 6, 2025 at 7:25 AM Petr Mladek wrote: > > > > On Fri 2025-02-21 15:34:30, Tamir Duberstein wrote: > > > Convert the printf() self-test to a KUnit test. > > > > > > In the interest of keeping the patch reasonably-sized this doesn't >

Re: [PATCH v5 1/3] printf: convert self-test to KUnit

2025-03-07 Thread Tamir Duberstein
On Fri, Mar 7, 2025 at 11:01 AM Petr Mladek wrote: > > On Thu 2025-03-06 09:25:43, Tamir Duberstein wrote: > > On Thu, Mar 6, 2025 at 7:25 AM Petr Mladek wrote: > > > > > > On Fri 2025-02-21 15:34:30, Tamir Duberstein wrote: > > > > Convert the printf() self-test to a KUnit test. > > > > > > > >

Re: [PATCH 07/13] s390: make setup_zero_pages() use memblock

2025-03-07 Thread Heiko Carstens
On Thu, Mar 06, 2025 at 08:51:17PM +0200, Mike Rapoport wrote: > From: "Mike Rapoport (Microsoft)" > > Allocating the zero pages from memblock is simpler because the memory is > already reserved. > > This will also help with pulling out memblock_free_all() to the generic > code and reducing code

[kvm-unit-tests PATCH] Makefile: Use CFLAGS in cc-option

2025-03-07 Thread Andrew Jones
When cross compiling with clang we need to specify the target in CFLAGS and cc-option will fail to recognize target-specific options without it. Add CFLAGS to the CC invocation in cc-option. Signed-off-by: Andrew Jones --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --gi

Re: [kvm-unit-tests PATCH] Makefile: Use CFLAGS in cc-option

2025-03-07 Thread Thomas Huth
On 07/03/2025 09.39, Andrew Jones wrote: When cross compiling with clang we need to specify the target in CFLAGS and cc-option will fail to recognize target-specific options without it. Add CFLAGS to the CC invocation in cc-option. Signed-off-by: Andrew Jones --- Makefile | 2 +- 1 file chan

Re: [kvm-unit-tests PATCH] Makefile: Use CFLAGS in cc-option

2025-03-07 Thread Andrew Jones
On Fri, Mar 07, 2025 at 09:42:03AM +0100, Thomas Huth wrote: > On 07/03/2025 09.39, Andrew Jones wrote: > > When cross compiling with clang we need to specify the target in > > CFLAGS and cc-option will fail to recognize target-specific options > > without it. Add CFLAGS to the CC invocation in cc-

[kvm-unit-tests PATCH v2] Makefile: Use CFLAGS in cc-option

2025-03-07 Thread Andrew Jones
When cross compiling with clang we need to specify the target in CFLAGS and cc-option will fail to recognize target-specific options without it. Add CFLAGS to the CC invocation in cc-option. The introduction of the realmode_bits variable is necessary to avoid make failing to build x86 due to CFLAG

[PATCH] powerpc/boot: Fix build with gcc 15

2025-03-07 Thread Michal Suchanek
Similar to x86 the ppc boot code does not build with GCC 15. Copy the fix from commit ee2ab467bddf ("x86/boot: Use '-std=gnu11' to fix build with GCC 15") Signed-off-by: Michal Suchanek --- arch/powerpc/boot/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/boot/Makefile

Re: PowerPC: sleftests/powerpc fails to compile linux-next

2025-03-07 Thread Venkat Rao Bagalkote
On 07/03/25 12:32 pm, Madhavan Srinivasan wrote: On 3/6/25 10:30 PM, Venkat Rao Bagalkote wrote: Greetings!! I see selftests/powerpc fails to compile on next-20250306. This error has been introduced in next-20250218. Make is successful on next-20250217. Attached is the .config used. If

Re: PowerPC: sleftests/powerpc fails to compile linux-next

2025-03-07 Thread Venkat Rao Bagalkote
On 07/03/25 12:32 pm, Madhavan Srinivasan wrote: On 3/6/25 10:30 PM, Venkat Rao Bagalkote wrote: Greetings!! I see selftests/powerpc fails to compile on next-20250306. This error has been introduced in next-20250218. Make is successful on next-20250217. Attached is the .config used. If

RE: [PATCH v3 net-next 01/13] net: enetc: add initial netc-lib driver to support NTMP

2025-03-07 Thread Wei Fang
> On Tue, 4 Mar 2025 15:21:49 +0800 Wei Fang wrote: > > +config NXP_NETC_LIB > > + tristate "NETC Library" > > Remove the string after "tristate", the user should not be prompted > to make a choice for this, since the consumers "select" this config > directly. > Okay, I will remove it. > > +

Re: [PATCH v3 net-next 01/13] net: enetc: add initial netc-lib driver to support NTMP

2025-03-07 Thread Jakub Kicinski
On Sat, 8 Mar 2025 02:05:35 + Wei Fang wrote: > > > On Tue, 4 Mar 2025 15:21:49 +0800 Wei Fang wrote: > > hm..., there are some interfaces of netc-lib are used in common .c files > > in downstream, so I used "ifdef" in downstream. Now for the upstream, > > I'm going to separate them from the

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

2025-03-07 Thread Kees Cook
On Fri, Mar 07, 2025 at 05:08:55PM -0500, Tamir Duberstein wrote: > This is one of just 3 remaining "Test Module" kselftests (the others > being bitmap and scanf), the rest having been converted to KUnit. > > I tested this using: > > $ tools/testing/kunit/kunit.py run --arch arm64 --make_options

[PATCH v2] powerpc/kexec: fix physical address calculation in clear_utlb_entry()

2025-03-07 Thread Christophe Leroy
In relocate_32.S, function clear_utlb_entry() goes into real mode. To do so, it has to calculate the physical address based on the virtual address. To get the virtual address it uses 'bl' which is problematic (see commit c974809a26a1 ("powerpc/vdso: Avoid link stack corruption in __get_datapage()")

crng init: was: Re: [PATCH v5 2/3] printf: break kunit into test cases

2025-03-07 Thread Petr Mladek
On Fri 2025-02-21 15:34:31, Tamir Duberstein wrote: > Move all tests into `printf_test_cases`. This gives us nicer output in > the event of a failure. > > Combine `plain_format` and `plain_hash` into `hash_pointer` since > they're testing the same scenario. > > --- a/lib/tests/printf_kunit.c > ++

Re: [PATCH 1/2] tools/perf: Add field to annotation options to determine disassembler used

2025-03-07 Thread Namhyung Kim
On Tue, 04 Mar 2025 21:11:13 +0530, Athira Rajeev wrote: > When doing "perf annotate", perf tool provides option to > use specific disassembler like llvm/objdump/capstone. The > order picked is to use llvm first and if that fails fallback > to objdump ie to use PERF_DISASM_LLVM, PERF_DISASM_CAPSTON

[PATCH v6 1/3] printf: convert self-test to KUnit

2025-03-07 Thread Tamir Duberstein
Convert the printf() self-test to a KUnit test. In the interest of keeping the patch reasonably-sized this doesn't refactor the tests into proper parameterized tests - it's all one big test case. Signed-off-by: Tamir Duberstein --- Documentation/core-api/printk-formats.rst | 4 +- Documenta

[PATCH v6 2/3] printf: break kunit into test cases

2025-03-07 Thread Tamir Duberstein
Move all tests into `printf_test_cases`. This gives us nicer output in the event of a failure. Combine `plain_format` and `plain_hash` into `hash_pointer` since they're testing the same scenario. Signed-off-by: Tamir Duberstein --- lib/tests/printf_kunit.c | 295

[PATCH v6 0/3] printf: convert self-test to KUnit

2025-03-07 Thread Tamir Duberstein
This is one of just 3 remaining "Test Module" kselftests (the others being bitmap and scanf), the rest having been converted to KUnit. I tested this using: $ tools/testing/kunit/kunit.py run --arch arm64 --make_options LLVM=1 printf I have also sent out a series converting scanf[0]. Link: http