Re: Question about PCI I/O space in ARM64

2016-03-24 Thread Kefeng Wang
On 2016/3/25 1:57, Lorenzo Pieralisi wrote: > [+ Jean] > > On Thu, Mar 24, 2016 at 11:14:50AM +0800, Kefeng Wang wrote: > > [...] > You need a PCI host controller driver (e.g. drivers/pci/host/pci-host-generic.c) and corresponding bindings in DT or ACPI. >> >> In our inner test,

Re: Question about PCI I/O space in ARM64

2016-03-24 Thread Lorenzo Pieralisi
[+ Jean] On Thu, Mar 24, 2016 at 11:14:50AM +0800, Kefeng Wang wrote: [...] > >> You need a PCI host controller driver (e.g. > >> drivers/pci/host/pci-host-generic.c) and corresponding bindings in DT or > >> ACPI. > > In our inner test, there are some board without pcie host driver(even > witho

Re: Question about PCI I/O space in ARM64

2016-03-23 Thread Kefeng Wang
On 2016/3/23 20:26, Arnd Bergmann wrote: > On Wednesday 23 March 2016 10:18:40 Catalin Marinas wrote: >> On Wed, Mar 23, 2016 at 11:12:41AM +0800, Kefeng Wang wrote: >>> If no pci, the PCI I/O space(16M) is mapped into an irrelevant mem >>> space(right ?), >> >> No. It is not mapped at all. >> >>>

Re: Question about PCI I/O space in ARM64

2016-03-23 Thread Arnd Bergmann
On Wednesday 23 March 2016 10:18:40 Catalin Marinas wrote: > On Wed, Mar 23, 2016 at 11:12:41AM +0800, Kefeng Wang wrote: > > If no pci, the PCI I/O space(16M) is mapped into an irrelevant mem > > space(right ?), > > No. It is not mapped at all. > > > not a right IO space, > > that is, no one ca

Re: Question about PCI I/O space in ARM64

2016-03-23 Thread Catalin Marinas
On Wed, Mar 23, 2016 at 11:12:41AM +0800, Kefeng Wang wrote: > If no pci, the PCI I/O space(16M) is mapped into an irrelevant mem > space(right ?), No. It is not mapped at all. > not a right IO space, > that is, no one call pci_remap_iospace() to remap the memory mapped I/O > space, once driver

Question about PCI I/O space in ARM64

2016-03-22 Thread Kefeng Wang
Hi all, If no pci, the PCI I/O space(16M) is mapped into an irrelevant mem space(right ?), not a right IO space, that is, no one call pci_remap_iospace() to remap the memory mapped I/O space, once driver like f71805f loaded, write value to IO space(see f71805f_init->f71805f_find->superio_enter-