Re: [PATCH v2] selftests: Add functional test for the abort file in fusectl

2025-06-02 Thread Chen Linxuan
V3 has been sent. See https://lore.kernel.org/all/20250526014226.14192-1-chenlinx...@uniontech.com/ On Tue, Jun 3, 2025 at 7:02 AM Shuah Khan wrote: > > On 5/25/25 19:41, Chen Linxuan wrote: > > On Fri, May 23, 2025 at 6:50 AM Shuah Khan > > wrote: > > > >> Also if this test requires root previ

Re: [RFC PATCH net-next v2 1/2] virtio-net: support zerocopy multi buffer XDP in mergeable

2025-06-02 Thread Lei Yang
Tested this patch with virtio-net regression tests, everything works fine. Tested-by: Lei Yang On Tue, Jun 3, 2025 at 10:57 AM Jason Wang wrote: > > On Thu, May 29, 2025 at 8:28 PM Bui Quang Minh > wrote: > > > > On 5/29/25 12:59, Jason Wang wrote: > > > On Wed, May 28, 2025 at 12:19 AM Bui Q

[PATCH v2 1/2] libbpf: add support for printing BTF character arrays as strings

2025-06-02 Thread Blake Jones
The BTF dumper code currently displays arrays of characters as just that - arrays, with each character formatted individually. Sometimes this is what makes sense, but it's nice to be able to treat that array as a string. This change adds a special case to the btf_dump functionality to allow arrays

[PATCH v2] selftests/bpf: Validate UDP length in cls_redirect test

2025-06-02 Thread Suchit Karunakaran
From: Suchit Add validation step to ensure that the UDP payload is long enough to contain the expected GUE and UNIGUE encapsulation headers Signed-off-by: Suchit --- Changes since v2: - Rebase tools/testing/selftests/bpf/progs/test_cls_redirect.c | 8 +++- 1 file changed, 7 insertions(+)

Re: [PATCH] libbpf: add support for printing BTF character arrays as strings

