[PATCH] usr/include: openrisc: don't HDRTEST bpf_perf_event.h

2025-04-25 Thread Randy Dunlap
Since openrisc does not support PERF_EVENTS, omit the HDRTEST of bpf_perf_event.h for arch/openrisc/. Fixes a build error: usr/include/linux/bpf_perf_event.h:14:28: error: field 'regs' has incomplete type Signed-off-by: Randy Dunlap Cc: Masahiro Yamada Cc: Jonas Bonn Cc: Stefan Kristiansson

Re: [PATCH net 1/2] net: mscc: ocelot: delete PVID VLAN when readding it as non-PVID

2025-04-25 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net.git (main) by Jakub Kicinski : On Fri, 25 Apr 2025 01:37:33 +0300 you wrote: > The following set of commands: > > ip link add br0 type bridge vlan_filtering 1 # vlan_default_pvid 1 is implicit > ip link set swp0 master br0 > bridge vlan add dev swp0 v

Re: [PATCH net 2/2] selftests: net: bridge_vlan_aware: test untagged/8021p-tagged with and without PVID

2025-04-25 Thread Ido Schimmel
On Fri, Apr 25, 2025 at 01:37:34AM +0300, Vladimir Oltean wrote: > Recent discussions around commit ad1afb003939 ("vlan_dev: VLAN 0 should > be treated as "no vlan tag" (802.1p packet)") have sparked the question > what happens with the DSA (and possibly other switchdev) data path when > the bridge

Re: [PATCH 2/3] KVM: riscv: selftests: Decode stval to identify exact exception type

2025-04-25 Thread Andrew Jones
On Mon, Mar 24, 2025 at 05:40:30PM -0700, Atish Patra wrote: > Currently, the sbi_pmu_test continues if the exception type is illegal > instruction because access to hpmcounter will generate that. However, we > may get illegal for other reasons as well which should result in test > assertion. > >

Re: [PATCH 3/3] KVM: riscv: selftests: Add vector extension tests

2025-04-25 Thread Andrew Jones
On Mon, Mar 24, 2025 at 05:40:31PM -0700, Atish Patra wrote: > Add vector related tests with the ISA extension standard template. > However, the vector registers are bit tricky as the register length is > variable based on vlenb value of the system. That's why the macros are > defined with a defaul

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-25 Thread Alexis Lothoré
Hello Alexei, On Fri Apr 25, 2025 at 1:14 AM CEST, Alexei Starovoitov wrote: > On Thu, Apr 24, 2025 at 6:38 AM Alexis Lothoré > wrote: [...] >> > With DWARF info, we might not need to detect the structure alignment >> > anymore, >> > since the DW_AT_location attribute tells us where the struct

Re: [PATCH v6 0/4] virtio-net: disable delayed refill when pausing rx

2025-04-25 Thread Michael S. Tsirkin
On Fri, Apr 25, 2025 at 02:10:14PM +0700, Bui Quang Minh wrote: > Hi everyone, > > This only includes the selftest for virtio-net deadlock bug. The fix > commit has been applied already. > > Link: > https://lore.kernel.org/virtualization/174537302875.2111809.8543884098526067319.git-patchwork-not

[PATCH v4 0/9] SLUB percpu sheaves

2025-04-25 Thread Vlastimil Babka
Hi, This is the v4 and first non-RFC series to add an opt-in percpu array-based caching layer to SLUB, following the LSF/MM discussions. Since v3 I've also made changes to achieve full compatibility with slub_debug, and IRC discussions led to the last patch intended to improve NUMA locality (the p

[PATCH v11 15/35] remoteproc: k3-m4: Introduce central function to put rproc into reset

2025-04-25 Thread Beleswar Padhi
Currently, the TI K3 M4 remoteproc driver assumes all of the M4 devices have local resets. Even though its true for all existing M4 devices, keep room for future devices which possibly may not have local resets and only have a module reset. Therefore introduce a central function, k3_m4_rproc_reset

[PATCH 4/6] ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible

2025-04-25 Thread Luca Weiss
Add a compatible for the SM7225-based Fairphone 4 which can use this machine driver. Signed-off-by: Luca Weiss --- sound/soc/qcom/sm8250.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/qcom/sm8250.c b/sound/soc/qcom/sm8250.c index 43c93e24d77259f232062c7e4182a3915c59..0025c8

[PATCH 3/6] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 4 sound card

2025-04-25 Thread Luca Weiss
Document the bindings for the sound card on Fairphone 4 which uses the older non-audioreach audio architecture. Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,

[PATCH 2/6] ASoC: dt-bindings: qcom,q6afe: Document q6usb subnode

