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

2025-05-05 Thread Nicolin Chen
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 an SNP VM > > > but does not

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

2025-05-05 Thread Pratik R. Sampat
On 5/5/2025 6:15 PM, Sean Christopherson wrote: > On Mon, May 05, 2025, Pratik R. Sampat wrote: >> Hi Sean, >> >> On 5/2/25 4:50 PM, Sean Christopherson wrote: >>> On Wed, 05 Mar 2025 16:59:50 -0600, Pratik R. Sampat wrote: This patch series extends the sev_init2 and the sev_smoke test to >

Re: [PATCH net-next v3] vhost/net: Defer TX queue re-enable until after sendmsg

2025-05-05 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Wed, 30 Apr 2025 19:04:28 -0700 you wrote: > In handle_tx_copy, TX batching processes packets below ~PAGE_SIZE and > batches up to 64 messages before calling sock->sendmsg. > > Currently, when there are no more me

Re: [PATCH v2 1/1] selftests/mm/uffd: Refactor non-composite global vars into struct

2025-05-05 Thread Andrew Morton
On Sun, 4 May 2025 15:18:25 +0530 Ujwal Kundur wrote: > This patch refactors macros and non-composite global variable > definitions into a struct that is defined at the start of a test and is > passed around instead of relying on global vars. The uffd tests have changed somewhat in the MM devel

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

