From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from buildserver.ru.mvista.com (unknown [85.21.88.6]) by ozlabs.org (Postfix) with ESMTP id C21B4DDF80 for ; Wed, 7 Jan 2009 10:42:58 +1100 (EST) Date: Wed, 7 Jan 2009 02:42:56 +0300 From: Anton Vorontsov To: Leon Woestenberg Subject: Re: [PATCH v2 4/4] powerpc/83xx: Add PCI-E support for all MPC83xx boards with PCI-E Message-ID: <20090106234256.GA26089@oksana.dev.rtsoft.ru> References: <1F7739C2-930B-49C1-B8FF-679AF1BBAEAE@kernel.crashing.org> <20081231171017.6FCF585AD247@gemini.denx.de> <20090105174645.GA23766@ld0162-tx32.am.freescale.net> <20090105180122.GA12237@oksana.dev.rtsoft.ru> <20090106192747.GA3056@oksana.dev.rtsoft.ru> <2B8AFE67-67BF-4926-B41B-79ACD72CA505@kernel.crashing.org> <20090106211513.GA23914@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 In-Reply-To: Cc: Scott Wood , linuxppc-dev@ozlabs.org, Wolfgang Denk Reply-To: avorontsov@ru.mvista.com List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jan 06, 2009 at 11:33:35PM +0100, Leon Woestenberg wrote: > Hello Anton, > > On Tue, Jan 6, 2009 at 10:15 PM, Anton Vorontsov > wrote: > > On Tue, Jan 06, 2009 at 02:38:57PM -0600, Kumar Gala wrote: > >>>> Is u-boot PCIe initialization required for this kernel patch to work? > >>> > >>> Yup. > >> > >> Really? what for? > > > > Hm. U-Boot should initialize SerDes and PCI-E controller (pcie laws, > > inbound/outbound windows, clocks, etc.) > > > > Though if PCI-E controller wasn't initialized (i.e. board reflashed > > with the community u-boot), Linux just won't probe the pcie controller: > > > > cfg_bar = in_le32(hose->cfg_data + PEX_OUTWIN0_BAR); > > if (!cfg_bar) { > > /* PCI-E isn't configured. */ > > ret = -ENODEV; > > goto err1; > > } > > > > Or did I misunderstand the question? > > > You understood correctly, thanks for answering. > > So to summarize, we need u-boot to initialize the PCIe controller, in > order for Linux to further take it over. > > What u-boot versions/releases do provide this initialization? Only FSL U-Boots so far (i.e. community u-boot + fsl patches). > I know the u-boot with the board works, but it's incompatible with > recent Linux kernels. We should fix that (if possible). -- Anton Vorontsov email: cbouatmailru@gmail.com irc://irc.freenode.net/bd2