Re: [PATCHv5 net 1/3] bonding: fix calling sleeping function in spin lock and some race conditions

2025-03-15 Thread Hangbin Liu
Hi Nikolay, On Fri, Mar 07, 2025 at 09:42:49AM +0200, Nikolay Aleksandrov wrote: > On 3/7/25 05:19, Hangbin Liu wrote: > > The fixed commit placed mutex_lock() inside spin_lock_bh(), which triggers > > a warning: > > > > BUG: sleeping function called from invalid context at... > > > > Fix this

[PATCH] arm64: dts: qcom: sm8650: Fix domain-idle-state for CPU2

2025-03-15 Thread Luca Weiss
On SM8650 the CPUs 0-1 are "silver" (Cortex-A520), CPU 2-6 are "gold" (Cortex-A720) and CPU 7 is "gold-plus" (Cortex-X4). So reference the correct "gold" idle-state for CPU core 2. Fixes: d2350377997f ("arm64: dts: qcom: add initial SM8650 dtsi") Signed-off-by: Luca Weiss --- arch/arm64/boot/dt

[PATCH] remoteproc: imx_dsp_rproc: Document run_stall struct member

2025-03-15 Thread Daniel Baluta
Add documentation for 'run_stall' imx_dsp_rproc struct member. This also fixes the following warning: warning: Function parameter or struct member 'run_stall' not described in 'imx_dsp_rproc' Fixes: 0184b4fdbad1 ("imx_dsp_rproc: Use reset controller API to control the DSP") Reported-by: kernel t

Re: [PATCH] remoteproc: qcom: pas: add minidump_id to SC7280 WPSS

2025-03-15 Thread Konrad Dybcio
On 3/14/25 9:24 AM, Luca Weiss wrote: > Add the minidump ID to the wpss resources, based on msm-5.4 devicetree. > > Fixes: 300ed425dfa9 ("remoteproc: qcom_q6v5_pas: Add SC7280 ADSP, CDSP & > WPSS") > Signed-off-by: Luca Weiss > --- Reviewed-by: Konrad Dybcio Konrad

Re: [PATCH bpf-next 01/11] bpf: Move insn if/else into do_check_insn()

2025-03-15 Thread Luis Gerhorst
Eduard Zingerman writes: > On Thu, 2025-03-13 at 18:21 +0100, Luis Gerhorst wrote: >> +err = do_check_insn(env, insn, pop_log, &do_print_state, regs, >> state, >> +&prev_insn_idx); > > - `regs` remains declared in do_check(), while nothing prevents >

