Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760756Ab3GaVNV (ORCPT ); Wed, 31 Jul 2013 17:13:21 -0400 Received: from hydra.sisk.pl ([212.160.235.94]:49466 "EHLO hydra.sisk.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757481Ab3GaVNS (ORCPT ); Wed, 31 Jul 2013 17:13:18 -0400 From: "Rafael J. Wysocki" To: Bjorn Helgaas Cc: Takao Indoh , Vivek Goyal , "linux-kernel@vger.kernel.org" , "linux-pci@vger.kernel.org" , "open list:INTEL IOMMU (VT-d)" , "kexec@lists.infradead.org" , "ishii.hironobu@jp.fujitsu.com" , Don Dutile , "Sumner, William" , "alex.williamson@redhat.com" , Haren Myneni , "linux-acpi@vger.kernel.org" Subject: Re: [PATCH v2] PCI: Reset PCIe devices to stop ongoing DMA Date: Wed, 31 Jul 2013 23:23:28 +0200 Message-ID: <1699397.FXoFYIGzbk@vostro.rjw.lan> User-Agent: KMail/4.9.5 (Linux/3.10.0+; KDE/4.9.5; x86_64; ; ) In-Reply-To: References: <1368509365-2260-1-git-send-email-indou.takao@jp.fujitsu.com> <51F85BCC.2070103@jp.fujitsu.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1411 Lines: 33 On Wednesday, July 31, 2013 03:08:03 PM Bjorn Helgaas wrote: > [+cc Rafael, linux-acpi] > > On Tue, Jul 30, 2013 at 6:35 PM, Takao Indoh wrote: > > > On x86, currently IOMMU initialization run *after* PCI enumeration, but > > what you are talking about is that it should be changed so that x86 > > IOMMU initialization is done *before* PCI enumeration like sparc, right? > > Yes. I don't know whether or when that initialization order will ever > be changed, but I do think we should avoid building more > infrastructure that depends on the current order. > > Changing the order is a pretty big deal because it's a lot more than > just the IOMMU. Basically I think we should be enumerating ACPI > devices, including the IOMMU, before PCI devices, but there's a lot of > legacy involved in that area. Added Rafael in case he has any > thoughts. Well, actually, I'm not really familiar with IOMMUs, sorry. I do think that initializing IOMMU before PCI enumeration would be better, however. At least if the ordering should be the same on all architectures, which I suppose is the case, that's the one I'd choose. Thanks, Rafael -- 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/