Re: [PATCH 1/2] rcu: Comment on the extraneous delta test on rcu_seq_done_exact()

2025-03-21 Thread Joel Fernandes
Insomnia kicked in, so 3 am reply here (Zurich local time) ;-): On 3/20/2025 3:15 PM, Frederic Weisbecker wrote: > Le Wed, Mar 19, 2025 at 03:38:31PM -0400, Joel Fernandes a écrit : >> On Tue, Mar 18, 2025 at 11:37:38AM -0700, Paul E. McKenney wrote: >>> On Tue, Mar 18, 2025 at 02:56:18PM +0100, F

Re: [PATCH v7 0/3] x86/tdx: Fix HLT logic execution for TDX VMs

2025-03-21 Thread Vishal Annapurve
On Thu, Feb 27, 2025 at 5:44 PM Vishal Annapurve wrote: > > Direct HLT instruction execution causes #VEs for TDX VMs which is routed > to hypervisor via TDCALL. safe_halt() routines execute HLT in STI-shadow > so IRQs need to remain disabled until the TDCALL to ensure that pending > IRQs are corre

[PATCH 1/1] virtio_console: fix missing byte order handling for cols and rows

2025-03-21 Thread Halil Pasic
As per virtio spec the fields cols and rows are specified as little endian. Although there is no legacy interface requirement that would state that cols and rows need to be handled as native endian when legacy interface is used, unlike for the fields of the adjacent struct virtio_console_control, I

Re: [PATCH v2 0/2] selftests: livepatch: test if ftrace can trace a livepatched function

2025-03-21 Thread Miroslav Benes
On Tue, 18 Mar 2025, Filipe Xavier wrote: > This patchset add ftrace helpers functions and > add a new test makes sure that ftrace can trace > a function that was introduced by a livepatch. > > Signed-off-by: Filipe Xavier > Suggested-by: Marcos Paulo de Souza > Reviewed-by: Marcos Paulo de Sou

[PATCH 1/4] x86/sgx: Add total number of EPC pages

2025-03-21 Thread Elena Reshetova
In order to successfully execute ENCLS[EUPDATESVN], EPC must be empty. SGX already has a variable sgx_nr_free_pages that tracks free EPC pages. Add a new variable, sgx_nr_total_pages, that will keep track of total number of EPC pages. It will be used in subsequent patch to change the sgx_nr_free_pa

Re: [PATCH v3] remoteproc: Add device awake calls in rproc boot and shutdown path

2025-03-21 Thread Bjorn Andersson
On Mon, Mar 17, 2025 at 05:10:57PM +0530, Souradeep Chowdhury wrote: > Add device awake calls in case of rproc boot and rproc shutdown path. > Currently, device awake call is only present in the recovery path > of remoteproc. If a user stops and starts rproc by using the sysfs > interface, then on

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-21 Thread Jens Axboe
On 3/21/25 10:36 AM, Joe Damato wrote: > On Fri, Mar 21, 2025 at 05:14:59AM -0600, Jens Axboe wrote: >> On 3/20/25 11:56 PM, Christoph Hellwig wrote: I don't know the entire historical context, but I presume sendmsg did that because there was no other mechanism at the time. >>> >>> At lea

Re: [PATCH v2] rust: sync: rcu: Mark Guard methods as inline

2025-03-21 Thread Joel Fernandes
On Wed, Mar 19, 2025 at 10:26:40AM +0800, I Hsin Cheng wrote: > Currently the implementation of "Guard" methods are basically wrappers > around rcu's function within kernel. Building the kernel with llvm > 18.1.8 on x86_64 machine will generate the following symbols: > > $ nm vmlinux | grep ' _R'.

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-21 Thread Joe Damato
On Fri, Mar 21, 2025 at 02:33:16PM -0600, Jens Axboe wrote: > On 3/21/25 2:30 PM, Joe Damato wrote: > > On Fri, Mar 21, 2025 at 09:36:34AM -0700, Joe Damato wrote: > >> On Fri, Mar 21, 2025 at 05:14:59AM -0600, Jens Axboe wrote: > >>> On 3/20/25 11:56 PM, Christoph Hellwig wrote: > > I don't kn

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-21 Thread Pavel Begunkov
On 3/21/25 07:55, Stefan Metzmacher wrote: Am 20.03.25 um 11:46 schrieb Pavel Begunkov: On 3/19/25 19:15, Stefan Metzmacher wrote: Am 19.03.25 um 19:37 schrieb Jens Axboe: On 3/19/25 11:45 AM, Joe Damato wrote: On Wed, Mar 19, 2025 at 11:20:50AM -0600, Jens Axboe wrote: ... My argument woul

