[PATCH V2 2/2] remoteproc: core: release rproc->clean_table after rproc_attach() fails

2025-04-25 Thread Xiaolei Wang
When rproc->state = RPROC_DETACHED is attached to remote processor through rproc_attach(), if rproc_handle_resources() returns failure, then the clean table should be released, otherwise the following memory leak will occur. unreferenced object 0x86a99800 (size 1024): comm "kworker/u12:3",

[PATCH V2 0/2] Fix two memory leaks in rproc_attach()

2025-04-25 Thread Xiaolei Wang
In the rproc_attach() function, if rproc_handle_resources() returns failure, if the rproc->ops->unprepare callback function is not set, the resources allocated by rproc_prepare_device() cannot be released, and rproc->clean_table should also be released patch1 adds rproc->ops->unprepare callback fu

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

2025-04-25 Thread Xiaolei Wang
When rproc->state = RPROC_DETACHED and rproc_attach() is used to attach to the remote processor, if rproc_handle_resources() returns a failure, the resources allocated by rproc_prepare_device() should be released, otherwise the following memory leak will occur. Therefore, add imx_rproc_unprepare()

[GIT PULL] OpenRISC updates for 6.15

2025-04-25 Thread Stafford Horne
Hello Linus, Please consider for pull, The following changes since commit 38fec10eb60d687e30c8c6b5420d86e8149f7557: Linux 6.14 (2025-03-24 07:02:41 -0700) are available in the Git repository at: https://github.com/openrisc/linux.git tags/for-linus for you to fetch changes up to 66ffd2f316

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

2025-04-25 Thread Stafford Horne
Hi Randy, On Fri, Apr 25, 2025 at 08:08:15PM -0700, Randy Dunlap wrote: > 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 This lo

[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 v10 2/5] KVM: selftests: Add KVM selftests header files for LoongArch

2025-04-25 Thread Sean Christopherson
On Mon, Apr 21, 2025, Bibo Mao wrote: > Add KVM selftests header files for LoongArch, including processor.h > and kvm_util_base.h. Nit, kvm_util_arch.h, not kvm_util_base.h. I only noticed because I still have nightmares about kvm_util_base.h. :-)

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

2025-04-25 Thread xiaolei wang
On 4/26/25 00:47, Mathieu Poirier wrote: CAUTION: This email comes from a non Wind River email account! Do not click links or open attachments unless you recognize the sender and know the content is safe. On Thu, Apr 24, 2025 at 08:22:51PM +0800, Xiaolei Wang wrote: Release all carveouts und

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

2025-04-25 Thread Iuliana Prodan
Hello Mathieu, Rob, I've tested imx_dsp_rproc and it fails with: [   39.743770] Unable to handle kernel paging request at virtual address ffea ... [   39.805078] Hardware name: NXP i.MX8MPlus EVK board (DT) [   39.810390] pstate: 0005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE

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

2025-04-25 Thread Ackerley Tng
Yan Zhao writes: > On Thu, Apr 24, 2025 at 11:15:11AM -0700, Ackerley Tng wrote: >> Vishal Annapurve writes: >> >> > On Thu, Apr 24, 2025 at 1:15 AM Yan Zhao wrote: >> >> >> >> On Thu, Apr 24, 2025 at 01:55:51PM +0800, Chenyi Qiang wrote: >> >> > >> >> > >> >> > On 4/24/2025 12:25 PM, Yan Zhao

Re: [PATCH v11 00/35] Refactor TI K3 R5, DSP and M4 Remoteproc Drivers

2025-04-25 Thread Andrew Davis
On 4/25/25 5:41 AM, Beleswar Padhi wrote: This series refactors a lot of functions & callbacks from ti_k3_dsp_remoteproc.c, ti_k3_r5_remoteproc.c and ti_k3_m4_remoteproc.c drivers. This is a consolidated and final series as part of the refactoring of K3 remoteproc drivers. Below is the breakdown:

[PATCH] kunit: configs: Enable coverage of the bitfield packing library

2025-04-25 Thread Mark Brown
There are KUnit tests for the bitfield packing library but these depend on CONFIG_PACKING which is not enabled by anything in either the existing KUnit all_tests.config or the base UML config it runs on as standard. Enable that in all_tests.config to improve coverage. Signed-off-by: Mark Brown -

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 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 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 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 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 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/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 Dave Hansen
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_array); > kfree(vepc); > > + sgx_dec_usa

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/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 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 5/6] arm64: dts: qcom: sm6350: Add q6usbdai node

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 12:44:55PM +0200, Luca Weiss wrote: > 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/sm63

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 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 picks up these changes when they're ready, or we > wait until 6

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

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 12:44:56PM +0200, 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 Multi

