linux-pci.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Query/Discussion]: IO translation with designware PCIe controller
@ 2013-12-05  5:04 Pratyush Anand
  2013-12-05 21:33 ` Arnd Bergmann
  0 siblings, 1 reply; 17+ messages in thread
From: Pratyush Anand @ 2013-12-05  5:04 UTC (permalink / raw)
  To: Arnd Bergmann, Jingoo Han
  Cc: Mohit Kumar, Marek Vasut, Richard Zhu, Kishon Vijay Abraham I,
	linux-pci, Tim Harvey

Hi Arnd / Jingoo,

Sorry for not able to follow earlier discussion you had on this
topic while initial reviews of patches from Jingoo.

I have few doubts that how will it actually work.

As per my understanding under current implementation:

1. Physical IO addresses are in the range of 0x1000 to 0xfffff.
2. They are mapped to fixed virtual address 0xFEE00000 using
pci_ioremap_io.
3. IO resource addresses to any PCIe device will be allocated in above
range.
4. Driver for that PCIe device will write in the above range only for
IO transaction to the device.
5. As per current IO translation programming, its one to one
translation. It means PCIe translation unit will have both input and
output address in the range of 0x1000 to 0xfffff.

Did I miss something, or if above statements are correct, then what I
do not understand is how can designware PCIe translation unit accept
input address in the range of 0x1000 to 0xfffff?

For example in SPEAr1340, physically RAM is mapped on above addresses.
PCIe address translation unit can accept address only in the range of
core addresses which are assigned to PCIe RC ie 0x80000000-0x8FFFFFFF.

Regards
Pratyush


^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-12-13  7:36 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-05  5:04 [Query/Discussion]: IO translation with designware PCIe controller Pratyush Anand
2013-12-05 21:33 ` Arnd Bergmann
2013-12-06  9:12   ` Pratyush Anand
2013-12-06 14:46     ` Arnd Bergmann
2013-12-09  7:12       ` Pratyush Anand
2013-12-09 16:09         ` Arnd Bergmann
2013-12-10  4:34           ` Pratyush Anand
2013-12-10  5:25             ` Jingoo Han
2013-12-10  6:31               ` Mohit KUMAR DCG
2013-12-10  6:57                 ` Pratyush Anand
2013-12-10  7:02                 ` Jingoo Han
2013-12-13  7:36                   ` Hong-Xing.Zhu
2013-12-10 13:26         ` Marek Vasut
2013-12-10 22:22           ` Jingoo Han
2013-12-10 23:23             ` Tim Harvey
2013-12-10 23:25               ` Marek Vasut
2013-12-10 23:58               ` Jingoo Han

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).