Re: [Linux-stm32] [PATCH 3/3] remoteproc: Use of_reserved_mem_region_* functions for "memory-region"

2025-03-21 Thread Rob Herring
On Fri, Mar 21, 2025 at 3:25 AM Arnaud POULIQUEN wrote: > > > > On 3/20/25 19:02, Rob Herring wrote: > > On Thu, Mar 20, 2025 at 4:23 AM Arnaud POULIQUEN > > wrote: > >> > >> > >> > >> On 3/20/25 00:04, Rob Herring wrote: > >>> On Wed, Mar 19, 2025 at 10:26 AM Arnaud POULIQUEN > >>> wrote: > >>>

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-21 Thread Jens Axboe
On 3/21/25 2:30 PM, Joe Damato wrote: > On Fri, Mar 21, 2025 at 09:36:34AM -0700, Joe Damato wrote: >> On Fri, Mar 21, 2025 at 05:14:59AM -0600, Jens Axboe wrote: >>> On 3/20/25 11:56 PM, Christoph Hellwig wrote: > I don't know the entire historical context, but I presume sendmsg > did that

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-21 Thread Phil Sutter
Hi Hangbin, On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > Hi Jason, Phil, > On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld wrote: > > On Mon, Jan 06, 2025 at 08:10:43AM +, Hangbin Liu wrote: > > > + echo "file /bin/nft $(NFTABLES_PATH)/src/nft 755 0 0" >> $@ > >

Re: distro support for CONFIG_KUNIT: [PATCH 0/3] bitmap: convert self-test to KUnit

2025-03-21 Thread Tamir Duberstein
On Fri, Mar 21, 2025 at 2:32 PM Yury Norov wrote: > > On Fri, Mar 21, 2025 at 12:53:36PM -0400, Tamir Duberstein wrote: > > Hi all, now that the printf and scanf series have been taken via kees' > > tree[0] and sent in for v6.15-rc1[1], I wonder if we'd like to revisit > > this discussion. > > > >

Re: [PATCH v7 8/8] vhost: Add a KConfig knob to enable IOCTL VHOST_FORK_FROM_OWNER

2025-03-21 Thread Michael S. Tsirkin
On Mon, Mar 03, 2025 at 01:52:06PM +0800, Jason Wang wrote: > On Sun, Mar 2, 2025 at 10:34 PM Cindy Lu wrote: > > > > Introduce a new config knob `CONFIG_VHOST_ENABLE_FORK_OWNER_IOCTL`, > > to control the availability of the `VHOST_FORK_FROM_OWNER` ioctl. > > When CONFIG_VHOST_ENABLE_FORK_OWNER_IO

Re: [PATCH v7 0/8] vhost: Add support of kthread API

2025-03-21 Thread Michael S. Tsirkin
On Sun, Mar 02, 2025 at 10:32:02PM +0800, Cindy Lu wrote: > In commit 6e890c5d5021 ("vhost: use vhost_tasks for worker threads"), > the vhost now uses vhost_task and operates as a child of the > owner thread. This aligns with containerization principles. > However, this change has caused c

Re: [PATCH v4 08/16] rust: kunit: refactor to use `&raw [const|mut]`

2025-03-21 Thread Miguel Ojeda
On Fri, Mar 21, 2025 at 6:06 PM Boqun Feng wrote: > > I agree this whole series should wait a bit, but do we want to merge > patch #1 as early as possible (maybe right after v6.15-rc1), so that new > code can switch to &raw since that's the direction anyway? Sounds like a good idea to me. Cheers

Re: [PATCH v4 08/16] rust: kunit: refactor to use `&raw [const|mut]`

