From nobody Sat Jul 25 15:52:48 2026 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 E1A8938CFE5 for ; Thu, 16 Jul 2026 15:19:10 +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=1784215152; cv=none; b=OS+LQLXOkfPpc2GBe+V/7Wo+b+KCDROpQOQOoaoWLgtSDsZ3SArX5xNsUeYmZuBqD7XlJbu4v49B6m9fiQYgR9XT/dbYdHH9z1DQdc+0z1TvWWvqkFXNo1IlQK4AbZ4Gs5bWeIJpLtCNHpbOfS3nutMc6fp1nofDntn4PI/xH5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784215152; c=relaxed/simple; bh=tlR8ecMcS5JNsMhM+OoOzlsiPwZjNOP61ke0c8v0oBw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AQJoq8tOJLTl7laf750WERMQ1fpsGKg8el3m9hJ0X1HDFbkLKRBkdYMMpMWI++/gU2Vcu+PxH4xpwsfYog8spwMmOsZAqfmGaF8ssh55ty1w2aqzHUWt3tmoQfrC5YpnvnFQuMIcByrDGerQOG0rjROYkDUBGFTyUTlxqsfgJlI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=YjbrCiJH; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=hQUbBkoZ; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="YjbrCiJH"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="hQUbBkoZ" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66GDJnHY2734537 for ; Thu, 16 Jul 2026 15:19:10 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=faEbXiZpLug I2WIF/WKwBdPlFd89WzCvjpK22BeDaco=; b=YjbrCiJHYel9f916/GI5NnLo5Tv vqXaBX8N0WeruaAy7HzdTssdqitk1owDkY9Kj9RZMJDStB6sI4A9MAQWmyJ6+RvG ZTl7JRgPGP48b3zJj7HZTvMjTuxQswm59Xpp2WfIP4NUazfc7kPEtSVEayQWHSBb GbRUclhh+o77d7Y27IYDBHcd0UAkEed68FiQF+ATbEs3ue5in0rGahOPzt7+0oRw pg8QaZu5nS1kr0Oy9PJEAFGKctCH2LyzRvSAO7jyvYwhB68AsNRv8+eot1d+tgvL 1u4PasyfMMK2lXPYAawRg2myUn23HPs7z6e6WFadWbhAxy4Gp7vTjUoS6pA== Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fevkv1jnu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 16 Jul 2026 15:19:09 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-ca860baea9fso8166628a12.2 for ; Thu, 16 Jul 2026 08:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784215149; x=1784819949; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=faEbXiZpLugI2WIF/WKwBdPlFd89WzCvjpK22BeDaco=; b=hQUbBkoZ2SdiZ/yV1oH5goVjGcI2eGiadoEI06cOpyecX0e1wI+iiSeSfhEQiR1X01 b7st6EBZr7/nEl6u+KYBg6O6Uu39O3ENd1kUUoBaDhEbwxEe5WWMFSWAv3z7wRQiuq/s vyc52R7te03qDXNHhbh9PFJppDniOkI7bH3cJfHbPtkq03xn24A6le9UGHreKPJvgkUW ++ljeSJGr4fUbV6tcQ8YpfImSRMR51HFShN3fJ1neTM1RBW3UdiA9kCFtIJ6stfKcJG0 XRLtNi9abzjDZPH3GgX2bO8OmesaRiEgIQ5cj2Ul5LaoU0NP0PfhuLhvkwDO2npR+0Fk cbdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784215149; x=1784819949; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=faEbXiZpLugI2WIF/WKwBdPlFd89WzCvjpK22BeDaco=; b=B7PuO8H9x3s42hOHjyyTcu4ltuVzLFedfdtTbvxfswHE8e9EyPGl6Mee+pa/C9e7Pe omTpuiWhYt5SpqJU2Php/8YvmnfFf3dV3v8MvfTNZRy2rOxccV+cDT6eG3yaPPs1UsYJ cjKwXU8oyNesXDl6ycZp2yXt4nIPifl9Hg+F8nF5NgNfftR4rsjiG1SbJRvMeXGcG9pA 3lwsYas242BptNrggBN0Gfco7hxmQ5Iu4Evm9G1FH0bqD7KUQW8Ox8twyei6+aa8iInr BMeCfqS+fYCM+3S1/aYXLzTWyFysYFfe6N4Ffsy9bojocJx5Q25Lu5vWnVPJNXtk0GIz 6FTg== X-Forwarded-Encrypted: i=1; AHgh+Rp1co5fVr/6MXnrXlwybYdiuQEvom6A0bsyg/cXvHl3vfRe6XO1T5xddzrY81xsPyb+Y+i5T7rOxIKYdSw=@vger.kernel.org X-Gm-Message-State: AOJu0YywuvNg09q3VHQh32ADLMp1vHWnOVFJgqBAN9o3l9J3Aqv9PUbO liCkOO0VusyGWlpw+27vut843rCX6msUj7QREbEuuxk1LWbpUOACwuXC3Ou9rGggtLzX11/+kCu h1DXoYSY8vpU1fJfbwwwCJ91jW82qhSMFmSBJqApZrbir4Isd6UajopSxLPLwpseD4pU= X-Gm-Gg: AfdE7clPxe7BlQyI87+/LXIv70ILpS5/GQTFlRcndGTMA72aGTvowL9RsCMKCfxTs5U YaUjUWQ5fB0l5/OyRAhLOmEYxOe+xYanEU/jmZJthXluHZB9+LJQJAoTGzJGBC8nCyRHHf+Hh1k mXbAoMoZ10p8gQZZyIss0BNpv6r/j7vqWkYEuA6hu2jQiPAGHe1eO/WgJhA7PWCmo4+W+IVSpC9 vLBiJgb499qS1qu3suFRlfADw4+eCfC0CbT0Kz2k2qYUgACNpnhEIkFKKQnE7a7WCO5cdFVfr6c n0vQSFEuZv22Cxzps317RvfBfCZaw/htxbYg0+Rpxmkk2mS+vWTJyqS5+Fm7MIdrRnAqVXl9ocU DINGUUAgfkoLEz/QzYtryTEyy2EHx59OR+osW X-Received: by 2002:a05:6a00:2e06:b0:847:e4c7:8ca1 with SMTP id d2e1a72fcca58-8488970b172mr20422780b3a.43.1784215148450; Thu, 16 Jul 2026 08:19:08 -0700 (PDT) X-Received: by 2002:a05:6a00:2e06:b0:847:e4c7:8ca1 with SMTP id d2e1a72fcca58-8488970b172mr20422743b3a.43.1784215147907; Thu, 16 Jul 2026 08:19:07 -0700 (PDT) Received: from hu-mpratyus-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84a4f6bfc2bsm4941616b3a.37.2026.07.16.08.19.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 08:19:07 -0700 (PDT) From: Pratyush Meduri To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 1/2] arm64: dts: qcom: lemans: enable audio ML offload memory and SMMU mappings Date: Thu, 16 Jul 2026 20:48:53 +0530 Message-Id: <20260716151854.3041914-2-pratyush.meduri@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260716151854.3041914-1-pratyush.meduri@oss.qualcomm.com> References: <20260716151854.3041914-1-pratyush.meduri@oss.qualcomm.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-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE2MDE1NiBTYWx0ZWRfX7jV3KZLgjmpc osZuWUxrQMRjaNfVMNfB2ceZuPofSQrLJdpUr/P630e6O9rnIvGENYXaUiJSPSI7XZeJ2t02pD1 7cm3kHJKLETyW1A8bbp/wKXKh4Te1UwgNpcweqmSSDo+1ul2h8hWlYKcZh9gcXCQHTvbXEKpq0W 2zcRLvOhCifUgu3Hqj/Tg8vFbkY3/ypTVwSnfm2ITMmigjspsJ5SM0XI7TE4qs8W58AuLowyU/X UyiY42nekmXJA+lytaj13hiZ3Ljyg861QO9yI20IYPPYmUt0SUQ5TXTsdsTBHZQOjnASx74wUhF kHVVvIUlKfZ7YGv6iVn7dJulF793L3YciCLd0PeefJIccIPD193Jxx+AgwF55a2QbC+MP06tPCP i6o8btVjE/oWk5hEPEScMML9/v6by5WXyK6zZBH1NbXgNz/1UC1qLt5RLMfXKDpcTJKTMmjABph j9abPNYL2lo6nWJVhxw== X-Authority-Analysis: v=2.4 cv=WrEb99fv c=1 sm=1 tr=0 ts=6a58f66d cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=qtuJx3-IUi5I1-Rgc4kA:9 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-GUID: pSFFiKrurEgGAtaXBsqun7PWuGdGkzP_ X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE2MDE1NiBTYWx0ZWRfX6UfUrUg6D63m IZwKVQBT5Js6Cl900jYe70nHIJrf9OUxU7kw5L8TumeoXxMbnno1tsVXQbJdy248TFthJb61o9g OPhUGnaq+/ohENS3Ngfh3cBnMukdjLQ= X-Proofpoint-ORIG-GUID: pSFFiKrurEgGAtaXBsqun7PWuGdGkzP_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-16_05,2026-07-15_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 clxscore=1011 spamscore=0 priorityscore=1501 adultscore=0 malwarescore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607160156 Content-Type: text/plain; charset="utf-8" The audio ML (machine-learning) offload use case requires a contiguous, physically addressable buffer shared with the audio DSP/SPF, and issues DMA transactions through additional SMMU stream IDs that are not covered by the existing ADSP mapping. Add a dedicated reusable shared-dma-pool CMA region (16 MiB, 4 MiB aligned) and wire it to the q6apm DAIs node via memory-region. A dedicated pool guarantees the alignment and contiguity the DSP expects and isolates these allocations from the default CMA region. Under the EL2 (Gunyah/hypervisor) configuration the SMMU is fully enforcing, so the ML transactions are otherwise blocked and faulted: arm-smmu 15000000.iommu: Blocked unknown Stream ID 0x3060 arm-smmu 15000000.iommu: Blocked unknown Stream ID 0x3062 Add the ML-related stream IDs (0x3060 mask 0x9, 0x3062 mask 0x1) to the remoteproc_adsp iommus property in the EL2 overlay so these buffers are translated by the SMMU instead of being rejected. Signed-off-by: Pratyush Meduri --- arch/arm64/boot/dts/qcom/lemans-el2.dtso | 4 +++- arch/arm64/boot/dts/qcom/lemans.dtsi | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/lemans-el2.dtso b/arch/arm64/boot/dts= /qcom/lemans-el2.dtso index 621ad930cf54..5b477346ef90 100644 --- a/arch/arm64/boot/dts/qcom/lemans-el2.dtso +++ b/arch/arm64/boot/dts/qcom/lemans-el2.dtso @@ -19,7 +19,9 @@ &iris { }; =20 &remoteproc_adsp { - iommus =3D <&apps_smmu 0x3000 0x0>; + iommus =3D <&apps_smmu 0x3000 0x0>, + <&apps_smmu 0x3060 0x9>, + <&apps_smmu 0x3062 0x1>; }; =20 &remoteproc_cdsp0 { diff --git a/arch/arm64/boot/dts/qcom/lemans.dtsi b/arch/arm64/boot/dts/qco= m/lemans.dtsi index 3b0539e27b51..060565113784 100644 --- a/arch/arm64/boot/dts/qcom/lemans.dtsi +++ b/arch/arm64/boot/dts/qcom/lemans.dtsi @@ -624,6 +624,14 @@ reserved-memory { #size-cells =3D <2>; ranges; =20 + audio_cma_mem: qcom,audio-ml { + compatible =3D "shared-dma-pool"; + alloc-ranges =3D <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment =3D <0x0 0x400000>; + size =3D <0x0 0x1000000>; + }; + sail_ss_mem: sail-ss@80000000 { reg =3D <0x0 0x80000000 0x0 0x10000000>; no-map; @@ -8134,6 +8142,7 @@ q6apmbedai: bedais { q6apmdai: dais { compatible =3D "qcom,q6apm-dais"; iommus =3D <&apps_smmu 0x3001 0x0>; + memory-region =3D <&audio_cma_mem>; }; }; =20 --=20 2.34.1 From nobody Sat Jul 25 15:52:48 2026 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 1515042BE99 for ; Thu, 16 Jul 2026 15:19:13 +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=1784215155; cv=none; b=Q5mzm+VcHolMgYDVnitY+dqwOREyANum6hXOOZBNGkHo1CF0fJ4eTzbAtU8mHduvhNiluHIbU6S4Z3aejNT6zRIlbkb6PswhqJ52FCwxzLS7MUIEMYcYkLHrUlvXso66eh57kcdyzS4uZmeGbu0EwFe8aaEkxBcsWPdLWG/dHyo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784215155; c=relaxed/simple; bh=hYUWA6hHRWFZeBTK+ngbbDcvAT3eVLKP8fJugqcLyGE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=jWFtRyPlq8dVEMbpX7YzoSQC9oSUVjtXkx7+lql5IjCj6N1H0TXYSA+inbNUDCqvIXLUuOlsocPJIA45EZn31NfJZ/4UJi+tcM0WdSLNXC/zQu3qsWdOsDqn8VGAzSZOqDsWJh8caPuDl1f+amBbxWWIHlUtOVaLO15nPHkgqe0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=Znpi7PzP; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=iDCpUFs0; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="Znpi7PzP"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="iDCpUFs0" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66GDKNl92857850 for ; Thu, 16 Jul 2026 15:19:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=ZuKmCF6V5l3 azfqav1X3iiiX2+TQLuQjPmRcthQvmI4=; b=Znpi7PzPS2eItgJauTwfseT0BC5 IPCMb/vp92Jjc1a/Xl3B4TX1wJv/3Lmg/idbJVgGYr5uuZxg3Xww2OJRgFzQEEW+ Ak5zZzt9801Gxcr7X392WthFDc8OEC4SKMqAf2L1AWwBlyjcpvZhXJDtml8892Gv UEkK2DJYdYv89bisyctLlYqKm72t1WgXoby9q0icP1AEQJZiEJKIqugjboO6w2GY RVgnERtWfwLvbmSdjaFfPv2MGq+13fGr4ev6OmsKkGydIuE73q02ddeJUhBeszGp SCh4ye3Kjs/dAhwVXBpmvw1OtSa2bwqWZKccHTo6qqFYc6wtBApbnOhK/kw== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4feuex1vhw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 16 Jul 2026 15:19:12 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-84842381150so11896796b3a.3 for ; Thu, 16 Jul 2026 08:19:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784215152; x=1784819952; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ZuKmCF6V5l3azfqav1X3iiiX2+TQLuQjPmRcthQvmI4=; b=iDCpUFs0ppgyju7KYONtx/M/I+qVmRCvfrmyGnwf+T5buis3OoG3ppwWvhjNgIf6+e 9F+fZwNWVXKrfAZUYkNtr3VRdE1W664CPdS6+qi5upqS5YNWaDP5Z7NDeTxkccwivhbr +o0Ss+ZNnMMkPGipFBOmmDs3YRqTbZXZO/PKEHfupPPMaKxGIiTpXmZSfSZqmsetgels nIImmBt84fRNGpLOdEy0gJk6HQzz00SrZ+ZRvPDWcUHCJ0UnI1CndIdlBj37Yc2q7TWr MGixD3i1oL9HniugPvYEjoARXXNmvIjvxj8A1+XJ8epJ+LfOEzpJNv9onbl3dIOVaeIT WsVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784215152; x=1784819952; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ZuKmCF6V5l3azfqav1X3iiiX2+TQLuQjPmRcthQvmI4=; b=gr+Zwm048wPdFoeIldg/itJ5IytAXM4iLLreN/j5aOpSwfOt5ah5DO02jwUd5ab2tX LeahE48IL8uYUzw8Rt5Ymm56GO+U5AufuM3Uq3G7ANV3K74ucvHT3pC9jHTMlitKvLyP P2IYuvaPrixn8QykP1+M90KKms3YbaxiJJD0gOl8JA4lpGhj/NNc7MDDJuzYwySQ4c7J k6nD1uRLapjVTkzAHgb5XPzPObgJ5oKyV+LzUc5grIeC1WBWnI33asGFG1q88JYUfAf0 mwGhI90f4jXi+eX3cYSGL94b7qxdAZXpa7QhYtGcS0DsdYkznsK7VRl2sG0SjkJ6rRn0 yXag== X-Forwarded-Encrypted: i=1; AHgh+RruOzM4M5IYz6Qou4xSXm4JY50+a4O2OgtJTuqIPpQxMCF7lqdt3lRHkRxtO3gaF35iRgqasr8yBKdKFrY=@vger.kernel.org X-Gm-Message-State: AOJu0YzQldcRRq8cQdwpicjybrClvfluNoBnsNaTjC3LkbxApB+sEZ7m oXzpiaM+y3IwBSOcqTrSrZUbd/YC9kPZqNt7uz3e3NAi8S+VUNIPoNyHSRQpb6qQeuTN4RRWO26 BW/mt6FRwGMepcrVPfaKbsW/zoo122e4AJptOkies54SzMUttvraHxgwARLh1xXKKHBY= X-Gm-Gg: AfdE7cnTR2pSfxcJTGIdWG13unhmj/YhTMLJw9wyo9YavvK8SO3T3aAWX+Dz7hgcPJ3 GhgMXKAlWi6pvsyNdzGwrfFEum9+qz9Sh1InvLol1gBPzfN/uhlfwKwEU2RTqkRO7vNYkh6f4WU vFKad3v87A4ldTIZcb9MmdBwsBCUShZVhXGzMU3NGYEr4P4pTx1R4jBwq2Y/a4i9AdOQCW7qu0t Am1AxqSeu0LYIhRQhJc/HTeQxkRRISZVvgoLZ9svoomDjyFoqSAWV32SksZofcMouw2Xv/puNt1 7i7LE+R7VQ+lgpNfJUMBEFy09Ql9pJ52WFrh457VkmnT6f8mpJyx7mG/BmjYJ11x+WbxGXQrjsf BrXjH4s8BVbYN7H7ujlNWK3iHCEcz+Wk9D3nT X-Received: by 2002:aa7:88d6:0:b0:845:4928:8655 with SMTP id d2e1a72fcca58-84a55820879mr10135946b3a.39.1784215151573; Thu, 16 Jul 2026 08:19:11 -0700 (PDT) X-Received: by 2002:aa7:88d6:0:b0:845:4928:8655 with SMTP id d2e1a72fcca58-84a55820879mr10135897b3a.39.1784215150989; Thu, 16 Jul 2026 08:19:10 -0700 (PDT) Received: from hu-mpratyus-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-84a4f6bfc2bsm4941616b3a.37.2026.07.16.08.19.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Jul 2026 08:19:10 -0700 (PDT) From: Pratyush Meduri To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v1 2/2] arm64: dts: qcom: monaco: enable audio ML offload memory and SMMU mappings Date: Thu, 16 Jul 2026 20:48:54 +0530 Message-Id: <20260716151854.3041914-3-pratyush.meduri@oss.qualcomm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260716151854.3041914-1-pratyush.meduri@oss.qualcomm.com> References: <20260716151854.3041914-1-pratyush.meduri@oss.qualcomm.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-Authority-Analysis: v=2.4 cv=JeeMa0KV c=1 sm=1 tr=0 ts=6a58f670 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=qtuJx3-IUi5I1-Rgc4kA:9 a=zc0IvFSfCIW2DFIPzwfm:22 X-Proofpoint-ORIG-GUID: lwDK7DiOkr3zDEjTpJdsUwjtmZ8mVG7J X-Proofpoint-GUID: lwDK7DiOkr3zDEjTpJdsUwjtmZ8mVG7J X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE2MDE1NiBTYWx0ZWRfX8HilKrHj0aiM cjgEzR/08sPT90Lc4WoTFLf1+tTTgCAf6ioNUqPiY/vDb0hx0XVrlSOQuPTFOTLMkL4X5eqYOPU zesvjDD3QSqYZlukVTORHnNRZPa2lcg= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE2MDE1NiBTYWx0ZWRfXxBSPFhX8p2u1 nnbSx1V0KmSPJYuVsFUXvmRyXOKjhIgpIFAFA+jmdjW12tWbJ337+2K9dsKTi9804Sbpd8uJS11 wjECjiLGM3YzDlPYrgfgpi5D+oARAsjl2nFsMdE2xwd8VT/A1LjMEgjEmYypTWmTR2xIjyENBEV Mlzf4uo8NIBZJt+RoCWGkh/rVCB90nksIWir8xFR9zAd0TZevvTmhp1C4Fm6CkrhZuP0hQ1s/0X GmED1yRZ9Vys62iSwGggXPyuMePlDF11I+2F8703euai8KawDC+sA+39ZgD3tlMQuXcVt8yjy1J 4Kp0sjIrFWXcSO/rOq92LsDTkgcoeTpDiG92CyXW6mKMH5s1yQwNOQw10a61RKmKiiuNoiDMrcb bUlp1AlCF0HXh4PbsnumNyl7tLYwwEBmCexVny6ZzjVrikJ4KvDhc/D2/3hYia7oAmewzsJCXMX AbPJZmRIEewlTGaJGXA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-16_05,2026-07-15_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 clxscore=1011 suspectscore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 phishscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607160156 Content-Type: text/plain; charset="utf-8" The audio ML (machine-learning) offload use case requires a contiguous, physically addressable buffer shared with the audio DSP/SPF, and issues DMA transactions through additional SMMU stream IDs that are not covered by the existing ADSP mapping. Add a dedicated reusable shared-dma-pool CMA region (16 MiB, 4 MiB aligned) and wire it to the q6apm DAIs node via memory-region. A dedicated pool guarantees the alignment and contiguity the DSP expects and isolates these allocations from the default CMA region. Under the EL2 (Gunyah/hypervisor) configuration the SMMU is fully enforcing, so the ML transactions are otherwise blocked and faulted: arm-smmu 15000000.iommu: Blocked unknown Stream ID 0x2060 arm-smmu 15000000.iommu: Blocked unknown Stream ID 0x2062 Add the ML-related stream IDs (0x3060 mask 0x9, 0x3062 mask 0x1) to the remoteproc_adsp iommus property in the EL2 overlay so these buffers are translated by the SMMU instead of being rejected. Signed-off-by: Pratyush Meduri --- arch/arm64/boot/dts/qcom/monaco-el2.dtso | 4 +++- arch/arm64/boot/dts/qcom/monaco.dtsi | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/qcom/monaco-el2.dtso b/arch/arm64/boot/dts= /qcom/monaco-el2.dtso index a7e3270f8609..97bb8287cec3 100644 --- a/arch/arm64/boot/dts/qcom/monaco-el2.dtso +++ b/arch/arm64/boot/dts/qcom/monaco-el2.dtso @@ -17,7 +17,9 @@ &iris { }; =20 &remoteproc_adsp { - iommus =3D <&apps_smmu 0x2000 0x0>; + iommus =3D <&apps_smmu 0x2000 0x0>, + <&apps_smmu 0x2060 0x9>, + <&apps_smmu 0x2062 0x1>; }; =20 &remoteproc_cdsp { diff --git a/arch/arm64/boot/dts/qcom/monaco.dtsi b/arch/arm64/boot/dts/qco= m/monaco.dtsi index 64fc0d592282..d971c0ea1b30 100644 --- a/arch/arm64/boot/dts/qcom/monaco.dtsi +++ b/arch/arm64/boot/dts/qcom/monaco.dtsi @@ -729,6 +729,14 @@ reserved-memory { #size-cells =3D <2>; ranges; =20 + audio_cma_mem: qcom,audio-ml { + compatible =3D "shared-dma-pool"; + alloc-ranges =3D <0x0 0x00000000 0x0 0xffffffff>; + reusable; + alignment =3D <0x0 0x400000>; + size =3D <0x0 0x1000000>; + }; + aop_image_mem: aop-image-region@90800000 { reg =3D <0x0 0x90800000 0x0 0x60000>; no-map; @@ -2844,6 +2852,7 @@ q6apmbedai: bedais { q6apmdai: dais { compatible =3D "qcom,q6apm-dais"; iommus =3D <&apps_smmu 0x2001 0x0>; + memory-region =3D <&audio_cma_mem>; }; }; =20 --=20 2.34.1