From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9179CB6FAA for ; Wed, 25 Apr 2012 14:10:53 +1000 (EST) Message-ID: <1335327042.21961.27.camel@pasglop> Subject: Re: 3.4-rc3 compile failed on IBM Power6 From: Benjamin Herrenschmidt To: Gavin Shan Date: Wed, 25 Apr 2012 14:10:42 +1000 In-Reply-To: <20120425015044.GA4637@shangw> References: <20120425005432.GA14663@linux.vnet.ibm.com> <20120425015044.GA4637@shangw> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: Nishanth Aravamudan , linuxppc-dev@lists.ozlabs.org, Ryan Wang , linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2012-04-25 at 09:50 +0800, Gavin Shan wrote: > In order to make iommu.c irrelative to CONFIG_EEH, we might figure out > the PE number of the PCI device during PCI probe time. Here're some > rough thoughts about the rework. > > - Introduce additional field "int pe_num" to "struct dev_archdata". > That would be traced like: (struct pci_dev)->(struct device dev) > ->(struct dev_archdata archdata). > - During the PCI probe time (maybe pci_fixup_early), we can figure > out the PE number. > > Then we can retrieve the PE number of PCI device from "int pe_num" and needn't > care CONFIG_EEH has been turned on or off. I'm not sure Ben has any comments > on the idea? Just select EEH from pseries Kconfig, no point in keeping that a user visible option. Cheers, Ben.