2025-03-21 Thread Antonio Hickey
On Fri, Mar 21, 2025 at 10:06:03AM -0700, Boqun Feng wrote: > On Fri, Mar 21, 2025 at 10:28:06AM +0800, David Gow wrote: > [...] > > > Anyway, KUnit `#[test]`s are in -- I was not planning to merge this > > > now anyway, it should be reviewed a bit more. > > > > I agree this whole series should w

Re: distro support for CONFIG_KUNIT: [PATCH 0/3] bitmap: convert self-test to KUnit

2025-03-21 Thread Yury Norov
On Fri, Mar 21, 2025 at 12:53:36PM -0400, Tamir Duberstein wrote: > Hi all, now that the printf and scanf series have been taken via kees' > tree[0] and sent in for v6.15-rc1[1], I wonder if we'd like to revisit > this discussion. > > As I understand it, the primary objections to moving bitmap to

[PATCH] DAX: warn when kmem regions are truncated for memory block alignment.

2025-03-21 Thread Gregory Price
Device capacity intended for use as system ram should be aligned to the architecture-defined memory block size or that capacity will be silently truncated and capacity stranded. As hotplug dax memory becomes more prevelant, the memory block size alignment becomes more important for platform and de

Re: [PATCH 3/3] arm64: dts: qcom: sm6350: Add video clock controller

2025-03-21 Thread Luca Weiss
Hi Dmitry, On Fri Mar 21, 2025 at 4:56 PM CET, Dmitry Baryshkov wrote: > On Fri, Mar 21, 2025 at 03:45:01PM +0100, Luca Weiss wrote: >> Add a node for the videocc found on the SM6350 SoC. >> >> Signed-off-by: Luca Weiss >> --- >> arch/arm64/boot/dts/qcom/sm6350.dtsi | 14 ++ >> 1 fi

Re: [PATCH] KVM: selftests: Fix a couple "prio" signedness bugs

2025-03-21 Thread Marc Zyngier
Hey Dan, On Fri, 21 Mar 2025 14:32:53 +, Dan Carpenter wrote: > > There is an assert which relies on "prio" to be signed. > > GUEST_ASSERT(prio >= 0); > > Change the type from uint32_t to int. > > Fixes: 728fcc46d2c2 ("KVM: selftests: aarch64: Add test for restoring active > IRQs")

Re: distro support for CONFIG_KUNIT: [PATCH 0/3] bitmap: convert self-test to KUnit

2025-03-21 Thread Tamir Duberstein
Hi all, now that the printf and scanf series have been taken via kees' tree[0] and sent in for v6.15-rc1[1], I wonder if we'd like to revisit this discussion. As I understand it, the primary objections to moving bitmap to KUnit were: - Unclear benefits. - Source churn. - Extra dependencies for ben

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-21 Thread Joe Damato
On Thu, Mar 20, 2025 at 10:56:15PM -0700, Christoph Hellwig wrote: > On Thu, Mar 20, 2025 at 11:23:57AM -0700, Joe Damato wrote: > > In my other message to Jens I proposed: > > - SPLICE_F_ZC for splice to generate zc completion notifications > > to the error queue > > - Modifying sendfile s

Re: [PATCH 2/3] clk: qcom: Add video clock controller driver for SM6350

2025-03-21 Thread Dmitry Baryshkov
On Fri, Mar 21, 2025 at 03:45:00PM +0100, Luca Weiss wrote: > From: Konrad Dybcio > > Add support for the video clock controller found on SM6350 based > devices. > > Signed-off-by: Konrad Dybcio > Co-developed-by: Luca Weiss > Signed-off-by: Luca Weiss > --- > drivers/clk/qcom/Kconfig

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-21 Thread Joe Damato
On Fri, Mar 21, 2025 at 05:14:59AM -0600, Jens Axboe wrote: > On 3/20/25 11:56 PM, Christoph Hellwig wrote: > >> I don't know the entire historical context, but I presume sendmsg > >> did that because there was no other mechanism at the time. > > > > At least aio had been around for about 15 years

Re: [PATCH 3/3] arm64: dts: qcom: sm6350: Add video clock controller

