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 DAAED440658 for ; Thu, 1 Oct 2026 05:58:32 +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=1790834316; cv=none; b=FZZzVrrNL7k4kddwmghjE+Goi9uC6OAU0ViWk1muuuBHqlXQcCGxZwuYmZW4XvAiS1yR/D0/LQvcPtBg1L8motQ4BFpoBUQn31Dy3gcg0cqzXJFC98CPS4Of1lKiIEau1eIsRVyqpFtdn8FpAVIDXmiu8nnoaYoWmfh6LGT3uEM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790834316; c=relaxed/simple; bh=66Bl1L3TtAr1fmZ9488gKSZUz1fFy9fRzV/yEhWpd8M=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=BcF0P7BOL6Ck2JGBZBR65csZi//lhzT5zs2j+/GJYMjtLLMnFDlBQsGz22I8JaxwI7Uh3h4dq3hN8LFQlrmW+aFiQS+5hSD2AXhyY6Ggp+hUN9tvxmrbCjLPe/40Eu6amzHu9p+Pt6BW/q8T+CA1zxEbkTBq6X6V0CdnLkT4aOk= 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=Kz7s0237; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=KkfFeOAA; 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="Kz7s0237"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="KkfFeOAA" 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 6913gTMp542986 for ; Thu, 1 Oct 2026 05:58:31 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= dB3Dn1+CS6BSNSHicf0cnCjOToj6kJLYbJyjq6jWbmc=; b=Kz7s02372d/bdN17 fSX8MgvYVd9QssLzHMIzH1Ek/mHkBcUKKZE+B925r1SW5c9+FxIR5HvWnSsFoZcf sT+0BPBMhruXN+S56F/GBGRgq+rN73Fr/KyYQhaeA/UTjbEdrBha3MGIvhYiMA3G MlLiUMbOj2fYOJJKeDOMHQUsmc0PrZu2sf+IT9q3RvjQc4ZrXIQNHWFRsc+Ysgea TaLLZWTvthSR+EQDqhUhGmgy06YftH/Iit1F0ohAJJMWhcl/SyQ4EHqALsjeae9F Uwpy2DsjFJoufK6t+n/TVKSVEP9KTsLXaxcWaMj47IIS7rCHZ1leP7VWuthhrL6Z 3yXJ4g== Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h16wctgb9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 01 Oct 2026 05:58:31 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-39deda201bcso9968279a91.2 for ; Wed, 30 Sep 2026 22:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790834311; x=1791439111; 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=dB3Dn1+CS6BSNSHicf0cnCjOToj6kJLYbJyjq6jWbmc=; b=KkfFeOAA72X6HG08zYzoN5ERXOoUBirvJ3Zj3DJLU7kOjrKOq4S9wRtX6DK1uZNXwy /u1t4oyfpKsAp34DYlQQGJ7kxmWGQZAUJHMfps0Y7LXJDrBFWr6LvFTKE9ZUhP/HhtJe k5ymC3jFhwm1CMuLw1fSEWeikb1dGf5HSuLi257qV7tapoX/j19UQViW2UcNhP7XVSMr wgD37XrPUczzb3l292b4WM3Hp0U6mDsgIONjQjWRtlI4Skmz3ZkkHX2X/FiI0hQbldCd xKcMPjOwu/ijZl5gqJ3ZMEhYd1p7CO37ZpEzTRAl6HzeHZqXFmidDzDm5oAYuOwmLxRa 8RXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790834311; x=1791439111; 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=dB3Dn1+CS6BSNSHicf0cnCjOToj6kJLYbJyjq6jWbmc=; b=1aooxF4GDo3h5+8eDNbgVKWUEc4ZqAI5IatYTReGFTQAtCpGt1/KcWK9yDP66JMLTF J8Yima/12ewrdN+5c8bHZqPhIbUmJJd4ZVaGEW1PFyYjmbj+yEqWxUhyF1NjNzk7ThLj 64m+TAOfxprYcJOq3TW6bcHkf1zcGJBn+PKjOSvF+93jQdpD0E4L6mDq7KcZKAxrg59x tuyZscofhSEjLS0XCvznV0snsiRYTOnZXNyXNujJCLRvUrb2lYUiVMFNnMqyeMz3bCxs ImTd3iVuV5CxkE9Pyp5lI/KXWBWk2wmOMSM1WIhYFN02fXAUHdv3cRa3KPgkV3MXgpEy PXaQ== X-Forwarded-Encrypted: i=1; AKwUvBxLCj+jy7YkVbufbIJEpN3FRywsA5zFNOeaWUvAuZMRjYkXNKOcYxfa66UB8IUg3ZiIu86c9Sk=@vger.kernel.org X-Gm-Message-State: AFq9FYJLCnrP5lVkcUe0keBA3DoaJLjVWd/4DrmUOW1X97x4Gn6vG73L KejpxtNSdf4Dj2UpWciBZnK2FxjmDXvzxlNSWRXusNjIla2PYjekkVlrBugk+zDt7B2AJltNifv 6T7H6pS9kVy6CDypihX1z+180G2R02YkdZiZYbDNkqQMeIEmbyA8quSY9svY= X-Gm-Gg: AYBFou0pdwLTM44hLpapqmcFyEESWNs0tUT0FtQXR4F7c0sxTip7QYlS6eVMDzjjsq7 a+Q7I9WlrjP+5BLLebhxbdebu2b2J9aQ98OeVkYA+BNI6FT7tHVjUyDYKJsqZ+8p+5QIOOyH/IJ XuBYFeuQqPoEho5Up8Br1slo8SPk+93aC7ahgx22JSuevpW9ipJWmMcalHfv13EFufDuspws90V Mi2aKdR9PDsr8PTn4lFAuZLPIOkc6eCr6ptUBmZwwEg1/WP43NpSRnzFZk+AmoGhq3yoOUZt0hz jDYc91suzpT7Nawc219EtOah/CXI8RTsxoHpPp3/55vW0M+iWuY8Apg9+8NNtoWam40SAWDyVJh RIoWBhLSXsmnEWvrFZCAYIOsgcHvWT/9q X-Received: by 2002:a17:90b:1a86:b0:3a0:5413:49b4 with SMTP id 98e67ed59e1d1-3a4d179f011mr3229313a91.39.1790834310596; Wed, 30 Sep 2026 22:58:30 -0700 (PDT) X-Received: by 2002:a17:90b:1a86:b0:3a0:5413:49b4 with SMTP id 98e67ed59e1d1-3a4d179f011mr3229295a91.39.1790834310049; Wed, 30 Sep 2026 22:58:30 -0700 (PDT) Received: from [10.218.31.237] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3a4f43720f6sm2583288a91.3.2026.09.30.22.58.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 30 Sep 2026 22:58:29 -0700 (PDT) Message-ID: Date: Thu, 1 Oct 2026 11:28:22 +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: Loic Poulain , Krzysztof Kozlowski Cc: Stephan Gerhold , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , 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: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDAxMDAyMyBTYWx0ZWRfXwsLz4JsCIgG+ Bmh0CjQwthDv4czRjmWCfWpJucoaCtt/o6j1ZROvCv0R2Qxi4bhn2+p8Hv7vmYo+UWboLD3Nr7D dXapxCfKdYEeW5Idiy5guSU+ffq7GwktAQCZHCIGgTKeliyy1O22bDv0FlDKoMaBRaKbpl2HIJY wfi2Z4ZQe3SAshYcVPY1RZ216QSlGah2sKTQAWraowAWUZ5/fcXWVkIQq2Khgf62AlJ6Svxi3wY MC9+E1oZB1h5bV73yhX8v620p1SmaISijZaHRzo51AEnF8VOB1IA0eeLvWIulalYMhov770k7IU XFU31kB0jQo2B0QghYkH4HKSFPhvzfpDYAl4pUTt8WomrCvCoAUdWTdaoViyyasFXlTbgFBcm4P DRJUahvAuErem9VEx0443epwGFQeZvB9g+YILFqt7K9+geCtm5oAA3qZ1y3/pgdYAY+iXU1FPCS M41HKZf8E1Mov6rj9xQ== X-Proofpoint-GUID: Fq5hVvqFjPK1bSVCui2I2DoWqie4_xSg X-Proofpoint-Spam-Info: AW1haW4tMjYxMDAxMDAyMyBTYWx0ZWRfX7L/4J8AJsgLB aHVWey2+AdRdGwfrGEUq+vDAWenxIXSeE7KYY0pTghM5ErHkSbhGxkFHdI4X3mrw6lo1wSpsUSv zof5s1x1BkB3RBj3PrJ2Cbm5IYZac0w= X-Authority-Analysis: v=2.4 cv=S51MU4sP c=1 sm=1 tr=0 ts=6abdf687 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=qvNVy7eBxAcGVOgx2IMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-ORIG-GUID: Fq5hVvqFjPK1bSVCui2I2DoWqie4_xSg 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-10-01_02,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 priorityscore=1501 clxscore=1015 impostorscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2610010023 Hi Loic, Krzysztof, On 21-09-2026 01:46 pm, Loic Poulain wrote: > Hi Krzysztof, > > On Sun, Sep 20, 2026 at 12:36 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. >> >>> 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: > I can see several existing drivers, along with a few ongoing series, > using this same property. Instead of redefining it in every binding, > should we consider defining the prop/type once in a common soc/qcom > schema and reusing it across bindings? The existing users currently differ (rmtfs: qcom,vmid, 1-2 items; fastrpc: qcom,vmids, unconstrained), so consolidating them needs a separate discussion with involved module owners. Krzysztof, do you want this consolidated into a common schema? If yes, can this series keep the local definition, with the consolidation handled as a separate change? Thanks, Vishnu > >>> + $ref: /schemas/types.yaml#/definitions/uint32-array >>> + minItems: 1 >> Drop >> >>> + 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 >>