From nobody Wed Oct 8 05:24:00 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 D82CC1CCB4B; Wed, 2 Jul 2025 02:54:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751424857; cv=none; b=tTV3iwu6jmCEsxAyTqON7x5biipomtT7nP1qjXApahHzyL5FyDMgO1T5XBLr8AmNA8vykXAZxJDhEQl3rz4DC9k2HUJGx6fGd3GxYT7wgTDlIoR4uwMpKNqTGOsJjRV8cbuVYDdhEPvMtg+A9ubEZgabnTy46qWtlk61K3fWyrQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751424857; c=relaxed/simple; bh=9FfNXftnoyfeNUWbTQqwXVjjQBV/Xfb1sI3VCkad5NA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=GilCJvOOS8CU5TXOgfgnGYOnPaCCUbJ7sW+YYbKdpAi9qa/JQuweNSqUFQ7l7Mfvo7DT9MBqP8ywNmN8+Gtam+gH0Zmj/d2oj5a2T+UYbRSmJssrBAl5KYpTQunmMPekG6bUszhRqWo+hjq+rL3W8NxzwIpzmC9YzDrU0xeQTBw= 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=p1aKVy5F; arc=none smtp.client-ip=205.220.180.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="p1aKVy5F" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 561HhFS6000415; Wed, 2 Jul 2025 02:54:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= fh32sk3oHjOabXoWNT73Qy/sC7KekH2ZXEqZcjPETXU=; b=p1aKVy5F1o43V/z1 1bTDLndlNmsu1rdAtDGNCGYrAualSKDHdAb6TgDo51VvIoaXZ7twiPotcENrn34d DTSJxs3igAN6SbFx3qrmIfNG86vDy1suAIKJ+ozppKhRjx0LzdfOORQb+dc+83v3 7lrly5YZ8bHHQy7wgiiq8BQkR6gwoxX144jOu97xhRcqBFpiKjWAoOgNqwO4iOza Abamga91sg6DxGScO6PHe77rDwt1XZf5ksnucv61B802Iq6ssn69P3m1pLTYrdh/ sW24BlyBSLQzTmgYdukjSnY2jAxIsbjLE9AKZHoCLoIOxJRZ9UTVfcUypPd3sN3+ XimEiw== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47j7qmawcp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Jul 2025 02:54:09 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 5622s8lA031306 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 2 Jul 2025 02:54:08 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.1748.10; Tue, 1 Jul 2025 19:54:05 -0700 From: Ling Xu To: , , , , , , , , CC: , , , , , , Ling Xu Subject: [PATCH v5 1/4] dt-bindings: misc: qcom,fastrpc: Add GDSP label Date: Wed, 2 Jul 2025 08:23:38 +0530 Message-ID: <20250702025341.1473332-2-quic_lxu5@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250702025341.1473332-1-quic_lxu5@quicinc.com> References: <20250702025341.1473332-1-quic_lxu5@quicinc.com> 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-Authority-Analysis: v=2.4 cv=C4TpyRP+ c=1 sm=1 tr=0 ts=68649f51 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=Wb1JkmetP80A:10 a=COk6AnOGAAAA:8 a=y9j2seIhk4up1NT0-iEA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-ORIG-GUID: tHZwb7LuD9xNJk8WM6TDdmvboYpg2MWv X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzAyMDAyMyBTYWx0ZWRfX2A5ds+hb3hwg 1ZgAIQMbphn2sYnIplq1hZLLN3fbIaFKeu1xluYbeEFrJLI6csprqhyaClXy4igV9Y5HnewRcDX Wfb1n82fmQBSrRPOs+rYa6SVECD6rUitv90ey4dyNsRuB/KJ+2aVUtCIcRMP/jViRahIJt7gGLL R3GmIbEg6r2vyfC+F5yTrWFrl5wV1HyWhSh5OV11oWZwOG3P+n9JhmhF/RAFyAtvfp1QYffl5qG IBp0IhzBy9I7OsGb7IxLi9vZY8Qo9duQsX7Yt0Qw8ccfwBMCfTk4S8dyCAkqtMMGkJL44T11UT1 +rmo+rHaT2yKCIYZTE+c7F1u7sMlzdSGtf83qYklDMKk0Ty1PnZCwAHqyw986ZdTf+NsO3UXnbs x27WDklIqTGiX7YyoaX4eOq8F+sW637NHM90d9vNbX1iNLulH928QeN36xu7sGaatJERnkfA X-Proofpoint-GUID: tHZwb7LuD9xNJk8WM6TDdmvboYpg2MWv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-01_02,2025-06-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507020023 Content-Type: text/plain; charset="utf-8" There are some products which support GDSP remoteprocs. GDSP is General Purpose DSP where tasks can be offloaded. There are 2 GDSPs named gdsp0 and gdsp1. Add "gdsp0" and "gdsp1" as the new supported labels for GDSP fastrpc domains. Signed-off-by: Ling Xu Acked-by: Krzysztof Kozlowski --- Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml b/Doc= umentation/devicetree/bindings/misc/qcom,fastrpc.yaml index 0840a3d92513..3f6199fc9ae6 100644 --- a/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml +++ b/Documentation/devicetree/bindings/misc/qcom,fastrpc.yaml @@ -27,6 +27,8 @@ properties: - sdsp - cdsp - cdsp1 + - gdsp0 + - gdsp1 =20 memory-region: maxItems: 1 --=20 2.34.1 From nobody Wed Oct 8 05:24:00 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 46D201DDA0C; Wed, 2 Jul 2025 02:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751424861; cv=none; b=n9Xf49vEjaRsOM6tXIoxrm/FEBaTL9FnwzKsbOpvBCqAjuGW2wwhNXFc1pFnDpo15e2Wk6h4Wu+ZtORPcdWd0WMOdNOQrWlR6UYMMh8blppbkdCPYwlhkocoy8/tLKwb8JOBKl/QbBeUUXvSuRFiq0h5sFz+EHDfGuznbHG+j24= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751424861; c=relaxed/simple; bh=uVR1Ztg+lo0CfsukEJRg3CHLYxSDrvFZdpni4JXKNZk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=s5bVZGEr6EBstf0glOjMSVM/P7ffDI2fGl/+taRwGARMr0ek11CbhRt87T6x3K8HuWaDyRTsf1a6o54PBq0+Bat2MTyKcB6G8LN91mQXkkgbXIHkCsHI8/TTHo5DjUU8ie6sy0ja3AOt1DAxInlz4rPETN4IXompJqr4ikcDe2k= 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=AUfrcZZy; arc=none smtp.client-ip=205.220.180.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="AUfrcZZy" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 561F1gwp020939; Wed, 2 Jul 2025 02:54:14 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pjoy9L+s2OuHVxCsEkIMiscMS7VR/zKPd39K+Z+YfQg=; b=AUfrcZZyOA6SR8qI bibR6xo4skeohZcpeXERJwTSYHDeObLWD1e5QxfoYxbZS3kjCPYVFuNT2x0kapK+ MxbkSygAEI33RR4snr7e/FxlD6tSGoghDwFoHTD48Ut4WiFuo2GR7EilMQYK+0hq Qmsps4TFz+FlGbcwBBH0yl1A8IwdthoFWdwJZUboR56+DBBjVKd9gjzWm5g31CXV 5jPN2DgwAgIgz198+oB1mE69r1LxSAay9AsYhK5X/avK62SAJZAOq4xT2oo9DlqI ApZPGy0YohiSbzET8Dupl5exO9hb5w4EtlOyWSfysgjduhi2/TlKLrYx8betz13a quOLZw== Received: from nasanppmta04.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47mhxn1kt0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Jul 2025 02:54:14 +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 5622sD10004821 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 2 Jul 2025 02:54:13 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.1748.10; Tue, 1 Jul 2025 19:54:09 -0700 From: Ling Xu To: , , , , , , , , CC: , , , , , , Ling Xu , Dmitry Baryshkov , Konrad Dybcio Subject: [PATCH v5 2/4] arm64: dts: qcom: sa8775p: add GDSP fastrpc-compute-cb nodes Date: Wed, 2 Jul 2025 08:23:39 +0530 Message-ID: <20250702025341.1473332-3-quic_lxu5@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250702025341.1473332-1-quic_lxu5@quicinc.com> References: <20250702025341.1473332-1-quic_lxu5@quicinc.com> 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-Spam-Details-Enc: AW1haW4tMjUwNzAyMDAyMyBTYWx0ZWRfX0Fj7Mrckk/sb A3PILec3KIzFFmZiQDJqdvt3FvMtsRpRNLe2xVJBzoX6DwjkaaQg8dP4vNaKQe63bYb0vJetTEv bYFmDpCJlP/PEEY2DssxGwh9H6ruFxryzbkk0vQH+9y7ohEJm6oqmww2P0Yvp76AiyfDm4R+fAe IUZi8gquHoSsvJmxdwRFf4tXF6W9wGU4Ws1pvnXigJa1O+kSC824IQJd6kXAAECoMHJ2muEaGS4 rmykFD5ivS6oQuH9jZ+4xPyxxiB9GHq0mzoTYPaJb/hgA9vkA9aI17sq+eLvTni8h+mvoZj9xoe TDehJx/wMer7BGkl5vMjHZr+dQD1OaG7zQ5PuBIkZoeK6CiCiyKn27NeFMpuLBTklCFEwBq2l4v rSC/xrO7mBQuVbBJatvhdJfzyTHenV0Napsrf8O/IhxR01POEls84j0mtxlYUtK/7SyHXUlG X-Authority-Analysis: v=2.4 cv=EbvIQOmC c=1 sm=1 tr=0 ts=68649f56 cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=Wb1JkmetP80A:10 a=EUspDBNiAAAA:8 a=COk6AnOGAAAA:8 a=CfRyy-KmkZQ3OiQjKWoA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-ORIG-GUID: WzqmtN3IG4ba7dqpxhrXMa1998k4HVLY X-Proofpoint-GUID: WzqmtN3IG4ba7dqpxhrXMa1998k4HVLY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-01_02,2025-06-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 mlxscore=0 priorityscore=1501 mlxlogscore=858 lowpriorityscore=0 malwarescore=0 adultscore=0 clxscore=1015 bulkscore=0 impostorscore=0 spamscore=0 suspectscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507020023 Content-Type: text/plain; charset="utf-8" Add GDSP0 and GDSP1 fastrpc compute-cb nodes for sa8775p SoC. Reviewed-by: Dmitry Baryshkov Reviewed-by: Konrad Dybcio Signed-off-by: Ling Xu --- arch/arm64/boot/dts/qcom/sa8775p.dtsi | 57 +++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/arch/arm64/boot/dts/qcom/sa8775p.dtsi b/arch/arm64/boot/dts/qc= om/sa8775p.dtsi index fed34717460f..5ebc058931ad 100644 --- a/arch/arm64/boot/dts/qcom/sa8775p.dtsi +++ b/arch/arm64/boot/dts/qcom/sa8775p.dtsi @@ -6080,6 +6080,34 @@ IPCC_MPROC_SIGNAL_GLINK_QMP =20 label =3D "gpdsp0"; qcom,remote-pid =3D <17>; + + fastrpc { + compatible =3D "qcom,fastrpc"; + qcom,glink-channels =3D "fastrpcglink-apps-dsp"; + label =3D "gdsp0"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + compute-cb@1 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <1>; + iommus =3D <&apps_smmu 0x38a1 0x0>; + dma-coherent; + }; + + compute-cb@2 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <2>; + iommus =3D <&apps_smmu 0x38a2 0x0>; + dma-coherent; + }; + compute-cb@3 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <3>; + iommus =3D <&apps_smmu 0x38a3 0x0>; + dma-coherent; + }; + }; }; }; =20 @@ -6123,6 +6151,35 @@ IPCC_MPROC_SIGNAL_GLINK_QMP =20 label =3D "gpdsp1"; qcom,remote-pid =3D <18>; + + fastrpc { + compatible =3D "qcom,fastrpc"; + qcom,glink-channels =3D "fastrpcglink-apps-dsp"; + label =3D "gdsp1"; + #address-cells =3D <1>; + #size-cells =3D <0>; + + compute-cb@1 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <1>; + iommus =3D <&apps_smmu 0x38c1 0x0>; + dma-coherent; + }; + + compute-cb@2 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <2>; + iommus =3D <&apps_smmu 0x38c2 0x0>; + dma-coherent; + }; + + compute-cb@3 { + compatible =3D "qcom,fastrpc-compute-cb"; + reg =3D <3>; + iommus =3D <&apps_smmu 0x38c3 0x0>; + dma-coherent; + }; + }; }; }; =20 --=20 2.34.1 From nobody Wed Oct 8 05:24:00 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 C441A1C84D3; Wed, 2 Jul 2025 02:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751424867; cv=none; b=nSgG78HxgTjzTkPz0QeQUbawbgZEQ2i5e1z5kQG/ktXk3mMNyyf1Urs5XFjMUc7gTYpj8B7J2KBPfMs563VxpOe7lSgpgPKAbSvPala8HoKK5MPfsnqLvu08+DFQLFYXqZk659mMrJf1mPgTEOC/uVciYKxplrli0sxAFnqMYpI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751424867; c=relaxed/simple; bh=X71odSVYSUn/Px/D1qNwYb7oKCV9p303G88qxbUXaWY=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=klK3B1RWVEV1nIUXZ2lqJ50imMm2FIIpGQUgBcVr1DmvmzqORbBmvY2wo53bgE2+0NadfT6a9k8hoxeGBiDWpEOtfUGgQFh9ZWYZSHPVeRLWAnpxzUO0ug51sOsiaPxEaG18Wx8sSsVbivIF9alZU7ENG6UUPaTbgEs3BmfCkuo= 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=BTZENBxJ; arc=none smtp.client-ip=205.220.180.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="BTZENBxJ" Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 561HUOH1018559; Wed, 2 Jul 2025 02:54:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= yIrUATDt4O4sSOGy8Th3mjXI15K8DuxvwKDo714ZaTE=; b=BTZENBxJ0dV1jWY/ GgnWnueBZfh8SBolftQ7zECDpZTs/CE+KGqatMDKtR+KMs4HV5KjRVdrCsFU7zEa sDkD6C+R2MtEK3JCHz2L1RQEmDKN8ybnZThUT5BDqBP4rEGler2HfWkT0q5ftir1 9oNyghFMi1IcngPIG6w8yZd6vNyYzfobePLgghEqUswICHjUcTjH+vALPbApT7WP sllTZ0TIMNu8cDEO71YV6/5XNNhGpsye7zVQ8Nsx7Ic/6/u+eohM6OjKWyPat0ih 0vPhozhT9a4GU6ekz+imk9NJBgT7Dots8+U8/eEzVjDqAaChH+p1tmCn2oS4rJp/ oI2xIQ== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47j8fxk0dw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Jul 2025 02:54:18 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA02.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 5622sH1V016471 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 2 Jul 2025 02:54:17 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.1748.10; Tue, 1 Jul 2025 19:54:14 -0700 From: Ling Xu To: , , , , , , , , CC: , , , , , , Ling Xu , Srinivas Kandagatla Subject: [PATCH v5 3/4] misc: fastrpc: Refactor domain ID to enforce strict mapping Date: Wed, 2 Jul 2025 08:23:40 +0530 Message-ID: <20250702025341.1473332-4-quic_lxu5@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250702025341.1473332-1-quic_lxu5@quicinc.com> References: <20250702025341.1473332-1-quic_lxu5@quicinc.com> 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-Spam-Details-Enc: AW1haW4tMjUwNzAyMDAyMyBTYWx0ZWRfX6QdN0xVLpTHU 7ChvGIXafRwF1JCb7rufp3MxUuJh1UYupXpuNW7YknuDs6/GJfxkZ+OXU0Mlw/b5IDq/mhXbhTS K77a2jzoDbwUxQe2QuGUcQKTXzUWIwAhcQ8fVwcjJAKLcIJ9xHXS1HULkiR+v0t/BXi/AxjRGS+ F7rDvolKu7hwaGWaLPZUz//iFyHjjkjXZLOVcoaXptFNPDoOeJOwfx1StYgxNePI/OX02iM15Ir 8T66Q6yC9iYVIIR20/GsDaYSv2ImbJ0ZSDnJFMhEVTyN7UkBF08+BFFT14hanOBj6SVzCfnn0AM WfkgfmYK3zqYmfuiDIpEORK601ZM1G+fpfSx025juwETJ6W7CMk/EXyn0kCvB8UBsB8Zn3JgKl0 EmkPlNQ+GbGLSzuQTaLlIs4cVJOSihjXUWEI/4HK3tLizLtM6p/WyAg/mZubndeQE8WU0aO7 X-Proofpoint-GUID: W3VsPh9Je8zH23S4JPpiWsVn1FnKI-cH X-Proofpoint-ORIG-GUID: W3VsPh9Je8zH23S4JPpiWsVn1FnKI-cH X-Authority-Analysis: v=2.4 cv=TqPmhCXh c=1 sm=1 tr=0 ts=68649f5a cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=Wb1JkmetP80A:10 a=KKAkSRfTAAAA:8 a=COk6AnOGAAAA:8 a=ql8Nfxkq940Eb9atYOsA:9 a=cvBusfyB2V15izCimMoJ:22 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-01_02,2025-06-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 bulkscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 phishscore=0 malwarescore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 spamscore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507020023 Content-Type: text/plain; charset="utf-8" Currently, domain ids are added for each instance, which is not scalable. Strict domain IDs for domain. Co-developed-by: Srinivas Kandagatla Signed-off-by: Srinivas Kandagatla Signed-off-by: Ling Xu --- drivers/misc/fastrpc.c | 51 ++++++++++++++++--------------------- include/uapi/misc/fastrpc.h | 2 +- 2 files changed, 23 insertions(+), 30 deletions(-) diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 378923594f02..441f5851eb97 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -27,8 +27,7 @@ #define MDSP_DOMAIN_ID (1) #define SDSP_DOMAIN_ID (2) #define CDSP_DOMAIN_ID (3) -#define CDSP1_DOMAIN_ID (4) -#define FASTRPC_DEV_MAX 5 /* adsp, mdsp, slpi, cdsp, cdsp1 */ +#define FASTRPC_DOMAIN_MAX CDSP_DOMAIN_ID #define FASTRPC_MAX_SESSIONS 14 #define FASTRPC_MAX_VMIDS 16 #define FASTRPC_ALIGN 128 @@ -106,8 +105,6 @@ =20 #define miscdev_to_fdevice(d) container_of(d, struct fastrpc_device, miscd= ev) =20 -static const char *domains[FASTRPC_DEV_MAX] =3D { "adsp", "mdsp", - "sdsp", "cdsp", "cdsp1" }; struct fastrpc_phy_page { u64 addr; /* physical address */ u64 size; /* size of contiguous region */ @@ -1723,7 +1720,6 @@ static int fastrpc_get_info_from_kernel(struct fastrp= c_ioctl_capability *cap, uint32_t attribute_id =3D cap->attribute_id; uint32_t *dsp_attributes; unsigned long flags; - uint32_t domain =3D cap->domain; int err; =20 spin_lock_irqsave(&cctx->lock, flags); @@ -1741,7 +1737,7 @@ static int fastrpc_get_info_from_kernel(struct fastrp= c_ioctl_capability *cap, err =3D fastrpc_get_info_from_dsp(fl, dsp_attributes, FASTRPC_MAX_DSP_ATT= RIBUTES); if (err =3D=3D DSP_UNSUPPORTED_API) { dev_info(&cctx->rpdev->dev, - "Warning: DSP capabilities not supported on domain: %d\n", domain); + "Warning: DSP capabilities not supported\n"); kfree(dsp_attributes); return -EOPNOTSUPP; } else if (err) { @@ -1769,17 +1765,6 @@ static int fastrpc_get_dsp_info(struct fastrpc_user = *fl, char __user *argp) return -EFAULT; =20 cap.capability =3D 0; - if (cap.domain >=3D FASTRPC_DEV_MAX) { - dev_err(&fl->cctx->rpdev->dev, "Error: Invalid domain id:%d, err:%d\n", - cap.domain, err); - return -ECHRNG; - } - - /* Fastrpc Capablities does not support modem domain */ - if (cap.domain =3D=3D MDSP_DOMAIN_ID) { - dev_err(&fl->cctx->rpdev->dev, "Error: modem not supported %d\n", err); - return -ECHRNG; - } =20 if (cap.attribute_id >=3D FASTRPC_MAX_DSP_ATTRIBUTES) { dev_err(&fl->cctx->rpdev->dev, "Error: invalid attribute: %d, err: %d\n", @@ -2255,6 +2240,20 @@ static int fastrpc_device_register(struct device *de= v, struct fastrpc_channel_ct return err; } =20 +static int fastrpc_get_domain_id(const char *domain) +{ + if (!strncmp(domain, "adsp", 4)) + return ADSP_DOMAIN_ID; + else if (!strncmp(domain, "cdsp", 4)) + return CDSP_DOMAIN_ID; + else if (!strncmp(domain, "mdsp", 4)) + return MDSP_DOMAIN_ID; + else if (!strncmp(domain, "sdsp", 4)) + return SDSP_DOMAIN_ID; + + return -EINVAL; +} + static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev) { struct device *rdev =3D &rpdev->dev; @@ -2272,15 +2271,10 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device = *rpdev) return err; } =20 - for (i =3D 0; i < FASTRPC_DEV_MAX; i++) { - if (!strcmp(domains[i], domain)) { - domain_id =3D i; - break; - } - } + domain_id =3D fastrpc_get_domain_id(domain); =20 if (domain_id < 0) { - dev_info(rdev, "FastRPC Invalid Domain ID %d\n", domain_id); + dev_info(rdev, "FastRPC Domain %s not supported\n", domain); return -EINVAL; } =20 @@ -2330,21 +2324,20 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device = *rpdev) case ADSP_DOMAIN_ID: case MDSP_DOMAIN_ID: case SDSP_DOMAIN_ID: - /* Unsigned PD offloading is only supported on CDSP and CDSP1 */ + /* Unsigned PD offloading is only supported on CDSP */ data->unsigned_support =3D false; - err =3D fastrpc_device_register(rdev, data, secure_dsp, domains[domain_i= d]); + err =3D fastrpc_device_register(rdev, data, secure_dsp, domain); if (err) goto err_free_data; break; case CDSP_DOMAIN_ID: - case CDSP1_DOMAIN_ID: data->unsigned_support =3D true; /* Create both device nodes so that we can allow both Signed and Unsigne= d PD */ - err =3D fastrpc_device_register(rdev, data, true, domains[domain_id]); + err =3D fastrpc_device_register(rdev, data, true, domain); if (err) goto err_free_data; =20 - err =3D fastrpc_device_register(rdev, data, false, domains[domain_id]); + err =3D fastrpc_device_register(rdev, data, false, domain); if (err) goto err_deregister_fdev; break; diff --git a/include/uapi/misc/fastrpc.h b/include/uapi/misc/fastrpc.h index f33d914d8f46..27b892b546f6 100644 --- a/include/uapi/misc/fastrpc.h +++ b/include/uapi/misc/fastrpc.h @@ -134,7 +134,7 @@ struct fastrpc_mem_unmap { }; =20 struct fastrpc_ioctl_capability { - __u32 domain; + __u32 domain; /* deprecated, ignored by the kernel */ __u32 attribute_id; __u32 capability; /* dsp capability */ __u32 reserved[4]; --=20 2.34.1 From nobody Wed Oct 8 05:24:00 2025 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 34AE31D2F42; Wed, 2 Jul 2025 02:54:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751424870; cv=none; b=dIxmq7SqgsOSl/NZAiQThvcBKlLp826q+4qodpfqkjQQQF+w1MGG9ZH25fXaMl4+FpnVEZVzhxc6v6JYw/mct+7TKJX5N1EkvZ+Ep1uQY3GpUSL/GwBp9jw4+dcJ4ULnGVLYCel3ZjxeeEBTzSR9bNBsb75dmOhdAgLaC+JELf4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751424870; c=relaxed/simple; bh=DsySgbbUQc788joFj5oTItv/GmC10MRZdG1rqdOZQg0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=lzvY99dOdDnIPIiD/m6AmRsg7IYev6Yy8OrbsSQU5JzjFIYJL34NeONSTuk6M9Ib3EtuXaf0tzn+VdyPBv0r/hJ0Vax47RuSGKt0d4zg+j3x0Hv4cxHQHZ3SL84Q6qW/nW7loB9uijUmmkYgyBwiO4YcOhCNgcUCLmva1gYLKjc= 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=GjESWrA5; arc=none smtp.client-ip=205.220.180.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="GjESWrA5" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 561HTrRs032748; Wed, 2 Jul 2025 02:54:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= f7DmUnS+ybl/RnHEOnXU9a4omgJnpLCDyxPhASO9ViA=; b=GjESWrA5YmQqxC/g UDU8Lcf3srqk8+OiI9zukdkuFCLaYVZtcDdT/F/wg8oG4YHq5cRaeAg9tkAll4Sk 3Hb7qWRwMEMkGyMr5MuAWio6WChjlslfFR3mBF/1NxuIbZW4Y+Qe4ziHQwo+R3kb 3EIqRgdKIgEhYDXeiuoHqJcdepxYmpKeqP910fpE+LoJL542JErpXfLeiNyG53+N V3hYGgTiwMq9Cuf2aMx0PSgEIIFERezlGmawj6riYMRU8qRcFNSqG/a+3y76BX2k lrdPVJGGmp9F2G9iSicLaV+d1l+xKnakaTdUZu/STqptUAMkgzkO/nG5eBMW939q 0/iUFQ== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 47j7qmawdb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 02 Jul 2025 02:54:23 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 5622sMUT031576 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 2 Jul 2025 02:54:22 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.1748.10; Tue, 1 Jul 2025 19:54:18 -0700 From: Ling Xu To: , , , , , , , , CC: , , , , , , Ling Xu Subject: [PATCH v5 4/4] misc: fastrpc: add support for gdsp remoteproc Date: Wed, 2 Jul 2025 08:23:41 +0530 Message-ID: <20250702025341.1473332-5-quic_lxu5@quicinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250702025341.1473332-1-quic_lxu5@quicinc.com> References: <20250702025341.1473332-1-quic_lxu5@quicinc.com> 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-Authority-Analysis: v=2.4 cv=C4TpyRP+ c=1 sm=1 tr=0 ts=68649f5f cx=c_pps a=JYp8KDb2vCoCEuGobkYCKw==:117 a=JYp8KDb2vCoCEuGobkYCKw==:17 a=GEpy-HfZoHoA:10 a=Wb1JkmetP80A:10 a=COk6AnOGAAAA:8 a=d01il73eTdEK0Eih25sA:9 a=TjNXssC_j7lpFel5tvFf:22 X-Proofpoint-ORIG-GUID: Vxyh76GFmH2DEBZRX475t7STpJp5IzUC X-Proofpoint-Spam-Details-Enc: AW1haW4tMjUwNzAyMDAyMyBTYWx0ZWRfXww/nXG8/9/NG aa13q8Q8vSY1RWlFWKTcUwoY93IA0Xj1Wkn8TLgfzlj42CuBpPmnFfZg1kOe71vRrDYuHwDCxa6 KA2gE9ySNNiKoEXK5RkM1Ne91YXVvoXbg9RlduA0ZbYX4xk6CRSAw406I9VLfNbP2z/RJdb78FD Q0XeZjPhjd7TJv16ZB41hTJtltE67J8JFkA9nVJy/QjPj0zsIilNz2PD41Bo2jc6eF3c5pal2pz Apj2ixXGn1ghZzUIe1wiXu0u7qP0b5VfLH3LvWlcT+srxkJG7l9L1cMEDPsjP+aTjq5YePvjlU5 Rbzvq1hk70dGzp5cK0U2ypSzPd0cx5005fUQo2X0GyY8/vH9C6m9hjavq4/vX2QbyXwnntsKsO/ tqawMMfjtoyNU0DhcoUuOwQwnuZvDfKfAPnEckMiNixxzXtYGP2VwVuby8u3wCu//8ukgcdU X-Proofpoint-GUID: Vxyh76GFmH2DEBZRX475t7STpJp5IzUC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1099,Hydra:6.1.7,FMLib:17.12.80.40 definitions=2025-07-01_02,2025-06-27_01,2025-03-28_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 classifier=spam authscore=0 authtc=n/a authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.19.0-2505280000 definitions=main-2507020023 Content-Type: text/plain; charset="utf-8" The fastrpc driver has support for 5 types of remoteprocs. There are some products which support GDSP remoteprocs. GDSP is General Purpose DSP where tasks can be offloaded. This patch extends the driver to support GDSP remoteprocs. Signed-off-by: Ling Xu --- drivers/misc/fastrpc.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c index 441f5851eb97..2d2242d28d01 100644 --- a/drivers/misc/fastrpc.c +++ b/drivers/misc/fastrpc.c @@ -27,7 +27,8 @@ #define MDSP_DOMAIN_ID (1) #define SDSP_DOMAIN_ID (2) #define CDSP_DOMAIN_ID (3) -#define FASTRPC_DOMAIN_MAX CDSP_DOMAIN_ID +#define GDSP_DOMAIN_ID (4) +#define FASTRPC_DOMAIN_MAX GDSP_DOMAIN_ID #define FASTRPC_MAX_SESSIONS 14 #define FASTRPC_MAX_VMIDS 16 #define FASTRPC_ALIGN 128 @@ -2250,6 +2251,8 @@ static int fastrpc_get_domain_id(const char *domain) return MDSP_DOMAIN_ID; else if (!strncmp(domain, "sdsp", 4)) return SDSP_DOMAIN_ID; + else if (!strncmp(domain, "gdsp", 4)) + return GDSP_DOMAIN_ID; =20 return -EINVAL; } @@ -2324,13 +2327,14 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device = *rpdev) case ADSP_DOMAIN_ID: case MDSP_DOMAIN_ID: case SDSP_DOMAIN_ID: - /* Unsigned PD offloading is only supported on CDSP */ + /* Unsigned PD offloading is only supported on CDSP and GDSP */ data->unsigned_support =3D false; err =3D fastrpc_device_register(rdev, data, secure_dsp, domain); if (err) goto err_free_data; break; case CDSP_DOMAIN_ID: + case GDSP_DOMAIN_ID: data->unsigned_support =3D true; /* Create both device nodes so that we can allow both Signed and Unsigne= d PD */ err =3D fastrpc_device_register(rdev, data, true, domain); --=20 2.34.1