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 6C24D430CEC for ; Mon, 21 Sep 2026 11:05:01 +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=1789988704; cv=none; b=fGYyli8Z8Sz0gysmT3XN36ebIdGSqDMWT5Q8VrZ7tn2MM11MD07rYaP+eXxbv7B3NtkJeDhu4pXPWsQmdphueTyAeMnIbe3pdtiEeP/NeLBItkRYm5vRY+rAndR3zFLZFx0rL30io6gD8k6mpsw67Ft2uaT1Oz82inut38rAiL4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789988704; c=relaxed/simple; bh=dEVLPmqR/1id/BjfqO0m/HlR9Yn1n+ARu0Uww6iNWjw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=nidVlwRW/Gs7SxngBdGjBUK23t5nnhrPQWqANjYxSzq1youOaLgAGbbGum8ohq5Q70ye6+Akg/v6Ru6FKUkfuKRasYua8jKKeDhwJ08hIr5oBJOmpazWvF1rFc5gO/vCTSHEE9er1tL9wGrIIcqUD42YEfMA7nghdLkF0fsEdZQ= 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=f2JbeP3Y; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=D3hgy5MY; 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="f2JbeP3Y"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="D3hgy5MY" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68LAduNZ1926510 for ; Mon, 21 Sep 2026 11:04:58 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= yiBi4iP+L9EAQgTDAxCcxqJX2OiizfQ3gDJCjUFH4r0=; b=f2JbeP3Y0CY3WjY4 +v6PHGf0Jpw5dtCZ6Cydo2OJk+XHGPJK7NCcjTIwZzlOKbuRY+qYfPrFUOoTMjDt iKm77onPxHICG25yJBy8/b7mPxi8YzlE4cSD7Uz7a56NYZLxAWBQGC8icUwDFLq2 +UBETsWCwVEwdyLXOGTF0yxwP7At10IF5IvXgI9+0jvm2NLfTKqSRdMdH+ozNtQI u1sY0mEV9V8IqVVxIVS293w4X85xrxH5G9oG0tp4q+Lo5ySvp4b5pvmjK8DpW8Xp ieUGiCIM02hnhITQMf/EmvurYVHgmMBcLHfuJlPM0qsdmX7I9AG41OFqp6y04tzf K/GMMQ== Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gtt3va23v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 21 Sep 2026 11:04:58 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-398d0010cfaso4985171a91.3 for ; Mon, 21 Sep 2026 04:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789988698; x=1790593498; 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=yiBi4iP+L9EAQgTDAxCcxqJX2OiizfQ3gDJCjUFH4r0=; b=D3hgy5MY0estKeB9JTTbOIu24HZVRkIFn8FJ1lOyrXtD4O7bGcb1UJ4uc4+kh4U55g 3zGUMZQMIW0D5NzudYhkKRhNRr2rq4+s8g3v6nSR3ShQuXUJ+3cm8LeWgcwxAV2r9HJt 5Mpq/LiEI3x7bn6N06bMNzJJ/Or5AZpoTvlRxDNg7UzCiFAAt+oVZhM2HWdAsSonYs42 IyY9GfV6FJQWCgD0drWUire9c0elJjH1zcPqPTxdSj3TNmKKEPA0jwQzML2KBw1AwFYd 4MyElry5VDKeqhFUSRdfPJaLwfEC1v5jAZsoaLtvXqeA+JYAXGRxgJgFY+f1H0q9Ba2A 2CQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789988698; x=1790593498; 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=yiBi4iP+L9EAQgTDAxCcxqJX2OiizfQ3gDJCjUFH4r0=; b=e3aXH1JA4iDPze1B9r1HybYOXtqEo/V2KpGIP94YCQ6udiKnr4ou6hbPbkB/hZOiVs ndqqDCiGetsV9A06M8r1wSOs9G0mfbyHi2NOGQO2MYApDjpvlpwOc+IfpaakxvwcWdKw dRcFP+BtGT7SBZdQRV9xSDMcv8XMGM8ZukT0Z+0Dxb52m+sUkRmZjZaZ2G/AVnpwq7xm ZxUTqn5PBu9AVAzwlQ3mW2lH0bNyCvsgL1FFc6Cm5Qni3lsw4up7ay3lCbhu001kFK9w dkQvmfjbWN7jizEyMbutVfJnTfwhcLRhU37ziiE74SqIuFFW6Sx5BcfHpuLTA4MndcU0 kO3A== X-Forwarded-Encrypted: i=1; AKwUvBzd1ynmqQl93/5XxKpzUSEWleVxkf0MNo26dCOinJJ/mR7Lyk871nrLWUO/S6iF2wpIdYEBaKk=@vger.kernel.org X-Gm-Message-State: AFuF++nWSMuqZBltNUX5cepHN6BFhpcgoDCbYa6kMMtegU1ujioC4/85 aEmt8fO2wNOZFIY4n/K0wrlAq5z9t+nJDDLMoVoEGuQy+TnqUYK3BxXY1TsCpHloa8aNK1gGMqL 46eyr6iUjQ+aSc7zMgjeJKGPgn+E5rmnJnyd1OUMhJ5B+IZX9bs+M8F7xoDU= X-Gm-Gg: AYBFou09RBz6CFlkhEFMU1TRLSYwVkve5eN/E532lkVz5WRyk+qH7N4tSz6GBZRL0EO Afcif6PZRGdtSnGQwRS6zoTksevN2iUSxQiWUrPjdqeSMFicjP0+F019yBFB71dccM88Xrk5HC+ pTvDliMVIt0Iwod3ExBSjtULMIU60othKBNL2902CPcRoivlWpdSIcvRRicMkEy+psRUklQEcWq UcDdWsymJTepuMR1swPgmmQox3jkf/Z7y5YNsOyy+2vLUoMXf3eoAP4iOelPXXLTT6+h/0ZAHyg YgtnAPE4HAxKBFP7w4CUUhsvFN+LReVEHczxL/UXnUxxZSbso/zump3U/MAnHQ5+109n4QJq5ub 7SCpQ8lXxg1+j6/4n2hLqsgLNFY6DIZZ1 X-Received: by 2002:a17:903:1a8d:b0:2dd:c100:7cbf with SMTP id d9443c01a7336-2ddc1007d83mr99114155ad.59.1789988697531; Mon, 21 Sep 2026 04:04:57 -0700 (PDT) X-Received: by 2002:a17:903:1a8d:b0:2dd:c100:7cbf with SMTP id d9443c01a7336-2ddc1007d83mr99113765ad.59.1789988697073; Mon, 21 Sep 2026 04:04:57 -0700 (PDT) Received: from [10.218.31.237] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33c331433besm30282459eec.16.2026.09.21.04.04.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Sep 2026 04:04:56 -0700 (PDT) Message-ID: <81962aa0-a6b8-460b-a9d3-c325a453de48@oss.qualcomm.com> Date: Mon, 21 Sep 2026 16:34:49 +0530 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net-next v2 1/2] dt-bindings: net: qcom,bam-dmux: Add memory-region and qcom,vmid properties To: Krzysztof Kozlowski Cc: Stephan Gerhold , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Loic Poulain , Sergey Ryazanov , Johannes Berg , linux-arm-msm@vger.kernel.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Deepak Kumar Singh References: <20260920-qcom-bam-dmux-vmid-ext-v2-0-ef5ca2178378@oss.qualcomm.com> <20260920-qcom-bam-dmux-vmid-ext-v2-1-ef5ca2178378@oss.qualcomm.com> <20260920-humongous-raven-of-charisma-bb99ed@quoll> Content-Language: en-US From: Vishnu Santhosh In-Reply-To: <20260920-humongous-raven-of-charisma-bb99ed@quoll> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Authority-Analysis: v=2.4 cv=Ytia1IYX c=1 sm=1 tr=0 ts=6ab10f5a cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=9oknD-2m-boB601hatYA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: 6vWOpWBH_68ZXCGnJLxpIimdURW0F8kJ X-Proofpoint-Spam-Info: AW1haW4tMjYwOTIxMDE2MCBTYWx0ZWRfX0EO6Pk7lNPGw ra6bM5T4iPYzmUm4AVj1SLBiP6wOcRd1Q9PWdyO1tZx4QvOnSvqEklkzGM/AhrMe5qB4WPkkgkg veTYeyFvgbOcadwrOmhBxCpQJq+HhJ8= X-Proofpoint-GUID: 6vWOpWBH_68ZXCGnJLxpIimdURW0F8kJ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTIxMDE2MCBTYWx0ZWRfX8yBsxIj6HHIa fr2aD+DrjnU1t+GzzleS1QEjUHM2FA7QcVktYLepgUdHFLiUythRykxe3ttaVNHquZ5IOvEDrDl C07AamyJwZJCZ+xNtQNM/xAGlmvoVcf08hlCvFbLtaS6hUB1UpdAIYyhfJyBOMh/C6F7UgX0btM v+FFwHvOMEVeDeIhwBED/v1b1D7E3ZfwwOeX/eYizgdH4wrro0M9Dl2m6OFZFb89GjRVMKyEKL2 xZH/i/IIRe4SAsXnr6609SgOinWfVj7zY5Ol6X2K72ru5ANSzsla86MW10AfsttABh2oNe5COTj TdaBjueWzsM+on6N8ad796Q4BzewKKPBtyS6mDz2ViEv6wNrG1ZoifijT60Oo3EG2pqC/DJBWJ3 Iv77DBPntROOXRxOnkQ9HqnzlATt6N+rahQmtdxeItDfBspqKb+mx15NQS5yiO14KxazhbaiON4 KR/vUni2u6RcPB2u+6A== 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-21_04,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 bulkscore=0 clxscore=1015 impostorscore=0 malwarescore=0 spamscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609210160 On 20-09-2026 04:06 pm, Krzysztof Kozlowski wrote: > On Sun, Sep 20, 2026 at 08:32:29AM +0530, Vishnu Santhosh wrote: >> Some Qualcomm SoCs, such as Shikra, run the modem in a separate security >> domain with restricted access to system memory. BAM-DMUX DMA mappings > Then this is specific to Shikra and should come with its compatible plus > constraints per variant. In v1, qcom,shikra-bam-dmux was used to select a different RX-buffer allocation strategy. You asked me to drop it because the generic qcom,bam-dmux compatible should cover that use case. I followed that feedback in v2 and used memory-region plus qcom,vmid to describe the optional firmware/security configuration instead. Could you please clarify whether you now want qcom,shikra-bam-dmux restored specifically as a schema discriminator, so memory-region and qcom,vmid can be constrained to and required for Shikra, while the driver continues to match the generic qcom,bam-dmux fallback? > >> must therefore be constrained to a designated region that can be shared >> with the modem. >> >> Add an optional memory-region property to reference a restricted DMA >> pool used for BAM-DMUX mappings, and a qcom,vmid property to identify the >> remote execution environment that is granted access to the pool through >> SCM. >> >> Require memory-region whenever qcom,vmid is specified. >> >> Co-developed-by: Deepak Kumar Singh >> Signed-off-by: Deepak Kumar Singh >> Signed-off-by: Vishnu Santhosh >> --- >> .../devicetree/bindings/net/qcom,bam-dmux.yaml | 38 ++++++++++++++++++++++ >> 1 file changed, 38 insertions(+) >> >> diff --git a/Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml b/Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml >> index 33746c238513d72366bc52359fb10f275475b331..5351269b0ab72ede808ae47b55d57580af209038 100644 >> --- a/Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml >> +++ b/Documentation/devicetree/bindings/net/qcom,bam-dmux.yaml >> @@ -72,6 +72,24 @@ properties: >> - const: tx >> - const: rx >> >> + memory-region: >> + maxItems: 1 >> + description: >> + Phandle to a reserved-memory node compatible with restricted-dma-pool. >> + The BAM-DMUX device uses the pool for DMA mappings. >> + >> + qcom,vmid: >> + $ref: /schemas/types.yaml#/definitions/uint32-array >> + minItems: 1 > Drop Agreed, will drop minItems in next revision. > >> + maxItems: 1 >> + items: >> + minimum: 1 >> + maximum: 63 >> + description: >> + VMID of the remote execution environment that is granted access to the >> + restricted DMA pool through SCM. The local execution environment is >> + retained automatically and must not be specified. >> + >> required: >> - compatible >> - interrupts >> @@ -81,12 +99,29 @@ required: >> - dmas >> - dma-names >> >> +dependencies: >> + qcom,vmid: [ memory-region ] >> + >> additionalProperties: false >> >> examples: >> - | >> + #include >> #include >> >> + reserved-memory { >> + #address-cells = <1>; >> + #size-cells = <1>; >> + ranges; >> + >> + bam_dmux_pool: restricted-dma-pool { >> + compatible = "restricted-dma-pool"; >> + size = <0x40000>; >> + alignment = <0x40000>; >> + alloc-ranges = <0x80000000 0x80000000>; >> + }; >> + }; > This wasn't here before. Drop. > > Best regards, > Krzysztof Agreed, will drop changes to example in next revision. Thanks, Vishnu