[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140910170641.GC19662@e102568-lin.cambridge.arm.com>
Date: Wed, 10 Sep 2014 18:06:41 +0100
From: Lorenzo Pieralisi <lorenzo.pieralisi@....com>
To: Liviu Dudau <Liviu.Dudau@....com>
Cc: Bjorn Helgaas <bhelgaas@...gle.com>, Arnd Bergmann <arnd@...db.de>,
Rob Herring <robh+dt@...nel.org>,
Jason Gunthorpe <jgunthorpe@...idianresearch.com>,
Benjamin Herrenschmidt <benh@...nel.crashing.org>,
Catalin Marinas <Catalin.Marinas@....com>,
Will Deacon <Will.Deacon@....com>,
Russell King <linux@....linux.org.uk>,
linux-pci <linux-pci@...r.kernel.org>,
Linus Walleij <linus.walleij@...aro.org>,
Tanmay Inamdar <tinamdar@....com>,
Grant Likely <grant.likely@...retlab.ca>,
Sinan Kaya <okaya@...eaurora.org>,
Jingoo Han <jg1.han@...sung.com>,
Kukjin Kim <kgene.kim@...sung.com>,
Suravee Suthikulanit <suravee.suthikulpanit@....com>,
linux-arch <linux-arch@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Device Tree ML <devicetree@...r.kernel.org>,
LAKML <linux-arm-kernel@...ts.infradead.org>,
"grant.likely@...aro.org" <grant.likely@...aro.org>
Subject: Re: [PATCH v10 08/10] OF: PCI: Add support for parsing PCI host
bridge resources from DT
On Wed, Sep 10, 2014 at 05:53:47PM +0100, Liviu Dudau wrote:
[...]
> > > > > > > + if (resource_type(res) == IORESOURCE_IO) {
> > > > > > > + if (*io_base)
> > > > > >
> > > > > > You do not zero io_base in the first place so you should ask the API
> > > > > > user to do that. Is 0 a valid value BTW ? If it is you've got to resort
> > > > > > to something else to detect multiple IO resources.
> > >
> > > No, zero is not a valid value. It is the cpu_addr value from the IO range, I'm
> > > hopying that no one is crazy enough to map PCI address space at CPU address zero.
> > > Thanks for spotting the lack of initialisation though, I need to fix it.
> >
> > Mmm...wasn't a trick question sorry :D
> >
> > PCI host bridge /pci ranges:
> > IO 0x00000000..0x0000ffff -> 0x00000000
> > More than one I/O resource converted. CPU offset for old range lost!
> > MEM 0x41000000..0x7fffffff -> 0x41000000
> > pci-host-generic 40000000.pci: PCI host bridge to bus 0000:00
> > pci_bus 0000:00: root bus resource [bu-01]
> > pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
> > pci_bus 0000:00: root bus resource [mem 0x41000000-0x7fffffff]
> >
>
> Your DT puts the IO space at CPU address zero? Could you copy the relevant
> host bridge node from DT here?
It is kvmtools generated dts, may not be representative of real HW but
that's what it is. For the whole story:
http://comments.gmane.org/gmane.linux.kernel.pci/29199
Lorenzo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists