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 A5CE0B7CD6 for ; Thu, 14 Jan 2010 15:56:24 +1100 (EST) Subject: Re: [PATCH] powerpc/4xx: Add support for type 1 pci transactions on 4xx boards From: Benjamin Herrenschmidt To: Stef van Os In-Reply-To: <1263338326.724.216.camel@pasglop> References: <4CD35CD1F8085945B597F80EEC89421303B8AD11@exc01.bk.prodrive.nl> <1263338326.724.216.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Date: Thu, 14 Jan 2010 15:56:01 +1100 Message-ID: <1263444961.724.343.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, Felix Radensky , Stefan Roese , Feng Kan List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2010-01-13 at 10:18 +1100, Benjamin Herrenschmidt wrote: > On Tue, 2010-01-12 at 15:09 +0100, Stef van Os wrote: > > This patch adds type 1 PCI transactions to 4xx PCI code, enabling the > > discovery of > > devices behind a PCI bridge. > > Your patch appears word wrapped and whitespace damaged... > > I'll fix it up manually this time around but please check your mailer > setup :-) Allright, it's not quite that. I've looked at my docs, and it looks like older parts such as the 440EP do -not- take the config type in the low bit. More interestingly, they only generate config 0 cycles if you pass a bus number of 0 :-) So we'll need do do something a little bit different here. We probably need to indicate in the device-tree what kind of SoC we have (whether it supports the explicit bit to choose between type 0 and type 1 or not). If not, we should then set the "self_busno" field of the bridge to 0, causing indirect_pci to always use bus number 0 when trying to talk to the bus segment behind the bridge, whatever the linux bus number for it actually is. Now, we need to make a precise list here of what SoC uses what. 460xx seem to all support the explicit bit. 440EP doesn't. What else ? Somebody from AMCC can dbl check that ? Cheers, Ben.