2025-05-05 Thread Sean Christopherson
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; > > - > > - /* > > -* Do both SNP and SEV initialization at KVM m

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

2025-05-05 Thread Yan Zhao
On Wed, Apr 30, 2025 at 01:09:33PM -0700, Ackerley Tng wrote: > Yan Zhao writes: > > > On Fri, Apr 25, 2025 at 03:45:20PM -0700, Ackerley Tng wrote: > >> Yan Zhao writes: > >> > >> > On Thu, Apr 24, 2025 at 11:15:11AM -0700, Ackerley Tng wrote: > >> >> Vishal Annapurve writes: > >> >> > >> >>

Re: [PATCH net-next v2] selftests: iou-zcrx: Clean up build warnings for error format

2025-05-05 Thread patchwork-bot+netdevbpf
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski : On Sat, 3 May 2025 01:50:25 +0800 you wrote: > Clean up two build warnings: > > [1] > > iou-zcrx.c: In function ‘process_recvzc’: > iou-zcrx.c:263:37: warning: too many arguments for format > [-Wformat-extra-args]

[PATCH AUTOSEL 6.14 559/642] rcu: fix header guard for rcu_all_qs()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ] rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul

Re: [PATCH net-next 0/7] selftests: mptcp: increase code coverage

2025-05-05 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Fri, 02 May 2025 14:29:20 +0200 you wrote: > Here are various patches slightly improving MPTCP code coverage: > > - Patch 1: avoid a harmless 'grep: write error' warning. > > - Patch 2: use getaddrinfo() with IP

[PATCH AUTOSEL 6.1 192/212] rcu: fix header guard for rcu_all_qs()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ] rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul

[PATCH AUTOSEL 6.6 264/294] rcu: fix header guard for rcu_all_qs()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ] rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul

[PATCH AUTOSEL 6.6 263/294] rcu: handle unstable rdp in rcu_read_unlock_strict()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit fcf0e25ad4c8d14d2faab4d9a17040f31efce205 ] rcu_read_unlock_strict() can be called with preemption enabled which can make for an unstable rdp and a racy norm value. Fix this by dropping the preempt-count in __rcu_read_unlock() after the call to rcu_read_unlock

[PATCH AUTOSEL 6.6 207/294] kunit: tool: Use qboot on QEMU x86_64

2025-05-05 Thread Sasha Levin
From: Brendan Jackman [ Upstream commit 08fafac4c9f289a9d9a22d838921e4b3eb22c664 ] As noted in [0], SeaBIOS (QEMU default) makes a mess of the terminal, qboot does not. It turns out this is actually useful with kunit.py, since the user is exposed to this issue if they set --raw_output=all. qbo

[PATCH AUTOSEL 6.12 205/486] rcu: Fix get_state_synchronize_rcu_full() GP-start detection

2025-05-05 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit 85aad7cc417877054c65bd490dc037b087ef21b4 ] The get_state_synchronize_rcu_full() and poll_state_synchronize_rcu_full() functions use the root rcu_node structure's ->gp_seq field to detect the beginnings and ends of grace periods, respectively. This choi

[PATCH AUTOSEL 6.12 259/486] vdpa/mlx5: Fix mlx5_vdpa_get_config() endianness on big-endian machines

2025-05-05 Thread Sasha Levin
From: Konstantin Shkolnyy [ Upstream commit 439252e167ac45a5d46f573aac1da7d8f3e051ad ] mlx5_vdpa_dev_add() doesn’t initialize mvdev->actual_features. It’s initialized later by mlx5_vdpa_set_driver_features(). However, mlx5_vdpa_get_config() depends on the VIRTIO_F_VERSION_1 flag in actual_featur

[PATCH AUTOSEL 5.4 11/79] libnvdimm/labels: Fix divide error in nd_label_data_init()

2025-05-05 Thread Sasha Levin
From: Robert Richter [ Upstream commit ef1d3455bbc1922f94a91ed58d3d7db440652959 ] If a faulty CXL memory device returns a broken zero LSA size in its memory device information (Identify Memory Device (Opcode 4000h), CXL spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm driver: Oo

[PATCH AUTOSEL 5.10 041/114] ieee802154: ca8210: Use proper setters and getters for bitwise types

2025-05-05 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 169b2262205836a5d1213ff44dca2962276bece1 ] Sparse complains that the driver doesn't respect the bitwise types: drivers/net/ieee802154/ca8210.c:1796:27: warning: incorrect type in assignment (different base types) drivers/net/ieee802154/ca8210.c:1796:27:

[PATCH AUTOSEL 5.15 140/153] rcu: fix header guard for rcu_all_qs()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ] rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul

[PATCH AUTOSEL 5.15 083/153] selftests/net: have `gro.sh -t` return a correct exit code

2025-05-05 Thread Sasha Levin
From: Kevin Krakauer [ Upstream commit 784e6abd99f24024a8998b5916795f0bec9d2fd9 ] Modify gro.sh to return a useful exit code when the -t flag is used. It formerly returned 0 no matter what. Tested: Ran `gro.sh -t large` and verified that test failures return 1. Signed-off-by: Kevin Krakauer Re

[PATCH AUTOSEL 5.15 065/153] remoteproc: qcom_wcnss: Handle platforms with only single power domain

2025-05-05 Thread Sasha Levin
From: Matti Lehtimäki [ Upstream commit 65991ea8a6d1e68effdc01d95ebe39f1653f7b71 ] Both MSM8974 and MSM8226 have only CX as power domain with MX & PX being handled as regulators. Handle this case by reodering pd_names to have CX first, and handling that the driver core will already attach a sing

[PATCH AUTOSEL 5.15 019/153] libnvdimm/labels: Fix divide error in nd_label_data_init()

2025-05-05 Thread Sasha Levin
From: Robert Richter [ Upstream commit ef1d3455bbc1922f94a91ed58d3d7db440652959 ] If a faulty CXL memory device returns a broken zero LSA size in its memory device information (Identify Memory Device (Opcode 4000h), CXL spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm driver: Oo

[PATCH AUTOSEL 6.1 190/212] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit 83b28cfe796464ebbde1cf7916c126da6d572685 ] With PREEMPT_RCU=n, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed: lacking preempt-count, the tick handler has no way of know

[PATCH AUTOSEL 6.6 262/294] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit 83b28cfe796464ebbde1cf7916c126da6d572685 ] With PREEMPT_RCU=n, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed: lacking preempt-count, the tick handler has no way of know

[PATCH AUTOSEL 6.6 145/294] selftests/net: have `gro.sh -t` return a correct exit code

2025-05-05 Thread Sasha Levin
From: Kevin Krakauer [ Upstream commit 784e6abd99f24024a8998b5916795f0bec9d2fd9 ] Modify gro.sh to return a useful exit code when the -t flag is used. It formerly returned 0 no matter what. Tested: Ran `gro.sh -t large` and verified that test failures return 1. Signed-off-by: Kevin Krakauer Re

[PATCH AUTOSEL 6.12 486/486] kernfs: Use RCU to access kernfs_node::parent.

2025-05-05 Thread Sasha Levin
From: Sebastian Andrzej Siewior [ Upstream commit 633488947ef66b194377411322dc9e12aab79b65 ] kernfs_rename_lock is used to obtain stable kernfs_node::{name|parent} pointer. This is a preparation to access kernfs_node::parent under RCU and ensure that the pointer remains stable under the RCU life

[PATCH AUTOSEL 6.12 434/486] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit 83b28cfe796464ebbde1cf7916c126da6d572685 ] With PREEMPT_RCU=n, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed: lacking preempt-count, the tick handler has no way of know

[PATCH AUTOSEL 6.12 436/486] rcu: fix header guard for rcu_all_qs()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ] rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul

[PATCH AUTOSEL 6.12 435/486] rcu: handle unstable rdp in rcu_read_unlock_strict()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit fcf0e25ad4c8d14d2faab4d9a17040f31efce205 ] rcu_read_unlock_strict() can be called with preemption enabled which can make for an unstable rdp and a racy norm value. Fix this by dropping the preempt-count in __rcu_read_unlock() after the call to rcu_read_unlock

[PATCH AUTOSEL 6.12 334/486] kunit: tool: Use qboot on QEMU x86_64

2025-05-05 Thread Sasha Levin
From: Brendan Jackman [ Upstream commit 08fafac4c9f289a9d9a22d838921e4b3eb22c664 ] As noted in [0], SeaBIOS (QEMU default) makes a mess of the terminal, qboot does not. It turns out this is actually useful with kunit.py, since the user is exposed to this issue if they set --raw_output=all. qbo

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

2025-05-05 Thread Kalra, Ashish
Hello Sean, On 5/5/2025 6:15 PM, Sean Christopherson wrote: > On Mon, May 05, 2025, Pratik R. Sampat wrote: >> Hi Sean, >> >> On 5/2/25 4:50 PM, Sean Christopherson wrote: >>> On Wed, 05 Mar 2025 16:59:50 -0600, Pratik R. Sampat wrote: This patch series extends the sev_init2 and the sev_smoke

Re: [PATCH AUTOSEL 6.14 330/642] vhost-scsi: Return queue full for page alloc failures during copy

2025-05-05 Thread Mike Christie
Dropping netdev because this is a storage patch. On 5/5/25 5:09 PM, Sasha Levin wrote: > From: Mike Christie > > [ Upstream commit 891b99eab0f89dbe08d216f4ab71acbeaf7a3102 ] > > This has us return queue full if we can't allocate a page during the > copy operation so the initiator can retry. If

[PATCH AUTOSEL 6.12 239/486] selftests/net: have `gro.sh -t` return a correct exit code

2025-05-05 Thread Sasha Levin
From: Kevin Krakauer [ Upstream commit 784e6abd99f24024a8998b5916795f0bec9d2fd9 ] Modify gro.sh to return a useful exit code when the -t flag is used. It formerly returned 0 no matter what. Tested: Ran `gro.sh -t large` and verified that test failures return 1. Signed-off-by: Kevin Krakauer Re

[PATCH AUTOSEL 6.12 258/486] vhost-scsi: Return queue full for page alloc failures during copy

2025-05-05 Thread Sasha Levin
From: Mike Christie [ Upstream commit 891b99eab0f89dbe08d216f4ab71acbeaf7a3102 ] This has us return queue full if we can't allocate a page during the copy operation so the initiator can retry. Signed-off-by: Mike Christie Message-Id: <20241203191705.19431-5-michael.chris...@oracle.com> Signed-

[PATCH AUTOSEL 5.4 71/79] rcu: fix header guard for rcu_all_qs()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ] rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul

[PATCH AUTOSEL 5.10 103/114] rcu: fix header guard for rcu_all_qs()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit ad6b5b73ff565e88aca7a7d1286788d80c97ba71 ] rcu_all_qs() is defined for !CONFIG_PREEMPT_RCU but the declaration is conditioned on CONFIG_PREEMPTION. With CONFIG_PREEMPT_LAZY, CONFIG_PREEMPTION=y does not imply CONFIG_PREEMPT_RCU=y. Decouple the two. Cc: Paul

[PATCH AUTOSEL 5.15 060/153] ieee802154: ca8210: Use proper setters and getters for bitwise types

2025-05-05 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 169b2262205836a5d1213ff44dca2962276bece1 ] Sparse complains that the driver doesn't respect the bitwise types: drivers/net/ieee802154/ca8210.c:1796:27: warning: incorrect type in assignment (different base types) drivers/net/ieee802154/ca8210.c:1796:27:

[PATCH AUTOSEL 6.1 162/212] kunit: tool: Use qboot on QEMU x86_64

2025-05-05 Thread Sasha Levin
From: Brendan Jackman [ Upstream commit 08fafac4c9f289a9d9a22d838921e4b3eb22c664 ] As noted in [0], SeaBIOS (QEMU default) makes a mess of the terminal, qboot does not. It turns out this is actually useful with kunit.py, since the user is exposed to this issue if they set --raw_output=all. qbo

[PATCH AUTOSEL 6.12 210/486] iommufd: Disallow allocating nested parent domain with fault ID

2025-05-05 Thread Sasha Levin
From: Yi Liu [ Upstream commit 1062d81086156e42878d701b816d2f368b53a77c ] Allocating a domain with a fault ID indicates that the domain is faultable. However, there is a gap for the nested parent domain to support PRI. Some hardware lacks the capability to distinguish whether PRI occurs at stage

[PATCH AUTOSEL 6.6 110/294] ieee802154: ca8210: Use proper setters and getters for bitwise types

2025-05-05 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 169b2262205836a5d1213ff44dca2962276bece1 ] Sparse complains that the driver doesn't respect the bitwise types: drivers/net/ieee802154/ca8210.c:1796:27: warning: incorrect type in assignment (different base types) drivers/net/ieee802154/ca8210.c:1796:27:

[PATCH AUTOSEL 6.6 117/294] remoteproc: qcom_wcnss: Handle platforms with only single power domain

2025-05-05 Thread Sasha Levin
From: Matti Lehtimäki [ Upstream commit 65991ea8a6d1e68effdc01d95ebe39f1653f7b71 ] Both MSM8974 and MSM8226 have only CX as power domain with MX & PX being handled as regulators. Handle this case by reodering pd_names to have CX first, and handling that the driver core will already attach a sing

[PATCH AUTOSEL 5.4 70/79] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit 83b28cfe796464ebbde1cf7916c126da6d572685 ] With PREEMPT_RCU=n, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed: lacking preempt-count, the tick handler has no way of know

[PATCH AUTOSEL 5.4 29/79] ieee802154: ca8210: Use proper setters and getters for bitwise types

2025-05-05 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 169b2262205836a5d1213ff44dca2962276bece1 ] Sparse complains that the driver doesn't respect the bitwise types: drivers/net/ieee802154/ca8210.c:1796:27: warning: incorrect type in assignment (different base types) drivers/net/ieee802154/ca8210.c:1796:27:

[PATCH AUTOSEL 5.10 102/114] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit 83b28cfe796464ebbde1cf7916c126da6d572685 ] With PREEMPT_RCU=n, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed: lacking preempt-count, the tick handler has no way of know

[PATCH AUTOSEL 5.10 015/114] libnvdimm/labels: Fix divide error in nd_label_data_init()

2025-05-05 Thread Sasha Levin
From: Robert Richter [ Upstream commit ef1d3455bbc1922f94a91ed58d3d7db440652959 ] If a faulty CXL memory device returns a broken zero LSA size in its memory device information (Identify Memory Device (Opcode 4000h), CXL spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm driver: Oo

[PATCH AUTOSEL 5.15 139/153] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit 83b28cfe796464ebbde1cf7916c126da6d572685 ] With PREEMPT_RCU=n, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed: lacking preempt-count, the tick handler has no way of know

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

2025-05-05 Thread Sean Christopherson
On Mon, May 05, 2025, Pratik R. Sampat wrote: > Hi Sean, > > On 5/2/25 4:50 PM, Sean Christopherson wrote: > > On Wed, 05 Mar 2025 16:59:50 -0600, Pratik R. Sampat wrote: > >> This patch series extends the sev_init2 and the sev_smoke test to > >> exercise the SEV-SNP VM launch workflow. > >> > >>

[PATCH AUTOSEL 6.1 191/212] rcu: handle unstable rdp in rcu_read_unlock_strict()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit fcf0e25ad4c8d14d2faab4d9a17040f31efce205 ] rcu_read_unlock_strict() can be called with preemption enabled which can make for an unstable rdp and a racy norm value. Fix this by dropping the preempt-count in __rcu_read_unlock() after the call to rcu_read_unlock

[PATCH AUTOSEL 6.1 091/212] remoteproc: qcom_wcnss: Handle platforms with only single power domain

2025-05-05 Thread Sasha Levin
From: Matti Lehtimäki [ Upstream commit 65991ea8a6d1e68effdc01d95ebe39f1653f7b71 ] Both MSM8974 and MSM8226 have only CX as power domain with MX & PX being handled as regulators. Handle this case by reodering pd_names to have CX first, and handling that the driver core will already attach a sing

[PATCH AUTOSEL 6.1 085/212] ieee802154: ca8210: Use proper setters and getters for bitwise types

2025-05-05 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 169b2262205836a5d1213ff44dca2962276bece1 ] Sparse complains that the driver doesn't respect the bitwise types: drivers/net/ieee802154/ca8210.c:1796:27: warning: incorrect type in assignment (different base types) drivers/net/ieee802154/ca8210.c:1796:27:

[PATCH AUTOSEL 6.1 115/212] selftests/net: have `gro.sh -t` return a correct exit code

2025-05-05 Thread Sasha Levin
From: Kevin Krakauer [ Upstream commit 784e6abd99f24024a8998b5916795f0bec9d2fd9 ] Modify gro.sh to return a useful exit code when the -t flag is used. It formerly returned 0 no matter what. Tested: Ran `gro.sh -t large` and verified that test failures return 1. Signed-off-by: Kevin Krakauer Re

[PATCH AUTOSEL 6.1 029/212] libnvdimm/labels: Fix divide error in nd_label_data_init()

2025-05-05 Thread Sasha Levin
From: Robert Richter [ Upstream commit ef1d3455bbc1922f94a91ed58d3d7db440652959 ] If a faulty CXL memory device returns a broken zero LSA size in its memory device information (Identify Memory Device (Opcode 4000h), CXL spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm driver: Oo

[PATCH AUTOSEL 6.6 160/294] vhost-scsi: Return queue full for page alloc failures during copy

2025-05-05 Thread Sasha Levin
From: Mike Christie [ Upstream commit 891b99eab0f89dbe08d216f4ab71acbeaf7a3102 ] This has us return queue full if we can't allocate a page during the copy operation so the initiator can retry. Signed-off-by: Mike Christie Message-Id: <20241203191705.19431-5-michael.chris...@oracle.com> Signed-

[PATCH AUTOSEL 6.6 161/294] vdpa/mlx5: Fix mlx5_vdpa_get_config() endianness on big-endian machines

2025-05-05 Thread Sasha Levin
From: Konstantin Shkolnyy [ Upstream commit 439252e167ac45a5d46f573aac1da7d8f3e051ad ] mlx5_vdpa_dev_add() doesn’t initialize mvdev->actual_features. It’s initialized later by mlx5_vdpa_set_driver_features(). However, mlx5_vdpa_get_config() depends on the VIRTIO_F_VERSION_1 flag in actual_featur

[PATCH AUTOSEL 6.6 036/294] libnvdimm/labels: Fix divide error in nd_label_data_init()

2025-05-05 Thread Sasha Levin
From: Robert Richter [ Upstream commit ef1d3455bbc1922f94a91ed58d3d7db440652959 ] If a faulty CXL memory device returns a broken zero LSA size in its memory device information (Identify Memory Device (Opcode 4000h), CXL spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm driver: Oo

[PATCH AUTOSEL 6.12 182/486] ieee802154: ca8210: Use proper setters and getters for bitwise types

2025-05-05 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 169b2262205836a5d1213ff44dca2962276bece1 ] Sparse complains that the driver doesn't respect the bitwise types: drivers/net/ieee802154/ca8210.c:1796:27: warning: incorrect type in assignment (different base types) drivers/net/ieee802154/ca8210.c:1796:27:

[PATCH AUTOSEL 6.12 195/486] remoteproc: qcom_wcnss: Handle platforms with only single power domain

2025-05-05 Thread Sasha Levin
From: Matti Lehtimäki [ Upstream commit 65991ea8a6d1e68effdc01d95ebe39f1653f7b71 ] Both MSM8974 and MSM8226 have only CX as power domain with MX & PX being handled as regulators. Handle this case by reodering pd_names to have CX first, and handling that the driver core will already attach a sing

[PATCH AUTOSEL 6.12 054/486] libnvdimm/labels: Fix divide error in nd_label_data_init()

2025-05-05 Thread Sasha Levin
From: Robert Richter [ Upstream commit ef1d3455bbc1922f94a91ed58d3d7db440652959 ] If a faulty CXL memory device returns a broken zero LSA size in its memory device information (Identify Memory Device (Opcode 4000h), CXL spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm driver: Oo

[PATCH AUTOSEL 6.14 633/642] kernfs: Use RCU to access kernfs_node::parent.

2025-05-05 Thread Sasha Levin
From: Sebastian Andrzej Siewior [ Upstream commit 633488947ef66b194377411322dc9e12aab79b65 ] kernfs_rename_lock is used to obtain stable kernfs_node::{name|parent} pointer. This is a preparation to access kernfs_node::parent under RCU and ensure that the pointer remains stable under the RCU life

[PATCH AUTOSEL 6.14 557/642] rcu: handle quiescent states for PREEMPT_RCU=n, PREEMPT_COUNT=y

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit 83b28cfe796464ebbde1cf7916c126da6d572685 ] With PREEMPT_RCU=n, cond_resched() provides urgently needed quiescent states for read-side critical sections via rcu_all_qs(). One reason why this was needed: lacking preempt-count, the tick handler has no way of know

[PATCH AUTOSEL 6.14 558/642] rcu: handle unstable rdp in rcu_read_unlock_strict()

2025-05-05 Thread Sasha Levin
From: Ankur Arora [ Upstream commit fcf0e25ad4c8d14d2faab4d9a17040f31efce205 ] rcu_read_unlock_strict() can be called with preemption enabled which can make for an unstable rdp and a racy norm value. Fix this by dropping the preempt-count in __rcu_read_unlock() after the call to rcu_read_unlock

[PATCH AUTOSEL 6.14 533/642] netdevsim: allow normal queue reset while down

2025-05-05 Thread Sasha Levin
From: Jakub Kicinski [ Upstream commit 285b3f78eabd951e59e98f01f86abaaa6c76cd44 ] Resetting queues while the device is down should be legal. Allow it, test it. Ideally we'd test this with a real device supporting devmem but I don't have access to such devices. Reviewed-by: Mina Almasry Link: h

[PATCH AUTOSEL 6.14 423/642] kunit: tool: Use qboot on QEMU x86_64

2025-05-05 Thread Sasha Levin
From: Brendan Jackman [ Upstream commit 08fafac4c9f289a9d9a22d838921e4b3eb22c664 ] As noted in [0], SeaBIOS (QEMU default) makes a mess of the terminal, qboot does not. It turns out this is actually useful with kunit.py, since the user is exposed to this issue if they set --raw_output=all. qbo

[PATCH AUTOSEL 6.14 356/642] x86/mm: Make MMU_GATHER_RCU_TABLE_FREE unconditional

2025-05-05 Thread Sasha Levin
From: Rik van Riel [ Upstream commit a37259732a7dc33047fa1e4f9a338088f452e017 ] Currently x86 uses CONFIG_MMU_GATHER_TABLE_FREE when using paravirt, and not when running on bare metal. There is no real good reason to do things differently for each setup. Make them all the same. Currently get_u

[PATCH AUTOSEL 6.14 340/642] virtio: break and reset virtio devices on device_shutdown()

2025-05-05 Thread Sasha Levin
From: "Michael S. Tsirkin" [ Upstream commit 8bd2fa086a04886798b505f28db4002525895203 ] Hongyu reported a hang on kexec in a VM. QEMU reported invalid memory accesses during the hang. Invalid read at addr 0x102877002, size 2, region '(null)', reason: rejected Invalid write at a

[PATCH AUTOSEL 6.14 331/642] vdpa/mlx5: Fix mlx5_vdpa_get_config() endianness on big-endian machines

2025-05-05 Thread Sasha Levin
From: Konstantin Shkolnyy [ Upstream commit 439252e167ac45a5d46f573aac1da7d8f3e051ad ] mlx5_vdpa_dev_add() doesn’t initialize mvdev->actual_features. It’s initialized later by mlx5_vdpa_set_driver_features(). However, mlx5_vdpa_get_config() depends on the VIRTIO_F_VERSION_1 flag in actual_featur

[PATCH AUTOSEL 6.14 330/642] vhost-scsi: Return queue full for page alloc failures during copy

2025-05-05 Thread Sasha Levin
From: Mike Christie [ Upstream commit 891b99eab0f89dbe08d216f4ab71acbeaf7a3102 ] This has us return queue full if we can't allocate a page during the copy operation so the initiator can retry. Signed-off-by: Mike Christie Message-Id: <20241203191705.19431-5-michael.chris...@oracle.com> Signed-

[PATCH AUTOSEL 6.14 300/642] selftests/net: have `gro.sh -t` return a correct exit code

2025-05-05 Thread Sasha Levin
From: Kevin Krakauer [ Upstream commit 784e6abd99f24024a8998b5916795f0bec9d2fd9 ] Modify gro.sh to return a useful exit code when the -t flag is used. It formerly returned 0 no matter what. Tested: Ran `gro.sh -t large` and verified that test failures return 1. Signed-off-by: Kevin Krakauer Re

[PATCH AUTOSEL 6.14 266/642] iommufd: Disallow allocating nested parent domain with fault ID

2025-05-05 Thread Sasha Levin
From: Yi Liu [ Upstream commit 1062d81086156e42878d701b816d2f368b53a77c ] Allocating a domain with a fault ID indicates that the domain is faultable. However, there is a gap for the nested parent domain to support PRI. Some hardware lacks the capability to distinguish whether PRI occurs at stage

[PATCH AUTOSEL 6.14 259/642] rcu: Fix get_state_synchronize_rcu_full() GP-start detection

2025-05-05 Thread Sasha Levin
From: "Paul E. McKenney" [ Upstream commit 85aad7cc417877054c65bd490dc037b087ef21b4 ] The get_state_synchronize_rcu_full() and poll_state_synchronize_rcu_full() functions use the root rcu_node structure's ->gp_seq field to detect the beginnings and ends of grace periods, respectively. This choi

[PATCH AUTOSEL 6.14 244/642] remoteproc: qcom_wcnss: Handle platforms with only single power domain

2025-05-05 Thread Sasha Levin
From: Matti Lehtimäki [ Upstream commit 65991ea8a6d1e68effdc01d95ebe39f1653f7b71 ] Both MSM8974 and MSM8226 have only CX as power domain with MX & PX being handled as regulators. Handle this case by reodering pd_names to have CX first, and handling that the driver core will already attach a sing

[PATCH AUTOSEL 6.14 230/642] ieee802154: ca8210: Use proper setters and getters for bitwise types

2025-05-05 Thread Sasha Levin
From: Andy Shevchenko [ Upstream commit 169b2262205836a5d1213ff44dca2962276bece1 ] Sparse complains that the driver doesn't respect the bitwise types: drivers/net/ieee802154/ca8210.c:1796:27: warning: incorrect type in assignment (different base types) drivers/net/ieee802154/ca8210.c:1796:27:

[PATCH AUTOSEL 6.14 215/642] selftests: pci_endpoint: Skip disabled BARs

2025-05-05 Thread Sasha Levin
From: Niklas Cassel [ Upstream commit af1451b6738ec7cf91f2914f53845424959ec4ee ] Currently BARs that have been disabled by the endpoint controller driver will result in a test FAIL. Returning FAIL for a BAR that is disabled seems overly pessimistic. There are EPC that disables one or more BARs

[PATCH AUTOSEL 6.14 139/642] kunit: tool: Fix bug in parsing test plan

2025-05-05 Thread Sasha Levin
From: Rae Moar [ Upstream commit 1d4c06d51963f89f67c7b75d5c0c34e9d1bb2ae6 ] A bug was identified where the KTAP below caused an infinite loop: TAP version 13 ok 4 test_case 1..4 The infinite loop was caused by the parser not parsing a test plan if following a test result line. Fix this bug

[PATCH AUTOSEL 6.14 066/642] libnvdimm/labels: Fix divide error in nd_label_data_init()

2025-05-05 Thread Sasha Levin
From: Robert Richter [ Upstream commit ef1d3455bbc1922f94a91ed58d3d7db440652959 ] If a faulty CXL memory device returns a broken zero LSA size in its memory device information (Identify Memory Device (Opcode 4000h), CXL spec. 3.1, 8.2.9.9.1.1), a divide error occurs in the libnvdimm driver: Oo

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

2025-05-05 Thread Frederic Weisbecker
Le Mon, May 05, 2025 at 09:38:02AM -0400, Joel Fernandes a écrit : > Frederic, there are a couple of ways we can move forward hear. Does the > softirq_count() approach sound good to you? If yes, I can fixup the patch > myself. That approach looks good yes. > > I am also Ok at this point to take

[PATCH v2 4/4] Documentation/kbuild: Add new gendwarfksyms kABI rules

2025-05-05 Thread Sami Tolvanen
Document byte_size and type_string kABI stability rules. Also fix the section numbers while we're at it. Signed-off-by: Sami Tolvanen --- Documentation/kbuild/gendwarfksyms.rst | 103 +++-- 1 file changed, 95 insertions(+), 8 deletions(-) diff --git a/Documentation/kbuild/ge

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

2025-05-05 Thread Sami Tolvanen
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. For example, Android decided to switch to a newer i

[PATCH v2 2/4] gendwarfksyms: Add a kABI rule to override byte_size attributes

2025-05-05 Thread Sami Tolvanen
A data structure can be partially opaque to modules if its allocation is handled by the core kernel, and modules only need to access some of its members. In this situation, it's possible to append new members to the structure without breaking the ABI, as long as the layout for the original members

[PATCH v2 1/4] gendwarfksyms: Clean up kABI rule look-ups

2025-05-05 Thread Sami Tolvanen
Reduce code duplication by moving kABI rule look-ups to separate functions. Signed-off-by: Sami Tolvanen Reviewed-by: Petr Pavlu --- scripts/gendwarfksyms/kabi.c | 101 +++ 1 file changed, 44 insertions(+), 57 deletions(-) diff --git a/scripts/gendwarfksyms/kabi

[PATCH v2 0/4] gendwarfksyms: Add more kABI rules

2025-05-05 Thread Sami Tolvanen
Hi, While looking deeper into the genksyms hacks that have been needed during Android's 5.10 and 5.15 GKI lifecycles so far, we found a few instances that are not covered by the existing gendwarfksyms kABI stability rules. The first case involved appending new members to a partially opaque data st

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

2025-05-05 Thread André Apitzsch via B4 Relay
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 deletions(-) diff --git a/drivers/media/i2c/imx214.c b/drivers/media/i2c/imx214.c index 9e9be47394ec768a

[PATCH v2 1/4] media: i2c: imx214: Reorder imx214_parse_fwnode call

2025-05-05 Thread André Apitzsch via B4 Relay
From: André Apitzsch Reorder imx214_parse_fwnode call to reduce goto paths in upcoming patches. No functional change intended. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dr

[PATCH v2 2/4] media: i2c: imx214: Prepare for variable clock frequency

2025-05-05 Thread André Apitzsch via B4 Relay
From: André Apitzsch Move clock frequency related parameters out of the constant register sequences, such that the hard coded external clock frequency can be replaced by a variable in the upcoming patches. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/imx214.c

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

2025-05-05 Thread André Apitzsch via B4 Relay
From: André Apitzsch Calculate PLL parameters based on clock frequency and link frequency. Acked-by: Ricardo Ribalda Signed-off-by: André Apitzsch --- drivers/media/i2c/Kconfig | 1 + drivers/media/i2c/imx214.c | 216 + 2 files changed, 178 inser

[PATCH v2 0/4] media: i2c: imx214: Add support for more clock frequencies

2025-05-05 Thread André Apitzsch via B4 Relay
The imx214 driver currently supports only a 24 MHz external clock. But there are devices, like Qualcomm-MSM8916-based phones, which cannot provide this frequency. To make the sensor usable by those devices, add support for additional clock frequencies. This series supersedes https://lore.kernel.or

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

2025-05-05 Thread Fan Ni
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: > > > Per the CXL 3.1 specification software must check the Command Effects > > Log (CEL) for dynamic capacity command support. > > > > Detect support for the DCD commands wh

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

2025-05-05 Thread Boqun Feng
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` functions by checking their > > returned values. > > > > At the sa

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

2025-05-05 Thread Sami Tolvanen
Hi Petr, On Mon, May 5, 2025 at 5:17 AM Petr Pavlu wrote: > > On 4/30/25 23:40, Sami Tolvanen wrote: > > +static void type_parse(const char *name, const char *str, > > +struct type_expansion *type) > > +{ > > + char *fragment; > > + size_t start = 0; > > + size_t e

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

2025-05-05 Thread Lorenz Bauer
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/prog_tests/btf_sysfs.c | 83 ++ 1 file changed, 83

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

2025-05-05 Thread Lorenz Bauer
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 the process. Signed-off-by: Lorenz Bauer --- tools/lib/bpf/btf

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

2025-05-05 Thread Lorenz Bauer
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 allocated for it in the kernel. Signed-off-by: Lorenz Bauer --- i

[PATCH bpf-next v3 0/3] Allow mmap of /sys/kernel/btf/vmlinux

2025-05-05 Thread Lorenz Bauer
I'd like to cut down the memory usage of parsing vmlinux BTF in ebpf-go. With some upcoming changes the library is sitting at 5MiB for a parse. Most of that memory is simply copying the BTF blob into user space. By allowing vmlinux BTF to be mmapped read-only into user space I can cut memory usage

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

2025-05-05 Thread Luis Gerhorst
Eduard Zingerman writes: > On Thu, 2025-05-01 at 09:35 +0200, Luis Gerhorst wrote: > >> +dst_reg_type = cur_regs(env)[insn->dst_reg].type; > > Implicitly relying on `insn == &env->prog->insnsi[env->cur_idx]` > is weird. Still think that `insn` parameter should be dropped and > comput

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

2025-05-05 Thread Jason Gunthorpe
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 an SNP VM > > but does not when I pass through via the QEMU cmdline - bus numbers > > are not assigne

Re: [PATCH 0/7] Rust KUnit `#[test]` support improvements

2025-05-05 Thread Miguel Ojeda
On Mon, May 5, 2025 at 6:57 PM Danilo Krummrich wrote: > > With that, do we still expose `alloc` primitives to userspace tests? I considered removing a bunch of stuff (even the build support for non-`macros` `rusttest`, to be honest) -- you are referring to the `any(test, testlib)` bits, right?

Re: [PATCH 0/7] Rust KUnit `#[test]` support improvements

2025-05-05 Thread Danilo Krummrich
On Fri, May 02, 2025 at 11:51:25PM +0200, Miguel Ojeda wrote: > Improvements that build on top of the very basic `#[test]` support merged in > v6.15. > > They are fairly minimal changes, but they allow us to map `assert*!`s back to > KUnit, plus to add support for test functions that return `Resul

Re: [PATCH v3 7/8] mm/maps: read proc/pid/maps under RCU

2025-05-05 Thread Suren Baghdasaryan
On Mon, May 5, 2025 at 6:50 AM Christian Brauner wrote: > > On Tue, Apr 29, 2025 at 08:54:58PM +0200, Jann Horn wrote: > > On Tue, Apr 29, 2025 at 8:04 PM Suren Baghdasaryan > > wrote: > > > On Tue, Apr 29, 2025 at 10:21 AM Jann Horn wrote: > > > > > > > > Hi! > > > > > > > > (I just noticed th

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

2025-05-05 Thread Alexei Starovoitov
On Mon, May 5, 2025 at 7:37 AM Lorenz Bauer wrote: > > On Fri, May 2, 2025 at 6:15 PM Alexei Starovoitov > wrote: > > remap_pfn_range() should be avoided. > > See big comment in kernel/events/core.c in map_range(). > > > > The following seems to work: > > Thanks, this helped a lot. > > > but this

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

2025-05-05 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 2/3] firmware: imx: move get power mode function from scu-pd.c to misc.c

2025-05-05 Thread Hiago De Franco
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 makes the API available for other use cases. For example, remoteproc/imx_

  1   2   >