Re: [PATCH 3/6] arm64: dts: qcom: qcs615: Add mproc node for SEMP2P

2025-05-06 Thread Lijuan Gao
在 4/23/2025 5:29 PM, Konrad Dybcio 写道: On 4/23/25 11:17 AM, Lijuan Gao wrote: From: Kyle Deng The Shared Memory Point to Point (SMP2P) protocol facilitates communication of a single 32-bit value between two processors. Add these two nodes for remoteproc enablement on QCS615 SoC. Signed-off

Re: [PATCH 0/4] Add *_wait_val values for GDSCs in all SM6350 clock drivers

2025-05-06 Thread Bjorn Andersson
On Fri, 25 Apr 2025 14:12:54 +0200, Luca Weiss wrote: > As described in the commit messages, keep the GDSC configs aligned with > the downstream kernel. > > For reference, this was checked using the following code: > > To: Bjorn Andersson > To: Michael Turquette > To: Stephen Boyd > To: Konr

Re: [PATCH v2 0/4] of: Common "memory-region" parsing

2025-05-06 Thread Peng Fan
On Wed, Apr 23, 2025 at 02:42:12PM -0500, Rob Herring (Arm) wrote: >While there's a common function to parse "memory-region" properties for >DMA pool regions, there's not anything for driver private regions. As a >result, drivers have resorted to parsing "memory-region" properties >themselves repea

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-05-06 Thread Yan Zhao
On Tue, May 06, 2025 at 12:22:47PM -0700, Ackerley Tng wrote: > Yan Zhao writes: > > >> > > >> > > >> > What options does userspace have in this scenario? > >> > It can't reduce the flag to KVM_GUEST_MEMFD_HUGE_2MB. Adjusting the > >> > gmem.pgoff > >> > isn't ideal either. > >> > > >> > What a

Re: [PATCH v4 00/38] Mediated vPMU 4.0 for x86

2025-05-06 Thread Mi, Dapeng
On 5/7/2025 3:45 AM, Sean Christopherson wrote: > On Tue, May 06, 2025, Dapeng Mi wrote: >> Hi Sean, >> >> Not sure if you have bandwidth to review this mediated vPMU v4 patchset? > I'm getting there. I wanted to get through all the stuff I thought would > likely > be ready for 6.16 as-is befor

Re: [PATCH] kbuild: use ARCH from compile.h in unclean source tree msg

2025-05-06 Thread Shuah Khan
On 5/6/25 16:07, Shuah Khan wrote: On 5/6/25 05:12, Nicolas Schier wrote: On Fri, 02 May 2025, Shuah Khan wrote: When make finds the source tree unclean, it prints a message to run "make ARCH=x86_64 mrproper" message using the ARCH from the command line. The ARCH specified in the command line

Re: [PATCH v4 1/9] slab: add opt-in caching layer of percpu sheaves

2025-05-06 Thread Suren Baghdasaryan
On Fri, Apr 25, 2025 at 1:27 AM Vlastimil Babka wrote: > > Specifying a non-zero value for a new struct kmem_cache_args field > sheaf_capacity will setup a caching layer of percpu arrays called > sheaves of given capacity for the created cache. > > Allocations from the cache will allocate via the

Re: [PATCH v4 1/9] slab: add opt-in caching layer of percpu sheaves

2025-05-06 Thread Suren Baghdasaryan
On Tue, May 6, 2025 at 10:32 AM Suren Baghdasaryan wrote: > > On Mon, Apr 28, 2025 at 12:01 AM Vlastimil Babka wrote: > > > > On 4/25/25 19:31, Christoph Lameter (Ampere) wrote: > > > On Fri, 25 Apr 2025, Vlastimil Babka wrote: > > > > > >> @@ -4195,7 +4793,11 @@ static __fastpath_inline void >

Re: [PATCH v4 8/9] mm, vma: use percpu sheaves for vm_area_struct cache

2025-05-06 Thread Suren Baghdasaryan
On Fri, Apr 25, 2025 at 1:28 AM Vlastimil Babka wrote: > > Create the vm_area_struct cache with percpu sheaves of size 32 to > improve its performance. > > Signed-off-by: Vlastimil Babka I think Lorenzo's refactoring moved this code out of fork.c, so it will have to be adjusted. Reviewed-by: Su

Re: [PATCH v4 3/9] slab: sheaf prefilling for guaranteed allocations

2025-05-06 Thread Suren Baghdasaryan
On Fri, Apr 25, 2025 at 1:28 AM Vlastimil Babka wrote: > > Add functions for efficient guaranteed allocations e.g. in a critical > section that cannot sleep, when the exact number of allocations is not > known beforehand, but an upper limit can be calculated. > > kmem_cache_prefill_sheaf() returns

Re: [PATCH net-next v4 3/3] vsock/test: Expand linger test to ensure close() does not misbehave

2025-05-06 Thread Michal Luczaj
On 5/6/25 11:46, Stefano Garzarella wrote: > On Tue, 6 May 2025 at 11:43, Stefano Garzarella wrote: >> >> On Thu, May 01, 2025 at 10:05:24AM +0200, Michal Luczaj wrote: >>> There was an issue with SO_LINGER: instead of blocking until all queued >>> messages for the socket have been successfully se

Re: [PATCH net-next v4 2/3] vsock: Move lingering logic to af_vsock core

2025-05-06 Thread Michal Luczaj
On 5/6/25 11:53, Stefano Garzarella wrote: > On Thu, May 01, 2025 at 10:05:23AM +0200, Michal Luczaj wrote: >> Lingering should be transport-independent in the long run. In preparation >> for supporting other transports, as well the linger on shutdown(), move >> code to core. >> >> Generalize by qu

Re: [PATCH] kbuild: use ARCH from compile.h in unclean source tree msg

2025-05-06 Thread Shuah Khan
On 5/6/25 05:12, Nicolas Schier wrote: On Fri, 02 May 2025, Shuah Khan wrote: When make finds the source tree unclean, it prints a message to run "make ARCH=x86_64 mrproper" message using the ARCH from the command line. The ARCH specified in the command line could be different from the ARCH of

Re: [PATCH bpf-next v3 2/3] selftests: bpf: add a test for mmapable vmlinux BTF

2025-05-06 Thread Andrii Nakryiko
On Mon, May 5, 2025 at 11:39 AM Lorenz Bauer wrote: > > Add a basic test for the ability to mmap /sys/kernel/btf/vmlinux. Since > libbpf doesn't have an API to parse BTF from memory we do some basic > sanity checks ourselves. > > Signed-off-by: Lorenz Bauer > --- > tools/testing/selftests/bpf/pr

Re: [PATCH] clk: test: Forward-declare struct of_phandle_args in kunit/clk.h

2025-05-06 Thread Stephen Boyd
Quoting Richard Fitzgerald (2025-03-27 05:52:14) > Add a forward-declare of struct of_phandle_args to prevent the compiler > warning: > > ../include/kunit/clk.h:29:63: warning: ‘struct of_phandle_args’ declared > inside parameter list will not be visible outside of this definition or > declaration

Re: [PATCH bpf-next v3 1/3] btf: allow mmap of vmlinux btf

2025-05-06 Thread Andrii Nakryiko
On Mon, May 5, 2025 at 11:39 AM Lorenz Bauer wrote: > > User space needs access to kernel BTF for many modern features of BPF. > Right now each process needs to read the BTF blob either in pieces or > as a whole. Allow mmaping the sysfs file so that processes can directly > access the memory alloc

Re: [PATCH bpf-next v3 3/3] libbpf: Use mmap to parse vmlinux BTF from sysfs

2025-05-06 Thread Andrii Nakryiko
On Mon, May 5, 2025 at 11:39 AM Lorenz Bauer wrote: > > Teach libbpf to use mmap when parsing vmlinux BTF from /sys. We don't > apply this to fall-back paths on the regular file system because there > is no way to ensure that modifications underlying the MAP_PRIVATE > mapping are not visible to th

[PATCH v2] selftests: pid_namespace: Fix missing mount headers in pid_max.c

2025-05-06 Thread Moon Hee Lee
Fix compilation errors in pid_max.c by including , which provides definitions for mount(), umount2(), MS_PRIVATE, MS_REC, and MNT_DETACH. Without this header, the build fails with implicit declarations and undefined constants during selftest compilation. Changes since v1: - Included example build

Re: [PATCH v3 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2025-05-06 Thread John Hubbard
On 5/6/25 2:18 PM, Shuah Khan wrote: > On 5/1/25 05:42, Peter Zijlstra wrote: >> On Wed, Oct 16, 2024 at 07:14:34PM -0700, John Hubbard wrote: >>> On 10/16/24 3:06 PM, Lorenzo Stoakes wrote: On Wed, Oct 16, 2024 at 02:00:27PM -0600, Shuah Khan wrote: > On 10/16/24 04:20, Lorenzo Stoakes wr

Re: [PATCH v4 2/9] slab: add sheaf support for batching kfree_rcu() operations

2025-05-06 Thread Suren Baghdasaryan
On Fri, Apr 25, 2025 at 1:27 AM Vlastimil Babka wrote: > > Extend the sheaf infrastructure for more efficient kfree_rcu() handling. > For caches with sheaves, on each cpu maintain a rcu_free sheaf in > addition to main and spare sheaves. > > kfree_rcu() operations will try to put objects on this s

Re: [PATCH v3 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2025-05-06 Thread Shuah Khan
On 5/1/25 05:42, Peter Zijlstra wrote: On Wed, Oct 16, 2024 at 07:14:34PM -0700, John Hubbard wrote: On 10/16/24 3:06 PM, Lorenzo Stoakes wrote: On Wed, Oct 16, 2024 at 02:00:27PM -0600, Shuah Khan wrote: On 10/16/24 04:20, Lorenzo Stoakes wrote: ... diff --git a/tools/testing/selftests/pidf

Re: [PATCH v2 3/4] media: i2c: imx214: Make use of CCS PLL calculator

2025-05-06 Thread Sakari Ailus
Hi André, On Tue, May 06, 2025 at 10:16:23PM +0200, André Apitzsch wrote: > Hi Sakari, > > thanks for the feedback. One question below. > > Am Dienstag, dem 06.05.2025 um 08:05 + schrieb Sakari Ailus: > > Hi André, > > > > A few more comments below. > > > > On Mon, May 05, 2025 at 11:05:55

Re: [PATCH v3 2/2] x86/sgx: Implement EUPDATESVN and opportunistically call it during first EPC page alloc

2025-05-06 Thread Nataliia Bondarevska
Tested-by: Nataliia Bondarevska On Fri, May 2, 2025 at 1:56 AM Jarkko Sakkinen wrote: > > On Fri, 2025-05-02 at 07:22 +, Reshetova, Elena wrote: > > > > > > > > On Wed, Apr 30, 2025 at 06:53:32AM +, Reshetova, Elena wrote: > > > > 2. Switch to Sean's approach to execute EUPDATESVN dur

Re: [PATCH v2 3/4] media: i2c: imx214: Make use of CCS PLL calculator

2025-05-06 Thread André Apitzsch
Hi Sakari, thanks for the feedback. One question below. Am Dienstag, dem 06.05.2025 um 08:05 + schrieb Sakari Ailus: > Hi André, > > A few more comments below. > > On Mon, May 05, 2025 at 11:05:55PM +0200, André Apitzsch via B4 Relay > wrote: > > From: André Apitzsch > > > > Calculate PLL

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2025-05-06 Thread Nicolin Chen
On Tue, May 06, 2025 at 09:58:47AM -0300, Jason Gunthorpe wrote: > On Mon, May 05, 2025 at 07:53:44PM -0700, Nicolin Chen wrote: > > On Mon, May 05, 2025 at 02:08:07PM -0300, Jason Gunthorpe wrote: > > > On Wed, Apr 30, 2025 at 12:58:47AM -0700, Nicolin Chen wrote: > > > The bus numbers can be reas

Re: [PATCH v4 00/38] Mediated vPMU 4.0 for x86

2025-05-06 Thread Sean Christopherson
On Tue, May 06, 2025, Dapeng Mi wrote: > Hi Sean, > > Not sure if you have bandwidth to review this mediated vPMU v4 patchset? I'm getting there. I wanted to get through all the stuff I thought would likely be ready for 6.16 as-is before moving onto the larger series.

Re: [RFC PATCH 39/39] KVM: guest_memfd: Dynamically split/reconstruct HugeTLB page

2025-05-06 Thread Ackerley Tng
Yan Zhao writes: >> > >> > >> > What options does userspace have in this scenario? >> > It can't reduce the flag to KVM_GUEST_MEMFD_HUGE_2MB. Adjusting the >> > gmem.pgoff >> > isn't ideal either. >> > >> > What about something similar as below? >> > >> > diff --git a/virt/kvm/guest_memfd.c b/v

Re: [PATCH v9 01/19] cxl/mbox: Flag support for Dynamic Capacity Devices (DCD)

2025-05-06 Thread Fan Ni
On Tue, May 06, 2025 at 11:09:09AM -0500, Ira Weiny wrote: > Fan Ni wrote: > > On Mon, Apr 14, 2025 at 03:19:50PM +0100, Jonathan Cameron wrote: > > > On Sun, 13 Apr 2025 17:52:09 -0500 > > > Ira Weiny wrote: > > [snip] > > > > > > > > + > > > > +static bool cxl_verify_dcd_cmds(struct cxl_memde

Re: [PATCH] rcu/nocb: Add Safe checks for access offloaded rdp

2025-05-06 Thread Joel Fernandes
> On May 6, 2025, at 2:26 AM, Z qiang wrote: > >  >> >> >> >> >>> On 4/30/2025 12:14 PM, Joel Fernandes wrote: >>> >>> >>> On 4/30/2025 10:57 AM, Z qiang wrote: > > > > On 4/28/2025 6:59 AM, Z qiang wrote: >>> >>> Le Mon, Apr 28, 2025 at 05:54:03PM +0800, Zqi

Re: [PATCH v4 1/9] slab: add opt-in caching layer of percpu sheaves

2025-05-06 Thread Suren Baghdasaryan
On Mon, Apr 28, 2025 at 12:01 AM Vlastimil Babka wrote: > > On 4/25/25 19:31, Christoph Lameter (Ampere) wrote: > > On Fri, 25 Apr 2025, Vlastimil Babka wrote: > > > >> @@ -4195,7 +4793,11 @@ static __fastpath_inline void > >> *slab_alloc_node(struct kmem_cache *s, struct list > >> if (unlik

Re: [PATCH v3 0/2] Fix two memory leaks in rproc_attach()

2025-05-06 Thread Mathieu Poirier
On Wed, Apr 30, 2025 at 05:20:41PM +0800, Xiaolei Wang wrote: > In the rproc_attach() function, if rproc_handle_resources() returns > failure, the resources requested in imx_rproc_prepare() should be > released, since almost the same thing is done in imx_rproc_prepare() and > rproc_resource_cleanup

Re: [PATCH v8 00/10] Basic SEV-SNP Selftests

2025-05-06 Thread Kalra, Ashish
Hello Sean, On 5/5/2025 7:56 PM, Sean Christopherson wrote: > On Mon, May 05, 2025, Ashish Kalra wrote: >> On 5/5/2025 6:15 PM, Sean Christopherson wrote: >>> @@ -3067,12 +3075,6 @@ void __init sev_hardware_setup(void) >>> >>> if (!sev_enabled) >>> return; >>> - >>> -

[PATCH v2] remoteproc: xlnx: avoid RPU force power down

2025-05-06 Thread Tanmay Shah
Powering off RPU using force_pwrdwn call results in system failure if there are multiple users of that RPU node. Better mechanism is to use request_node and release_node EEMI calls. With use of these EEMI calls, platform management controller will take-care of powering off RPU when there is no user

Re: [PATCH net-next v3] selftests/vsock: add initial vmtest.sh for vsock

2025-05-06 Thread Bobby Eshleman
On Fri, May 02, 2025 at 12:22:46PM +0200, Paolo Abeni wrote: > On 4/29/25 1:48 AM, Bobby Eshleman wrote: > > This commit introduces a new vmtest.sh runner for vsock. > > > > It uses virtme-ng/qemu to run tests in a VM. The tests validate G2H, > > H2G, and loopback. The testing tools from tools/tes

Re: [PATCH v9 01/19] cxl/mbox: Flag support for Dynamic Capacity Devices (DCD)

2025-05-06 Thread Ira Weiny
Fan Ni wrote: > On Mon, Apr 14, 2025 at 03:19:50PM +0100, Jonathan Cameron wrote: > > On Sun, 13 Apr 2025 17:52:09 -0500 > > Ira Weiny wrote: [snip] > > > > > + > > > +static bool cxl_verify_dcd_cmds(struct cxl_memdev_state *mds, unsigned > > > long *cmds_seen) > > > > It's not immediately ob

Re: [RFC PATCH 02/11] KVM: guest_mem: Add ioctl KVM_LINK_GUEST_MEMFD

2025-05-06 Thread Ackerley Tng
Sean Christopherson writes: > On Mon, Aug 07, 2023, Ackerley Tng wrote: >> KVM_LINK_GUEST_MEMFD will link a gmem fd's underlying inode to a new >> file (and fd). >> >> Signed-off-by: Ackerley Tng >> --- >> include/uapi/linux/kvm.h | 8 + >> virt/kvm/guest_mem.c | 73 +++

[PATCH] selftests: pid_namespace: Fix missing mount headers in pid_max.c

2025-05-06 Thread Moon Hee Lee
Fix compilation error in pid_max.c by including to define mount(), umount2(), MS_PRIVATE, MS_REC, and MNT_DETACH. The test now builds successfully. Signed-off-by: Moon Hee Lee --- tools/testing/selftests/pid_namespace/pid_max.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/

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

2025-05-06 Thread Mathieu Poirier
On Tue, May 06, 2025 at 09:36:19AM -0300, Hiago De Franco wrote: > Hi Peng, > > On Tue, May 06, 2025 at 12:38:35PM +0800, Peng Fan wrote: > > On Mon, May 05, 2025 at 12:48:47PM -0300, Hiago De Franco wrote: > > >From: Hiago De Franco > > > > > >For the i.MX8X and i.MX8 family SoCs, when the M-cor

Re: [PATCH v8 00/10] Basic SEV-SNP Selftests

2025-05-06 Thread Sean Christopherson
On Mon, May 05, 2025, Pratik R. Sampat wrote: > On 5/5/2025 6:15 PM, Sean Christopherson wrote: > > On Mon, May 05, 2025, Pratik R. Sampat wrote: > > Argh, now I remember the issue. But _sev_platform_init_locked() returns > > '0' if > > psp_init_on_probe is true, and I don't see how deferring >

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

2025-05-06 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 --- MA

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

2025-05-06 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 Gomez Reviewed-by: Greg Kroah-Hartman Signed-off-by: Andreas Hindborg ---

[PATCH v12 0/3] rust: extend `module!` macro with integer parameter support

2025-05-06 Thread Andreas Hindborg
Extend the `module!` macro with support module parameters. Also add some string to integer parsing functions and updates `BStr` with a method to strip a string prefix. Based on code by Adam Bratschi-Kaye lifted from the original `rust` branch [1]. Link: https://github.com/Rust-for-Linux/linux/tr

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

2025-05-06 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 Reviewed-by: Greg Kroah-Hartman Signed-off-by: Andreas Hindborg --- rust/kernel/lib.rs

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2025-05-06 Thread Jason Gunthorpe
On Mon, May 05, 2025 at 07:53:44PM -0700, Nicolin Chen wrote: > On Mon, May 05, 2025 at 02:08:07PM -0300, Jason Gunthorpe wrote: > > On Wed, Apr 30, 2025 at 12:58:47AM -0700, Nicolin Chen wrote: > > > > > > ... and I just hit a problem with it - this is basically guest BDFn > > > > and it works as

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

2025-05-06 Thread Hiago De Franco
Hi Peng, On Tue, May 06, 2025 at 12:38:35PM +0800, Peng Fan wrote: > On Mon, May 05, 2025 at 12:48:47PM -0300, Hiago De Franco wrote: > >From: Hiago De Franco > > > >For the i.MX8X and i.MX8 family SoCs, when the M-core is powered up > >before Linux starts (e.g., by the bootloader) and it is bein

Re: [PATCH v3 2/5] ASoC: qcom: sm8250: set card driver name from match data

2025-05-06 Thread Luca Weiss
Hi Srini, On Fri May 2, 2025 at 1:06 PM CEST, Srinivas Kandagatla wrote: > On 5/1/25 15:13, Luca Weiss wrote: >> Hi Srini, >> >> Srinivas Kandagatla schreef op 1 mei 2025 13:37:45 CEST: >>> On Fri, Apr 25, 2025 at 10:07:26AM +0200, Luca Weiss wrote: Sound machine drivers for Qualcomm SoCs c

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

2025-05-06 Thread Andreas Hindborg
"Alice Ryhl" writes: > On Mon, May 05, 2025 at 11:55:33AM +0200, Andreas Hindborg wrote: >> "Alice Ryhl" writes: >> >> > On Fri, May 02, 2025 at 02:16:35PM +0200, Andreas Hindborg wrote: >> > It would be a use-after-free to >> > access it during module teardown. For example, what if I access thi

Re: [PATCH] kbuild: use ARCH from compile.h in unclean source tree msg

2025-05-06 Thread Nicolas Schier
On Fri, 02 May 2025, Shuah Khan wrote: > When make finds the source tree unclean, it prints a message to run > "make ARCH=x86_64 mrproper" message using the ARCH from the command > line. The ARCH specified in the command line could be different from > the ARCH of the existing build in the source t

Re: [PATCH v4 00/38] Mediated vPMU 4.0 for x86

2025-05-06 Thread Mi, Dapeng
Hi Sean, Not sure if you have bandwidth to review this mediated vPMU v4 patchset? All your comments in v3 patchset have been addressed. Thanks. Dapeng Mi On 3/25/2025 1:30 AM, Mingwei Zhang wrote: > With joint effort from the upstream KVM community, we come up with the > 4th version of mediated

Re: [PATCH net-next v4 2/3] vsock: Move lingering logic to af_vsock core

2025-05-06 Thread Stefano Garzarella
On Thu, May 01, 2025 at 10:05:23AM +0200, Michal Luczaj wrote: Lingering should be transport-independent in the long run. In preparation for supporting other transports, as well the linger on shutdown(), move code to core. Generalize by querying vsock_transport::unsent_bytes(), guard against the

Re: [BUG] RCU: Kernel panic on execute from non-executable memory (binderfs + stress-ng)

2025-05-06 Thread Yunseong Kim
Hi, I attached the vmcore with vmlinux symbol for further analysis and will share it at the following link. Link: https://drive.google.com/file/d/1_RFdpdWNuLdO-Yx6d7vIX-WAFX4X_msH/view?usp=drive_link On 5/6/25 9:30 오전, Yunseong Kim wrote: > Hi Colin, > >>> The crash seems to originate from rc

Re: [PATCH net-next v4 3/3] vsock/test: Expand linger test to ensure close() does not misbehave

2025-05-06 Thread Stefano Garzarella
On Tue, 6 May 2025 at 11:43, Stefano Garzarella wrote: > > On Thu, May 01, 2025 at 10:05:24AM +0200, Michal Luczaj wrote: > >There was an issue with SO_LINGER: instead of blocking until all queued > >messages for the socket have been successfully sent (or the linger timeout > >has been reached), c

[PATCH 5/6] x86/paravirt: Switch MSR access pv_ops functions to instruction interfaces

2025-05-06 Thread Juergen Gross
Instead of having callback functions for rdmsr/wrmsr on native, switch to inline the respective instructions directly in order to avoid overhead with the call interface. This requires to use the instruction interfaces for rdmsr/wrmsr emulation when running as a Xen PV guest. In order to prepare s

Re: [PATCH net-next v4 1/3] vsock/virtio: Linger on unsent data

2025-05-06 Thread Stefano Garzarella
On Thu, May 01, 2025 at 10:05:22AM +0200, Michal Luczaj wrote: Currently vsock's lingering effectively boils down to waiting (or timing out) until packets are consumed or dropped by the peer; be it by receiving the data, closing or shutting down the connection. To align with the semantics descri

Re: [PATCH net-next v4 3/3] vsock/test: Expand linger test to ensure close() does not misbehave

2025-05-06 Thread Stefano Garzarella
On Thu, May 01, 2025 at 10:05:24AM +0200, Michal Luczaj wrote: There was an issue with SO_LINGER: instead of blocking until all queued messages for the socket have been successfully sent (or the linger timeout has been reached), close() would block until packets were handled by the peer. This i

Re: [PATCH v3 3/3] selftests: pidfd: add tests for PIDFD_SELF_*

2025-05-06 Thread Lorenzo Stoakes
On Mon, May 05, 2025 at 03:35:13PM +0200, Christian Brauner wrote: > I'm completely lost as to what's happening here or whether the test here > is somehow at fault for something. > > The pidfd.h head explicitly has no dependency on the pidfd uapi header > itself and I will NAK anything that makes i

Re: [PATCH v2 3/4] gendwarfksyms: Add a kABI rule to override type strings

2025-05-06 Thread Petr Pavlu
On 5/5/25 23:24, Sami Tolvanen wrote: > In rare situations where distributions must make significant > changes to otherwise opaque data structures that have > inadvertently been included in the published ABI, keeping > symbol versions stable using the existing kABI macros can > become tedious. > >

[PATCH 4/6] x86/msr: Move MSR trace calls one function level up

2025-05-06 Thread Juergen Gross
In order to prepare paravirt inlining of the MSR access instructions move the calls of MSR trace functions one function level up. Introduce helpers {read|write}_msr[_safe]() helpers allowing to have common definitions in msr.h doing the trace calls. Signed-off-by: Juergen Gross --- arch/x86/inc

Re: [PATCH] selftests/run_kselftest.sh: Use readlink if realpath is not available

2025-05-06 Thread Yosry Ahmed
On Fri, Mar 28, 2025 at 02:05:43PM -0600, Shuah Khan wrote: > On 3/18/25 10:05, Yosry Ahmed wrote: > > 'realpath' is not always available, fallback to 'readlink -f' if is not > > available. They seem to work equally well in this context. > > Can you add more specifics on "realpath" is not always

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

2025-05-06 Thread Alice Ryhl
On Mon, May 05, 2025 at 11:55:33AM +0200, Andreas Hindborg wrote: > "Alice Ryhl" writes: > > > On Fri, May 02, 2025 at 02:16:35PM +0200, Andreas Hindborg wrote: > > It would be a use-after-free to > > access it during module teardown. For example, what if I access this > > static during its own d

Re: [PATCH] KVM: selftests: add test for SVE host corruption

2025-05-06 Thread Marc Zyngier
On Thu, 17 Apr 2025 00:32:49 +0100, Mark Brown wrote: > This test program, originally written by Mark Rutland and lightly modified > by me for upstream, verifies that we do not have the issues with host SVE > state being discarded which were fixed in > >fbc7e61195e2 ("KVM: arm64: Unconditional

Re: [PATCH v2 4/4] media: i2c: imx214: Remove hard-coded external clock frequency

2025-05-06 Thread Sakari Ailus
Hi André, On Mon, May 05, 2025 at 11:05:56PM +0200, André Apitzsch via B4 Relay wrote: > From: André Apitzsch > > Instead rely on the rate set on the clock (using assigned-clock-rates > etc.) > > Signed-off-by: André Apitzsch > --- > drivers/media/i2c/imx214.c | 6 -- > 1 file changed, 6

Re: [PATCH v2 3/4] media: i2c: imx214: Make use of CCS PLL calculator

2025-05-06 Thread Sakari Ailus
Hi André, A few more comments below. On Mon, May 05, 2025 at 11:05:55PM +0200, André Apitzsch via B4 Relay wrote: > From: André Apitzsch > > Calculate PLL parameters based on clock frequency and link frequency. > > Acked-by: Ricardo Ribalda > Signed-off-by: André Apitzsch > --- > drivers/me

Re: [PATCH v3 0/2] Fix two memory leaks in rproc_attach()

2025-05-06 Thread Peng Fan
On Wed, Apr 30, 2025 at 05:20:41PM +0800, Xiaolei Wang wrote: >In the rproc_attach() function, if rproc_handle_resources() returns >failure, the resources requested in imx_rproc_prepare() should be >released, since almost the same thing is done in imx_rproc_prepare() and >rproc_resource_cleanup(),

Re: [PATCH] rcu/nocb: Add Safe checks for access offloaded rdp

2025-05-06 Thread Z qiang
> > > > On 4/30/2025 12:14 PM, Joel Fernandes wrote: > > > > > > On 4/30/2025 10:57 AM, Z qiang wrote: > >>> > >>> > >>> > >>> On 4/28/2025 6:59 AM, Z qiang wrote: > > > > Le Mon, Apr 28, 2025 at 05:54:03PM +0800, Zqiang a écrit : > >> For Preempt-RT kernel, when enable CONFIG_PROVE_RCU

Re: [PATCH v2] kbuild: Require pahole v1.29 with GENDWARFKSYMS on X86

2025-05-06 Thread Masahiro Yamada
On Tue, Apr 8, 2025 at 8:08 AM Sami Tolvanen wrote: > > With CONFIG_GENDWARFKSYMS, __gendwarfksyms_ptr variables are > added to the kernel in EXPORT_SYMBOL() to ensure DWARF type > information is available for exported symbols in the TUs where > they're actually exported. These symbols are dropped

Re: [PATCH 2/7] rust: kunit: support checked `-> Result`s in KUnit `#[test]`s

2025-05-06 Thread David Gow
On Tue, 6 May 2025 at 03:34, Boqun Feng wrote: > > On Mon, May 05, 2025 at 02:02:09PM +0800, David Gow wrote: > > On Sat, 3 May 2025 at 05:51, Miguel Ojeda wrote: > > > > > > Currently, return values of KUnit `#[test]` functions are ignored. > > > > > > Thus introduce support for `-> Result` func

Re: [PATCH v4 14/14] HACK: selftests/nolibc: demonstrate usage of the kselftest harness

2025-05-06 Thread Mark Brown
On Mon, May 05, 2025 at 05:15:32PM +0200, Thomas Weißschuh wrote: > Show how to use the kselftest harness together with nolibc. > This just runs the existing harness selftest by crudely replacing the > regular nolibc-test.c with the harness-selftest.c to get that wired up easily. > To use it: >

RE: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2025-05-06 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Tuesday, May 6, 2025 10:54 AM > > On Mon, May 05, 2025 at 02:08:07PM -0300, Jason Gunthorpe wrote: > > On Wed, Apr 30, 2025 at 12:58:47AM -0700, Nicolin Chen wrote: > > > > > > ... and I just hit a problem with it - this is basically guest BDFn > > > > and it works as

Re: [PATCH 3/3] remoteproc: imx_rproc: add power mode check for remote core attachment

2025-05-06 Thread Peng Fan
On Mon, May 05, 2025 at 12:48:49PM -0300, Hiago De Franco wrote: >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 ki

Re: [PATCH v2 06/19] iommufd/viommu: Add IOMMU_VIOMMU_SET/UNSET_VDEV_ID ioctl

2025-05-06 Thread Alexey Kardashevskiy
On 6/5/25 12:53, Nicolin Chen wrote: On Mon, May 05, 2025 at 02:08:07PM -0300, Jason Gunthorpe wrote: On Wed, Apr 30, 2025 at 12:58:47AM -0700, Nicolin Chen wrote: ... and I just hit a problem with it - this is basically guest BDFn and it works as long as I'm hotplugging the TEE-IO VF into

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

2025-05-06 Thread Peng Fan
On Mon, May 05, 2025 at 12:48:47PM -0300, Hiago De Franco wrote: >From: Hiago De Franco > >For the i.MX8X and i.MX8 family SoCs, when the M-core is powered up >before Linux starts (e.g., by the bootloader) and it is being managed by >the SCU, the SCFW will not allow the kernel to enable the clock

Re: [PATCH 2/3] firmware: imx: move get power mode function from scu-pd.c to misc.c

2025-05-06 Thread Peng Fan
On Mon, May 05, 2025 at 12:48:48PM -0300, Hiago De Franco wrote: >From: Hiago De Franco > >Move imx_sc_get_pd_power() from pmdomain/imx/scu-pd.c to >firmware/imx/misc.c and rename it to imx_sc_pm_get_resource_power_mode() >to maintain the same naming logic with other functions in misc.c. > >This m

Re: [PATCH V2] remoteproc: core: Clear table_sz when rproc_shutdown

2025-05-06 Thread Peng Fan
On Wed, Apr 09, 2025 at 02:46:10PM +0800, Peng Fan wrote: >On Tue, Apr 08, 2025 at 10:59:58AM -0600, Mathieu Poirier wrote: >>On Tue, 8 Apr 2025 at 09:02, Peng Fan wrote: >>> >>> On Thu, Apr 03, 2025 at 10:32:39PM +0800, Peng Fan wrote: >>> >Hi Bjorn, >>> > >>> > >>> >Thanks for replying this thre