From mboxrd@z Thu Jan 1 00:00:00 1970 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 6C1643BADA3 for ; Mon, 21 Sep 2026 11:05:01 +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=1789988704; cv=none; b=ZbXhps0/CGy7gBi6+vqXCiBSeU+kco7h6+G850tk8wJe5Z9QGN4/j3llUOmTUrOX5CMPJbJbN8F2jRLcjdizdFR/o05GL68y4UpPcmqLaxWPV1sKdDZwsTT9XshXc/wGKeI+fEm0tbROPuCDF3juVbAkmRJp2T5JB5Ao+8dB/bA= 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.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="f2JbeP3Y"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="D3hgy5MY" 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 68LAdsTw287261 for ; Mon, 21 Sep 2026 11:04:59 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 4gu0rj0qqm-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-38e8e864ef0so5364611a91.0 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=Zvzfe2QWA5ePMmxYiLoPQPw3e1HNplF4QSfdTlAToCA0kKycqe3nzW3Neend9V5BYW IGyVqbqR9WUG3IyUgtWUzCTt3KqRcBUT/rpiLKQgzvbmbN6vvXb12fx6HtBQ6bmGeSdK hZgPaXTZ17hzvfbVA/VW6NfCJLVBT8xyqfybVyMkpeB5VGbNQOtaYRo3yKMmnKl3tfSP QruPLKQyX5KXFcYIo9PoTZAAebH3vKj0169rmGjrOgpUvBERaTUWO0vw56HV4Hyzuucc ymLWSZalZtrqR3WOl7Tdx3rySNziyyG5onkTN9eMtkRVV97TRaAjevgDEkw6T8hDzjY0 9HXg== X-Forwarded-Encrypted: i=1; AKwUvBx6hpbEVoCsoxZ+pD7OlHJvgOztzSPXW+euX+kavNoCBYyJ47mSvtwezFu2Hd+JQNjuDcR9Cz6yso9P@vger.kernel.org X-Gm-Message-State: AFuF++nQjS9pTqO8YHvTXtPUrZqPGpO65l7G3fVcHHWs3SphanwXrqWp MSnhv9ebWm7CKdNGp3MgKJOQplAMp98Wd2E6G1HTKIjvRBw7rjyEZhA9epbUIuLhAhVIPrbGoG2 VWdd80fK7dCwdqnPa6IscE5L5cmfxUNEG3MLOtIEtqap/T5/d1fO1h5iuTa+2oFEs X-Gm-Gg: AYBFou1d5KSsEYvayISrhvquiy4D4jWo7d70AjbJEomIFbUkYCnFmJmgIaXRa6CBzvR HhdV/P6C171t0L9X5Wiky0PPCMB+XrZrklgSQkLxQeMXXUczzcZy7Q4SzBfjn/XGsIelaph4/pO JB9/79myhHzzwK62B6zYPVoe1bKI0l46Z4YCZXUcXf3zpFBVHUR5zimMqvapr5NnCkn6PT/Qs17 XjXV0+SERObnDLyNnYT6a+3+rofEp5jB/3c+NByT7+CMXJTHncq2f+jJKGAyckglbe/iiPKuLuT J2ST02fIaFaAnZJWHYVs5+8/htnijQ75SZ9nsDOD3p5bq+Ud+e/efqacANDtIZnKFP+Ix9xPuK6 A2+PKkj6ASEF1LBs+HNGdF27RkMKYWq9W X-Received: by 2002:a17:903:1a8d:b0:2dd:c100:7cbf with SMTP id d9443c01a7336-2ddc1007d83mr99114285ad.59.1789988697542; 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: devicetree@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-Proofpoint-Spam-Info: AW1haW4tMjYwOTIxMDE2MCBTYWx0ZWRfX96FWwborbwYf 1L9WZQkBV1HMTNOnrgcsCTLpbvbuyRBTfKuJ1cFYS/MDjxXi8b/fmsb55rA39q6oN/NBkN2W2cW MRf2V4UdFgVzXf+ltWwKnsBvhdIs7lI= X-Authority-Analysis: v=2.4 cv=AsR7T+9P 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=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=9oknD-2m-boB601hatYA:9 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: xy1e1Qyx4WMn2mxVS_Gz4YIjrh-Qkom4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTIxMDE2MCBTYWx0ZWRfX6VlM5IKyrpGD Mq0NCzDye47pvdqeyAgnYjoBNStZVc4okor8l7pdyjdCG4SeSc3ULGvN2A00gCnaXiHWQimgHps hfmMk7MujKRiTc32P4s6hrx1xjkTC6G0F6NzsT22WExXdIN6KAZW2a7T5m3DB4kK/wFyaqfjo9C YpaaIHpNUNQRACjbrG7niSMyjjaKnKamOWGU4EqxgKc6rsBAwutXTSSXQTk98Hc2t8ihFLqE+im kZwCUE05BHVZ1JDUeHKXLh0KOhSp6aIyK7IRDSlkT3dHxbvD1OANhSgzm+Hu16hdTRYLKwGteU8 Pgey9vDAMIJWlyLTfzINYa+y+vFyaGDtkC2nYZY94bPNcMM63dPIN4zpO8ZQTKqdh9I8Sa/ix5G yR09REer208LZU8qwkc6xB6Le7BNNVP9qHfTsHB8oiIt++BY+1M5FMeCbihPtile7s8R0rUxuA1 UArjF/SbONlNmVqmIeA== X-Proofpoint-ORIG-GUID: xy1e1Qyx4WMn2mxVS_Gz4YIjrh-Qkom4 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 priorityscore=1501 spamscore=0 malwarescore=0 suspectscore=0 clxscore=1015 impostorscore=0 adultscore=0 lowpriorityscore=0 phishscore=0 bulkscore=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