2025-04-25 Thread Luca Weiss
Document the subnode for Q6USB, used for USB audio offloading. Cc: Wesley Cheng Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/sound/qcom,q6afe.yaml | 13 + 1 file changed, 13 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/qcom,q6afe.yaml b/Doc

[PATCH v11 18/35] remoteproc: k3-m4: Introduce central function to release rproc from reset

2025-04-25 Thread Beleswar Padhi
Currently, the TI K3 M4 remoteproc driver assumes all of the M4 devices have local resets. Even though its true for all existing M4 devices, keep room for future devices which possibly may not have local resets and only have a module reset. Therefore introduce a central function, k3_m4_rproc_relea

[PATCH 0/6] Enable USB audio offloading on Fairphone 4 smartphone

2025-04-25 Thread Luca Weiss
.yaml & sm8250.c: https://lore.kernel.org/linux-arm-msm/20250425-fp5-dp-sound-v3-0-7cb451800...@fairphone.com/T/ - For dts: https://lore.kernel.org/linux-arm-msm/20250321-sm6350-apr-v1-1-7805ce7b4...@fairphone.com/ Devicetree patches go through qcom Signed-off-by: Luca Weiss --- Luca

[PATCH v11 35/35] remoteproc: k3: Refactor release_tsp() functions into common driver

2025-04-25 Thread Beleswar Padhi
The release_tsp() implementations in the TI K3 R5, DSP and M4 remoteproc drivers release the TI-SCI processor control of a remote processor, which is auto triggered upon device removal. Refactor these functions into ti_k3_common.c driver as k3_release_tsp() and use this common function throughout

[PATCH 1/6] dt-bindings: usb: dwc3: Document usb-soc-be property

2025-04-25 Thread Luca Weiss
The property usb-soc-be is used by the new SoC USB layer which is used for USB audio offloading on Qualcomm SoCs. Cc: Wesley Cheng Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/usb/snps,dwc3-common.yaml | 4 1 file changed, 4 insertions(+) diff --git a/Documentation/devi

[PATCH v11 09/35] remoteproc: k3-m4: Add pointer to rproc struct within k3_m4_rproc

2025-04-25 Thread Beleswar Padhi
Add a pointer to the rproc struct within k3_m4_rproc internal struct. This is done to align the M4 internal rproc data structure with R5 driver which can be factored out at a later stage. Signed-off-by: Beleswar Padhi Tested-by: Judith Mendez --- v11: Changelog: 1. Carried T/B tag. Link to v10:

[PATCH v11 05/35] remoteproc: k3-r5: Re-order k3_r5_release_tsp() function

2025-04-25 Thread Beleswar Padhi
The TI-SCI processor control handle, 'tsp', will be refactored from k3_r5_core struct into k3_r5_rproc struct in a future commit. So, the 'tsp' pointer will be initialized inside k3_r5_cluster_rproc_init() now. Move the k3_r5_release_tsp() function, which releases the tsp handle, above k3_r5_clust

[PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-25 Thread Luca Weiss
Enable USB audio offloading which allows to play audio via a USB-C headset with lower power consumption and enabling some other features. This can be used like the following: $ amixer -c0 cset name='USB_RX Audio Mixer MultiMedia1' On $ aplay --device=plughw:0,0 test.wav Compared to regular p

[PATCH 5/6] arm64: dts: qcom: sm6350: Add q6usbdai node

2025-04-25 Thread Luca Weiss
Add a node for q6usb which handles USB audio offloading, allowing to play audio via a USB-C headset with lower power consumption and enabling some other features. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm6350.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/a

[PATCH v11 21/35] remoteproc: k3: Refactor rproc_request_mbox() implementations into common driver

2025-04-25 Thread Beleswar Padhi
The rproc_request_mbox() implementations in TI K3 R5, DSP and M4 remoteproc drivers acquire the mailbox channel and send the same message through the acquired channel. Refactor the above function into the ti_k3_common.c driver as k3_rproc_request_mbox() and use it throughout R5, DSP and M4 drivers

[PATCH v11 25/35] remoteproc: k3: Refactor .unprepare rproc ops into common driver

2025-04-25 Thread Beleswar Padhi
The .unprepare rproc ops implementations in TI K3 DSP and M4 remoteproc drivers assert the module reset on the remote processor. Refactor the implementations into ti_k3_common.c driver as k3_rproc_unprepare() and register this common function as .unprepare ops in DSP and M4 drivers. Signed-off-by:

RE: [EXTERNAL] [PATCH v3] vdpa/octeon_ep: Control PCI dev enabling manually

2025-04-25 Thread Vamsi Krishna Attunuru
>-Original Message- >From: Philipp Stanner >Sent: Thursday, April 24, 2025 5:19 PM >To: Srujana Challa ; Vamsi Krishna Attunuru >; Michael S. Tsirkin ; Jason >Wang ; Xuan Zhuo ; >Eugenio Pérez ; Shijith Thotton >; Dan Carpenter ; >Philipp Stanner ; Satha Koteswara Rao Kottidi > >Cc: vir

Re: [PATCH 3/3] KVM: riscv: selftests: Add vector extension tests

2025-04-25 Thread Anup Patel
On Tue, Mar 25, 2025 at 6:10 AM Atish Patra wrote: > > Add vector related tests with the ISA extension standard template. > However, the vector registers are bit tricky as the register length is > variable based on vlenb value of the system. That's why the macros are > defined with a default and o

Re: [PATCH v4 10/38] perf/x86: Support switch_guest_ctx interface

2025-04-25 Thread Peter Zijlstra
On Fri, Apr 25, 2025 at 09:06:26AM -0400, Liang, Kan wrote: > > > On 2025-04-25 7:15 a.m., Peter Zijlstra wrote: > > On Mon, Mar 24, 2025 at 05:30:50PM +, Mingwei Zhang wrote: > >> From: Kan Liang > >> > >> Implement switch_guest_ctx interface for x86 PMU, switch PMI to dedicated > >> KVM_GU

Re: [PATCH 1/3] KVM: riscv: selftests: Add stval to exception handling

2025-04-25 Thread Andrew Jones
On Mon, Mar 24, 2025 at 05:40:29PM -0700, Atish Patra wrote: > Save stval during exception handling so that it can be decoded to > figure out the details of exception type. > > Signed-off-by: Atish Patra > --- > tools/testing/selftests/kvm/include/riscv/processor.h | 1 + > tools/testing/selftes

Re: [PATCH v4 10/38] perf/x86: Support switch_guest_ctx interface

2025-04-25 Thread Liang, Kan
On 2025-04-25 9:43 a.m., Peter Zijlstra wrote: > On Fri, Apr 25, 2025 at 09:06:26AM -0400, Liang, Kan wrote: >> >> >> On 2025-04-25 7:15 a.m., Peter Zijlstra wrote: >>> On Mon, Mar 24, 2025 at 05:30:50PM +, Mingwei Zhang wrote: From: Kan Liang Implement switch_guest_ctx inter

Re: [PATCH] remoteproc: imx_rproc: replace devm_clk_get() with devm_clk_get_optional()

2025-04-25 Thread Mathieu Poirier
On Wed, 23 Apr 2025 at 13:22, Hiago De Franco wrote: > > Hi Mathieu, > > On Wed, Apr 23, 2025 at 11:14:17AM -0600, Mathieu Poirier wrote: > > Good morning, > > > > On Wed, Apr 23, 2025 at 12:51:31PM -0300, Hiago De Franco wrote: > > > From: Hiago De Franco > > > > > > The "clocks" device tree pro

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

2025-04-25 Thread Luca Weiss
Sound machine drivers for Qualcomm SoCs can be reused across multiple SoCs. But user space ALSA UCM files depend on the card driver name which should be set per board/SoC. Allow such customization by using driver match data as sound card driver name. Also while we're already touching these lines,

[PATCH v3 0/5] Add DisplayPort sound support for Fairphone 5 smartphone

2025-04-25 Thread Luca Weiss
Add the necessary sound card bits and some dts additions to enable sound over DisplayPort-over-USB-C, e.g. to a connected TV or monitor. The UCM files can be found here: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/tree/master/device/testing/device-fairphone-fp5/ucm This series - in sp

[PATCH v3 1/5] ASoC: dt-bindings: qcom,sm8250: Add Fairphone 5 sound card

2025-04-25 Thread Luca Weiss
Document the bindings for the sound card on Fairphone 5 which uses the older non-audioreach audio architecture. Acked-by: Rob Herring (Arm) Signed-off-by: Luca Weiss --- Documentation/devicetree/bindings/sound/qcom,sm8250.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/de

[PATCH v3 3/5] ASoC: qcom: sm8250: add DisplayPort Jack support

2025-04-25 Thread Luca Weiss
Add support for DisplayPort Jack events, so that user space can configure the audio routing correctly. Signed-off-by: Luca Weiss --- sound/soc/qcom/sm8250.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/sound/soc/qcom/sm8250.c b/sound/soc/qcom/sm8250.c in

[PATCH v3 5/5] arm64: dts: qcom: qcm6490-fairphone-fp5: Add DisplayPort sound support

2025-04-25 Thread Luca Weiss
Add the required nodes for sound playback via a connected external display (DisplayPort over USB-C). In user space just the following route needs to be set (e.g. using ALSA UCM): amixer -c0 cset name='DISPLAY_PORT_RX Audio Mixer MultiMedia1' 1 Afterwards one can play audio on the MultiMedia1 s

[PATCH v3 4/5] ASoC: qcom: sm8250: Add Fairphone 5 soundcard compatible

2025-04-25 Thread Luca Weiss
Add a compatible for the QCM6490-based Fairphone 5 which can use this machine driver. As a note, QCM6490 RB3 board is using audioreach architecture while Fairphone 5 uses pre-audioreach. Reviewed-by: Dmitry Baryshkov Reviewed-by: Neil Armstrong Signed-off-by: Luca Weiss --- sound/soc/qcom/sm8

Re: [PATCH] rpmsg: qcom_smd: Fix uninitialized return variable in __qcom_smd_send()

2025-04-25 Thread Dan Carpenter
On Fri, Apr 25, 2025 at 11:36:24AM +0530, Naresh Kamboju wrote: > On Wed, 23 Apr 2025 at 22:52, Dan Carpenter wrote: > > > > The "ret" variable isn't initialized if we don't enter the loop. For > > example, if "channel->state" is not SMD_CHANNEL_OPENED. > > > > Fixes: 33e3820dda88 ("rpmsg: smd:

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

2025-04-25 Thread Vlastimil Babka
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 percpu sheaves (main or spare) as long as they have no NUMA node pr

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

2025-04-25 Thread Vlastimil Babka
Create the vm_area_struct cache with percpu sheaves of size 32 to improve its performance. Signed-off-by: Vlastimil Babka --- kernel/fork.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/fork.c b/kernel/fork.c index c4b26cd8998b8e7b2b516e0bb0b1d4676ff644dc..3bd711f0798c88aee04bc30ff

[PATCH v4 5/9] tools: Add testing support for changes to rcu and slab for sheaves

2025-04-25 Thread Vlastimil Babka
From: "Liam R. Howlett" Make testing work for the slab and rcu changes that have come in with the sheaves work. This only works with one kmem_cache, and only the first one used. Subsequent setting of kmem_cache will not update the active kmem_cache and will be silently dropped because there are

[PATCH v4 9/9] mm, slub: skip percpu sheaves for remote object freeing

2025-04-25 Thread Vlastimil Babka
Since we don't control the NUMA locality of objects in percpu sheaves, allocations with node restrictions bypass them. Allocations without restrictions may however still expect to get local objects with high probability, and the introduction of sheaves can decrease it due to freed object from a rem

[PATCH v4 6/9] tools: Add sheaves support to testing infrastructure

2025-04-25 Thread Vlastimil Babka
From: "Liam R. Howlett" Allocate a sheaf and fill it to the count amount. Does not fill to the sheaf limit to detect incorrect allocation requests. Signed-off-by: Liam R. Howlett --- tools/include/linux/slab.h | 24 + tools/testing/shared/linux.c | 84 +++

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

2025-04-25 Thread Vlastimil Babka
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 a sheaf containing at least given number of objects. kmem_cache_a

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

2025-04-25 Thread Vlastimil Babka
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 sheaf. Once full, the sheaf is detached and submitted to call_rcu()

[PATCH v4 7/9] maple_tree: use percpu sheaves for maple_node_cache

2025-04-25 Thread Vlastimil Babka
Setup the maple_node_cache with percpu sheaves of size 32 to hopefully improve its performance. Change the single node rcu freeing in ma_free_rcu() to use kfree_rcu() instead of the custom callback, which allows the rcu_free sheaf batching to be used. Note there are other users of mt_free_rcu() whe

[PATCH v4 4/9] slab: determine barn status racily outside of lock

2025-04-25 Thread Vlastimil Babka
The possibility of many barn operations is determined by the current number of full or empty sheaves. Taking the barn->lock just to find out that e.g. there are no empty sheaves results in unnecessary overhead and lock contention. Thus perform these checks outside of the lock with a data_race() ann

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

2025-04-25 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

[PATCH v3 3/4] arm64: dts: qcom: qcm6490-fairphone-fp5: Add OCP96011 audio switch

2025-04-25 Thread Luca Weiss
Add a node for the OCP96011 on the board which is used to handle USB-C analog audio switch and handles the SBU mux for DisplayPort-over-USB-C. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 14 +- 1 file changed, 13 inse

[PATCH v3 1/4] dt-bindings: usb: usb-switch: Allow data-lanes property in port

2025-04-25 Thread Luca Weiss
The ref /schemas/graph.yaml#/properties/port forbids extra properties which might be specified in subschemas, e.g. like in usb/fcs,fsa4480.yaml. Switch to port-base (and specify the endpoint with properties) to allow such properties. Fixes: fd2a052ccd69 ("dt-bindings: usb: add common Type-C USB S

[PATCH v3 2/4] arm64: dts: qcom: qcm6490-fairphone-fp5: Add PTN36502 redriver

2025-04-25 Thread Luca Weiss
Add a node for the "Type-C USB 3.1 Gen 1 and DisplayPort v1.2 combo redriver" found on this device. Reviewed-by: Konrad Dybcio Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 35 +- 1 file changed, 34 insertions(+), 1 deletion(-) diff --gi

[PATCH v3 0/4] Fairphone 5 DisplayPort over USB-C support

2025-04-25 Thread Luca Weiss
This series adds all the necessary bits to enable DisplayPort-out over USB-C on Fairphone 5. Devicetree (patch 2-4) patches go via qcom tree Signed-off-by: Luca Weiss --- Changes in v3: - Add patch to fix dt-schema validation with fsa4480 extra properties - Link to v2: https://lore.kernel.org/r

[PATCH v6 0/4] virtio-net: disable delayed refill when pausing rx

2025-04-25 Thread Bui Quang Minh
Hi everyone, This only includes the selftest for virtio-net deadlock bug. The fix commit has been applied already. Link: https://lore.kernel.org/virtualization/174537302875.2111809.8543884098526067319.git-patchwork-not...@kernel.org/T/ Version 6 changes: - Rebase on net-next and resolve conflic

[PATCH v6 4/4] selftests: net: add a virtio_net deadlock selftest

2025-04-25 Thread Bui Quang Minh
The selftest reproduces the deadlock scenario when binding/unbinding XDP program, XDP socket, rx ring resize on virtio_net interface. Signed-off-by: Bui Quang Minh --- .../testing/selftests/drivers/net/hw/Makefile | 1 + .../selftests/drivers/net/hw/xsk_reconfig.py | 60 +++ 2

[PATCH v6 3/4] selftests: net: retry when bind returns EBUSY in xdp_helper

2025-04-25 Thread Bui Quang Minh
When binding the XDP socket, we may get EBUSY because the deferred destructor of XDP socket in previous test has not been executed yet. If that is the case, just sleep and retry some times. Signed-off-by: Bui Quang Minh --- tools/testing/selftests/net/lib/xdp_helper.c | 20 +++-

[PATCH v6 2/4] selftests: net: add flag to force zerocopy mode in xdp_helper

2025-04-25 Thread Bui Quang Minh
This commit adds an optional -z flag to xdp_helper. When this flag is provided, the XDP socket binding is forced to be in zerocopy mode. Signed-off-by: Bui Quang Minh --- tools/testing/selftests/net/lib/xdp_helper.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff

[PATCH v6 1/4] selftests: net: move xdp_helper to net/lib

2025-04-25 Thread Bui Quang Minh
Move xdp_helper to net/lib to make it easier for other selftests to use the helper. Signed-off-by: Bui Quang Minh --- tools/testing/selftests/drivers/net/.gitignore| 1 - tools/testing/selftests/drivers/net/Makefile | 1 - tools/testing/selftests/drivers/net/napi

Re: [PATCH v3 3/5] ASoC: qcom: sm8250: add DisplayPort Jack support

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 10:07:27AM +0200, Luca Weiss wrote: > Add support for DisplayPort Jack events, so that user space can > configure the audio routing correctly. > > Signed-off-by: Luca Weiss > --- > sound/soc/qcom/sm8250.c | 17 ++--- > 1 file changed, 10 insertions(+), 7 delet

Re: [PATCH v3 4/4] arm64: dts: qcom: qcm6490-fairphone-fp5: Hook up DisplayPort over USB-C

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 09:08:15AM +0200, Luca Weiss wrote: > 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 > part

Re: [PATCH 1/2] remoteproc: imx_rproc: release carveout under imx_rproc after rproc_attach() fails

2025-04-25 Thread Mathieu Poirier
On Thu, Apr 24, 2025 at 08:22:51PM +0800, Xiaolei Wang wrote: > Release all carveouts under imx_rproc after rproc_attach() fails to solve > the following kmemleak: > Please provide more details on the steps needed to reproduce this problem and where in rproc_attach() the original failure occured.

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

2025-04-25 Thread Dave Hansen
On 4/25/25 10:40, Sean Christopherson wrote: > So then why on earth is the kernel implementing automatic updates? Because it's literally the least amount of code and doesn't create any new ABI. > I read back through most of the cover letters, and IIUC, we went > straight from "destroy all enclave

Re: [PATCH 01/11] arm64: dts: qcom: apq8096-db820c: Use q6asm defines for reg

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:40PM +0200, Luca Weiss wrote: > Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more > readable. No functional change intended. > > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 6 +++--- > 1 file changed, 3 insertions

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

2025-04-25 Thread Christoph Lameter (Ampere)
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 (unlikely(object)) > goto out; > > - object = __slab_alloc_node(s, gfpflags, node, addr, orig_size); > + if (s->

Re: [PATCH 03/11] arm64: dts: qcom: msm8953: Use q6asm defines for reg

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:42PM +0200, Luca Weiss wrote: > Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more > readable. No functional change intended. > > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/msm8953.dtsi | 8 > 1 file changed, 4 insertions(+),

Re: [PATCH 02/11] arm64: dts: qcom: msm8916-modem-qdsp6: Use q6asm defines for reg

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:41PM +0200, Luca Weiss wrote: > Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more > readable. No functional change intended. > > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/msm8916-modem-qdsp6.dtsi | 8 > 1 file changed, 4 in

Re: [PATCH v4 9/9] mm, slub: skip percpu sheaves for remote object freeing

2025-04-25 Thread Christoph Lameter (Ampere)
On Fri, 25 Apr 2025, Vlastimil Babka wrote: > @@ -5924,8 +5948,15 @@ void slab_free(struct kmem_cache *s, struct slab > *slab, void *object, > if (unlikely(!slab_free_hook(s, object, slab_want_init_on_free(s), > false))) > return; > > - if (!s->cpu_sheaves || !free_to_pcs

Re: [PATCH 04/11] arm64: dts: qcom: msm8996*: Use q6asm defines for reg

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:43PM +0200, Luca Weiss wrote: > Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more > readable. No functional change intended. > > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi | 6 +++--- > arch/arm64/boot/d

Re: [PATCH 10/11] arm64: dts: qcom: sm7325-nothing-spacewar: Use q6asm defines for reg

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:49PM +0200, Luca Weiss wrote: > Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more > readable. No functional change intended. > > Signed-off-by: Luca Weiss > --- > arch/arm64/boot/dts/qcom/sm7325-nothing-spacewar.dts | 2 +- > 1 file changed, 1 inser

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

2025-04-25 Thread Sean Christopherson
On Fri, Apr 25, 2025, Dave Hansen wrote: > On 4/25/25 10:40, Sean Christopherson wrote: > > So then why on earth is the kernel implementing automatic updates? > > Because it's literally the least amount of code It's literally not. This series: 4 files changed, 104 insertions(+), 20 deletions(-

Re: [PATCH 4/6] ASoC: qcom: sm8250: Add Fairphone 4 soundcard compatible

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 12:44:54PM +0200, Luca Weiss wrote: > Add a compatible for the SM7225-based Fairphone 4 which can use this > machine driver. > > Signed-off-by: Luca Weiss > --- > sound/soc/qcom/sm8250.c | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Dmitry Baryshkov -- With

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

2025-04-25 Thread Mark Brown
On Fri, Apr 25, 2025 at 10:47:42PM +0200, Luca Weiss wrote: > On Fri Apr 25, 2025 at 9:03 PM CEST, Mark Brown wrote: > > Or base it on my tree and let things get sorted in the merge, I don't > > know what the conflicts might be? > For this patch here it might be okay but patch 3/5 from this serie

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

2025-04-25 Thread Luca Weiss
On Fri Apr 25, 2025 at 9:03 PM CEST, Mark Brown wrote: > On Fri, Apr 25, 2025 at 08:19:39PM +0200, Luca Weiss wrote: > >> I've based this series on next-20250417 tag, so this is probably due to >> the changes from the USB sound offloading series that Greg has picked >> up. > >> So either Greg also

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

2025-04-25 Thread Sean Christopherson
On Fri, Apr 25, 2025, Dave Hansen wrote: > On 4/25/25 12:29, Sean Christopherson wrote: > > --- a/arch/x86/kernel/cpu/sgx/virt.c > > +++ b/arch/x86/kernel/cpu/sgx/virt.c > > @@ -255,6 +255,7 @@ static int sgx_vepc_release(struct inode *inode, struct > > file *file) > > xa_destroy(&vepc->page_a

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

2025-04-25 Thread Dave Hansen
On 4/25/25 14:04, Sean Christopherson wrote: > Userspace is going to be waiting on ->release() no matter what. Unless it isn't even involved and it happens automatically.

Re: [PATCH 1/6] dt-bindings: usb: dwc3: Document usb-soc-be property

2025-04-25 Thread Wesley Cheng
On 4/25/2025 3:44 AM, Luca Weiss wrote: > The property usb-soc-be is used by the new SoC USB layer which is used > for USB audio offloading on Qualcomm SoCs. Hi Luca, This property can be dropped now, as in the latest revision I added utilizing the auxiliary device/bus now between the Q6USB ba

Re: [PATCH 6/6] arm64: dts: qcom: sm7225-fairphone-fp4: Enable USB audio offload support

2025-04-25 Thread Konrad Dybcio
On 4/25/25 12:44 PM, Luca Weiss wrote: > Enable USB audio offloading which allows to play audio via a USB-C > headset with lower power consumption and enabling some other features. > > This can be used like the following: > > $ amixer -c0 cset name='USB_RX Audio Mixer MultiMedia1' On > $ apla

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

2025-04-25 Thread Sean Christopherson
On Fri, Apr 25, 2025, Dave Hansen wrote: > On 4/25/25 14:04, Sean Christopherson wrote: > > Userspace is going to be waiting on ->release() no matter what. > > Unless it isn't even involved and it happens automatically. With my Google hat on: no thanks. Customer: Hey Google, why haven't you ap

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

2025-04-25 Thread Dave Hansen
On 4/25/25 14:58, Sean Christopherson wrote: > On Fri, Apr 25, 2025, Dave Hansen wrote: >> On 4/25/25 14:04, Sean Christopherson wrote: >>> Userspace is going to be waiting on ->release() no matter what. >> Unless it isn't even involved and it happens automatically. > With my Google hat on: no than

Re: [PATCH RFC bpf-next 1/4] bpf: add struct largest member size in func model

2025-04-25 Thread Xu Kuohai
On 4/24/2025 9:38 PM, Alexis Lothoré wrote: Hi Xu, On Thu Apr 24, 2025 at 2:00 PM CEST, Xu Kuohai wrote: On 4/24/2025 3:24 AM, Alexis Lothoré wrote: Hi Andrii, On Wed Apr 23, 2025 at 7:15 PM CEST, Andrii Nakryiko wrote: On Thu, Apr 17, 2025 at 12:14 AM Alexis Lothoré wrote: Hi Andrii, On

[PATCH 00/11] Use q6asm defines for reg for all qcom boards

2025-04-25 Thread Luca Weiss
/boot/dts/qcom/sm7325-nothing-spacewar.dts | 2 +- arch/arm64/boot/dts/qcom/sm8350.dtsi | 7 --- 18 files changed, 62 insertions(+), 60 deletions(-) --- base-commit: 393d0c54cae31317deaa9043320c5fd9454deabc change-id: 20250425-q6asmdai-defines-d55e10c33080 Best

[PATCH 01/11] arm64: dts: qcom: apq8096-db820c: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/apq8096-db820c.

[PATCH 02/11] arm64: dts: qcom: msm8916-modem-qdsp6: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/msm8916-modem-qdsp6.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8916

[PATCH 05/11] arm64: dts: qcom: qrb5165-rb5: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qrb5165-rb5.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/qrb5165-rb5.dts

[PATCH 04/11] arm64: dts: qcom: msm8996*: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/msm8996-oneplus-common.dtsi | 6 +++--- arch/arm64/boot/dts/qcom/msm8996-xiaomi-gemini.dts | 6 +++--- arch/arm64/boot/dts/qcom

[PATCH 03/11] arm64: dts: qcom: msm8953: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/msm8953.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/msm8953.dtsi b/arc

[PATCH 08/11] arm64: dts: qcom: sdm845*: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sdm845-db845c.dts | 8 arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 12 ++-- ar

[PATCH 07/11] arm64: dts: qcom: sc7280: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/a

[PATCH 06/11] arm64: dts: qcom: sc7180-acer-aspire1: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7180-acer-aspire1.dts | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sc7180-a

[PATCH 10/11] arm64: dts: qcom: sm7325-nothing-spacewar: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm7325-nothing-spacewar.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/sm7325-nothi

[PATCH 11/11] arm64: dts: qcom: sm8350: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sm8350.dtsi | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm64/boot/dts/qcom/sm8350.dtsi b/arch/a

[PATCH 09/11] arm64: dts: qcom: sdm850*: Use q6asm defines for reg

2025-04-25 Thread Luca Weiss
Use the MSM_FRONTEND_DAI_MULTIMEDIA* defines to make the code more readable. No functional change intended. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sdm850-lenovo-yoga-c630.dts | 6 +++--- arch/arm64/boot/dts/qcom/sdm850-samsung-w737.dts | 6 +++--- 2 files changed, 6 insertion

[PATCH v11 13/35] remoteproc: k3: Refactor .kick rproc ops into common driver

2025-04-25 Thread Beleswar Padhi
The .kick rproc ops implementations in TI K3 R5, DSP and M4 remoteproc drivers sends a mailbox message to the remote processor in the same way. Refactor the implementations into a common function 'k3_rproc_kick()' in the ti_k3_common.c driver. Signed-off-by: Beleswar Padhi Acked-by: Andrew Davis

[PATCH v11 16/35] remoteproc: k3: Refactor rproc_reset() implementation into common driver

2025-04-25 Thread Beleswar Padhi
The rproc_reset() implementations in TI K3 DSP and M4 remoteproc drivers assert reset in the same way. Refactor the above function into the ti_k3_common.c driver as k3_rproc_reset() and use it throughout DSP and M4 drivers for resetting the remote processor. Signed-off-by: Beleswar Padhi Tested-b

[PATCH v11 19/35] remoteproc: k3: Refactor rproc_release() implementation into common driver

2025-04-25 Thread Beleswar Padhi
The rproc_release() implementations in TI K3 DSP and M4 remoteproc drivers deassert reset in the same way. Refactor the above function into the ti_k3_common.c driver as k3_rproc_release() and use it throughout DSP and M4 drivers for releasing the reset from the remote processor. Signed-off-by: Bel

[PATCH v11 14/35] remoteproc: k3-dsp: Correct Reset logic for devices without lresets

2025-04-25 Thread Beleswar Padhi
The k3_dsp_rproc_reset() function erroneously asserts the local reset even for devices which do not support it. Even though it results in a no-operation, Update the logic to explicitly assert the local reset for devices that support it and only the global reset for those that do not. Signed-off-by

[PATCH v11 22/35] remoteproc: k3-dsp: Don't override rproc ops in IPC-only mode

2025-04-25 Thread Beleswar Padhi
Currently, the driver overrides the rproc ops when booting in IPC-only mode. Remove these overrides and register the ops unconditionally. This requires to have IPC-only mode checks in the .prepare and .unprepare ops and returning early. The other rproc ops are invoked when booting either in IPC-onl

[PATCH v11 20/35] remoteproc: k3-m4: Ping the mbox while acquiring the channel

2025-04-25 Thread Beleswar Padhi
The TI K3 M4 remoteproc driver acquires the mailbox channel in probe but sends a message through the acquired channel later in .attach()/.start() callbacks. Put both the things together in the form of 'k3_m4_rproc_request_mbox()' function and invoke that in the probe routine. This is done to align

[PATCH v11 17/35] remoteproc: k3-dsp: Correct Reset deassert logic for devices w/o lresets

2025-04-25 Thread Beleswar Padhi
The k3_dsp_rproc_release() function erroneously deasserts the local reset even for devices which do not support it. Even though it results in a no-operation, Update the logic to explicitly deassert only the global reset for devices that do not have a local reset. Signed-off-by: Beleswar Padhi Tes

[PATCH v11 26/35] remoteproc: k3: Refactor .start rproc ops into common driver

2025-04-25 Thread Beleswar Padhi
The k3_dsp_rproc_start() function sets the boot vector and releases the reset on the remote processor. Whereas, the k3_m4_rproc_start() function only needs to release the reset. Refactor the k3_m4_rproc_start() into ti_k3_common.c as k3_rproc_start() and align the DSP and M4 drivers to invoke this

[PATCH v11 27/35] remoteproc: k3: Refactor .stop rproc ops into common driver

2025-04-25 Thread Beleswar Padhi
The .stop rproc ops implementations in TI K3 DSP and M4 remoteproc drivers put the remote processor into reset. Refactor the implementations into ti_k3_common.c driver as k3_rproc_stop() and register this common function as .stop ops in DSP and M4 drivers. Signed-off-by: Beleswar Padhi Tested-by:

[PATCH v11 24/35] remoteproc: k3: Refactor .prepare rproc ops into common driver

2025-04-25 Thread Beleswar Padhi
The .prepare rproc ops implementations in TI K3 DSP and M4 remoteproc drivers deasserts the local and module reset of the processor to allow firmware loading into internal memory. Refactor the implementations into the ti_k3_common.c driver as k3_rproc_prepare() and register this common function as

[PATCH v11 28/35] remoteproc: k3: Refactor .attach rproc ops into common driver

2025-04-25 Thread Beleswar Padhi
The .attach rproc ops implementations in TI K3 R5, DSP and M4 drivers are NOPs. Refactor the implementations into ti_k3_common.c driver as k3_rproc_attach() and register this common function as .attach ops in R5, DSP and M4 drivers. Signed-off-by: Beleswar Padhi Tested-by: Judith Mendez --- v11:

[PATCH v11 23/35] remoteproc: k3-dsp: Assert local reset during .prepare callback

2025-04-25 Thread Beleswar Padhi
The ti_k3_dsp_remoteproc.c driver asserts the local reset in probe and releases the module reset in .prepare callback. This is done to ensure the core does not execute bogus code when module reset is deasserted. Put both of these operations together in .prepare callback, which is more suitable as

  1   2   >