From nobody Sat Nov 23 16:24:29 2024 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CA91114E2C0; Tue, 19 Nov 2024 12:07:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732018027; cv=none; b=jY/S5s0coSSOsVSJClcRsQPUZ6BHUqKexcDzf7yby6FsmvXhTHCVDjMK0EIinC6YD2nfjymzmMoWVZl8/w8azrK4GL46+zGLilBtvGCMFiS8nkoWhWGAhPd2iAq//BSJXYQENHIp7O6OR6Fzhx7YaPiIfI6roI2xCRznlnyiC3g= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1732018027; c=relaxed/simple; bh=Y5J6YL850s+y137i+70MF2KmBb3pSuP0B+RaM5LNfT8=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=QzKxNgdFUmTDki1ZkPbUI+KtZusnY7E1WVQ4gcGSCarFzjZsMFU8YZPcLyaiXPtyl93yx+wN1gqwFSGz4R+Dbxk180QTdhAocMr8YRzqJaQOOUyTZO6hYNB2la2T//bw4HhDran2MP5Me4pyoM/1M32DgJXl12r/Y5lypQdCCQw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=quicinc.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=P13faH14; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=quicinc.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="P13faH14" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AJ7rCK5028554; Tue, 19 Nov 2024 12:07:03 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=5vMP88NfbfXvoUp0Qwznsb T2ro8cNTpipcLWBUe9p2I=; b=P13faH14D9qDwOeB0X6N3gQ9RRR/31tr5HNqF9 8cdDDhAMmJPPd+KFkZF7vMfbnUzxjCkx+ypuq97A099agJ7gHgD/Z3pAG+Ig7Izb olno9ftrVmBPkc7hAP0i4ynO7Lc+Vv8X1ivsZyLsKr7Uf13wVV25MMCNiOrxfr8q FEfbHBXtR768dM4EvVBTp+jeHVvtISPv5MB6mGHlynfyYYZ3ilaRCfjO0wO1paVB mmm30Vs2T0OeYFGbHrjxpMH8v9PQqCqUWvR8q1303tMVd1iVxyQXMkJuMd7NGYwi rrI52Q9OZcOZzIlMN3qchM/VSShgR/X0Usf0dVpyKuATixAg== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4308y82e7h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Nov 2024 12:07:03 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA04.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4AJC72BX020639 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 19 Nov 2024 12:07:02 GMT Received: from hu-lxu5-sha.qualcomm.com (10.80.80.8) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 19 Nov 2024 04:06:56 -0800 From: Ling Xu To: , , , , CC: , , , , , , Ling Xu Subject: [PATCH v3] arm64: qcom: qcs8300: Add ADSP and CDSP0 fastrpc nodes Date: Tue, 19 Nov 2024 17:36:35 +0530 Message-ID: <20241119120635.687936-1-quic_lxu5@quicinc.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: zWllfZyTA0jzNVPSDzkAwaVFPdiXaviU X-Proofpoint-GUID: zWllfZyTA0jzNVPSDzkAwaVFPdiXaviU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-06_09,2024-09-06_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 phishscore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 mlxscore=0 spamscore=0 adultscore=0 suspectscore=0 malwarescore=0 mlxlogscore=672 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2409260000 definitions=main-2411190088 Content-Type: text/plain; charset="utf-8" Add ADSP and CDSP0 fastrpc nodes for QCS8300 platform. Signed-off-by: Ling Xu --- This patch depends on patch https://lore.kernel.org/all/20240904-qcs8300_in= itial_dtsi-v1-0-d0ea9afdc007@quicinc.com/#t Changes since v1: - Remove duplicate cdsp fastrpc nodes - Add adsp memory-region and vmids Changes since v2: - Remove extra duplicate cdsp fastrpc nodes --- arch/arm64/boot/dts/qcom/qcs8300.dtsi | 73 +++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/qcs8300.dtsi b/arch/arm64/boot/dts/qc= om/qcs8300.dtsi index 2c35f96c3f28..90a4070ab042 100644 --- a/arch/arm64/boot/dts/qcom/qcs8300.dtsi +++ b/arch/arm64/boot/dts/qcom/qcs8300.dtsi @@ -5,6 +5,7 @@ =20 #include #include +#include #include #include #include @@ -762,6 +763,38 @@ IPCC_MPROC_SIGNAL_GLINK_QMP =20 label =3D "lpass"; qcom,remote-pid =3D <2>; + + fastrpc { + compatible =3D "qcom,fastrpc"; + qcom,glink-channels =3D "fastrpcglink-apps-dsp"; + label =3D "adsp"; + memory-region =3D <&adsp_rpc_remote_heap_mem>; + qcom,vmids =3D ; + #address-cells =3D <1>; + #size-cells =3D <0>; + + compute-cb@3 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <3>; + iommus =3D <&apps_smmu 0x2003 0x0>; + dma-coherent; + }; + + compute-cb@4 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <4>; + iommus =3D <&apps_smmu 0x2004 0x0>; + dma-coherent; + }; + + compute-cb@5 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <5>; + iommus =3D <&apps_smmu 0x2005 0x0>; + dma-coherent; + }; + }; }; }; =20 @@ -1361,6 +1394,46 @@ IPCC_MPROC_SIGNAL_GLINK_QMP =20 label =3D "cdsp"; qcom,remote-pid =3D <5>; + + fastrpc { + compatible =3D "qcom,fastrpc"; + qcom,glink-channels =3D "fastrpcglink-apps-dsp"; + label =3D "cdsp"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + compute-cb@1 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <1>; + iommus =3D <&apps_smmu 0x19c1 0x0440>, + <&apps_smmu 0x1961 0x0400>; + dma-coherent; + }; + + compute-cb@2 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <2>; + iommus =3D <&apps_smmu 0x19c2 0x0440>, + <&apps_smmu 0x1962 0x0400>; + dma-coherent; + }; + + compute-cb@3 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <3>; + iommus =3D <&apps_smmu 0x19c3 0x0440>, + <&apps_smmu 0x1963 0x0400>; + dma-coherent; + }; + + compute-cb@4 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <4>; + iommus =3D <&apps_smmu 0x19c4 0x0440>, + <&apps_smmu 0x1964 0x0400>; + dma-coherent; + }; + }; }; }; }; --=20 2.34.1