From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e23smtp04.au.ibm.com (e23smtp04.au.ibm.com [202.81.31.146]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 5AC2C1A0196 for ; Mon, 2 Mar 2015 19:03:25 +1100 (AEDT) Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 2 Mar 2015 18:03:24 +1000 Received: from d23relay06.au.ibm.com (d23relay06.au.ibm.com [9.185.63.219]) by d23dlp02.au.ibm.com (Postfix) with ESMTP id 2FD2E2BB005B for ; Mon, 2 Mar 2015 19:03:22 +1100 (EST) Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.234.96]) by d23relay06.au.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t2283EMk41484478 for ; Mon, 2 Mar 2015 19:03:22 +1100 Received: from d23av01.au.ibm.com (localhost [127.0.0.1]) by d23av01.au.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t2282mpt013381 for ; Mon, 2 Mar 2015 19:02:48 +1100 Date: Mon, 2 Mar 2015 16:02:31 +0800 From: Wei Yang To: Benjamin Herrenschmidt Subject: Re: [PATCH v12 14/21] powerpc/powernv: Allocate struct pnv_ioda_pe iommu_table dynamically Message-ID: <20150302080231.GK21571@richard> Reply-To: Wei Yang References: <20150224082939.32124.45744.stgit@bhelgaas-glaptop2.roam.corp.google.com> <20150224083435.32124.65099.stgit@bhelgaas-glaptop2.roam.corp.google.com> <20150224084653.GI6220@google.com> <20150302075036.GH21571@richard> <1425282979.4636.10.camel@au1.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1425282979.4636.10.camel@au1.ibm.com> Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Wei Yang , linuxppc-dev@lists.ozlabs.org, gwshan@linux.vnet.ibm.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Mar 02, 2015 at 06:56:19PM +1100, Benjamin Herrenschmidt wrote: >On Mon, 2015-03-02 at 15:50 +0800, Wei Yang wrote: >> > >> >Is there a hotplug remove path where we should also be calling >> >iommu_free_table()? >> >> When VF is not introduced, no one calls this on powernv platform. >> >> Each PCI bus is a PE and it has its own iommu table, even a device is >> hotpluged, the iommu table will not be released. > >Actually, I believe Alexey patches to add support for dynamic DMA >windows for KVM guests using VFIO will also alloc/free iommu tables. In >fact his patches somewhat change quite a few things in that area, and >I'm currently reviewing them. Yes, I see these changes before. > >Wei, can you post a new series when you've finished sync'ing with >Bjorn ? At that point, I'll try to work with Alexey to evaluate the >impact of his changes on your patches. Sure, I will do it ASAP. > >Cheers, >Ben. > -- Richard Yang Help you, Help me