From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH 04/12] arm64/dma-mapping: Extend DMA ops workaround to PCI devices Date: Mon, 29 Feb 2016 16:47:51 +0000 Message-ID: <20160229164750.GA15650@localhost.localdomain> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Robin Murphy Cc: devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Thomas.Lendacky-5C7GfCeVMHo@public.gmane.org, tchalamarla-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org, will.deacon-5wv7dgnIgG8@public.gmane.org, stuart.yoder-3arQi8VN3Tc@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, thunder.leizhen-hv44wF8Li93QT0dZR+AlfA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: devicetree@vger.kernel.org On Mon, Feb 29, 2016 at 01:46:13PM +0000, Robin Murphy wrote: > PCI devices now suffer the same hiccup as platform devices, in that they > get their DMA ops configured before they have been added to their bus, > and thus before we know whether they have successfully registered with > an IOMMU or not. Until the necessary driver core changes to reorder > calls during device creation have been worked out, extend our delayed > notifier trick onto the PCI bus so as to avoid broken DMA ops for IOMMUs > there. > > CC: Catalin Marinas > CC: Will Deacon > Signed-off-by: Robin Murphy Acked-by: Catalin Marinas -- Catalin From mboxrd@z Thu Jan 1 00:00:00 1970 From: catalin.marinas@arm.com (Catalin Marinas) Date: Mon, 29 Feb 2016 16:47:51 +0000 Subject: [PATCH 04/12] arm64/dma-mapping: Extend DMA ops workaround to PCI devices In-Reply-To: References: Message-ID: <20160229164750.GA15650@localhost.localdomain> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Feb 29, 2016 at 01:46:13PM +0000, Robin Murphy wrote: > PCI devices now suffer the same hiccup as platform devices, in that they > get their DMA ops configured before they have been added to their bus, > and thus before we know whether they have successfully registered with > an IOMMU or not. Until the necessary driver core changes to reorder > calls during device creation have been worked out, extend our delayed > notifier trick onto the PCI bus so as to avoid broken DMA ops for IOMMUs > there. > > CC: Catalin Marinas > CC: Will Deacon > Signed-off-by: Robin Murphy Acked-by: Catalin Marinas -- Catalin