2025-03-21 Thread Dmitry Baryshkov
On 21/03/2025 18:15, Luca Weiss wrote: Hi Dmitry, On Fri Mar 21, 2025 at 4:56 PM CET, Dmitry Baryshkov wrote: On Fri, Mar 21, 2025 at 03:45:01PM +0100, Luca Weiss wrote: Add a node for the videocc found on the SM6350 SoC. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm6350.dtsi |

Re: [PATCH] remoteproc: sysmon: Update qcom_add_sysmon_subdev() comment

2025-03-21 Thread Dmitry Baryshkov
On Fri, Mar 21, 2025 at 05:35:44PM +0300, Dan Carpenter wrote: > The comment says the qcom_add_sysmon_subdev() returns NULL on error but > it actually returns error pointers. > > Signed-off-by: Dan Carpenter > --- > drivers/remoteproc/qcom_sysmon.c | 2 +- > 1 file changed, 1 insertion(+), 1 del

Re: [PATCH v2 09/57] irqdomain: remoteproc: Switch to of_fwnode_handle()

2025-03-21 Thread Mathieu Poirier
On Wed, Mar 19, 2025 at 10:29:02AM +0100, Jiri Slaby (SUSE) wrote: > of_node_to_fwnode() is irqdomain's reimplementation of the "officially" > defined of_fwnode_handle(). The former is in the process of being > removed, so use the latter instead. > > Signed-off-by: Jiri Slaby (SUSE) > Cc: Bjorn A

Re: [PATCH] kunit: cs_dsp: Depend on FW_CS_DSP rather then enabling it

2025-03-21 Thread Nico Pache
On Fri, Mar 21, 2025 at 8:51 AM Mark Brown wrote: > > On Fri, Mar 21, 2025 at 05:37:50AM -0600, Nico Pache wrote: > > On Thu, Mar 20, 2025 at 4:49 PM Mark Brown wrote: > > > > Simply adding it to the all_tests.config will just result in it getting > > > turned off by Kconfig during the build sinc

Re: [PATCH] kunit: cs_dsp: Depend on FW_CS_DSP rather then enabling it

2025-03-21 Thread Mark Brown
On Fri, Mar 21, 2025 at 05:37:50AM -0600, Nico Pache wrote: > On Thu, Mar 20, 2025 at 4:49 PM Mark Brown wrote: > > Simply adding it to the all_tests.config will just result in it getting > > turned off by Kconfig during the build since it's not a visible option > > so that's not accomplishing an

Re: [RFC -next 00/10] Add ZC notifications to splice and sendfile

2025-03-21 Thread Jens Axboe
On 3/19/25 1:16 PM, Joe Damato wrote: >>> In general: it does seem a bit odd to me that there isn't a safe >>> sendfile syscall in Linux that uses existing completion notification >>> mechanisms. >> >> Pretty natural, I think. sendfile(2) predates that by quite a bit, and >> the last real change to

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-21 Thread Jason A. Donenfeld
On Fri, Mar 21, 2025 at 12:45:17PM +, Hangbin Liu wrote: > On Fri, Mar 21, 2025 at 12:42:42PM +0100, Phil Sutter wrote: > > Hi Hangbin, > > > > On Fri, Mar 21, 2025 at 10:40:25AM +, Hangbin Liu wrote: > > > Hi Jason, Phil, > > > On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld

[PATCH 2/4] sysctl: Add 0012 to test the u8 range check

2025-03-21 Thread Joel Granados
Add a sysctl test that uses the new u8 test ctl files in a created by the sysctl test module. Check that the u8 proc file that is valid is created and that there are two messages in dmesg for the files that were out of range. Signed-off-by: Joel Granados --- tools/testing/selftests/sysctl/sysctl

[PATCH 1/4] sysctl: move u8 register test to lib/test_sysctl.c

2025-03-21 Thread Joel Granados
If the test added in commit b5ffbd139688 ("sysctl: move the extra1/2 boundary check of u8 to sysctl_check_table_array") is run as a module, a lingering reference to the module is left behind, and a 'sysctl -a' leads to a panic. To reproduce CONFIG_KUNIT=y CONFIG_SYSCTL_KUNIT_TEST=m Then r

