Re: [PATCH v3 4/6] iommu: Move IOMMU pagesize check to attach_device

2021-10-20 Thread Lu Baolu
On 10/20/21 10:22 PM, Marc Zyngier wrote: On Wed, 20 Oct 2021 06:21:44 +0100, Lu Baolu wrote: On 2021/10/20 0:37, Sven Peter via iommu wrote: The iova allocator is capable of handling any granularity which is a power of two. Remove the much stronger condition that the granularity must be

RE: [RFC 10/20] iommu/iommufd: Add IOMMU_DEVICE_GET_INFO

2021-10-20 Thread Tian, Kevin
> From: Tian, Kevin > Sent: Friday, October 15, 2021 9:02 AM > > > From: Jason Gunthorpe > > Sent: Thursday, October 14, 2021 11:43 PM > > > > > > > I think the key is whether other archs allow driver to decide DMA > > > > > coherency and indirectly the underlying I/O page table format. > > > >

[PATCH] dt-bindings: arm-smmu: Add compatible for the SDX55 SoC

2021-10-20 Thread David Heidelberg
Add missing compatible for the SDX55 SoC. Signed-off-by: David Heidelberg --- Documentation/devicetree/bindings/iommu/arm,smmu.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iommu/arm,smmu.yaml b/Documentation/devicetree/bindings/iommu/arm,smmu.yaml

Re: [GIT PULL] dma-mapping fixes for Linux 5.15

2021-10-20 Thread pr-tracker-bot
The pull request you sent on Wed, 20 Oct 2021 19:14:51 +0200: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.15-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/515dcc2e02178ea8af2ea53b4ae5bdb6875b53ef Thank you! -- Deet-doot-dot, I am a

[GIT PULL] dma-mapping fixes for Linux 5.15

2021-10-20 Thread Christoph Hellwig
The following changes since commit 59583f747664046aaae5588d56d5954fab66cce8: sparc32: page align size in arch_dma_alloc (2021-09-14 14:35:17 +0200) are available in the Git repository at: git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.15-2 for you to fetch changes up

Re: [PATCH v3 4/6] iommu: Move IOMMU pagesize check to attach_device

2021-10-20 Thread Marc Zyngier
On Wed, 20 Oct 2021 06:21:44 +0100, Lu Baolu wrote: > > On 2021/10/20 0:37, Sven Peter via iommu wrote: > > The iova allocator is capable of handling any granularity which is a power > > of two. Remove the much stronger condition that the granularity must be > > smaller or equal to the CPU page

RE: [RFC 02/20] vfio: Add device class for /dev/vfio/devices

2021-10-20 Thread Liu, Yi L
> From: David Gibson > Sent: Wednesday, September 29, 2021 10:09 AM > > On Sun, Sep 19, 2021 at 02:38:30PM +0800, Liu Yi L wrote: > > This patch introduces a new interface (/dev/vfio/devices/$DEVICE) for > > userspace to directly open a vfio device w/o relying on container/group > >

Re: [PATCH v2 2/2] iommu/arm-smmu-v3: Simplify useless instructions in arm_smmu_cmdq_build_cmd()

2021-10-20 Thread Leizhen (ThunderTown)
On 2021/10/4 20:07, Will Deacon wrote: > On Wed, Aug 18, 2021 at 04:04:52PM +0800, Zhen Lei wrote: >> Although the parameter 'cmd' is always passed by a local array variable, >> and only this function modifies it, the compiler does not know this. The >> compiler almost always reads the value of