2025-06-02 Thread Blake Jones
Hi Andrii, Thanks for your careful review. On Mon, Jun 2, 2025 at 5:06 PM Andrii Nakryiko wrote: > > + bool print_strings; /* print char arrays as strings */ > > let's use "emit_strings" naming, so it's consistent with emit_zeroes? Done. > > @@ -75,6 +75,7 @@ struct btf_dump_data { >

[PATCH v2 2/2] Tests for the ".emit_strings" functionality in the BTF dumper.

2025-06-02 Thread Blake Jones
When this mode is turned on, "emit_zeroes" and "compact" have no effect, and embedded NUL characters always terminate printing of an array. Signed-off-by: Blake Jones --- .../selftests/bpf/prog_tests/btf_dump.c | 106 ++ 1 file changed, 106 insertions(+) diff --git a/tools

Re: [RFC PATCH net-next v2 1/2] virtio-net: support zerocopy multi buffer XDP in mergeable

2025-06-02 Thread Jason Wang
On Thu, May 29, 2025 at 8:28 PM Bui Quang Minh wrote: > > On 5/29/25 12:59, Jason Wang wrote: > > On Wed, May 28, 2025 at 12:19 AM Bui Quang Minh > > wrote: > >> Currently, in zerocopy mode with mergeable receive buffer, virtio-net > >> does not support multi buffer but a single buffer only. This

Re: [PATCH RESEND] selftests/mm/run_vmtests.sh: skip hugevm tests if write_to_hugetlbfs is missing

2025-06-02 Thread Andrew Morton
On Tue, 3 Jun 2025 02:22:32 +0300 Khaled Elnaggar wrote: > The hugevm tests 'charge_reserved_hugetlb.sh' and > 'hugetlb_reparenting_test.sh' > depend on the 'write_to_hugetlbfs' binary to simulate writes to hugetlbfs > while checking reservations asynchronously in the background. > > When thi

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Masahiro Yamada
On Mon, Jun 2, 2025 at 11:04 PM Alexey Gladkov wrote: > > On Mon, Jun 02, 2025 at 07:58:41PM +0900, Masahiro Yamada wrote: > > On Mon, Jun 2, 2025 at 5:07 PM Alexey Gladkov wrote: > > > > > > On Mon, Jun 02, 2025 at 04:45:36PM +0900, Masahiro Yamada wrote: > > > > On Tue, May 27, 2025 at 6:08 PM

Re: [PATCH] selftests: Add version file to kselftest installation dir

2025-06-02 Thread Tianyi Cui
On 6/2/25 3:48 PM, Shuah Khan wrote: > On 5/28/25 18:33, Tianyi Cui wrote: >> As titled, adding version file to kselftest installation dir, so the user >> of the tarball can know which kernel version the tarball belongs to. >> >> Signed-off-by: Tianyi Cui <1997...@gmail.com> >> --- >>   tools/testi

Re: [GIT PULL] Modules changes for v6.16-rc1

2025-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 2 Jun 2025 16:34:45 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git/ > tags/modules-6.16-rc1 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/c8be54240893dbf89c294cb6a9e338fdc2f73ead Thank you! -- Deet-doot-d

Re: [PATCH] libbpf: add support for printing BTF character arrays as strings

2025-06-02 Thread Andrii Nakryiko
On Sat, May 31, 2025 at 12:20 AM Blake Jones wrote: > > The BTF dumper code currently displays arrays of characters as just that - > arrays, with each character formatted individually. Sometimes this is what > makes sense, but it's nice to be able to treat that array as a string. > > This change a

Re: [PATCH v2 0/8] irqbypass: Cleanups and a perf improvement

2025-06-02 Thread Sean Christopherson
On Mon, Jun 02, 2025, Alex Williamson wrote: > On Fri, 16 May 2025 16:07:26 -0700 > Sean Christopherson wrote: > > > The two primary goals of this series are to make the irqbypass concept > > easier to understand, and to address the terrible performance that can > > result from using a list to tr

[PATCH RESEND] selftests/mm/run_vmtests.sh: skip hugevm tests if write_to_hugetlbfs is missing

2025-06-02 Thread Khaled Elnaggar
The hugevm tests 'charge_reserved_hugetlb.sh' and 'hugetlb_reparenting_test.sh' depend on the 'write_to_hugetlbfs' binary to simulate writes to hugetlbfs while checking reservations asynchronously in the background. When this binary is missing (e.g., excluded from the build), these tests hang for

Re: [PATCH] selftests: firmware: Add details in error logging

2025-06-02 Thread Shuah Khan
On 5/25/25 12:26, Harshal Wadhwa wrote: On Fri, 23 May 2025 at 03:49, Shuah Khan wrote: On 5/16/25 09:39, Harshal wrote: Specify details in logs of failed cases Use die() instead of exit() when write to sys_path fails Please explain why this change is needed? Signed-off-by: Harshal ---

Re: [PATCH] libbpf: add support for printing BTF character arrays as strings

2025-06-02 Thread Blake Jones
On Mon, Jun 2, 2025 at 11:39 AM Alexei Starovoitov wrote: > > If no suitable libbpf is detected then the build will error out. I > > guess if feature-libbpf is present but not feature-libbpf-strings then > > we'll need a perf #define so that the string feature won't cause > > perf's build to fail.

Re: [PATCH v2] selftests: Add functional test for the abort file in fusectl

2025-06-02 Thread Shuah Khan
On 5/25/25 19:41, Chen Linxuan wrote: On Fri, May 23, 2025 at 6:50 AM Shuah Khan wrote: Also if this test requires root previlege, add check for it. Currently, this test does not require root privileges. Thanks, Chen Linxuan Thanks. Looks good to me. Acked-by: Shuah Khan thanks, -- Shu

Re: [PATCH] selftests: Add version file to kselftest installation dir

2025-06-02 Thread Shuah Khan
On 5/28/25 18:33, Tianyi Cui wrote: As titled, adding version file to kselftest installation dir, so the user of the tarball can know which kernel version the tarball belongs to. Signed-off-by: Tianyi Cui <1997...@gmail.com> --- tools/testing/selftests/Makefile | 6 ++ 1 file changed, 6 i

[PATCH v3] selftests/ptrace/get_syscall_info: fix for MIPS n32

2025-06-02 Thread Dmitry V. Levin
MIPS n32 is one of two ILP32 architectures supported by the kernel that have 64-bit syscall arguments (another one is x32). When this test passed 32-bit arguments to syscall(), they were sign-extended in libc, PTRACE_GET_SYSCALL_INFO reported these sign-extended 64-bit values, and the test complai

Re: [PATCH v2] selftests/filesystems: Fix build of anon_inode_test

2025-06-02 Thread Shuah Khan
On 5/30/25 04:42, Mark Brown wrote: The newly added anon_inode_test test fails to build due to attempting to include a nonexisting overlayfs/wrapper.h: anon_inode_test.c:10:10: fatal error: overlayfs/wrappers.h: No such file or directory 10 | #include "overlayfs/wrappers.h" |

Re: [PATCH] selftests: ipc: Replace fail print statements with ksft_test_result_fail

2025-06-02 Thread Shuah Khan
On 5/31/25 01:01, Nick Huang wrote: Use the standard kselftest failure report function to ensure consistent test output formatting. This improves readability and integration with automated test frameworks. Signed-off-by: Nick Huang --- tools/testing/selftests/ipc/msgque.c | 47 ++-

Re: [PATCH v2] selftests/ptrace/get_syscall_info: fix for MIPS n32

2025-06-02 Thread Shuah Khan
On 6/2/25 05:59, Dmitry V. Levin wrote: On Sat, Mar 29, 2025 at 02:02:28PM +, Maciej W. Rozycki wrote: On Sat, 29 Mar 2025, Dmitry V. Levin wrote: +#if defined(_MIPS_SIM) && _MIPS_SIM == _MIPS_SIM_NABI32 +/* + * MIPS N32 is the only architecture where __kernel_ulong_t + * does not match th

Re: [PATCH v2 1/1] mm/memory_hotplug: PG_offline_skippable for offlining memory blocks with PageOffline pages

2025-06-02 Thread David Hildenbrand
On 30.05.25 18:54, Vlastimil Babka wrote: On 5/20/25 18:42, David Hildenbrand wrote: A long-term goal is supporting frozen PageOffline pages, and later PageOffline pages that don't have a refcount at all. Some more work for Looking forward to that :) :) It's definitely ... challenging. t

Re: [PATCH] libbpf: add support for printing BTF character arrays as strings

2025-06-02 Thread Blake Jones
Hi Alexei, Thanks for taking a look at this. On Sat, May 31, 2025 at 11:20 AM Alexei Starovoitov wrote: > Please split selftests vs main libbpf parts. > [...] > Please use normal kernel style comments. > We're gradually getting away from networking style. > [...] > we allow up to 100 char per li

Re: [PATCH] kbuild: stop module name mangling

2025-06-02 Thread Lucas De Marchi
On Tue, Jun 03, 2025 at 04:00:30AM +0900, Masahiro Yamada wrote: On Mon, Jun 2, 2025 at 10:06 PM Masahiro Yamada wrote: In the old days, KBUILD_MODNAME was passed to C without double quotes, and then handled by __stringify() on the C side. This was the reason why KBUILD_MODNAME was mangled: ch

Re: [PATCH] kbuild: stop module name mangling

2025-06-02 Thread Masahiro Yamada
On Mon, Jun 2, 2025 at 10:06 PM Masahiro Yamada wrote: > > In the old days, KBUILD_MODNAME was passed to C without double quotes, > and then handled by __stringify() on the C side. This was the reason > why KBUILD_MODNAME was mangled: characters such as commas (,) and > hyphens (-) are not allowed

Re: [GIT PULL] remoteproc updates for v6.16

2025-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 2 Jun 2025 10:37:09 -0500: > https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git > tags/rproc-v6.16 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/dcf9ee9ac4d5c09c5bc74aba5e93581e93a1ac33 Thank you! -- Deet-doot-d

Re: [GIT PULL] rpmsg updates for v6.16

2025-06-02 Thread pr-tracker-bot
The pull request you sent on Mon, 2 Jun 2025 09:09:12 -0500: > https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git > tags/rpmsg-v6.16 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b509c16e1d7cba8d0fd3843f6641fcafb3761432 Thank you! -- Deet-doot-d

Re: [PATCH v2 0/8] irqbypass: Cleanups and a perf improvement

2025-06-02 Thread Alex Williamson
On Fri, 16 May 2025 16:07:26 -0700 Sean Christopherson wrote: > The two primary goals of this series are to make the irqbypass concept > easier to understand, and to address the terrible performance that can > result from using a list to track connections. > > For the first goal, track the produ

Re: [PATCH] libbpf: add support for printing BTF character arrays as strings

2025-06-02 Thread Alexei Starovoitov
On Mon, Jun 2, 2025 at 8:05 AM Ian Rogers wrote: > > On Sat, May 31, 2025 at 11:20 AM Alexei Starovoitov > wrote: > > > > On Sat, May 31, 2025 at 12:20 AM Blake Jones wrote: > > > > > > The BTF dumper code currently displays arrays of characters as just that - > > > arrays, with each character f

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Alexey Gladkov
On Tue, Jun 03, 2025 at 03:00:07AM +0900, Masahiro Yamada wrote: > On Mon, Jun 2, 2025 at 5:24 PM Alexey Gladkov wrote: > > > > On Mon, Jun 02, 2025 at 04:52:36PM +0900, Masahiro Yamada wrote: > > > On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > > > > > > > In order to avoid symbol con

[PATCH v2 10/10] selftests/sched_ext: Add test for sched_ext dl_server

2025-06-02 Thread Joel Fernandes
From: Andrea Righi Add a selftest to validate the correct behavior of the deadline server for the ext_sched_class. [ Joel: Replaced occurences of CFS in the test with EXT. ] Signed-off-by: Andrea Righi Signed-off-by: Joel Fernandes --- tools/testing/selftests/sched_ext/Makefile| 1 + .

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Masahiro Yamada
On Mon, Jun 2, 2025 at 5:24 PM Alexey Gladkov wrote: > > On Mon, Jun 02, 2025 at 04:52:36PM +0900, Masahiro Yamada wrote: > > On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > > > > > In order to avoid symbol conflicts if they appear in the same binary, a > > > more unique alias identifie

[PATCH] selftests/bpf: Validate UDP length in cls_redirect test

2025-06-02 Thread Suchit
Add validation step to ensure that the UDP payload is long enough to contain the expected GUE and UNIGUE encapsulation headers Signed-off-by: Suchit --- tools/testing/selftests/bpf/progs/test_cls_redirect.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tools/testing/

[PATCH v4 3/4] media: dt-bindings: Add qcom,msm8939-camss

2025-06-02 Thread Vincent Knecht via B4 Relay
From: Vincent Knecht Add bindings for qcom,msm8939-camss in order to support the camera subsystem for MSM8939. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Vincent Knecht --- .../bindings/media/qcom,msm8939-camss.yaml | 254 + 1 file changed, 254 insertions(+)

[PATCH v4 4/4] arm64: dts: qcom: msm8939: Add camss and cci

2025-06-02 Thread Vincent Knecht via B4 Relay
From: Vincent Knecht Add the camera subsystem and CCI used to interface with cameras on the Snapdragon 615. Reviewed-by: Konrad Dybcio Signed-off-by: Vincent Knecht --- arch/arm64/boot/dts/qcom/msm8939-pm8916.dtsi | 4 + arch/arm64/boot/dts/qcom/msm8939.dtsi| 146 +++

[PATCH v4 2/4] media: qcom: camss: Add support for MSM8939

2025-06-02 Thread Vincent Knecht via B4 Relay
From: Vincent Knecht The camera subsystem for the MSM8939 is the same as MSM8916 except with 3 CSID instead of 2, and some higher clock rates. As a quirk, this SoC needs writing values to 2 VFE VBIF registers (see downstream msm8939-camera.dtsi vbif-{regs,settings} properties). This fixes black

[PATCH v4 0/4] CAMSS support for MSM8939

2025-06-02 Thread Vincent Knecht via B4 Relay
This series adds CAMSS support for MSM8939. It's mostly identical to MSM8916, except for some clocks and an additional CSI. To fix black stripes across sensor output, and garbage in CSID TPG output, 2 VFE VBIF register settings are needed. So the 1st patch adds helper functions to do just that. P

[PATCH v4 1/4] media: qcom: camss: vfe: Add VBIF setting support

2025-06-02 Thread Vincent Knecht via B4 Relay
From: Vincent Knecht Some devices need writing values to VFE VBIF registers. Add helper functions to do this. Reviewed-by: Bryan O'Donoghue Signed-off-by: Vincent Knecht --- drivers/media/platform/qcom/camss/Makefile | 1 + drivers/media/platform/qcom/camss/camss-vfe-4-1.c | 12

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Alexey Gladkov
On Tue, Jun 03, 2025 at 01:18:25AM +0900, Masahiro Yamada wrote: > On Mon, Jun 2, 2025 at 11:04 PM Alexey Gladkov wrote: > > > > On Mon, Jun 02, 2025 at 07:58:41PM +0900, Masahiro Yamada wrote: > > > On Mon, Jun 2, 2025 at 5:07 PM Alexey Gladkov wrote: > > > > > > > > On Mon, Jun 02, 2025 at 04:4

Re: [RFC PATCH v2 8/9] KVM: selftests: arm64: Extend kvm_page_table_test to run guest code in vEL2

2025-06-02 Thread Marc Zyngier
On Mon, 02 Jun 2025 07:04:07 +0100, Itaru Kitayama wrote: > > On Mon, May 12, 2025 at 03:52:50AM -0700, Ganapatrao Kulkarni wrote: > > Adding code to run guest_code in vEL2. > > NV is enabled using command line argument and it is disabled by default. > > > > NV is only enabled on ARM64, for othe

Re: [RFC PATCH net-next v2 2/2] selftests: net: add XDP socket tests for virtio-net

2025-06-02 Thread Maciej Fijalkowski
On Sat, May 31, 2025 at 03:51:57PM +0700, Bui Quang Minh wrote: > On 5/30/25 18:45, Maciej Fijalkowski wrote: > > On Thu, May 29, 2025 at 09:29:14PM +0700, Bui Quang Minh wrote: > > > On 5/29/25 18:18, Maciej Fijalkowski wrote: > > > > On Tue, May 27, 2025 at 11:19:04PM +0700, Bui Quang Minh wrote:

[GIT PULL] remoteproc updates for v6.16

2025-06-02 Thread Bjorn Andersson
The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8: Linux 6.15-rc1 (2025-04-06 13:11:33 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git tags/rproc-v6.16 for you to fetch changes up to 5779f6f9a64

Re: [PATCH net-next v2 0/4] netconsole: Optimize console registration and improve testing

2025-06-02 Thread Jakub Kicinski
On Mon, 02 Jun 2025 03:34:40 -0700 Breno Leitao wrote: > During performance analysis of console subsystem latency, I discovered that > netconsole registers console handlers even when no active targets exist. > These orphaned console handlers are invoked on every printk() call, get > the lock, itera

Re: [PATCH] libbpf: add support for printing BTF character arrays as strings

2025-06-02 Thread Ian Rogers
On Sat, May 31, 2025 at 11:20 AM Alexei Starovoitov wrote: > > On Sat, May 31, 2025 at 12:20 AM Blake Jones wrote: > > > > The BTF dumper code currently displays arrays of characters as just that - > > arrays, with each character formatted individually. Sometimes this is what > > makes sense, but

[GIT PULL] Modules changes for v6.16-rc1

2025-06-02 Thread Petr Pavlu
The following changes since commit 82f2b0b97b36ee3fcddf0f0780a9a0825d52fec3: Linux 6.15-rc6 (2025-05-11 14:54:11 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/modules/linux.git/ tags/modules-6.16-rc1 for you to fetch changes up to a0b018a495a3

[GIT PULL] rpmsg updates for v6.16

2025-06-02 Thread Bjorn Andersson
The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8: Linux 6.15-rc1 (2025-04-06 13:11:33 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/remoteproc/linux.git tags/rpmsg-v6.16 for you to fetch changes up to 5de775df336

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Alexey Gladkov
On Mon, Jun 02, 2025 at 07:58:41PM +0900, Masahiro Yamada wrote: > On Mon, Jun 2, 2025 at 5:07 PM Alexey Gladkov wrote: > > > > On Mon, Jun 02, 2025 at 04:45:36PM +0900, Masahiro Yamada wrote: > > > On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > > > > > > > In order to avoid symbol con

[PATCH] kbuild: stop module name mangling

2025-06-02 Thread Masahiro Yamada
In the old days, KBUILD_MODNAME was passed to C without double quotes, and then handled by __stringify() on the C side. This was the reason why KBUILD_MODNAME was mangled: characters such as commas (,) and hyphens (-) are not allowed in C identifiers, so they were replaced with underscores (_) in K

[PATCH v4 3/3] remoteproc: imx_rproc: detect and attach to pre-booted remote cores

2025-06-02 Thread Hiago De Franco
From: Hiago De Franco When the remote core is started before Linux boots (e.g., by the bootloader), the driver currently is not able to attach because it only checks for cores running in different partitions. If the core was kicked by the bootloader, it is in the same partition as Linux and it is

[PATCH v4 2/3] remoteproc: imx_rproc: skip clock enable when M-core is managed by the SCU

2025-06-02 Thread Hiago De Franco
From: Hiago De Franco For the i.MX8X and i.MX8 family SoCs, when the M-core is powered up by the bootloader, M-core and Linux are in same SCFW (System Controller Firmware) partition, so linux has permission to control M-core. But when M-core is started, the SCFW will automatically enable the clo

[PATCH v4 1/3] pmdomain: core: introduce dev_pm_genpd_is_on

2025-06-02 Thread Hiago De Franco
From: Hiago De Franco This helper function returns the current power status of a given generic power domain. As example, remoteproc/imx_rproc.c can now use this function to check the power status of the remote core to properly set "attached" or "offline" modes. Suggested-by: Ulf Hansson Signed

[PATCH v4 0/3] remoteproc: imx_rproc: allow attaching to running core kicked by the bootloader

2025-06-02 Thread Hiago De Franco
From: Hiago De Franco This patch series depends on Ulf's patches that are currently under review, "pmdomain: Add generic ->sync_state() support to genpd" [1]. Without them, this series is not going to work. For the i.MX8X and i.MX8 family SoCs, currently when the remotecore is started by the boo

Re: [PATCH v2] selftests/ptrace/get_syscall_info: fix for MIPS n32

2025-06-02 Thread Dmitry V. Levin
On Sat, Mar 29, 2025 at 02:02:28PM +, Maciej W. Rozycki wrote: > On Sat, 29 Mar 2025, Dmitry V. Levin wrote: > > > > > +#if defined(_MIPS_SIM) && _MIPS_SIM == _MIPS_SIM_NABI32 > > > > +/* > > > > + * MIPS N32 is the only architecture where __kernel_ulong_t > > > > + * does not match the bitnes

[PATCH net-next v2 2/4] netconsole: Add automatic console unregistration on target removal

2025-06-02 Thread Breno Leitao
Add unregister_netcons_consoles() function to automatically unregister console handlers when no targets of the corresponding type remain active. The function iterates through the target list to determine which console types (basic vs extended) are still needed, and unregisters any console handlers

Re: [PATCH bpf-next v1 1/2] bpf,ktls: Fix data corruption when using bpf_msg_pop_data() in ktls

2025-06-02 Thread Jiayuan Chen
2025/5/30 02:16, "Cong Wang" 写到: > > On Fri, May 23, 2025 at 09:18:58PM +0800, Jiayuan Chen wrote: > > > > > When sending plaintext data, we initially calculated the corresponding > > > > ciphertext length. However, if we later reduced the plaintext data length > > > > via socket policy,

[PATCH] module: make __mod_device_table__* symbols static

2025-06-02 Thread Masahiro Yamada
The __mod_device_table__* symbols are only parsed by modpost to generate MODULE_ALIAS() entries from MODULE_DEVICE_TABLE(). Therefore, these symbols do not need to be globally visible, or globally unique. If they are in the global scope, we would worry about the symbol uniqueness, but modpost is

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Masahiro Yamada
On Mon, Jun 2, 2025 at 5:07 PM Alexey Gladkov wrote: > > On Mon, Jun 02, 2025 at 04:45:36PM +0900, Masahiro Yamada wrote: > > On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > > > > > In order to avoid symbol conflicts if they appear in the same binary, a > > > more unique alias identifie

[PATCH net-next v2 4/4] selftests: netconsole: Add support for basic netconsole target format

2025-06-02 Thread Breno Leitao
Extend the netconsole selftest to validate both basic and extended target formats. The basic format is a simpler variant that doesn't support userdata or release functionality. The test now validates that netconsole works correctly in both configurations, improving test coverage for different netc

[PATCH net-next v2 0/4] netconsole: Optimize console registration and improve testing

2025-06-02 Thread Breno Leitao
During performance analysis of console subsystem latency, I discovered that netconsole registers console handlers even when no active targets exist. These orphaned console handlers are invoked on every printk() call, get the lock, iterate through empty target lists, and consume CPU cycles without p

Re: [RFC PATCH v1 0/6] Lazy mmu mode fixes and improvements

2025-06-02 Thread Ryan Roberts
On 31/05/2025 08:46, Mike Rapoport wrote: > Hi Ryan, > > On Fri, May 30, 2025 at 04:55:36PM +0100, Ryan Roberts wrote: >> On 30/05/2025 15:47, Lorenzo Stoakes wrote: >>> +cc Jann who is a specialist in all things page table-y and especially scary >>> edge cases :) >>> >>> On Fri, May 30, 2025 at 0

[PATCH net-next v2 1/4] netconsole: Only register console drivers when targets are configured

2025-06-02 Thread Breno Leitao
The netconsole driver currently registers the basic console driver unconditionally during initialization, even when only extended targets are configured. This results in unnecessary console registration and performance overhead, as the write_msg() callback is invoked for every log message only to r

[PATCH net-next v2 3/4] selftests: netconsole: Do not exit from inside the validation function

2025-06-02 Thread Breno Leitao
Remove the exit call from validate_result() function and move the test exit logic to the main script. This allows the function to be reused in scenarios where the test needs to continue execution after validation, rather than terminating immediately. The validate_result() function should focus on

Re: [PATCH v3 3/3] rpmsg: ctrl: Introduce RPMSG_CREATE_EPT_FD_IOCTL uAPI

2025-06-02 Thread Beleswar Prasad Padhi
Hi Dawei, On 30/05/25 18:20, Dawei Li wrote: > HI Beleswar, > > Thanks for reviewing. > > On Fri, May 30, 2025 at 03:15:28PM +0530, Beleswar Prasad Padhi wrote: >> Hi Dawei, >> >> On 19/05/25 20:38, Dawei Li wrote: >>> Implement RPMSG_CREATE_EPT_FD_IOCTL, new uAPI for rpmsg ctrl, which >>> shares

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Alexey Gladkov
On Mon, Jun 02, 2025 at 04:52:36PM +0900, Masahiro Yamada wrote: > On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > > > In order to avoid symbol conflicts if they appear in the same binary, a > > more unique alias identifier can be generated. > > > > Signed-off-by: Alexey Gladkov > > Rev

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Alexey Gladkov
On Mon, Jun 02, 2025 at 04:45:36PM +0900, Masahiro Yamada wrote: > On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > > > In order to avoid symbol conflicts if they appear in the same binary, a > > more unique alias identifier can be generated. > > Why must this be unique? > > What proble

Re: [PATCH v3 3/4] media: dt-bindings: Add qcom,msm8939-camss

2025-06-02 Thread Krzysztof Kozlowski
On Fri, May 30, 2025 at 11:00:06AM GMT, Vincent Knecht wrote: > + interrupt-names: > +items: > + - const: csid0 > + - const: csid1 > + - const: csid2 > + - const: csiphy0 > + - const: csiphy1 > + - const: ispif > + - const: vfe0 > + > + iommus: > +maxIte

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Masahiro Yamada
On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > In order to avoid symbol conflicts if they appear in the same binary, a > more unique alias identifier can be generated. > > Signed-off-by: Alexey Gladkov > Reviewed-by: Petr Pavlu > --- > include/linux/module.h | 14 -- >

Re: [PATCH v3 2/6] modules: Add macros to specify modinfo prefix

2025-06-02 Thread Masahiro Yamada
On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > The __MODULE_INFO macros always use __MODULE_INFO_PREFIX. The only way > to use a different prefix is to override __MODULE_INFO_PREFIX, which is > not very useful. Not necessarily. This would be a very special case only used in modpost, an

Re: [PATCH v3 3/6] modpost: Make mod_device_table aliases more unique

2025-06-02 Thread Masahiro Yamada
On Tue, May 27, 2025 at 6:08 PM Alexey Gladkov wrote: > > In order to avoid symbol conflicts if they appear in the same binary, a > more unique alias identifier can be generated. Why must this be unique? What problem would happen if the same symbol names appear in MODULE_DEVICE_TABLE()? > > Si