Re: [PATCH v4] bus: mhi: host: Add tracing support

2023-11-13 Thread Krishna Chaitanya Chundru
On 11/12/2023 1:07 AM, Steven Rostedt wrote: On Sat, 11 Nov 2023 11:25:22 +0530 Krishna chaitanya chundru wrote: diff --git a/drivers/bus/mhi/host/trace.h b/drivers/bus/mhi/host/trace.h new file mode 100644 index ..0e99318f5d08 --- /dev/null +++ b/drivers/bus/mhi/host/trace.h +

Re: [PATCH] tracing: fix UAF caused by memory ordering issue

2023-11-13 Thread Mark Rutland
On Sun, Nov 12, 2023 at 11:00:30PM +0800, Kairui Song wrote: > From: Kairui Song > > Following kernel panic was observed when doing ftrace stress test: Can you share some more details: * What test specifically are you running? Can you share this so that others can try to reproduce the issue?

Re: [PATCH] wifi: ath11k: Defer on rproc_get failure

2023-11-13 Thread Luca Weiss
On Mon Nov 13, 2023 at 4:37 PM CET, Kalle Valo wrote: > "Luca Weiss" writes: > > > On Fri Oct 27, 2023 at 10:25 AM CEST, Kalle Valo wrote: > > > >> Luca Weiss writes: > >> > >> > If we already have gotten the rproc_handle (meaning the "qcom,rproc" > >> > property is defined in the devicetree),

Re: [PATCH] wifi: ath11k: Defer on rproc_get failure

2023-11-13 Thread Kalle Valo
Luca Weiss wrote: > If we already have gotten the rproc_handle (meaning the "qcom,rproc" > property is defined in the devicetree), it's a valid state that the > remoteproc module hasn't probed yet so we should defer probing instead > of just failing to probe. > > This resolves a race condition

Re: [PATCH] wifi: ath11k: Defer on rproc_get failure

2023-11-13 Thread Kalle Valo
"Luca Weiss" writes: > On Fri Oct 27, 2023 at 10:25 AM CEST, Kalle Valo wrote: > >> Luca Weiss writes: >> >> > If we already have gotten the rproc_handle (meaning the "qcom,rproc" >> > property is defined in the devicetree), it's a valid state that the >> > remoteproc module hasn't probed yet

Re: [PATCH 9/9] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable WiFi