Re: [PATCH net-next v4 0/3] Fix netdevim to correctly mark NAPI IDs

2025-04-25 Thread patchwork-bot+netdevbpf
Hello: This series was applied to netdev/net-next.git (main) by Jakub Kicinski : On Thu, 24 Apr 2025 00:27:30 + you wrote: > Greetings: > > Welcome to v4. > > This series fixes netdevsim to correctly set the NAPI ID on the skb. > This is helpful for writing tests around features that use >

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

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:45PM +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/sc7180-acer-aspire1.dts | 8 > 1 file changed, 4 ins

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

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:50PM +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/sm8350.dtsi | 7 --- > 1 file changed, 4 insertions(+), 3

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

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:48PM +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/sdm850-lenovo-yoga-c630.dts | 6 +++--- > arch/arm64/boot/dts

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

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:46PM +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/sc7280.dtsi | 7 --- > 1 file changed, 4 insertions(+), 3

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

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:47PM +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/sdm845-db845c.dts | 8 > arch/arm

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

2025-04-25 Thread Dmitry Baryshkov
On Fri, Apr 25, 2025 at 01:53:44PM +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/qrb5165-rb5.dts | 8 > 1 file changed, 4 insertions(

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

2025-04-25 Thread Luca Weiss
Hi Mark, On Fri Apr 25, 2025 at 2:12 PM CEST, Mark Brown wrote: > On Fri, Apr 25, 2025 at 10:07:26AM +0200, Luca Weiss wrote: >> 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 bo

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 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, Elena Reshetova wrote: > > On Thu, Apr 24, 2025, Elena Reshetova wrote: > > Userspace generally won't care about a 10us delay when destroying a > > process, but a 10us delay to launch an enclave could be quite problematic, > > e.g. in the TDX use case where enclaves may be lau

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 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 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 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 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 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] 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

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 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 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 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 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 v4 10/38] perf/x86: Support switch_guest_ctx interface

2025-04-25 Thread Liang, Kan
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_GUEST_PMI_VECTOR at perf guest enter, and switch PMI back to >> NMI at perf g

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 00/38] Mediated vPMU 4.0 for x86

2025-04-25 Thread Peter Zijlstra
On Wed, Apr 16, 2025 at 03:22:02PM +0800, Mi, Dapeng wrote: > Kindly ping... Any comments on this patch series? Thanks. I suppose its mostly okay, just a few nits.

[PATCH 2/4] clk: qcom: dispcc-sm6350: Add *_wait_val values for GDSCs

2025-04-25 Thread Luca Weiss
Compared to the msm-4.19 driver the mainline GDSC driver always sets the bits for en_rest, en_few & clk_dis, and if those values are not set per-GDSC in the respective driver then the default value from the GDSC driver is used. The downstream driver only conditionally sets clk_dis_wait_val if qcom,

[PATCH 3/4] clk: qcom: gcc-sm6350: Add *_wait_val values for GDSCs

2025-04-25 Thread Luca Weiss
Compared to the msm-4.19 driver the mainline GDSC driver always sets the bits for en_rest, en_few & clk_dis, and if those values are not set per-GDSC in the respective driver then the default value from the GDSC driver is used. The downstream driver only conditionally sets clk_dis_wait_val if qcom,

[PATCH 4/4] clk: qcom: gpucc-sm6350: Add *_wait_val values for GDSCs

2025-04-25 Thread Luca Weiss
Compared to the msm-4.19 driver the mainline GDSC driver always sets the bits for en_rest, en_few & clk_dis, and if those values are not set per-GDSC in the respective driver then the default value from the GDSC driver is used. The downstream driver only conditionally sets clk_dis_wait_val if qcom,

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

2025-04-25 Thread Anup Patel
On Tue, Mar 25, 2025 at 6:10 AM 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. "... Howeve

[PATCH 1/4] clk: qcom: camcc-sm6350: Add *_wait_val values for GDSCs

2025-04-25 Thread Luca Weiss
Compared to the msm-4.19 driver the mainline GDSC driver always sets the bits for en_rest, en_few & clk_dis, and if those values are not set per-GDSC in the respective driver then the default value from the GDSC driver is used. The downstream driver only conditionally sets clk_dis_wait_val if qcom,

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

