Return-Path: Received: from na01-by2-obe.outbound.protection.outlook.com (mail-by2on0117.outbound.protection.outlook.com [207.46.100.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 58EC01A0C12 for ; Fri, 6 Nov 2015 10:40:52 +1100 (AEDT) Message-ID: <1446766821.12676.142.camel@freescale.com> Subject: Re: powerpc/fsl-pci: Unify pci/pcie initialization code From: Scott Wood To: Daniel Walker CC: Jia Hongtao , Kumar Gala , Benjamin Herrenschmidt , Paul Mackerras , "Michael Ellerman" , , "David Beazley (dbeazley)" , "xe-kernel@external.cisco.com" Date: Thu, 5 Nov 2015 17:40:21 -0600 In-Reply-To: <563BE349.6080100@cisco.com> References: <563BA46C.8000202@cisco.com> <1446765154.12676.132.camel@freescale.com> <563BE349.6080100@cisco.com> Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Thu, 2015-11-05 at 15:16 -0800, Daniel Walker wrote: > On 11/05/2015 03:12 PM, Scott Wood wrote: > > On Thu, 2015-11-05 at 10:48 -0800, Daniel Walker wrote: > > > Hi, > > > > > > 905e75c46dba5f3061049277e4eb7110beedba43:arch/powerpc/platforms/85xx/mpc85xx_ads.c > > > > > > > > > > > > This commit seems to cause problems with PCI devices doing DMA, just > > > with mpc85xx ads. If you do the "fsl_add_bridge()" after you setup the > > > ppc_md.pci_exclude_device to mpc85xx_exclude_device, then the > > > early_read_config_word() calls in > > > arch/powerpc/sysdev/fsl_pci.c:setup_pci_cmd() are like no-ops. > > > > > > This issue was found by David Beazley (on the CC), he can respond to > > > more detailed questions on it. The fix he came up with was to remove the > > > "pci_exclude_device". > > > > > > Daniel > > OK, please send a patch. > > > > I was hoping Jia Hongtao could address why it wasn't address in the > original patch. Some of the other boards also have an exclude function, > and I wonder if those work with this change. This is the only board I saw that excludes the host bridge. It wasn't addressed because it wasn't noticed. -Scott