From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-il1-f180.google.com (mail-il1-f180.google.com [209.85.166.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3FD4A1C7299 for ; Tue, 15 Oct 2024 07:46:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728978363; cv=none; b=YNv2aAFKHuS/hzzxHN+2Eu+Lk6+ua25zXMod8Dq7fQZi5AgGspgOq0VDuCFd1X83m0CNPKJKO+I+0ivO7D8BnI0nJ6nQxHqKK9bhkXFxAQ54UnAMHUZlcqlVLHQSFhvLnKCTIhPMn7LIs9s5uhYT4O0LG6GkfM3yaD24guZZYhs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1728978363; c=relaxed/simple; bh=vlXtBKVnXfGbKLkE/qDj9i17mSuFZ64HL3fM0HBPdDI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=HiKdXfFufPj1r4CvSW9FkYCv6ljLqNfyppD0drbrbdQOdnpRr18rCWIMfrxxHWhIguHVOChIOU6XViJIqo+Haqi3mNZJ8lMV4g9HQ80/U2e4MRAIfX51f490zLb8cC4X5/FY5t/a3eCwMlzUa0c7zaSVJBqnsat4rWoJWtXBWHs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=nZxl2E8+; arc=none smtp.client-ip=209.85.166.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="nZxl2E8+" Received: by mail-il1-f180.google.com with SMTP id e9e14a558f8ab-3a3b3f4b2afso1071355ab.0 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=vger.kernel.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=nZxl2E8+7by3W9/NiYWssbklyl3ELkKGdZQIcGZAXIu0/7nxv86eTDQVfZ60NlAKBa wdPTU9vEw+qqkcoLAcjVnV/idedBH34jAz0ul/80fAGcamq9/0YaCmfXOtPzWoWWyTXW FFShkaH8IEf5Ud7AH+PJdHD5oWQ70I0tCjlR4X1oFTtspr8bZKURNCDsDQMAhIEhUWhw /hu1gcNeFF+3fOBkzO4fN0dMhedj6z0PhchBOggXdljREcqSDNumyz3L1OPgcggajgKR SwwulawtfETUh/a6CP7WhSN1rF/G1o2bm7it6pT+M7M6E3ftM20DWYAePHzfIlFhbYiQ zsiA== 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=fglZ+Qpf+p6mO/JnxAb3Q9YNR0CkZ8IqhSy58zVEL5eCkGTvxP93+9bsca254dBaDI jGSgDASZBGcG5gtAokBPysw7vuYyGCwyPT+0enVKzSDU+YW8zeoxgNxV0HZx4oCbq47R qKqaMec8u4/e8MQvtmfPwwYPuoBzHHyXNv+xNyAjp+4xzidc0A6lPtKi9e5+rLacbEsv 5yBrdfwYcpJ8YFMyrraMreocpw6/s9BBB8h+yebqCp8aK6l3LfpYosV4IbWq3jwYuoCA b2PGpVtizD7nhWUfHqLCwVmSdh42nOBjDvyKJrZ4HxIHGs/79mEytwrQ8zYqcZaxVYfJ Mb0Q== X-Forwarded-Encrypted: i=1; AJvYcCVgGDB8aC5i+jpDO+TihGj3EOmuXTp8BEzDPC4pjFCT0MxlVlI+Bq56NBKySfDlggylZcE7oVPh32EsT6Q=@vger.kernel.org X-Gm-Message-State: AOJu0YztH+JtIBPcthwIZI5ecSC6rioS7D0+CQjPEKlJdBSFBhmtquk2 mRRWXvh2e3Y5ouWQjzT5sAq4p+zfzIusSiT3kdFXsJIxEgvXw0kheAWdQ1GT5Q== 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> 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=us-ascii Content-Disposition: inline In-Reply-To: <20241015-smmuv3-v1-0-e4b9ed1b5501@nxp.com> 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