2025-04-25 Thread Luca Weiss
*_wait_val values for GDSCs drivers/clk/qcom/camcc-sm6350.c | 18 ++ drivers/clk/qcom/dispcc-sm6350.c | 3 +++ drivers/clk/qcom/gcc-sm6350.c| 6 ++ drivers/clk/qcom/gpucc-sm6350.c | 6 ++ 4 files changed, 33 insertions(+) --- base-commit: 9c32cda43eb78f78c73aee4aa344b14e259b change-id: 20250425-sm6350-gdsc-val-a0162752854f Best regards, -- Luca Weiss

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:07:26AM +0200, Luca Weiss wrote: > 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. This doesn't apply against current code, please check and re

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

2025-04-25 Thread Anup Patel
On Tue, Mar 25, 2025 at 6:10 AM 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 LGTM. Reviewed-by: Anup Patel Regards, Anup > --- > tools/testing/selftests/kvm/include/riscv/p

[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 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 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 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 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 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 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.

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 v4 10/38] perf/x86: Support switch_guest_ctx interface

2025-04-25 Thread Peter Zijlstra
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_GUEST_PMI_VECTOR at perf guest enter, and switch PMI back to > NMI at perf guest exit. > > Signed-off-by: Xiong Zhang > Signed-off

Re: [PATCH v4 05/38] perf: Add generic exclude_guest support

2025-04-25 Thread Peter Zijlstra
On Mon, Mar 24, 2025 at 05:30:45PM +, Mingwei Zhang wrote: > @@ -6040,6 +6041,71 @@ void perf_put_mediated_pmu(void) > } > EXPORT_SYMBOL_GPL(perf_put_mediated_pmu); > > +static inline void perf_host_exit(struct perf_cpu_context *cpuctx) > +{ > + perf_ctx_disable(&cpuctx->ctx, EVENT_GUE

Re: [PATCH v4 09/38] perf: Add switch_guest_ctx() interface

2025-04-25 Thread Peter Zijlstra
On Mon, Mar 24, 2025 at 05:30:49PM +, Mingwei Zhang wrote: > @@ -1822,7 +1835,7 @@ extern int perf_event_period(struct perf_event *event, > u64 value); > extern u64 perf_event_pause(struct perf_event *event, bool reset); > int perf_get_mediated_pmu(void); > void perf_put_mediated_pmu(void)

[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:

[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 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 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 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 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 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 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 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 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 v11 34/35] remoteproc: k3: Refactor reserved_mem_init() functions into common driver

2025-04-25 Thread Beleswar Padhi
The reserved_mem_init() implementations in the R5, DSP and M4 remoteproc drivers initialize the reserved memory regions associated with the remote processor. Refactor these functions into the ti_k3_common.c driver as k3_reserved_mem_init() and use this common function throughout in R5, DSP and M4

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

2025-04-25 Thread Beleswar Padhi
The mem_release() implementations in the TI K3 R5, DSP and M4 remoteproc drivers release the reserved memory of the device, which get auto triggered upon device removal. Refactor these functions into ti_k3_common.c driver as k3_mem_release() and use this common function in R5, DSP and M4 drivers.

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

2025-04-25 Thread Beleswar Padhi
The of_get_memories() implementations in the TI K3 R5, DSP and M4 remoteproc drivers initialize and assign memory regions used by the remote processor in the same way. Refactor these implementations into ti_k3_common.c driver as k3_rproc_of_get_memories() use this common function for mem initializa

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

2025-04-25 Thread Beleswar Padhi
The .da_to_va rproc ops implementations in TI K3 R5, DSP and M4 remoteproc drivers return the Kernel virtual address for a corresponding rproc device address. Refactor the implementations into the ti_k3_common.c driver as k3_rproc_da_to_va and use this common function for address translation of DD

[PATCH v11 30/35] remoteproc: k3: Refactor .get_loaded_rsc_table ops into common driver

2025-04-25 Thread Beleswar Padhi
The .get_loaded_rsc_table rproc ops implementations in TI K3 R5, DSP and M4 remoteproc drivers return a pointer to the resource table that was pre-loaded at the base address of the DDR region reserved for firmware usage. Refactor the implementations into ti_k3_common.c driver as k3_get_loaded_rsc_

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

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

[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:

  1   2   >