Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965456AbbBCM7P (ORCPT ); Tue, 3 Feb 2015 07:59:15 -0500 Received: from cantor2.suse.de ([195.135.220.15]:59123 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751714AbbBCM7M (ORCPT ); Tue, 3 Feb 2015 07:59:12 -0500 Date: Tue, 3 Feb 2015 13:59:07 +0100 From: Joerg Roedel To: Thierry Reding Cc: Joerg Roedel , iommu@lists.linux-foundation.org, Will Deacon , Kukjin Kim , David Woodhouse , Heiko Stuebner , Hiroshi Doyu , Alex Williamson , Arnd Bergmann , linux-kernel@vger.kernel.org, Robin Murphy , Laurent Pinchart Subject: Re: [PATCH 3/5] iommu: Limit iommu_attach/detach_device to devices with their own group Message-ID: <20150203125907.GC3519@suse.de> References: <1422317339-22620-1-git-send-email-joro@8bytes.org> <1422317339-22620-4-git-send-email-joro@8bytes.org> <20150203122506.GC15068@ulmo.nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150203122506.GC15068@ulmo.nvidia.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1111 Lines: 26 On Tue, Feb 03, 2015 at 01:25:07PM +0100, Thierry Reding wrote: > Sorry for my ignorance, but I don't understand what IOMMU groups are > supposed to be or how to make use of them. It seems like a common idiom > is to simply allocate a new group and add a device to it in the IOMMU's > ->add_device() callback, but I fail to see the reason for that. > > Can anybody point me to documentation about this? I've looked and I did > not find anything. An iommu group is a set of devices that the iommu hardware can isolate from other devices. So devices in one group can't be isolated from each other and have to share the same iommu page table. This happens for example on legac 32 bit PCI buses. All devices on such a bus use the request-id of the PCIe-PCI bridge, so they can't be isolated from each other from the IOMMU and have to be in one iommu group. Joerg -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/