2023-11-13 Thread Kalle Valo
"Luca Weiss" writes: >> >> > > --- a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts >> >> > > +++ b/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts >> >> > > @@ -713,3 +713,7 @@ { >> >> > > firmware-name = "qcom/qcm6490/fairphone5/venus.mbn"; >> >> > > status = "okay"; >> >> > >

Re: [PATCH 9/9] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable WiFi

2023-11-13 Thread Luca Weiss
On Mon Nov 13, 2023 at 1:22 PM CET, Kalle Valo wrote: > (adding ath11k list) > > Dmitry Baryshkov writes: > > > [Added Kalle to the CC list] > > > > On Tue, 31 Oct 2023 at 12:31, Luca Weiss wrote: > >> > >> On Mon Oct 30, 2023 at 8:26 PM CET, Konrad Dybcio wrote: > >> > On 27.10.2023 16:20, Luca

Re: [PATCH 9/9] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable WiFi

2023-11-13 Thread Kalle Valo
(adding ath11k list) Dmitry Baryshkov writes: > [Added Kalle to the CC list] > > On Tue, 31 Oct 2023 at 12:31, Luca Weiss wrote: >> >> On Mon Oct 30, 2023 at 8:26 PM CET, Konrad Dybcio wrote: >> > On 27.10.2023 16:20, Luca Weiss wrote: >> > > Now that the WPSS remoteproc is enabled, enable

Re: [PATCH kmod v5 5/5] libkmod, depmod, modprobe: Make directory for kernel modules configurable

2023-11-13 Thread Michal Suchánek
On Tue, Oct 17, 2023 at 12:50:15PM -0500, Lucas De Marchi wrote: > On Tue, Jul 18, 2023 at 02:01:56PM +0200, Michal Suchanek wrote: > > Now that modprobe.d is searched under ${prefix}/lib, allow a complete > > transition to files only under ${prefix} by adding a ${module_directory} > >

[PATCH v2 11/11] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable WiFi

2023-11-13 Thread Luca Weiss
Now that the WPSS remoteproc is enabled, enable wifi so we can use it. Signed-off-by: Luca Weiss --- Depends on (just to resolve merge conflicts, could also rebase without that): https://lore.kernel.org/linux-arm-msm/20231002-sc7280-venus-pas-v2-3-bd2408891...@fairphone.com/ ---

[PATCH v2 08/11] arm64: dts: qcom: sc7280: Add ADSP node

2023-11-13 Thread Luca Weiss
Add the node for the ADSP found on the SC7280 SoC, using standard Qualcomm firmware. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 5 -- arch/arm64/boot/dts/qcom/sc7280-chrome-common.dtsi | 5 -- arch/arm64/boot/dts/qcom/sc7280.dtsi | 74

[PATCH v2 09/11] arm64: dts: qcom: sc7280: Add CDSP node

2023-11-13 Thread Luca Weiss
Add the node for the ADSP found on the SC7280 SoC, using standard Qualcomm firmware. Remove the reserved-memory node from sc7280-chrome-common since CDSP is currently not used there. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 5 -

[PATCH v2 10/11] arm64: dts: qcom: qcm6490-fairphone-fp5: Enable various remoteprocs

2023-11-13 Thread Luca Weiss
Enable the ADSP, CDSP, MPSS and WPSS that are found on the SoC. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts | 20 1 file changed, 20 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcm6490-fairphone-fp5.dts

[PATCH v2 07/11] arm64: dts: qcom: sc7280: Use WPSS PAS instead of PIL

2023-11-13 Thread Luca Weiss
The wpss-pil driver wants to manage too many resources that cannot be touched with standard Qualcomm firmware. Use the compatible from the PAS driver and move the ChromeOS-specific bits to sc7280-chrome-common.dtsi. Signed-off-by: Luca Weiss ---

[PATCH v2 06/11] remoteproc: qcom_q6v5_pas: Add SC7280 ADSP, CDSP & WPSS

2023-11-13 Thread Luca Weiss
Add support for the ADSP, CDSP and WPSS remoteprocs found on the SC7280 SoC using the q6v5-pas driver. This driver can be used on regular LA ("Linux Android") based releases, however the SC7280 ChromeOS devices need different driver support due to firmware differences. Signed-off-by: Luca Weiss

[PATCH v2 05/11] dt-bindings: remoteproc: qcom: sc7180-pas: Add SC7280 compatibles

2023-11-13 Thread Luca Weiss
Add the compatibles and constraints for the ADSP, CDSP and WPSS found on the SC7280 SoC. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss --- .../bindings/remoteproc/qcom,sc7180-pas.yaml| 21 + 1 file changed, 21 insertions(+) diff --git

[PATCH v2 04/11] arm64: dts: qcom: sc7280*: move MPSS and WPSS memory to dtsi

2023-11-13 Thread Luca Weiss
It appears that all SC7280-based devices so far have mpss_mem and wpss_mem on the same reg with the same size. Also these memory regions are referenced already in sc7280.dtsi so that's where they should also be defined. Signed-off-by: Luca Weiss ---

[PATCH v2 03/11] arm64: dts: qcom: sc7280: Rename reserved-memory nodes

2023-11-13 Thread Luca Weiss
It was clarified a while ago that reserved-memory nodes shouldn't be called memory@ but should have a descriptive name. Update sc7280.dtsi to follow that. Signed-off-by: Luca Weiss --- arch/arm64/boot/dts/qcom/sc7280.dtsi | 26 +- 1 file changed, 13 insertions(+), 13

[PATCH v2 01/11] dt-bindings: remoteproc: qcom: sc7180-pas: Fix SC7280 MPSS PD-names

2023-11-13 Thread Luca Weiss
The power domains for MPSS on SC7280 are actually named CX and MSS, and not CX and MX. Adjust the name which also aligns the bindings with the dts and fixes validation. Fixes: 8bb92d6fd0b3 ("dt-bindings: remoteproc: qcom,sc7180-pas: split into separate file") Acked-by: Krzysztof Kozlowski

[PATCH v2 00/11] Remoteprocs (ADSP, CDSP, WPSS) for SC7280

2023-11-13 Thread Luca Weiss
This series adds support for the ADSP, CDSP and WPSS remoteprocs found on SC7280. And finally enable them and WiFi on the QCM6490-based Fairphone 5 smartphone. The first two patches are fixes for the MPSS to fix some dt validation issues. They're included in this series to avoid conflicts with

[PATCH v2 02/11] arm64: dts: qcom: sc7280: Remove unused second MPSS reg

2023-11-13 Thread Luca Weiss
The bindings for sc7280-mpss-pas neither expects a second reg nor a reg-names property, which is only required by the sc7280-mss-pil bindings. Move it to sc7280-herobrine-lte-sku.dtsi, the only place where that other compatible is used. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Luca Weiss