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 7AB41384CE1 for ; Tue, 1 Sep 2026 05:11: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=1788239512; cv=none; b=Ky3J5/Qi6UtMnI1SEPBD4fUHIoqDynh3q0J1btuTvNWVDv98i0mqPpbbPAuYxMRiFU027yYZZiw7GENU1HXllTwzm2oryLlqRgvAIIR0mAgva3z6cUFIh/7QRMaDJKRTcWsfRT+laTbA2uBj/OZYgW3ZlB0X8XCE29umjHt44CM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788239512; c=relaxed/simple; bh=x0NrO0n6GxChfpnH8ELm1h39PRPCNSwlOKDZGdT2wtg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kvedpKfegQyVtGn1Wa1CfX/Vv3IkbnR6+foSj7jL58reKgT8ZK50pv3VJZR9fHQcL97GSc7tszC5dwPjkoVjeNnKa1gR5mWYYRHQfjGaOCvd8FNOepYtxH5edLoWw6Iv23h89i5WSpH6r79jNJkID6Q9SoQnlgectJZb1en9kY8= 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=L1Ha6V4O; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ScorWUO/; 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="L1Ha6V4O"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ScorWUO/" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6812kdw41312688 for ; Tue, 1 Sep 2026 05:11:50 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= DFcbwdf1bwEgbcNee+LwGRz29rh55N8u0w2mDPAykqw=; b=L1Ha6V4Oh+62c+5B oQOPeysVcXpfeTYXY4o/5oFAFrgNW2ORbTlp/rUTzNIh5QADa1Ga32VX8+9lp/GW HcEEwX8j1vDYY0HRAX8a6wJ2gaAjs1J2P2YQpPTUihdh4LSfgBiZ00A8fil/5pzj pjrO90SRq3z83snxMfEG5zjTfbj+Nt3pNJcZ7+H5jp309rEThroQK3L1jtz1yUnA HrxqZIM5JVpNGCavNBjVXxNTyyUosW8qF6l51otSRxxJ8DfgH8rxkAy12xXiWwtv 7IZWaMGJ6xR0yV+1QqJmusLEoIiMc0PpUHkCM41Rw8+1RqedAGtelsPgT4q8lZoj CUvvNQ== Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gdp7c8h7g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 01 Sep 2026 05:11:50 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-39512608fb1so1458763a91.1 for ; Mon, 31 Aug 2026 22:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1788239510; x=1788844310; 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=DFcbwdf1bwEgbcNee+LwGRz29rh55N8u0w2mDPAykqw=; b=ScorWUO/lCnys/4/IsDcI+TJQshLyN1f3jPjOUujOmYlV08j9dboOzOn7HiHw/3idQ AIVgUv6UxEUmI7fSRfyY/6F8oTqa0qUjXRa8EbmqwFGgTZRPaMMkg1qrUeE1nT91w35L VLHL7v4YbmAk7qJ6NMf1X3BpDVOP3J7uL/IPR4WrdJ9/960Gt6ES5f6Toc1U5TlsM8A8 UpyKrnhPlfeKoiAr7dZqpalURF19U+QFmlo4Q3hcbOxq5/McvNbR1X9nW0cGnEWu2s7a ld/vkfQS4iZM7dSZ2ukUjrUKkatRywxyG6CwkaGyJeMzBUF4dQ+8TdsE3gNAQlQ6OlSw 53AQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788239510; x=1788844310; 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=DFcbwdf1bwEgbcNee+LwGRz29rh55N8u0w2mDPAykqw=; b=AP+GQM6IV4FD7yycwBt7+1e2yWBDK/aY3+GcEbLVsI8KsLaMYR1yTn4DIMuKMGnEZx K1vIyEK6gEPpJHFmK4zIyoNAukaqBF6dTd8qC1rYV7buayOWUTusZTS7Vxq1XTiZ7a4a GUMrfgwmV555svGlgD8+mIZWdr/HL4RvNJc4nt8UGoJXLt8X4de7Wn7n9r0X8YWJceXo s5m//IBPyaD4dCNhwhdI0s6dYkuZfGdejz6WwJFxgZpnfgE96SHx6qEiUpOf7OGTMwOW r9fdi5VeEjHxqBXvJyzqEE0ebPJ5krnypDoemrlecaqA/hATs+qnjYwR2Wv7NO2BN8F8 JHsQ== X-Forwarded-Encrypted: i=1; AKwUvBxe0GrCGPeTECFLp0acq3Z4Ugh0vVpvx2YlXfmAXV6PfGawJfhXaDz6qKefdOVxttIzOTKhOTE5a7ddc7xp@vger.kernel.org X-Gm-Message-State: AFuF++kFnmU1giimsRiIgXrdKG8nSNyhSUsEbEOL2f9yxw11wfpkIafu oMU9F6IUTH5DhDa5OpBuHGwr0GUqztpDckIn10P0ZQWbyrsfgOjkiVmC0gMyZUWcT/DdbjE0sMo BwNlcEl34tT0C9rtbgBH3pU+uHfjTjIM3VpWrEhGNxbWM537ZqsawG0+P43RLa8AhJ/XE X-Gm-Gg: AYBFou2wCuAcsVIp44q1hYbJOFeUsmBrEdHmvR99iFEEyuoLrIAFyqDN6L/jjEW/Xdi O/d8qMJahjN7W5LAhN13FJLK915lrr0FQZlFONItLYafTzKeT/XXNAglqtPOedjkRl0E38pppz1 355u0g4atZ6k4VIJ4PguDdaG+z03kyMyGik87XUZpVQty12Bh92rS2/i06oHWZSQTvVaJbrIg7+ NRtz/Q1OXWaFD7zgPrWhxkq/Tee41dnmi+Rd3Vk5BmwU7BtPsfgnq+1SU46P7gW/g6ZcUAWNqOk 1b1CUv0Kd61CEX5RMMBMxeZ05pdypuLo5b5eqZMaY3sVu2tKtyzGjvPq9g8gWOB0NWSXlaLYevG IISnywxr0PzI2JEMBm6nDkLQh5q5Ij0Murt7u X-Received: by 2002:a17:90b:1dcd:b0:398:9be5:b416 with SMTP id 98e67ed59e1d1-3989be5b4f8mr34457473a91.17.1788239508811; Mon, 31 Aug 2026 22:11:48 -0700 (PDT) X-Received: by 2002:a17:90b:1dcd:b0:398:9be5:b416 with SMTP id 98e67ed59e1d1-3989be5b4f8mr34457346a91.17.1788239508046; Mon, 31 Aug 2026 22:11:48 -0700 (PDT) Received: from [192.168.0.104] ([49.205.116.211]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3286f9ecaa9sm36041948eec.26.2026.08.31.22.11.41 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 31 Aug 2026 22:11:47 -0700 (PDT) Message-ID: <19a8ee86-81eb-48f7-afdf-7bf5eecb8629@oss.qualcomm.com> Date: Tue, 1 Sep 2026 10:41:40 +0530 Precedence: bulk X-Mailing-List: linux-arm-msm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 1/9] ASoC: dt-bindings: qcom,qaif-cpu: Add binding To: Srinivas Kandagatla , Harendra Gautam , Srinivas Kandagatla Cc: Mohammad Rafi Shaik , Mark Brown , Liam Girdwood , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jaroslav Kysela , Takashi Iwai , linux-sound@vger.kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Sarath Ganapathiraju , Kumar Anurag Singh References: <20260824063627.3595610-1-harendra.gautam@oss.qualcomm.com> <20260824063627.3595610-2-harendra.gautam@oss.qualcomm.com> <08b6fd88-84b3-4b3f-a8c5-dd6bfd39403f@oss.qualcomm.com> <137d4a06-4542-488d-91e2-d338ffb9d47d@kernel.org> <375dfd48-4351-445b-890f-cbf3a835f65a@oss.qualcomm.com> <36b61b1a-1b5a-4946-96d5-576baf707af9@oss.qualcomm.com> Content-Language: en-US From: Prasad Kumpatla In-Reply-To: <36b61b1a-1b5a-4946-96d5-576baf707af9@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=OcyoyBTY c=1 sm=1 tr=0 ts=6a965e96 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=2ngnHYY/h7Qxskz9zhV0NA==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=VwQbUJbxAAAA:8 a=P-IC7800AAAA:8 a=EIvSny-5AZ8Ximd9insA:9 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 a=d3PnA9EDa4IxuAV0gXij:22 X-Proofpoint-ORIG-GUID: i-J7HKlrTeYszt_O_y_1jlEidw9F6UV- X-Proofpoint-Spam-Info: AW1haW4tMjYwOTAxMDA0NCBTYWx0ZWRfX/yTjy+5kCkE2 4og3EBdSUk8oVg7+skCdUBGjakLFpLC3QSNF9ywpPY41Tl+TIfyxK6UDHVmAmKZ+b/S/clhzbi6 GspXDRO8nlhsMnRqLGfDVGbWZTwPrwM= X-Proofpoint-GUID: i-J7HKlrTeYszt_O_y_1jlEidw9F6UV- X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTAxMDA0NCBTYWx0ZWRfX6n1YVr7qX6Ml lpVT6RG3lQmKj1atrux0r5Z/voIq03Wxm+j+8w/s4ZETozeUnbXc1nKi93NVobtJdKZ7baoztKf 6Xr7iAjJb3TFqd6EYdwzkl0vHVTgZ7q1zUTjv0lSH4wrOy5/JjPI3j0vKMmYIbRcCzBMNQVnIM5 QRpUzCCaWv0WkEW4X1F2LnqtPC/mITHLpzewFTUQ2GXvucT8H6VLiT56zbRTbnPQR+6In26CPIK bHjFI4jJBeXDa5fDlXqbISt6fFlNcg9/9az/0Ua+MlLrI8T3c82I4r8rlqyEnAup2RCfCOBcwTO i8vxmey+ShrzfCXuQSPVSM7y1PQSVSJSp6Knl6LjSZms26Fix62vsjUCiDkZVKKgoI/uAtOdBWx Cnl/xy8i1LGED8vJAH8TZ+LDyNbhJPVPQfFBsG/91br+zdesNUmBNcG2GMrZ+aytcGRy9gtREzt ap1il7iiheuC4qU5EQA== 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-01_01,2026-08-31_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2609010044 On 8/28/2026 6:12 PM, Srinivas Kandagatla wrote: > On 8/28/26 1:37 PM, Srinivas Kandagatla wrote: >> On 8/28/26 9:58 AM, Harendra Gautam wrote: >>>>>>>>> +#define QAIF_CDC_DMA_VA_TX8 254 >>>>>>>>> +#define QAIF_CDC_DMA_VA_TX9 255 >>>>>>>>> + >>>>>>>> These DAI IDs exceed the LPASS_MAX_PORT limit, which will cause sound >>>>>>>> card registration to fail. >>>>>>>> >>>>>>>> Check sound/soc/qcom/common.c, as the current indices (246-255) are >>>>>>>> beyond the supported LPASS port range. >>>>>>>> >>>>>>>> Best Regards, >>>>>>>> Rafi. >>>>>>> Thanks for pointing this out. We can either add the range check for >>>>>>> min/max QAIF DAI IDs in qcom/common.c or introduce a common helper in >>>>>>> qcom/common.h to validate the supported DAI IDs across Qualcomm >>>>>>> platforms. >>>>>> You should add these ids to >>>>>> include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h instead to avoid >>>>>> conflicts with common code. >>>>>> >>>>>> --srini >>>>> Thanks for the suggestion. qcom,q6dsp-lpass-ports.h is specific to Q6 >>>>> DSP/AFE virtual port IDs. Since QAIF is a direct MMIO driver with no >>>>> Q6 DSP involvement, would adding QAIF IDs there not be misleading? >>>> These are IDs that will be reused across both dsp and non-dsp solution. >>>> So it makes more sense to keep it in one single place to allow the >>>> hardware description (DT) unchanged across different software solutions. >>>> >>>> >>>>> would it be better to update the range check in common.c/common.h to >>>>> accommodate both LPASS and QAIF DAI ID ranges instead? >>>> No, that does not make sense because these numbering might conflicting >>>> with other ports in future. >>>> >>>> --srini >>> Srini, could you please confirm if adding QAIF DAIs to >>> qcom,q6dsp-lpass-ports.h is acceptable given that it increases >>> LPASS_MAX_PORT by 56 (from 149 to 205), which indirectly grows >>> multiple arrays sized by AFE_PORT_MAX and APM_PORT_MAX in other >> BTW, the dai ids are already added by Prasad >> https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/include/dt-bindings/sound/qcom,q6dsp-lpass-ports.h?h=next-20260827#n240 >> >> >> You should use them. > Correction, he only added QAIF clk ids, not the dai ids, Not sure why > dai ids are missing. > > That also raises question on how did Prasad test it without the QAIF dai > ids. Hi Srini, Validation on Hawi/Shikra(DSP solutions) was done using the existing LPASS DAI IDs from qcom,q6dsp-lpass-ports.h, since no dependency of introduce new QAIF-specific DAI IDs for testing. @Harendra As I understand it, the hardware interface mapping is almost similar between the DSP and CPU solutions, May be the no.of interface count be different. Would reusing the existing DAI IDs therefore be sufficient for CPU solution as well? Thanks, Prasad > > > --srini >> to your question about increase in size, yes, this is know issue, i have >> some changes to send which will remove the need of this static array >> which should fix the concerns. >> >> But for now all the hardware dai ids for qualcomm SoCs should be in a >> single place irrespective of dsp or non dsp solution. >> >> >> --srini >>> drivers eg below >>> https://elixir.bootlin.com/linux/v7.2/source/sound/soc/qcom/qdsp6/q6afe-dai.c#L30 >>> https://elixir.bootlin.com/linux/v7.2/source/sound/soc/qcom/qdsp6/q6apm-lpass-dais.c#L21 >>> -Harendra