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 8D44B286D7D for ; Tue, 14 Jul 2026 05:01:28 +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=1784005291; cv=none; b=lx/KZSCfUrpqBryugvmEpTDGW5KRlOqg4sHaLP53TQe/NWTkbtF/PJC/9YMw1+UArToAXwmY6XxmztniyLHRiB1e8zfilaFD/Co20uKaLUxdUxmrqZmC28PazMTrkyNQ9DwW6gef2XYfDcKHcjZkghptgVVObeffx+aInp9zSvo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784005291; c=relaxed/simple; bh=x7LdWwLo0cnnNjSUljN9XXvIzCWAYsE5+JIPg54yzQs=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=WvOUifJOo2aJ3S5fYlnhfhJ/3+oW6lw7jikRZBiYgtup3lnKiGxQL6DRAcDZj/dooZuXC5mtF9br7LyL6xf49/gyrceSjHMYU8/hE86VNDGn9GWC/5i4ypKMJMgJC3OZkvAHASLf7KJDktSPJzmIlV0fMM1G5tX5ZmQqUqVjtJ4= 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=XyadkByv; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=Xe0A06pG; 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="XyadkByv"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="Xe0A06pG" Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66E37v9q3276684 for ; Tue, 14 Jul 2026 05:01:28 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= f3zDj5t4nnjFf1RljgE9ae+K/Mz+sZ+dAu7FstVntxA=; b=XyadkByvVLCGWmE+ Zc3hOkF0lnbv3F3Weqs0B7IqBtDyT7b5gOZo9BDXc8kbMe8RZlokDJhZrHkh2Q1r joyVA4ACBNCPqMgqcx+Nv3KVZWzyfUyMEtfg8QbceVahDddTMeuph7B5SN0Eh05F YQIiS/29Pz803k9SCvadKbUz8Zwh6Xg8Syzk2yeaWaOAUNTGTuktSsxmxBIBgrcV kPLQ6MWfGNvK2QfdoE/DzF+PUXdmfvYPXyLGOqT/mI5hsHwe2Cc+67CanjmeIpEg RtA+P8hzOH5v7D6yjdjXHSuVcRbhqlyRS70ZJIC7bWdZ2FRg+jSGUope632psuWj SdDxZg== Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fd7gvh8ms-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 14 Jul 2026 05:01:27 +0000 (GMT) Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-84859a64079so7148486b3a.3 for ; Mon, 13 Jul 2026 22:01:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1784005287; x=1784610087; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=f3zDj5t4nnjFf1RljgE9ae+K/Mz+sZ+dAu7FstVntxA=; b=Xe0A06pGh+gOHTXgMtgjgC1oaqUoJ/LT1h+rybNVNKDWDO6fdXrAcq7ivXqL76NwgJ NZBu4CcX7tobXcQdPLQM9IUqbLC/SEjRUTOrhkrEDzOp2De0IJC9LqIRhBJyiPjXaC5h JWxzMXvnARXc8EzRqAR68axaiNzot5LyHLyXXQ1FVvAikmqgBqSuwU3/Woxp/ZfJX3kJ UOEqXQ0rNpAIXgfq/BFidociGeb167N/vSLjEJdnXRRGT2hBzIZbRQSU/MyPV9eFXvGO Mn6ic973cv95+IZwxwSZc/9DJYPBqeiyssKd1nAKN1exqw2C3n3EgdmDFazutx9317A3 m97w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784005287; x=1784610087; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :content-type:mime-version:subject:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=f3zDj5t4nnjFf1RljgE9ae+K/Mz+sZ+dAu7FstVntxA=; b=SI7aYGHebHzDMXrt+e2EKemALA3qD2tz8V+AmQNoAA6bF296SHyU1iZxTL/14C+dYQ YfNM8ye9wISjeNsmm09nseaFRHGT13zl6QIGz+DbbaBvsxiwy9g2MphJwpbDzF40jw5k mF65G6zMZ3s4C7ysI+557sk+QLSlpEwLM8YSAcUDV6oEiN3YbSKTNHo4IKxyMjMJph6A +cDa+++rUGU9VHcYTLm+acO4qVlWpC535gzVd1ae56FkSGpDO0H3htRKUUH55wL/MPtn 1rg0Z5kfyfOS/Ky7lnC9UitnRj3nn85HH7iNdGmkVO3nMdM8URBAq9qLeWt9SBeXoUTb k1TA== X-Forwarded-Encrypted: i=1; AHgh+RoSLd6zThIo+gM4YOHnib3Ct+5ZZdqUAuR9WMaFOPLatUGd+b3OU1XJZ71iR9wxWfc96GuL91JFWERoW7A=@vger.kernel.org X-Gm-Message-State: AOJu0Yyn+VC6Mk7obQ/oe3FjvENtQWz9rqMrBKtJ10FndKTRnGYIWXnw SAsfkFLX0gFiInBJ0cqu9oypeM2t1OzvFxcoQInngO5jmAscvp6ZdxQbr/chYOpoF87lwdJ84Ly npbBgmxE8Qa2b9CuPQVOKM3KK3piw28wIH13/y2tm8QlfixjtnNeEhoq0rEFpaX/nzH4= X-Gm-Gg: AfdE7cmLOyaa0VFM+ohmI0gxJ4FcEXLV8Tj43yAYooc60DeL+TznoBvxEIebrm7hRR1 KBSt1FFqP518bLwM8j+QICKOpkcZNkbnDHbHhpe24v1uYSgHULW7w62v1cCNh9BBR5szTz3kuRI XZ9/bmZajkJleum6l589JDqVegrjkHl40Ph45dO9GJdvId5uBw8Wrs5MkwOt57exreo+gq8mTkh lKV6qHH0EDbn3pFEsDnDLLSTyWDbvC9NHzEII/Qek/4sdhNcL8uYjqWtbsi+lVL+ocRDEBLSOIW PuSnO1IHvd6kOJ8r+SoGQxUQ6hdynBVHCkcrqMoHfkQgwd42h7IvUr4J+eD7klzNTcaURRIIYxs RSWE34l740ffUidFZ+tJ+w0fiKwF628HchWd8PlE6RcE1/Po= X-Received: by 2002:a05:6a21:7a9b:b0:3bf:64cd:c45e with SMTP id adf61e73a8af0-3c35731bd15mr1026744637.4.1784005287249; Mon, 13 Jul 2026 22:01:27 -0700 (PDT) X-Received: by 2002:a05:6a21:7a9b:b0:3bf:64cd:c45e with SMTP id adf61e73a8af0-3c35731bd15mr1026688637.4.1784005286755; Mon, 13 Jul 2026 22:01:26 -0700 (PDT) Received: from hu-vishsant-hyd.qualcomm.com ([202.46.22.19]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-ca5b3c1f77fsm9327406a12.32.2026.07.13.22.01.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jul 2026 22:01:26 -0700 (PDT) From: Vishnu Santhosh Date: Tue, 14 Jul 2026 10:30:22 +0530 Subject: [PATCH 1/2] dt-bindings: dma: qcom,bam-dma: Add optional qcom,vmid property Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260714-qcom-bam-dma-vmid-ext-v1-1-cef87c57b7dc@oss.qualcomm.com> References: <20260714-qcom-bam-dma-vmid-ext-v1-0-cef87c57b7dc@oss.qualcomm.com> In-Reply-To: <20260714-qcom-bam-dma-vmid-ext-v1-0-cef87c57b7dc@oss.qualcomm.com> To: Vinod Koul , Frank Li , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Andy Gross , Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Vishnu Santhosh , chris.lew@oss.qualcomm.com, Deepak Kumar Singh X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1784005277; l=2743; i=vishnu.santhosh@oss.qualcomm.com; s=20251203; h=from:subject:message-id; bh=x7LdWwLo0cnnNjSUljN9XXvIzCWAYsE5+JIPg54yzQs=; b=MOrq10271hFCcD2c2QHE22b+uYCAGDpM3IuW4gFA/UK4wu2vcTXPqSkRTQ3cACXbFdhB2DtcV Rin2jnK8mTcAbcyQPlLiDDKYwK+qleXmlTw79bxOhiKsi0PALhvIMnL X-Developer-Key: i=vishnu.santhosh@oss.qualcomm.com; a=ed25519; pk=G8/AJPecB1feGI7wxArGWGN0PPGQS0GUaD4THQCbdis= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzE0MDA0NyBTYWx0ZWRfX3ONRStt9m84g DOtjKNM+7QMI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us-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-14_01,2026-07-10_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 adultscore=0 spamscore=0 suspectscore=0 clxscore=1015 malwarescore=0 impostorscore=0 phishscore=0 lowpriorityscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607140047 A SoC can have multiple BAM DMA instances. Some of these BAMs are powered by a remote processor that enforces XPU (eXternal Protection Unit) access control and reads the per-channel descriptor FIFOs as an AXI master under that remote processor's execution environment, so their FIFOs must be accessible to the remote processor's VMID; other BAM instances on the same SoC are not behind such a remote processor and must not have this property set. Add an optional qcom,vmid property listing the destination VMID(s) that the affected BAM instance's descriptor FIFOs must be accessible to. HLOS is always the source owner and must not be listed. Co-developed-by: Deepak Kumar Singh Signed-off-by: Deepak Kumar Singh Signed-off-by: Vishnu Santhosh --- .../devicetree/bindings/dma/qcom,bam-dma.yaml | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml index 0923fb189ada9ee435144e8490c64ecb81edc57d..d256340d3f32e81eaa8c1e275c2a99aac888aa90 100644 --- a/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml +++ b/Documentation/devicetree/bindings/dma/qcom,bam-dma.yaml @@ -12,6 +12,15 @@ maintainers: allOf: - $ref: dma-controller.yaml# + - if: + not: + properties: + compatible: + contains: + const: qcom,shikra-bam-dma + then: + properties: + qcom,vmid: false properties: compatible: @@ -29,6 +38,8 @@ properties: - enum: # SDM845, SM6115, SM8150, SM8250 and QCM2290 - qcom,bam-v1.7.4 + # Shikra + - qcom,shikra-bam-dma - const: qcom,bam-v1.7.0 clocks: @@ -81,6 +92,21 @@ properties: Indicates that the bam is powered up by a remote processor but must be initialized by the local processor. + qcom,vmid: + $ref: /schemas/types.yaml#/definitions/uint32-array + minItems: 1 + maxItems: 8 + items: + minimum: 1 + maximum: 63 + description: + Destination VMIDs of the remote processor(s) that read the per-channel + descriptor FIFOs as an AXI master. When present, the driver SCM-assigns + each FIFO to these VMIDs so the remote access does not trigger an XPU + violation. HLOS is always retained as the source owner and must not be + listed. Optional even when the qcom,shikra-bam-dma compatible is + present; not valid on any other compatible in this schema. + reg: maxItems: 1 -- 2.34.1