Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932559AbaBUQ2c (ORCPT ); Fri, 21 Feb 2014 11:28:32 -0500 Received: from quartz.orcorp.ca ([184.70.90.242]:50618 "EHLO quartz.orcorp.ca" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932286AbaBUQ2a (ORCPT ); Fri, 21 Feb 2014 11:28:30 -0500 Date: Fri, 21 Feb 2014 09:28:24 -0700 From: Jason Gunthorpe To: Srikanth Thokala Cc: Bjorn Helgaas , Arnd Bergmann , "linux-pci@vger.kernel.org" , Michal Simek , "linux-kernel@vger.kernel.org" , Rob Herring , Grant Likely , linux-arm Subject: Re: [PATCH] pcie: Add Xilinx PCIe Host Bridge IP driver Message-ID: <20140221162824.GA4706@obsidianresearch.com> References: <1392564830-5868-1-git-send-email-sthokal@xilinx.com> <20140219003523.GJ29304@obsidianresearch.com> <20140220174503.GB19893@obsidianresearch.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 21, 2014 at 08:18:00PM +0530, Srikanth Thokala wrote: > 00:00.0 Class 0604: Device 10ee:7081 So this is great, a root port bridge is exactly correct - I would recommend using device 1 for this (device 0 is the host bridge in most cases), but I don't think that has any functional impact. > Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- > ParErr+ Stepping- SERR+ FastB2B- DisINTx- > Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- > SERR- Latency: 0, Cache Line Size: 64 bytes > Bus: primary=00, secondary=01, subordinate=01, sec-latency=0 > I/O behind bridge: 00000000-00000fff > Memory behind bridge: 00000000-000fffff > Prefetchable memory behind bridge: 00000000-000fffff What is going on here? These ranges should match the MMIO aperture and critically must enclose the downstream bars: > 01:00.0 Class 0200: Device 14e4:1677 (rev 11) > Region 0: Memory at 60000000 (64-bit, non-prefetchable) [size=64K] > Expansion ROM at 60010000 [disabled] [size=64K] So one of those two is not right.. Jason -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/