[PATCH v2 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Hook up DisplayPort over USB-C

2025-03-15 Thread Luca Weiss
Extend the USB graph to connect the OCP96011 switch, the PTN36502 redriver, the USB controllers and the MDSS, so that DisplayPort over USB-C is working. Connect some parts of the graph directly in the SoC dtsi since those parts are wired up like this in the SoC directly. Signed-off-by: Luca Weiss

Re: [PATCH bpf-next 00/11] bpf: Mitigate Spectre v1 using barriers

2025-03-15 Thread Eduard Zingerman
On Thu, 2025-03-13 at 18:21 +0100, Luis Gerhorst wrote: > This improves the expressiveness of unprivileged BPF by inserting > speculation barriers instead of rejecting the programs. > > The approach was previously presented at LPC'24 [1] and RAID'24 [2]. > > To mitigate the Spectre v1 (PHT) vulne

Re: [PATCH] remoteproc: qcom: pas: add minidump_id to SC7280 WPSS

2025-03-15 Thread Bjorn Andersson
On Fri, 14 Mar 2025 09:24:31 +0100, Luca Weiss wrote: > Add the minidump ID to the wpss resources, based on msm-5.4 devicetree. > > Applied, thanks! [1/1] remoteproc: qcom: pas: add minidump_id to SC7280 WPSS commit: d2909538bff0189d4d038f4e903c70be5f5c2bfc Best regards, -- Bjorn Ande

Re: [PATCH] kunit: tool: Fix bug in parsing test plan

2025-03-15 Thread Brendan Jackman
Hi Rae, On Thu, Mar 06, 2025 at 11:02:13AM -0500, Rae Moar wrote: > On Thu, Mar 6, 2025 at 7:26 AM Brendan Jackman wrote: > > Since I reported this bug, I discovered that the example above is in > > fact valid TAP: > > > > > The plan [...] must appear once, whether at the beginning or end of the

Re: Error during --arch x86_64 kunit test run

2025-03-15 Thread Shuah Khan
On 3/12/25 16:52, David Gow wrote: Hi Shuah, On Thu, 13 Mar 2025 at 05:14, Shuah Khan wrote: David, Brendan, Rae, I am seeing the following error when I run ./tools/testing/kunit/kunit.py run --arch x86_64 ERROR:root:ld:arch/x86/realmode/rm/realmode.lds:236: undefined symbol `sev_es_tramp

Re: [PATCH 1/4] selftests: ntsync: fix the wrong condition in wake_all

2025-03-15 Thread Elizabeth Figura
On Saturday, 15 March 2025 04:39:46 CDT Dan Carpenter wrote: > On Fri, Mar 14, 2025 at 05:13:50PM -0500, Elizabeth Figura wrote: > > On Friday, 14 March 2025 05:14:30 CDT Su Hui wrote: > > > On 2025/3/14 17:21, Dan Carpenter wrote: > > > > On Fri, Mar 14, 2025 at 03:14:51PM +0800, Su Hui wrote: > >

Re: [PATCH net-next] selftests: drv-net: fix merge conflicts resolution

2025-03-15 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Paolo Abeni : On Fri, 14 Mar 2025 09:35:51 +0100 you wrote: > After the recent merge between net-next and net, I got some conflicts on > my side because the merge resolution was different from Stephen's one > [1] I applied on my side

Re: [PATCH RFC v2 00/10] SLUB percpu sheaves

2025-03-15 Thread Suren Baghdasaryan
On Tue, Mar 4, 2025 at 11:08 AM Liam R. Howlett wrote: > > * Vlastimil Babka [250304 05:55]: > > On 2/25/25 21:26, Suren Baghdasaryan wrote: > > > On Mon, Feb 24, 2025 at 1:12 PM Suren Baghdasaryan > > > wrote: > > >> > > >> > > > >> > > The values represent the total time it took to perform mm

Re: [PATCH v7 03/16] rust: implement `IdArray`, `IdTable` and `RawDeviceId`

2025-03-15 Thread Tamir Duberstein
On Thu, Dec 19, 2024 at 12:08 PM Danilo Krummrich wrote: > > +/// Marker trait to indicate a Rust device ID type represents a > corresponding C device ID type. > +/// > +/// This is meant to be implemented by buses/subsystems so that they can use > [`IdTable`] to > +/// guarantee (at compile-tim

Re: [PATCH v7 03/16] rust: implement `IdArray`, `IdTable` and `RawDeviceId`

2025-03-15 Thread Danilo Krummrich
On Sat, Mar 15, 2025 at 12:52:27PM -0400, Tamir Duberstein wrote: > On Thu, Dec 19, 2024 at 12:08 PM Danilo Krummrich wrote: > > > > +/// Marker trait to indicate a Rust device ID type represents a > > corresponding C device ID type. > > +/// > > +/// This is meant to be implemented by buses/subs

Re: [PATCH RFC v2 1/2] dt-bindings: remoteproc: Add SM8750 MPSS

2025-03-15 Thread Bjorn Andersson
On Fri, 21 Feb 2025 17:02:59 +0100, Krzysztof Kozlowski wrote: > Add remote processor PAS loader for SM8750 MPSS (modem). Device looks > fully compatible with SM8650, however it lacks fifth memory region for > Qlink Logging, according to downstream sources. This is a bit tricky, > because updat

Re: [PATCH 1/5] rcu/exp: Protect against early QS report

2025-03-15 Thread Joel Fernandes
Hi Frederic, On Fri, Mar 14, 2025 at 03:36:38PM +0100, Frederic Weisbecker wrote: > When a grace period is started, the ->expmask of each node is set up > from sync_exp_reset_tree(). Then later on each leaf node also initialize > its ->exp_tasks pointer. > > This means that the initialization of

Re: [PATCH 1/4] selftests: ntsync: fix the wrong condition in wake_all

2025-03-15 Thread Dan Carpenter
On Fri, Mar 14, 2025 at 05:13:50PM -0500, Elizabeth Figura wrote: > On Friday, 14 March 2025 05:14:30 CDT Su Hui wrote: > > On 2025/3/14 17:21, Dan Carpenter wrote: > > > On Fri, Mar 14, 2025 at 03:14:51PM +0800, Su Hui wrote: > > >> When 'manual=false' and 'signaled=true', then expected value wh

Re: [PATCH bpf-next 02/11] bpf: Return -EFAULT on misconfigurations

2025-03-15 Thread Eduard Zingerman
On Thu, 2025-03-13 at 18:21 +0100, Luis Gerhorst wrote: > Mark these cases as non-recoverable to later prevent them from being > cought when they occur during speculative path verification. > > Signed-off-by: Luis Gerhorst > Acked-by: Henriette Herzog > Cc: Maximilian Ott > Cc: Milan Stephan >

Re: [PATCH bpf-next 03/11] bpf: Return -EFAULT on internal errors

2025-03-15 Thread Eduard Zingerman
On Thu, 2025-03-13 at 18:29 +0100, Luis Gerhorst wrote: > This prevents us from trying to recover from these on speculative paths > in the future. > > Signed-off-by: Luis Gerhorst > Acked-by: Henriette Herzog > Cc: Maximilian Ott > Cc: Milan Stephan > --- Same as for previous patch. Reviewed

[PATCH 0/3] Fixes/improvements for SM6350 UFS

2025-03-15 Thread Luca Weiss
Fix the order of the freq-table-hz property, then convert to OPP tables and add interconnect support for UFS for the SM6350 SoC. Signed-off-by: Luca Weiss --- Luca Weiss (3): arm64: dts: qcom: sm6350: Fix wrong order of freq-table-hz for UFS arm64: dts: qcom: sm6350: Add OPP table sup

Re: [PATCH v9 2/8] mm/huge_memory: add two new (not yet used) functions for folio_split()

2025-03-15 Thread David Hildenbrand
On 05.03.25 22:08, Zi Yan wrote: On 5 Mar 2025, at 15:50, Hugh Dickins wrote: On Wed, 5 Mar 2025, Zi Yan wrote: On 4 Mar 2025, at 6:49, Hugh Dickins wrote: I think (might be wrong, I'm in a rush) my mods are all to this "add two new (not yet used) functions for folio_split()" patch: please m

Re: [RFC PATCH 0/5] KVM: guest_memfd: support for uffd missing

2025-03-15 Thread Peter Xu
On Fri, Mar 14, 2025 at 05:12:35PM +, Nikita Kalyazin wrote: > Yes, I was thinking about MADV_POPULATE_WRITE as well, but AFAIK it isn't > available in guest_memfd, at least with direct map removed due to [1] being > updated in [2]: I see, so GUP is no-go. IIUC the userapp can also prefault b

Re: [RFC PATCH 0/5] KVM: guest_memfd: support for uffd missing

2025-03-15 Thread Peter Xu
On Thu, Mar 13, 2025 at 03:25:16PM +, Nikita Kalyazin wrote: > > > On 12/03/2025 19:32, Peter Xu wrote: > > On Wed, Mar 12, 2025 at 05:07:25PM +, Nikita Kalyazin wrote: > > > However if MISSING is not registered, the kernel will auto-populate with a > > > clear page, ie there is no way to

[PATCH net-next v23 15/23] ovpn: implement peer lookup logic

2025-03-15 Thread Antonio Quartulli
In a multi-peer scenario there are a number of situations when a specific peer needs to be looked up. We may want to lookup a peer by: 1. its ID 2. its VPN destination IP 3. its transport IP/port couple For each of the above, there is a specific routing table referencing all peers for fast look u

[PATCHv5 net 0/3] bond: fix xfrm offload issues

2025-03-15 Thread Hangbin Liu
The first patch fixes the incorrect locks using in bond driver. The second patch fixes the xfrm offload feature during setup active-backup mode. The third patch add a ipsec offload testing. v5: use list_for_each_entry_safe() when del item in list (Nikolay Aleksandrov) do not call spin_lock_bh

Re: [PATCH v3 08/10] selftests/mm: Skip gup_longerm tests on weird filesystems

2025-03-15 Thread David Hildenbrand
On 14.03.25 13:10, David Hildenbrand wrote: On 12.03.25 09:34, Brendan Jackman wrote: On Tue, Mar 11, 2025 at 08:53:02PM +0100, David Hildenbrand wrote: 2. 9pfs seems to pass the f_type through from the host. So you can't detect it this way anyway. [3. I guess overlayfs & friends would also be

Re: [RFC PATCH 14/39] KVM: guest_memfd: hugetlb: initialization and cleanup

2025-03-15 Thread Peter Xu
On Tue, Sep 10, 2024 at 11:43:45PM +, Ackerley Tng wrote: > +static int kvm_gmem_hugetlb_filemap_remove_folios(struct address_space > *mapping, > + struct hstate *h, > + loff_t lstart, loff_t lend) > +{

[RFC] openrisc: Add cacheinfo support

2025-03-15 Thread Sahil Siddiq
Add cacheinfo support for OpenRISC. Currently, a few CPU cache attributes pertaining to OpenRISC processors are exposed along with other unrelated CPU attributes in the procfs file system (/proc/cpuinfo). However, a few cache attributes remain unexposed. An attempt is also made to pull these CPU c

Re: [PATCH v9 2/8] mm/huge_memory: add two new (not yet used) functions for folio_split()

2025-03-15 Thread Zi Yan
On 10 Mar 2025, at 4:54, Hugh Dickins wrote: > On Thu, 6 Mar 2025, Zi Yan wrote: >> On 5 Mar 2025, at 17:38, Hugh Dickins wrote: >>> On Wed, 5 Mar 2025, Zi Yan wrote: On 5 Mar 2025, at 16:03, Hugh Dickins wrote: > > Beyond checking that, I didn't have time yesterday to investigate >>>

[PATCH v2 0/3] module: Make .static_call_sites read-only after init

2025-03-15 Thread Petr Pavlu
Section .static_call_sites holds data structures that need to be sorted and processed only at module load time. The section is never modified afterwards. Make it therefore read-only after module initialization to avoid any (non-)accidental modifications. Changes since v1 [1]: * Rebase the patches.

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

2025-03-15 Thread Antonio Hickey
Replacing all occurrences of `addr_of!(place)` and `addr_of_mut!(place)` with `&raw const place` and `&raw mut place` respectively. This will allow us to reduce macro complexity, and improve consistency with existing reference syntax as `&raw const`, `&raw mut` are similar to `&`, `&mut` making it

Re: [PATCH v2] openrisc: Add cacheinfo support

2025-03-15 Thread Stafford Horne
On Sun, Mar 16, 2025 at 02:09:37AM +0530, Sahil Siddiq wrote: > Add cacheinfo support for OpenRISC. > > Currently, a few CPU cache attributes pertaining to OpenRISC processors > are exposed along with other unrelated CPU attributes in the procfs file > system (/proc/cpuinfo). However, a few cache

Re: [PATCH v7 03/16] rust: implement `IdArray`, `IdTable` and `RawDeviceId`

2025-03-15 Thread Tamir Duberstein
On Sat, Mar 15, 2025 at 12:59 PM Danilo Krummrich wrote: > > On Sat, Mar 15, 2025 at 12:52:27PM -0400, Tamir Duberstein wrote: > > On Thu, Dec 19, 2024 at 12:08 PM Danilo Krummrich wrote: > > > > > > +/// Marker trait to indicate a Rust device ID type represents a > > > corresponding C device ID

[PATCH v3 2/2] kunit: tool: add test to check parsing late test plan

2025-03-15 Thread Rae Moar
Add test to check for the infinite loop caused by the inability to parse a late test plan. The test parses the following output: TAP version 13 ok 4 test4 1..4 Signed-off-by: Rae Moar --- Changes since v2: - Adds this patch to add a test for this behavior tools/testing/kunit/kunit_tool_test

Re: [PATCH v10 2/8] mm/huge_memory: add two new (not yet used) functions for folio_split()

2025-03-15 Thread Zi Yan
On 10 Mar 2025, at 12:14, Zi Yan wrote: > On 7 Mar 2025, at 12:39, Zi Yan wrote: > >> This is a preparation patch, both added functions are not used yet. >> >> The added __split_unmapped_folio() is able to split a folio with its >> mapping removed in two manners: 1) uniform split (the existing way

[PATCH net 0/7] selftests/net: Mixed select()+polling mode for TCP-AO tests

2025-03-15 Thread Dmitry Safonov via B4 Relay
Should fix flaky tcp-ao/connect-deny-ipv6 test. Begging pardon for the delay since the report and for sending it this late in the release cycle. Signed-off-by: Dmitry Safonov <0x7f454...@gmail.com> --- Dmitry Safonov (7): selftests/net: Print TCP flags in more common format selftests/n

Re: [PATCH bpf-next 00/11] bpf: Mitigate Spectre v1 using barriers

2025-03-15 Thread Luis Gerhorst
Eduard Zingerman writes: > I think it would be good to have some tests checking that nospec > instructions are inserted in expected locations. > Could you please take look at use of __xlated tag in e.g. > tools/testing/selftests/bpf/progs/verifier_sdiv.c ? That looks very promising, I will look i

Re: [RFC PATCH 1/2] time/timekeeping: Fix possible inconsistencies in _COARSE clockids

2025-03-15 Thread John Stultz
On Sat, Mar 15, 2025 at 12:23 PM Thomas Gleixner wrote: > On Fri, Mar 14 2025 at 17:37, John Stultz wrote: > > Here because we did not accumulate anything, we have a window > > where the _COARSE clockids that don't utilize the mult*offset > > value, can see an inconsistency. > > > > So to fix this

Re: [PATCH] arm64: dts: qcom: sm8650: Fix domain-idle-state for CPU2

2025-03-15 Thread Konrad Dybcio
On 3/14/25 9:21 AM, Luca Weiss wrote: > On SM8650 the CPUs 0-1 are "silver" (Cortex-A520), CPU 2-6 are "gold" > (Cortex-A720) and CPU 7 is "gold-plus" (Cortex-X4). > > So reference the correct "gold" idle-state for CPU core 2. > > Fixes: d2350377997f ("arm64: dts: qcom: add initial SM8650 dtsi")

Re: (subset) [PATCH v9 0/6] scanf: convert self-test to KUnit

2025-03-15 Thread Tamir Duberstein
On Fri, Mar 14, 2025 at 5:00 PM Kees Cook wrote: > > On Fri, 07 Mar 2025 06:27:33 -0500, Tamir Duberstein wrote: > > This is one of just 3 remaining "Test Module" kselftests (the others > > being bitmap and printf), the rest having been converted to KUnit. In > > addition to the enclosed patch, pl

[PATCH v2] openrisc: Add cacheinfo support

2025-03-15 Thread Sahil Siddiq
Add cacheinfo support for OpenRISC. Currently, a few CPU cache attributes pertaining to OpenRISC processors are exposed along with other unrelated CPU attributes in the procfs file system (/proc/cpuinfo). However, a few cache attributes remain unexposed. An attempt is also made to pull these CPU c

Re: [RFC] openrisc: Add cacheinfo support

2025-03-15 Thread Sahil Siddiq
Hi, On 3/15/25 2:26 AM, Stafford Horne wrote: On Sat, Mar 15, 2025 at 01:34:03AM +0530, Sahil Siddiq wrote: On 3/14/25 2:54 AM, Stafford Horne wrote: On Tue, Mar 11, 2025 at 12:43:57AM +0530, Sahil Siddiq wrote: Add cacheinfo support for OpenRISC. [...] None of the functions in drivers/base/

Re: [RFC PATCH 1/2] time/timekeeping: Fix possible inconsistencies in _COARSE clockids

2025-03-15 Thread Thomas Gleixner
On Fri, Mar 14 2025 at 17:37, John Stultz wrote: > Now, by design, this negative adjustment should be fine, because > the logic run from timekeeping_adjust() is done after we > accumulate approx mult*interval_cycles into xtime_nsec. > The accumulated (mult*interval_cycles) will be larger then the >

Re: [PATCH v2] selftests/mm/cow: Fix the incorrect error handling

2025-03-15 Thread Muhammad Usama Anjum
On 3/12/25 9:38 AM, Cyan Yang wrote: > There is an error handling did not check the correct return value. > This patch will fix it. > > Fixes: f4b5fd6946e244cdedc3bbb9a1f24c8133b2077a ("selftests/vm: anon_cow: THP > tests") > Signed-off-by: Cyan Yang After improving the description: Reviewed-by: