Re: Purpose of pci_remap_iospace

2016-07-15 Thread Arnd Bergmann
On Friday, July 15, 2016 5:21:20 AM CEST Bharat Kumar Gogada wrote: > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > Hi Lorenzo, > > > > > > I missed something in my device tree now I corrected it. > > > > > > ranges = <0x0100 0x

Re: Purpose of pci_remap_iospace

2016-07-15 Thread Arnd Bergmann
On Friday, July 15, 2016 5:21:20 AM CEST Bharat Kumar Gogada wrote: > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > Hi Lorenzo, > > > > > > I missed something in my device tree now I corrected it. > > > > > > ranges = <0x0100 0x

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > 0x0001 //io > > You have not missed anything, you

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > 0x0001 //io > > You have not missed anything, you

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 05:12:01PM +0200, Arnd Bergmann wrote: > On Thursday, July 14, 2016 3:56:24 PM CEST Lorenzo Pieralisi wrote: > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > Hi Lorenzo, > > > > > > I missed something in my device tree now

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 05:12:01PM +0200, Arnd Bergmann wrote: > On Thursday, July 14, 2016 3:56:24 PM CEST Lorenzo Pieralisi wrote: > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > Hi Lorenzo, > > > > > > I missed something in my device tree now

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 03:05:40PM +, Bharat Kumar Gogada wrote: [...] > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > > 0x0001 //io > > > > You have not missed anything, you changed the

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 03:05:40PM +, Bharat Kumar Gogada wrote: [...] > > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > > 0x0001 //io > > > > You have not missed anything, you changed the

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Arnd Bergmann
On Thursday, July 14, 2016 3:56:24 PM CEST Lorenzo Pieralisi wrote: > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Arnd Bergmann
On Thursday, July 14, 2016 3:56:24 PM CEST Lorenzo Pieralisi wrote: > On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > 0x0001 //io > > You have not missed anything, you

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: > > [...] > > > Hi Lorenzo, > > > > I missed something in my device tree now I corrected it. > > > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 > 0x0001 //io > > You have not missed anything, you

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: [...] > Hi Lorenzo, > > I missed something in my device tree now I corrected it. > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 0x0001 > //io You have not missed anything, you changed the PCI

Re: Purpose of pci_remap_iospace

2016-07-14 Thread Lorenzo Pieralisi
On Thu, Jul 14, 2016 at 01:32:13PM +, Bharat Kumar Gogada wrote: [...] > Hi Lorenzo, > > I missed something in my device tree now I corrected it. > > ranges = <0x0100 0x 0xe000 0x 0xe000 0 0x0001 > //io You have not missed anything, you changed the PCI

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> > Subject: Re: Purpose of pci_remap_iospace > > > > On Wed, Jul 13, 2016 at 12:30:44PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > err = of_pci_get_host_bridge_resources(node, 0, 0xff, , ); > > > if (err) { > >

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> > Subject: Re: Purpose of pci_remap_iospace > > > > On Wed, Jul 13, 2016 at 12:30:44PM +, Bharat Kumar Gogada wrote: > > > > [...] > > > > > err = of_pci_get_host_bridge_resources(node, 0, 0xff, , ); > > > if (err) { > >

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Wed, Jul 13, 2016 at 12:30:44PM +, Bharat Kumar Gogada wrote: > > [...] > > > err = of_pci_get_host_bridge_resources(node, 0, 0xff, , ); > > if (err) { > > pr_er

RE: Purpose of pci_remap_iospace

2016-07-14 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Wed, Jul 13, 2016 at 12:30:44PM +, Bharat Kumar Gogada wrote: > > [...] > > > err = of_pci_get_host_bridge_resources(node, 0, 0xff, , ); > > if (err) { > > pr_er

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Lorenzo Pieralisi
On Wed, Jul 13, 2016 at 03:16:21PM +, Bharat Kumar Gogada wrote: > > Subject: Re: Purpose of pci_remap_iospace > > > > On Wednesday, July 13, 2016 12:30:44 PM CEST Bharat Kumar Gogada wrote: > > > > On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Lorenzo Pieralisi
On Wed, Jul 13, 2016 at 03:16:21PM +, Bharat Kumar Gogada wrote: > > Subject: Re: Purpose of pci_remap_iospace > > > > On Wednesday, July 13, 2016 12:30:44 PM CEST Bharat Kumar Gogada wrote: > > > > On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Arnd Bergmann
On Wednesday, July 13, 2016 3:16:21 PM CEST Bharat Kumar Gogada wrote: > > > This has neither the PCI memory nor the I/O resource, it looks like you > > never > > call pci_add_resource_offset() to start with, or maybe it fails for some > > reason. > > I see that above API is used in ARM

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Arnd Bergmann
On Wednesday, July 13, 2016 3:16:21 PM CEST Bharat Kumar Gogada wrote: > > > This has neither the PCI memory nor the I/O resource, it looks like you > > never > > call pci_add_resource_offset() to start with, or maybe it fails for some > > reason. > > I see that above API is used in ARM

Re: Purpose of pci_remap_iospace

2016-07-13 Thread liviu.du...@arm.com
On Wed, Jul 13, 2016 at 05:28:47PM +0200, Arnd Bergmann wrote: > On Wednesday, July 13, 2016 3:16:21 PM CEST Bharat Kumar Gogada wrote: > > > > > This has neither the PCI memory nor the I/O resource, it looks like you > > > never > > > call pci_add_resource_offset() to start with, or maybe it

Re: Purpose of pci_remap_iospace

2016-07-13 Thread liviu.du...@arm.com
On Wed, Jul 13, 2016 at 05:28:47PM +0200, Arnd Bergmann wrote: > On Wednesday, July 13, 2016 3:16:21 PM CEST Bharat Kumar Gogada wrote: > > > > > This has neither the PCI memory nor the I/O resource, it looks like you > > > never > > > call pci_add_resource_offset() to start with, or maybe it

RE: Purpose of pci_remap_iospace

2016-07-13 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Wednesday, July 13, 2016 12:30:44 PM CEST Bharat Kumar Gogada wrote: > > > On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada > wrote: > > > > > Subject: Re: Purpose of pci_remap_iospace > >

RE: Purpose of pci_remap_iospace

2016-07-13 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Wednesday, July 13, 2016 12:30:44 PM CEST Bharat Kumar Gogada wrote: > > > On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada > wrote: > > > > > Subject: Re: Purpose of pci_remap_iospace > >

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Lorenzo Pieralisi
On Wed, Jul 13, 2016 at 12:30:44PM +, Bharat Kumar Gogada wrote: [...] > err = of_pci_get_host_bridge_resources(node, 0, 0xff, , ); > if (err) { > pr_err("Getting bridge resources failed\n"); > return err; > } >

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Lorenzo Pieralisi
On Wed, Jul 13, 2016 at 12:30:44PM +, Bharat Kumar Gogada wrote: [...] > err = of_pci_get_host_bridge_resources(node, 0, 0xff, , ); > if (err) { > pr_err("Getting bridge resources failed\n"); > return err; > } >

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Arnd Bergmann
On Wednesday, July 13, 2016 12:30:44 PM CEST Bharat Kumar Gogada wrote: > > On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada wrote: > > > > Subject: Re: Purpose of pci_remap_iospace > > > > I notice you have 1MB of I/O space here > > > > &

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Arnd Bergmann
On Wednesday, July 13, 2016 12:30:44 PM CEST Bharat Kumar Gogada wrote: > > On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada wrote: > > > > Subject: Re: Purpose of pci_remap_iospace > > > > I notice you have 1MB of I/O space here > > > > &

Re: Purpose of pci_remap_iospace

2016-07-13 Thread liviu.du...@arm.com
On Wed, Jul 13, 2016 at 08:11:56AM +, Bharat Kumar Gogada wrote: > > Subject: Re: Purpose of pci_remap_iospace > > > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > > Hi, > > > > > > I have a query. > > > >

Re: Purpose of pci_remap_iospace

2016-07-13 Thread liviu.du...@arm.com
On Wed, Jul 13, 2016 at 08:11:56AM +, Bharat Kumar Gogada wrote: > > Subject: Re: Purpose of pci_remap_iospace > > > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > > Hi, > > > > > > I have a query. > > > >

RE: Purpose of pci_remap_iospace

2016-07-13 Thread Bharat Kumar Gogada
> On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada wrote: > > > Subject: Re: Purpose of pci_remap_iospace > > > > > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > > > Hi, > > > > > > > >

RE: Purpose of pci_remap_iospace

2016-07-13 Thread Bharat Kumar Gogada
> On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada wrote: > > > Subject: Re: Purpose of pci_remap_iospace > > > > > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > > > Hi, > > > > > > > >

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Arnd Bergmann
On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada wrote: > > Subject: Re: Purpose of pci_remap_iospace > > > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > > Hi, > > > > > > I have a query. > > > >

Re: Purpose of pci_remap_iospace

2016-07-13 Thread Arnd Bergmann
On Wednesday, July 13, 2016 8:11:56 AM CEST Bharat Kumar Gogada wrote: > > Subject: Re: Purpose of pci_remap_iospace > > > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > > Hi, > > > > > > I have a query. > > > >

RE: Purpose of pci_remap_iospace

2016-07-13 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > Hi, > > > > I have a query. > > > > Can any once explain the purpose of pci_remap_iospace function in root > port driver. > &

RE: Purpose of pci_remap_iospace

2016-07-13 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > Hi, > > > > I have a query. > > > > Can any once explain the purpose of pci_remap_iospace function in root > port driver. > &

RE: Purpose of pci_remap_iospace

2016-07-12 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > Hi, > > > > I have a query. > > > > Can any once explain the purpose of pci_remap_iospace function in root > port driver. > &

RE: Purpose of pci_remap_iospace

2016-07-12 Thread Bharat Kumar Gogada
> Subject: Re: Purpose of pci_remap_iospace > > On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > > Hi, > > > > I have a query. > > > > Can any once explain the purpose of pci_remap_iospace function in root > port driver. > &

Re: Purpose of pci_remap_iospace

2016-07-12 Thread Arnd Bergmann
On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > Hi, > > I have a query. > > Can any once explain the purpose of pci_remap_iospace function in root port > driver. > > What is its dependency with architecture ? > > Here is my understanding, the above API takes PCIe IO

Re: Purpose of pci_remap_iospace

2016-07-12 Thread Arnd Bergmann
On Tuesday, July 12, 2016 6:57:10 AM CEST Bharat Kumar Gogada wrote: > Hi, > > I have a query. > > Can any once explain the purpose of pci_remap_iospace function in root port > driver. > > What is its dependency with architecture ? > > Here is my understanding, the above API takes PCIe IO