From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EFE51CFC271 for ; Tue, 15 Oct 2024 07:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=12pFpxnrbGxJEph57/6mELybsu5UzTUq2TEGUPb5hXs=; b=VW6DtIl1cRKOiQ6o0XmEoVPMUe Ay7tJl6XxXrXHOVetzlrLpUAiyLklh53PMbYbR9gSr9E2CAsmSKLMh8axVlHLdLwvSN3DBhLuwjKR nT56WnTt0P7ecaqsXi4bBFgC2n0C/x7Qdmwe4IHecLnjBVOjpfGodSKuK34p9dIze313USA8zyAD+ zS2aDttk8gyoPlQrAAYCb948BnxmgXAWfCUB6CEcBwERALuIv6kcJFqKQBCrrYE7gNYaKH78XPo1a h74aEK/91aXzLZludx7ZWnH/Fly4DbB5SoEDZe2uyf+eVcR7LZKe8+3/zO0V26iPs00vZ8CwSPyf8 CP8DG9yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0cHH-00000007Nk6-0a8P; Tue, 15 Oct 2024 07:47:35 +0000 Received: from mail-il1-x133.google.com ([2607:f8b0:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0cFm-00000007NLT-1gOC for linux-arm-kernel@lists.infradead.org; Tue, 15 Oct 2024 07:46:06 +0000 Received: by mail-il1-x133.google.com with SMTP id e9e14a558f8ab-3a3b28ac9a1so1030335ab.1 for ; Tue, 15 Oct 2024 00:46:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1728978360; x=1729583160; darn=lists.infradead.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=12pFpxnrbGxJEph57/6mELybsu5UzTUq2TEGUPb5hXs=; b=N586CdJKK0DZ02SlMWPU6enWt7uO++9u3SMyj8BBP/NZSEcKP95gfobdWS2y0xtQB3 BTIOCOeHh+gx16ViM9elUllJ/+PB4ge/tK3waqBBRoVv7bSidkmpXiT/Y0eF+I28qLbH Fz7FvGvQgaAHxCotX380SOxlena01Mb3jlL9pMBPwo7ujS+J7IfBa657YPdx6G5X3PWw R1mBkH3MtsG5ltUl7rZf8nSl7llKxaLpAKgPrWppqYLzuFxqgNXV7+kvS0e+UvnNsp1A UZQM2rd6pu1WWwpVtIxU5EJK3S6WFbfEGFzmkovekYXq1wwVpolqOa8tg8BBFxoCchE2 emsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1728978360; x=1729583160; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=12pFpxnrbGxJEph57/6mELybsu5UzTUq2TEGUPb5hXs=; b=JILtwJWHosElH204cKE76mMsGe9DsNGoh9kkGbOLiiOoDjBBcBl01jW/2G1sE1RE0T h9slCeeJSi9asvb5puQmE8O0UYNip/Z8Ns+BuvdxYQqG7kq4vXhKF4NMHpiEW483Zwvn r+OBCoqpsMAFNcUgT9183RGIf5jtROB6R77yEzGvzEGJaus17ZIr8RdLuzhG4hut+ZXb 6lSLa8NxZl4tx77Medn2IFOtAbGMOInIZ+AMuUX+BTe2LgRuez0vtW4xJ+Pd4gxDdToW 6mEZtiXuscje0byapUiGHmuoWNVdhiCOHOFtpbgBFasbECu5IJjh6YCL/algW1TdfBgA KKIw== X-Forwarded-Encrypted: i=1; AJvYcCW5/PJ5NmlyzXvh+VFjLuKfatHeCUoLE00W5NL4zuMxcejaWuhWF9xqet+ympt10mUglmGF6bNsCnbGa6pYdGL1@lists.infradead.org X-Gm-Message-State: AOJu0YyMjFcH/54ESbw4t7cqU/9njCV1GfG4R/JcRpwV/vpo5zlMC1nY nVlEOGEc9TXCWkD8K3Q4MgdQ6tPAPx3j4F0jgpDk4GAG+0gwaeoiOUB/TRKZxg== X-Google-Smtp-Source: AGHT+IGwCERemshlQ9IHB/+9DCefPlRwOjvwDRvaGMX9XFXY+6vxh/QCc+0dTnMQeEqWO5nbKdZGUg== X-Received: by 2002:a05:6e02:b44:b0:3a0:9f85:d768 with SMTP id e9e14a558f8ab-3a3bdd346femr12060435ab.11.1728978360066; Tue, 15 Oct 2024 00:46:00 -0700 (PDT) Received: from google.com (62.166.143.34.bc.googleusercontent.com. [34.143.166.62]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-20d17fa48cfsm6533885ad.78.2024.10.15.00.45.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2024 00:45:59 -0700 (PDT) Date: Tue, 15 Oct 2024 07:45:50 +0000 From: Pranjal Shrivastava To: "Peng Fan (OSS)" Cc: Will Deacon , Robin Murphy , Joerg Roedel , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Joy Zou , linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Peng Fan , Jason Gunthorpe Subject: Re: [PATCH RFC 0/2] iommu/arm-smmu-v3: bypass streamid zero on i.MX95 Message-ID: References: <20241015-smmuv3-v1-0-e4b9ed1b5501@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241015-smmuv3-v1-0-e4b9ed1b5501@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241015_004602_497567_8A28C838 X-CRM114-Status: GOOD ( 16.76 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi Peng, On Tue, Oct 15, 2024 at 11:14:41AM +0800, Peng Fan (OSS) wrote: > i.MX95 eDMA3 connects to DSU ACP, supporting dma coherent memory to > memory operations. However TBU is in the path between eDMA3 and ACP, > need to bypass the default SID 0 to make eDMA3 work properly. > > I was also thinking to introduce "bypass-sids = <0xA 0xB 0xC ...>" to > make this reusable for others, but not sure. I could switch to > "bypass-sids" if you prefer. Any reason why you can't use the sysfs to change the iommu domain type? i.e. by using the /sys/kernel/iommu_groups//type AFAIK, the arm-smmu-v3 driver allocates one iommu_group per device. > > Signed-off-by: Peng Fan > --- > Peng Fan (2): > dt-bindings: iommu: arm,smmu-v3: introduce nxp,imx95-bypass-sid-zero > iommu/arm-smmu-v3: Bypass SID0 for NXP i.MX95 > > .../devicetree/bindings/iommu/arm,smmu-v3.yaml | 4 ++++ > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c | 19 ++++++++++++++++--- > drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.h | 1 + > 3 files changed, 21 insertions(+), 3 deletions(-) > --- > base-commit: d61a00525464bfc5fe92c6ad713350988e492b88 > change-id: 20241014-smmuv3-120b24bc4659 > > Best regards, > -- > Peng Fan > > Thanks, Pranjal