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 E49E753B613 for ; Tue, 29 Sep 2026 14:58:36 +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=1790693921; cv=none; b=YHtJRI8OumgRQYDGBxJ0e1AaG/Nm0jirNec56ra2MVYYAWQZSC7pn4Bo/Sv2CLHZHuZf+ZVkynuOuIrYUv+HpH7s866jJJ7wZVBdVUYZAJq5/A/ezBSIsa9pgQIi6soMATe3v0OI2L7kIqWATgdpom34B3b/HHeP4qTmPTQ2uIA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790693921; c=relaxed/simple; bh=EqAVcdyv3bdh5PWijfipsTsljh3WRwAlRWBBEdBJcZQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Q5i822MwbOlrLYALV/IVx8n8nDRdu26CQ4BWWi32mVFm+/UgGiUNytYZ2GDzddnNGJL3iJqkbs+PPsQ1mX6cHNNt6s4OMvyvoQ3Up9vPQvqC2Qhdq+dhf+dFWSF6jC3x0hzhDtZLk5i1iKJpb9ChQSTaNahy32g6vjDyXEyN80A= 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=h6+S91ec; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=c3Mp7Dry; 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="h6+S91ec"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="c3Mp7Dry" Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68TCqkVI204985 for ; Tue, 29 Sep 2026 14:58:32 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= Cfew/DLGWZ2OWSHmGvnAzyCDWtCayHiP7Z8vNY3IhS8=; b=h6+S91ectDgEyORG S1jC5DakWLX5QfDmaOXupVyAUzAGuOXi88d6bBwKqvIQGCsuL0YIu0GSI5K1dDyv J8bOw0UDSh/3XHF9GvSrmnSntzt5mkMJnVkDNApC/xgYaA907OS93mW0HS4eWo84 /ezJpFIWlELErhW9JlZLMVPLlsWf3H6SfamIkCmxuEtq9utV7ic+QELL9ySiwBsu eVInksBK4gqmVApUF1aFfQ0+RaL0LrZoA2ObNub+uBefTLRjEALsut/maBO9QbB7 n4Iuk1yq4FMubDnE2lSgErY/P1CdAPQh85Hw0JGmgDvEaMLlqdQV+YecfhY2koSr i00vmQ== Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4h0144uks6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 29 Sep 2026 14:58:31 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-91454ecbd2fso74459726d6.1 for ; Tue, 29 Sep 2026 07:58:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790693911; x=1791298711; 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=Cfew/DLGWZ2OWSHmGvnAzyCDWtCayHiP7Z8vNY3IhS8=; b=c3Mp7DryE6lf5INug55hBEZKzqaeciJzfTFBKGnNP96nAfwT6SRjxyQnxHNzn7WnhM xRdEZLJMV/RfewuvtqKpsQVQ+YJtLoJUer4FY9ti8kjlpDvtKcZqop/YotW9axgfGxvr bWbLhYQdQKAhuuGEpI1uzQ3TjgOF6TTq7EfQ5F6JHBZ8175dIsVTVs6C1mxNZLkL52bm yNoRTdSYB4Z80oHKbg5D3a8zuFVI4N2m8OZSDuu+3fPAVEqKsDzhE1OyyVtNFrfIacP/ yKg04supWUBfXLg1L+2jgfhP2GPliaMAXceWUMOcDZa5VmXTABMtuOS/yAaQj39ATygB 0OQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790693911; x=1791298711; 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=Cfew/DLGWZ2OWSHmGvnAzyCDWtCayHiP7Z8vNY3IhS8=; b=nVPqjl+e8jkKCexm41LwCxE+HrqSiqvVXjAz3Xab6AvWA0xFr8dGfjsK5LLuhYs9Gj R9rNN9IlQGGNxlbgb3qXX1PJpwvrh5z/qDCCmo3QOLS9uU6DBdWSuXtSG7v07rrjLPxj mG4UfLbB96+4vel9CHfG0YOokb59/Drv8PKBU1968l8+bLs2JeeIIOZcTdRXbQSGCaVL rn5a7MicuFYXZb/PJ1VPnGgKGMZEdLYEexQ5V2tPEOGna0Tg562sdtMKvdsTDuwnG6uU KZgRYgmSUoN6e+llBUIVPc2UpZVd1n7dtYFi1VBbHCdz3S2BErBT65VBTReEdMZGhavA fx3g== X-Forwarded-Encrypted: i=1; AKwUvBxtqAb6EAUWJcYX+mZsUjIOUMeeMQHQ34VoqO1ZQK07Agjq5DtJlqtWbuTyPeXBTciFBJCHlxh3/kHJ@vger.kernel.org X-Gm-Message-State: AFuF++lenQO6vED1hOWpnHgoUZM8AVHeNuj7YGt9JssFvERLyIRwr6oy i9Iyja2f0jReGXiYIQ+2c6rYTJASW6U2fZFqhi3gkV1+RZEnsMspj7xr0HokG7d9CIlqbzZ3meZ CuPzpjKjR+ILe5REfW4SW5x1m0SeUswAjGWOtTP1r8+jeOzri0IefFM4JDP2Qd2jP X-Gm-Gg: AYBFou0647yDD7eQCII7yiylMcJtlSKQKYoeq3T48/bgtvqfs804g2SXluXAno+uKCs yCpxJQx+i2Ta4qu08uTBuRLjkFXRznW+uEVjVk6Di3NmtpE2ZsNFMsR+Yp46v9Q/ujApeuhbM/i d3eQe+KjrZhmUFgYhkdC0sehdlgyyILApdLV6RIwHfxh1SKFZO7dkdNnM5neGBFva6qO0Nxlpj4 Kj5RU9XDcOwmZDGDwdd7SfFCBxembFntUM8eNENtZ9wrbjxc2Zut6PUa+gyZZgaLPM4cYFlqnqV tP2WCwV+ukW+ST2i3IW6yZt01QXJnSFLEje+z+FV+3prU/TYb9/QIJlU31fPE49ITm28uXG2Af6 GfvXT5g03Oqw6lmyNCjPCD7KM6CnFB2Hv34J7 X-Received: by 2002:a05:6214:390a:b0:914:4601:dfd8 with SMTP id 6a1803df08f44-9144601e535mr213690346d6.10.1790693911023; Tue, 29 Sep 2026 07:58:31 -0700 (PDT) X-Received: by 2002:a05:6214:390a:b0:914:4601:dfd8 with SMTP id 6a1803df08f44-9144601e535mr213689766d6.10.1790693910318; Tue, 29 Sep 2026 07:58:30 -0700 (PDT) Received: from [192.168.0.116] ([124.123.146.251]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-9178d377464sm12112356d6.41.2026.09.29.07.58.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 29 Sep 2026 07:58:29 -0700 (PDT) Message-ID: <4b149801-0846-455f-83aa-a222219d01be@oss.qualcomm.com> Date: Tue, 29 Sep 2026 20:28:22 +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 0/2] net: wwan: qcom_bam_dmux: Add restricted DMA pool support To: Stephan Gerhold 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> Content-Language: en-US From: Vishnu Santhosh In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI5MDA1OSBTYWx0ZWRfX9Mgx+7RtWPMh pov+n8aGxbgZ/iPo7SgYnrj1J7uPoPC4AuAkBTFUT+YtEllwInqx5bMMAntbUmrW29YWFRNhBB/ gzWp+vuTFQd3DSsoun+UtVxFPECP/e6Kco2pqpeTBM5vAjnu81vfYbW2s3DmaguBYkeafU4IdFr e76YAenzS9nGQRXiyDXjRpaxvUWcuwKSKZdeQV21rjtiWWOrSECkDh58QIPZPaMmX1HJPVALz4o L9SVfvEIXnNfVPE3x6VDM0Yp08o5KD0dObckkjRqqgtuKtXaWYnx9Pyy/72yJRdK+tbKQxKgkJJ mYHaZ9tcWWfub4Thn76CeHs80gHLyFSPhoKVOg0x6ZpBH4HUL6DbuPPPfFc35CyjcR+fykg4Lvo hAkCoyqrJ2mK3/f5IatolsKaJkhBCmzIZ0R6m/J511sqLYgfz0hp0pjb1XE11fY9X8nA5Ct9CD+ CZxK6AYAK3Ia6awckJg== X-Authority-Analysis: v=2.4 cv=FJSOVOos c=1 sm=1 tr=0 ts=6abbd217 cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==:117 a=K/78aEDNEn2Q/Yuv7mVN5Q==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=uW-ob52F1wccIURrHgMA:9 a=QEXdDO2ut3YA:10 a=1HOtulTD9v-eNWfpl4qZ:22 X-Proofpoint-ORIG-GUID: DcU75aQCYWGyhSSx4fM0K79yo646BHXE X-Proofpoint-GUID: DcU75aQCYWGyhSSx4fM0K79yo646BHXE X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI5MDA1OSBTYWx0ZWRfXxDP/VmQTHmOv As1WNjpFghzdgoWmnQo8iK5ptY5Q5vVFFc2MLhAYLKOHmzf4MjYOECLByA9DveM6+jqf0RhGiR8 Fx3MXYcwuz1cwS+XF+3XdqETKmHU4JQ= 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-29_04,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 clxscore=1015 malwarescore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 spamscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609290059 On 29-09-2026 01:44 pm, Stephan Gerhold wrote: > On Mon, Sep 28, 2026 at 04:02:47PM +0530, Vishnu Santhosh wrote: >> On 20-09-2026 08:32 am, 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 >>> and BAM descriptor FIFOs must therefore be constrained to a designated >>> memory region that can be shared with the modem. Accesses outside that >>> region can trigger an XPU violation. >>> >>> Add memory-region and qcom,vmid properties to the BAM-DMUX binding. >>> When qcom,vmid is present, the driver SCM-assigns the entire restricted >>> DMA pool to the local and remote execution environments before requesting >>> the DMA channels. >>> >>> The restricted pool then contains the BAM-DMUX mappings. When the BAM DMA >>> controller references the same pool, its descriptor FIFOs are covered by >>> the assignment as well. >>> >>> A related binding change allows the BAM DMA controller to use the same >>> restricted pool for descriptor FIFO allocations: >>> >>> https://lore.kernel.org/all/20260920-qcom-bam-dma-vmid-ext-v2-1-4dbbff0e57c8@oss.qualcomm.com/ >>> ("dt-bindings: dma: qcom,bam-dma: Allow memory-region property") >>> >>> Signed-off-by: Vishnu Santhosh >>> --- >>> Changes in v2: >>> - Replace the Shikra-specific compatible and coherent RX allocation with >>> memory-region and qcom,vmid properties. >>> - Use a restricted DMA pool for BAM-DMUX mappings and BAM descriptor FIFOs. >>> - SCM-assign the complete pool before requesting the DMA channels. >>> - Validate the remote VMID and restricted DMA pool configuration. >>> - Link to v1: https://lore.kernel.org/r/20260714-qcom-bam-dmux-vmid-ext-v1-0-3f29da7cca76@oss.qualcomm.com >>> >>> --- >>> Vishnu Santhosh (2): >>> dt-bindings: net: qcom,bam-dmux: Add memory-region and qcom,vmid properties >>> net: wwan: qcom_bam_dmux: Assign restricted DMA pool to remote processor >>> >>> .../devicetree/bindings/net/qcom,bam-dmux.yaml | 38 +++++++++ >>> drivers/net/wwan/Kconfig | 1 + >>> drivers/net/wwan/qcom_bam_dmux.c | 95 ++++++++++++++++++++++ >>> 3 files changed, 134 insertions(+) >>> --- >>> base-commit: 8830e65ed46de41f849eefb8ba227d4852c460f6 >>> change-id: 20260714-qcom-bam-dmux-vmid-ext-d9289db310c1 >>> >>> Best regards, >> Hi Stephan, >> >> I followed your suggestion and updated v2 to use the restricted DMA pool. >> >> Please let me know if this approach and the implementation look reasonable and >> meets your expectations. >> > Thanks, the approach looks good to me. You received some comments from > others and Sashiko already, so I will make a more thorough review from > my side once you have addressed (or at least considered) them for v3. > > Thanks, > Stephan Thanks for confirming the approach. I will address the remaining comments as well, so that you can proceed with thorough review. Thanks, Vishnu