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 2686F49D59D for ; Mon, 28 Sep 2026 10:32:56 +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=1790591579; cv=none; b=uCxrLAhXdIm2scOxT+osMQUkFpovJgZzqZYuZ8wMc6idzSRE0DHeBvvq4Yy7T4hwIC0ppYkYrGmRhc3pWLDdHrXjU2KGwGJ5gCQ6BzZLYFFURCE4IyBSCg7vb6vC5Xa5hf6i9eFIZGwwywI40Z854r0ODi0EQJb6ZNnYDMfnBrY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790591579; c=relaxed/simple; bh=2XNAhu9CxceJI8vwdqpOVTsl9oWO7hi2cpJ1xfPfc28=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=KoAM1lmY9zLR9lencZJt0XW4bbjQLcKA1jSn61p/Vx25yKWkjajVjnY3DbFazZfu3CNRbZsihoPk8bAV93YNAe15Yr/KW4IzA184MFHU5c3WPi7DsCLa5AO5cioGSwAcbevcgBnrnc+6U5XyLdtuWoQUrTPXNo1hcPKzDWORaU4= 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=M7ZuDK+7; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=i0q8xq0q; 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="M7ZuDK+7"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="i0q8xq0q" Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68S9MmUW3879670 for ; Mon, 28 Sep 2026 10:32:55 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= vxstwlbKuBUJawkY+2kMsXbkr7mK4XNxlqUWYk9+Y44=; b=M7ZuDK+7COYZxi0/ Ix6tg4JvaZXPRQcI7YYJjAMW9atxYiiEaKdJheVVdQsM0/ONof3w3FfaH2K1U5Ks d7aFhL/jQOVGrZryfFZROOA74sAQO7G7KA/5/78eeazdV5E3e8EZ5W5VzvH60hL0 Q4VdKsIfuUxGTf34swjxvZEbyauWo5uqx4niqQKFCBJPfB2iXBfxSjn31GdsHEeg ISBBzhX1ZHjRsdgZ183v72vbCLFLljmudOUSeELEEA1S9EkWK4x4dD6hBSsl/s7R bJhMmKL4gVN2WuU3sgiFDXzS04m9U1Lavjd0/DyGdAneJbaPAZ9ANy9M90hU5aq9 ZbYnrA== Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx77jwkgx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 28 Sep 2026 10:32:55 +0000 (GMT) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-880e099bba5so2667841b3a.1 for ; Mon, 28 Sep 2026 03:32:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790591575; x=1791196375; 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=vxstwlbKuBUJawkY+2kMsXbkr7mK4XNxlqUWYk9+Y44=; b=i0q8xq0q5FrEoEKlkdovtSj5HmwBMAHx4ZlRjVuB+NUeAdlJXLuCBV7RkODmbRr1Rn 0zIrOnMJEWARzEEy6QajnbScGP8251JqYZJtSkjdeKycq7ahG/WJPiSaV5wCzd/SB4jv +VEC/eJjMZ6m585hXIv6y1YeLbgxsWIEO+NQX/5Ij4897TkwH2ZTQz0st/8swuu8rnY/ WqUqeHZISJ/KqxbJfbaqMGsTd2YpSYiQUbEoI7cu0DNT1TO7aghCSx8srtsKTdckrqib BJNPNW27zSL+P3a3QaUYfmY9zHbSjWx9CdtdW5souQj9ZLebJujAtRbXRMTqyhhYvS1x sL6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790591575; x=1791196375; 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=vxstwlbKuBUJawkY+2kMsXbkr7mK4XNxlqUWYk9+Y44=; b=xQDj/6RYQ6297Z34tqTR1CUpiSmU0WB80lxDfCs0yF/1eAtE1SFPdHxRKNDoE73UFj Z8SHzMu02QU/sZZdBYrnY/gn7L8GrknMcv6SqGkqfXog4e3eDqD8QwNt7Lb0Q+m/spWi gcrA3dkxPyu59+X6P6jJkzyXX5be3keir9zDx3NQuJx7y1xUrjj3J0TnrS4FrcRWtU5t n3ohh9ENiL+VyVDsiTIII18pOxmw05fKHcmmiT3McOm36VaKEhOaj7uvy0zlua2Zdv0L h/qX5cfe2GEB8QV+p7jA4arn38PxtwF3g6Z2go0wj+CPKrZylaBFK+BVL4fW9RiUjIPa Ewig== X-Forwarded-Encrypted: i=1; AKwUvBy6S9VVaIiYBxY7J4Yaeihd0k1A+2dABwUF7EJ3B3/aWmvbPtB1NYHn6w7rsGgGd7PIers6TnLHURTc@vger.kernel.org X-Gm-Message-State: AFuF++kR44uIvmSsuJE3jgjLmDEcawxpj2jywufp+J8IrMxLgjp5P9X+ Awt1pbowhBFBTbaPgh83gA/Fzu2gzqJqdC61LYOIBXND9FN1gtz1fQ1nlWdibtZU0mCXjJvMTVy CoO2zCUaoUPCn0vpZPx8xu6HB82FEIMWgkk+QT97hfDEdz+/SIh/tCw1pAwgEKB2p X-Gm-Gg: AYBFou1nmpuBtUFWeZzGfrKlJ8Cn1E7WFkJde70NyHZ1uoWXCyd2i6GZhNGLmet/bMR WYGgP01FlybOO6bnxaXMd5hDJevYYzf+qmMz8bgmN2SNViupBWYEmHFUydfdxkZsVwhrVTOE8xo bcFtl8MNEge/EPlGi0zpBiBrNM6nuP4DVU8ULPjJ4T50sbfQREcEze+34DJACy6VkJyJ7hvGYtI Tzi2KUaLtmGxZXKL78JuhLYOxWoEScgvVBsDN1SBOsqF+/lvNygdmt3eUVxNEN1P6giMnfAoQf7 Ci5AsZe3cSDa49Ua3pE/lqR0XlrK7PXteWqRG7JG83+KvZ5c7cPp3ndX8K9DQ2sJwLp9eSNy8Oq 92lFLI03AH6F3lp/882gpnMG2d+JGsH+F X-Received: by 2002:a05:6a00:9095:b0:857:7337:5dba with SMTP id d2e1a72fcca58-8802a7ad603mr6283599b3a.24.1790591574587; Mon, 28 Sep 2026 03:32:54 -0700 (PDT) X-Received: by 2002:a05:6a00:9095:b0:857:7337:5dba with SMTP id d2e1a72fcca58-8802a7ad603mr6283581b3a.24.1790591574117; Mon, 28 Sep 2026 03:32:54 -0700 (PDT) Received: from [10.218.31.237] ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-87fea88a1a2sm3854645b3a.25.2026.09.28.03.32.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 28 Sep 2026 03:32:53 -0700 (PDT) Message-ID: Date: Mon, 28 Sep 2026 16:02:47 +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 , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Loic Poulain , Sergey Ryazanov , Johannes Berg Cc: 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: <20260920-qcom-bam-dmux-vmid-ext-v2-0-ef5ca2178378@oss.qualcomm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI4MDA0MSBTYWx0ZWRfX610wU4NyYauc qYn+pX4t9N7wWI442t8NkVfBiScfOrXwj3UUE+WMdfoBk29nA+HQEhkENkgjmg6bRyX3+hUtOcV C2EqAW1rZcGYny4eJ2f9C1axUBNvltQ= X-Proofpoint-GUID: kQ5E2HHBBwcbz_MQUk_BG7zOIsD8KMaC X-Proofpoint-ORIG-GUID: kQ5E2HHBBwcbz_MQUk_BG7zOIsD8KMaC X-Authority-Analysis: v=2.4 cv=J8U/fwnS c=1 sm=1 tr=0 ts=6aba4257 cx=c_pps a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=fChuTYTh2wq5r3m49p7fHw==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=farQdCg5IzuLFFoMD6QA:9 a=QEXdDO2ut3YA:10 a=IoOABgeZipijB_acs4fv:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI4MDA0MSBTYWx0ZWRfX6kOQOKSdv9zQ a9Qrge8OFnTxS6EBtifst3pvwYp3AyvoE3rPAaF3YSlDapP8F3EtFOZIoN6KTcJsIh72YjJDFHO led+ugPXw6YY8EzZYFsp8nt/BgeugIfUGy6B5uDESgWkdem6CyXjZQ14l4SqigRF88WFPwf0r3F lqyeNHDi99iOkniw0AoSz03KIwt21oKVDi7iSwMsYHICYYGxBz6ja4mgI7mLJpiOGDmwXqxu3r8 vWy7K3injCuT4E70MdaPz8ejlKNkTgeJRTCwPrrm5tkgrDJL1Daos/doafQV4q7zqqb+jkhjqrb G+20HuJw5Xez0mjUJPuxiG47E8V000mcbeMaNQLSYIenvyJY1Vnq6+40G7d+dB4BK9J0Fw/5NBf iqE5tnPpYWfu/3EFlE5njNJ+G7sNDqcZXhgDSPTJYM8jpuyGw01Z+Jwz0InDRGx8lN+gfcDO1E5 1r29DTAYkacNyBKI80g== 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-28_02,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 spamscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609280041 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, Vishnu