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 9EB7DDDFF7 for ; Wed, 22 Apr 2009 13:51:54 +1000 (EST) Message-Id: From: Kumar Gala To: Gary Thomas In-Reply-To: <49EE5A80.4030209@mlbassoc.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: PCI changes 2.6.26 => 2.6.28 Date: Tue, 21 Apr 2009 22:51:46 -0500 References: <49EDF333.4000200@mlbassoc.com> <49EE2CD8.7010700@mlbassoc.com> <29EEEBDE-B87C-4073-9967-E1DA7EFB0B0B@kernel.crashing.org> <49EE306D.3000401@mlbassoc.com> <49EE4729.3000100@mlbassoc.com> <612CEF05-3EFB-4947-B5FC-B35C1F9568D7@kernel.crashing.org> <46B035C0-624F-41E4-BFDD-C16479CF8FC8@kernel.crashing.org> <49EE5021.4020703@mlbassoc.com> <306F293D-44CD-4238-ADA9-BB7436C7004C@kernel.crashing.org> <49EE5A80.4030209@mlbassoc.com> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Apr 21, 2009, at 6:45 PM, Gary Thomas wrote: > Kumar Gala wrote: >> >> On Apr 21, 2009, at 6:00 PM, Gary Thomas wrote: >> >>> >>> I found the difference - in 2.6.28 the inbound/outbound windows >>> don't seem to be set up at all. In 2.6.26, the function >>> 'fsl_add_bridge' >>> was common among architectures and ended up calling 'setup_pci_atmu' >>> which created those mappings. In 2.6.28, the 83xx PCI setup code >>> has been refactored. It uses 'mpc83xx_add_bridge' instead of >>> 'fsl_add_bridge' and 'setup_pci_atmu' is not called at all :-( >>> >>> I'm sure this is the problem. >> >> Looking at a diff between 2.6.26 and .28 I don't see the 83xx pci >> code >> calling setup_pci_atmu(). > > It did not directly; it called 'fsl_add_bridge' which in turn called > 'setup_pci_atmu' Don't ever see 83xx boards calling fsl_add_bridge -- that is 85xx/86xx only in 83xx. > I modified the 2.6.28 driver to also call this function. Now the > inbound/outbound windows are set up, but the bridge still has > no allocations, so the problem remains. > > I need to move on; I may just live with sliding the PCI space > up for now (doesn't really hurt anything, just seems like a hack) It is and you are glossing over a real bug. Are you using u-boot to boot? If so is the board port public? - k