[PATCH 4/4] x86/sgx: Implement ENCLS[EUPDATESVN] and opportunistically call it during first EPC page alloc

2025-03-21 Thread Elena Reshetova
SGX architecture introduced a new instruction called EUPDATESVN [1] to Ice Lake. It allows updating security SVN version, given that EPC is completely empty. The latter is required for security reasons in order to reason that enclave security posture is as secure as the security SVN version of the

[PATCH v9 1/3] rust: str: add radix prefixed integer parsing functions

2025-03-21 Thread Andreas Hindborg
Add the trait `ParseInt` for parsing string representations of integers where the string representations are optionally prefixed by a radix specifier. Implement the trait for the primitive integer types. Tested-by: Daniel Almeida Reviewed-by: Daniel Almeida Signed-off-by: Andreas Hindborg ---

Re: [PATCH] kunit: cs_dsp: Depend on FW_CS_DSP rather then enabling it

2025-03-21 Thread Nico Pache
On Thu, Mar 20, 2025 at 4:49 PM Mark Brown wrote: > > On Thu, Mar 20, 2025 at 04:21:16PM -0600, Nico Pache wrote: > > On Thu, Mar 20, 2025 at 1:14 PM Mark Brown wrote: > > > On Wed, Mar 19, 2025 at 05:05:39PM -0600, Nico Pache wrote: > > > > > config FW_CS_DSP_KUNIT_TEST > > > > tristate "

Re: [PATCHv4 RESEND net-next 2/2] selftests: wireguard: update to using nft for qemu test

2025-03-21 Thread Hangbin Liu
Hi Jason, Phil, On Wed, Mar 19, 2025 at 05:15:41PM +0100, Jason A. Donenfeld wrote: > On Mon, Jan 06, 2025 at 08:10:43AM +, Hangbin Liu wrote: > > + echo "file /bin/nft $(NFTABLES_PATH)/src/nft 755 0 0" >> $@ > > + echo "file /lib/libmnl.so.0 $(TOOLCHAIN_PATH)/lib/libmnl.so.0 755 0 0" > >

[PATCH v9 3/3] modules: add rust modules files to MAINTAINERS

2025-03-21 Thread Andreas Hindborg
The module subsystem people agreed to maintain rust support for modules [1]. Thus, add entries for relevant files to modules entry in MAINTAINERS. Link: https://lore.kernel.org/all/0d9e596a-5316-4e00-862b-fd77552ae...@suse.com/ [1] Acked-by: Daniel Gomez Signed-off-by: Andreas Hindborg --- MAI

[PATCH v9 2/3] rust: add parameter support to the `module!` macro

2025-03-21 Thread Andreas Hindborg
Add support for module parameters to the `module!` macro. Implement read only support for integer types without `sysfs` support. Acked-by: Petr Pavlu # from modules perspective Tested-by: Daniel Gomez Signed-off-by: Andreas Hindborg --- rust/kernel/lib.rs | 1 + rust/kernel/module_

Re: [PATCH net-next v2 0/4] virtio_net: Fixes and improvements

2025-03-21 Thread Xuan Zhuo
On Fri, 21 Mar 2025 15:48:31 +0900, Akihiko Odaki wrote: > Jason Wang recently proposed an improvement to struct > virtio_net_rss_config: > https://lore.kernel.org/r/CACGkMEud0Ki8p=z299q7b4qedonpydzbvqhhxcnvk_vo-kd...@mail.gmail.com > > This patch series implements it and also fixes a few minor b

Re: [PATCH net-next 3/4] virtio_net: Use new RSS config structs

2025-03-21 Thread Jason Wang
On Thu, Mar 20, 2025 at 1:36 PM Akihiko Odaki wrote: > > On 2025/03/20 10:50, Jason Wang wrote: > > On Wed, Mar 19, 2025 at 12:48 PM Akihiko Odaki > > wrote: > >> > >> On 2025/03/19 10:43, Jason Wang wrote: > >>> On Tue, Mar 18, 2025 at 5:57 PM Akihiko Odaki > >>> wrote: > > The new