From mboxrd@z Thu Jan 1 00:00:00 1970 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 0AD4E3932D9 for ; Wed, 23 Sep 2026 16:22:51 +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=1790180573; cv=none; b=l4aOj2lK7Fg55xOpb0u0FDJMYulvarRSIZ7TfsoPWZRKMbgS7nnjkZT8ZL3/jPjHRFQDA3mAq9OrPbr2p8zj8DcblDnu4+0Is1zqGmeD12/g+EqKLpM+Wa0HldObFVUFAXhGpcBdx1FpYbJHFP25RGibs9rX6x7C1w0GHpmVaSw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790180573; c=relaxed/simple; bh=+Fr2pb3MlceLafCJN3oInlXw5sC9AmlPwt+XBu/LWmY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=G6vdCtFgskEBxRazplgtccxAGxtylX0R9H3EjryJqu7LZb40uFRbVVkEbC+noCbV1h0nmcMQK3VpGIarNIgN3kgFYxNO5EcywuBL5mdoL2aA3279p83eRBHhL3OasVdOc+ridCIyTAr486ukT2WDYpvNFuwyQfzF5If2K3srb1k= 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=JOUvwRZJ; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Ns1+rBnQ; arc=none smtp.client-ip=205.220.168.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="JOUvwRZJ"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Ns1+rBnQ" Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68NG9OvQ695532 for ; Wed, 23 Sep 2026 16:22:51 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= pgBNUPHEEKVkm4oZQk6Lvcojji4szSfv3iV2gwgCPzc=; b=JOUvwRZJMomDM9DA OznHK4Jr+4VZkFTDf0IMAZQWSmopNpAP3JSePnQEb55SzUuw78etHe7MMXpzDuPl 5iQmLeYva14qYS6EW3ZpiDrQEfBHYj3Amq7YT5BqicIn+iT/HRdymXNCq3HZZG1h TPybkF+a3zzAoa43XefFi2B9jDXKHMAqdi1Fpv3cqC29OBEejT1KzcnTXNhPVTZR jDplJZO6vULBdxAd08WctjkA2jvtwqvknzSAPLZQRLe24cBQ0oHQd3MElLu8dMBm mVWfjKfrtPzUVqu1hUNmbKKmNyCEwTh7M2p61y8WivJmc7HR7p/FvbSBHbUd4rGY SaWkhg== Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gvfjsgv3g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 23 Sep 2026 16:22:50 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-39d8646b10eso869777a91.1 for ; Wed, 23 Sep 2026 09:22:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790180570; x=1790785370; darn=vger.kernel.org; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:from:to:cc:subject:date:message-id:reply-to :content-type; bh=pgBNUPHEEKVkm4oZQk6Lvcojji4szSfv3iV2gwgCPzc=; b=Ns1+rBnQorCE0NFEIR53EjNuQh5hPWFEMY7pX9EfdAioMHRU/cqrTH5hote1mo8QUU 44Y+0atw8+m4seSaw3efVZCf2bYeUWz6jJdQPjqC/Fy7Yz5IuxxXVtm1hhFM49yopKXG QpiiXb3xurO3v9CgmcU5QU6TuXsYO+ZUvU13ZNROe+Gb7Gljl3cfSUdkv8vGeK+e5s/u //oRp2T3dAcTq7OW8xIXojx4a0ySYSWXABk1PbMU4PjFxwiDdUFFGraNCcC9xuZIAPCn Z9gThQU2JY1Ue9XEGEwQIKJ6P/u9k0Ybodj66d+wbmOXcB7XiySEZBPkmrxRQ8miwCvL G7gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790180570; x=1790785370; h=content-transfer-encoding:content-type:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=pgBNUPHEEKVkm4oZQk6Lvcojji4szSfv3iV2gwgCPzc=; b=AEaF3ip2FKVs+9WgpfCENnNJrNVcxRy5tKoiL3/jrDPWU5B1FzjLvcACZHKaSfOLmY s13YADQYPdlWFzmw6X+M/FxahnHpuslGmfKnOXDlvz57jvQd1sZEEMKS+IYIQxb3dJ8f XBtayxRb1sIs5M9kegCqgedPTKnipj/BUdhj4oh0AyV9tD0sw16YIZtYfzifdsob8c/Y Oz0rsVIsxvmKak02sYohuUSiWepV6DzapzlrQzCahPsFTHrIkHOEYLC7bURwjXv0YMqj mH79VO5xgNktvqvQM4YdjTwd4NnbHvVOrOh1YAB234A4qlPW6WPjzbYSiNwEDbEb7wCm lp1g== X-Forwarded-Encrypted: i=1; AKwUvBwhHDsLwJJ6hs17EYm31VrbLh8gjmRoVA278/4IQbWBHSpIp2x2CIgwt7m5+zGauhWT7268XgJEK67AC6c=@vger.kernel.org X-Gm-Message-State: AFuF++m1xsXeEXigz58Z7o6jHGvqZSai6qECrsAVkb2hfXDuxKCQG5a1 A6Xz0lp7DQjTlxs8Vikk3DFS0CywY+Tvh7yFof/BL4himQjrPu4PV6oYBbyhpHH1ORRNlnuRbZ4 PJgCkHoe6ug8XffKVivLMWoCuF/vxAVQMiZ/L/EoFpbvDb3J+tDR+V6rkG23wIyV10iM= X-Gm-Gg: AYBFou1j7cy/464QZEIUJdUTBrMhQ+D/B4b0FReUqOLePwrNZPQ/bylHBJHt9ZLdiqN TjQNniV8HdRPUqpi/LEKcx9CzeFs0YCOSUqXGSHdvqy1gaqxw8849cfBXMZnGe0I3/e8jCvpxlR BzyxhpNY7SvCmwAV/LPxS4KCEeSApXwSVCXvl3w7umhDFQwH6MrLjEJDw/15TwErCg8kds2B294 Q9u+SpNH5pHVsVeDw7XDvAJlDTSAlXaRppqncHyWaCSzreDkyeE2IVvPudGazSgkt/Hvarogh8+ TIPsJcfUD9LKQjXbjMV/awzRmNlKmrNkC+DnlfPrS6gSBM+/fFRA8aigqMylfATkoJDyJPhx0Ly wowfiBRxMavsqYJN7OZZWRwdgxoc7 X-Received: by 2002:a05:6a21:151b:b0:3dd:a196:3090 with SMTP id adf61e73a8af0-3ddf830c18amr3182999637.64.1790180570132; Wed, 23 Sep 2026 09:22:50 -0700 (PDT) X-Received: by 2002:a05:6a21:151b:b0:3dd:a196:3090 with SMTP id adf61e73a8af0-3ddf830c18amr3182957637.64.1790180569474; Wed, 23 Sep 2026 09:22:49 -0700 (PDT) Received: from [192.168.1.25] ([122.183.173.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-87d1cfbcc08sm1623120b3a.15.2026.09.23.09.22.37 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 23 Sep 2026 09:22:49 -0700 (PDT) Message-ID: <50b1dabd-4e5f-49a6-b682-1059681b00a0@oss.qualcomm.com> Date: Wed, 23 Sep 2026 21:52:33 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 3/4] dt-bindings: sound: qcom,q6apm-dai: add memory-region and relax iommus To: Krzysztof Kozlowski , Srinivas Kandagatla , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Pierre-Louis Bossart , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org References: <20260922-vmid-v4-v5-0-e79cfd7af5b3@oss.qualcomm.com> <20260922-vmid-v4-v5-3-e79cfd7af5b3@oss.qualcomm.com> <0d2a8e7b-6a7c-4cb8-a6e4-98a7a5615764@kernel.org> Content-Language: en-US From: Ajay Kumar Nandam In-Reply-To: <0d2a8e7b-6a7c-4cb8-a6e4-98a7a5615764@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTIzMDA2NSBTYWx0ZWRfX81RhhyeUlxGd iLu0FLnj2Q3ogBztvHjaD+b95Vp/WiDOSdICTtZIvmnrSg5W+xvgXub8mU0E2Wov9aTKzXLgubO lB70X2zeZpX1MoGFwVhaur/mmN6znyGNdVpMvu1BOenNXUwoxCMpAA4EOXLeGKeX3X3MFloqvGl glkI3rHDDcIww/xSiG90XJbHbZ3+gjOVEGC9Ls46KSXDzc+YJRWGaHpbwoQV1sPbQAESm2rkr3w nZlapVV729MCCGkSU69ndDZ7WelhbS9GKVB/V9FXfEfCnvhLGul5G0i+Tt0xIi1auvMit4oIc5v y7pwDE6dqCX1wExKUAB8Iqffs+VB3npj9xTfwZyUCCPmc0YSh5kz2N9Rd9gr1kZ3o5vzrBxcgs2 P4I/Sl5LQdiKRSCLaXaWQUwATIvR4gOWSICdNQ+NJaoGtwyzbv4mhuiZMPlJoCQBJ3d3E9efW5M RTCLXkupwIo58XFrrSQ== X-Proofpoint-GUID: bzs0QJ_6vLXp1bedZDAO4C_fGym3G5rf X-Proofpoint-ORIG-GUID: bzs0QJ_6vLXp1bedZDAO4C_fGym3G5rf X-Authority-Analysis: v=2.4 cv=K4+3jCWI c=1 sm=1 tr=0 ts=6ab3fcda cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=uk8ae9/F1LYL5lfeGCaUoA==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=t8jTToblx4jCBEoCdggA:9 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwOTIzMDA2NSBTYWx0ZWRfX6XGCiQwDJ91z tUdY115BCBESQNIfCStSqqdsGWDWgE2zDlstp8Lm2zBwx5OG12E3/6kc4MtuzDjdT5x+gDEX9JV UVdd1DJO3Zdl5Mw4Plrvirlc6PuUDE8= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-23_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 phishscore=0 suspectscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609230065 On 9/23/2026 5:27 PM, Krzysztof Kozlowski wrote: >> diff --git a/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml >> index 9e5b30d9c6e6..7d0415f2463a 100644 >> --- a/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml >> +++ b/Documentation/devicetree/bindings/sound/qcom,q6apm-dai.yaml >> @@ -20,9 +20,19 @@ properties: >> minItems: 1 >> maxItems: 2 >> >> + memory-region: >> + minItems: 1 >> + maxItems: 2 >> + items: >> + - description: >> + Control-path buffer (audio_heap_mem) for platforms where the DSP >> + runs in a stage-2 protected context (e.g. modem-DSP). >> + - description: >> + Data-path buffer pool from which per-stream DMA buffers are >> + allocated. >> + >> required: >> - compatible >> - - iommus > I imagine you either have iommus or memory-region, no? IOW, > oneOf: > - required: > - iommus > - required: > - memory-region > ? Yes, that matches the intended split. For existing ADSP/SMMU platforms, q6apm-dais uses iommus. For the mDSP/VMID path, the DSP cannot access normal SMMU-backed system memory,so the buffers have to come from reserved-memory carveouts which the driver SCM-assigns to the fixed VMIDs. I will add the oneOf constraint in v6 to require either iommus or memory-region. VMIDs remain internal to the driver and are not described in DT. Thanks Ajay Kumar Nandam > > Best regards, > Krzysztof