<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Configuring iATU on i.MX6 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-iATU-on-i-MX6/m-p/365339#M51726</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #000000;"&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;We're using i.MX6Q Linux 3.10.17_1.0.0_ga on SabreSD board, configured as PCIe RC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;Attached propiatery EP device on PCIe has three 32-bit BARs, 1MBytes each. &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;Registers of interest on EP go from address 0x01000000 on.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;On i.MX6 Linux performs the following BAR mapping:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;32-bit BAR0 - 1MByte: &lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;0x01200000 - 0x12FFFFF&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;32-bit BAR1 - 1MByte: 0x01300000 - 0x13FFFFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;32-bit BAR2 - 1MByte: 0x01300000 - 0x13FFFFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 14.6666669845581px; line-height: 1.5em;"&gt;Without using iATU we can only access registers on EP from address &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;0x01200000 on. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;We've tried enabling iATU in file drivers/pci/host/pci-imx6.c as described below, but the address translation didn't work (we've got the same register content as prior enabling iATU)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0, pp-&amp;gt;dbi_base + PCIE_ATU_VIEWPORT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x01000000, pp-&amp;gt;dbi_base + PCIE_ATU_LOWER_BASE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x00000000, pp-&amp;gt;dbi_base + PCIE_ATU_UPPER_BASE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x010fffff, pp-&amp;gt;dbi_base + PCIE_ATU_LIMIT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x00200000, pp-&amp;gt;dbi_base + PCIE_ATU_LOWER_TARGET);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x00000000, pp-&amp;gt;dbi_base + PCIE_ATU_UPPER_TARGET);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(PCIE_ATU_TYPE_MEM, pp-&amp;gt;dbi_base + PCIE_ATU_CR1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(PCIE_ATU_ENABLE, pp-&amp;gt;dbi_base + PCIE_ATU_CR2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I would appreciate any suggestions or ideas how to make iATU operational to access registers on EP from &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;0x01000000 on.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jan 2015 16:36:28 GMT</pubDate>
    <dc:creator>gasperkorinsek</dc:creator>
    <dc:date>2015-01-21T16:36:28Z</dc:date>
    <item>
      <title>Configuring iATU on i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-iATU-on-i-MX6/m-p/365339#M51726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;&lt;SPAN style="color: #000000;"&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;We're using i.MX6Q Linux 3.10.17_1.0.0_ga on SabreSD board, configured as PCIe RC.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 11pt; line-height: 1.5em;"&gt;Attached propiatery EP device on PCIe has three 32-bit BARs, 1MBytes each. &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;Registers of interest on EP go from address 0x01000000 on.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;On i.MX6 Linux performs the following BAR mapping:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;32-bit BAR0 - 1MByte: &lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif;"&gt;0x01200000 - 0x12FFFFF&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11pt; font-family: Calibri, sans-serif; color: #000000;"&gt;32-bit BAR1 - 1MByte: 0x01300000 - 0x13FFFFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;32-bit BAR2 - 1MByte: 0x01300000 - 0x13FFFFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri, sans-serif; font-size: 14.6666669845581px; line-height: 1.5em;"&gt;Without using iATU we can only access registers on EP from address &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;0x01200000 on. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;We've tried enabling iATU in file drivers/pci/host/pci-imx6.c as described below, but the address translation didn't work (we've got the same register content as prior enabling iATU)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #000000; font-size: 14.6666669845581px; font-family: Calibri, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0, pp-&amp;gt;dbi_base + PCIE_ATU_VIEWPORT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x01000000, pp-&amp;gt;dbi_base + PCIE_ATU_LOWER_BASE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x00000000, pp-&amp;gt;dbi_base + PCIE_ATU_UPPER_BASE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x010fffff, pp-&amp;gt;dbi_base + PCIE_ATU_LIMIT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x00200000, pp-&amp;gt;dbi_base + PCIE_ATU_LOWER_TARGET);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(0x00000000, pp-&amp;gt;dbi_base + PCIE_ATU_UPPER_TARGET);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(PCIE_ATU_TYPE_MEM, pp-&amp;gt;dbi_base + PCIE_ATU_CR1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;writel(PCIE_ATU_ENABLE, pp-&amp;gt;dbi_base + PCIE_ATU_CR2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;I would appreciate any suggestions or ideas how to make iATU operational to access registers on EP from &lt;SPAN style="font-family: Calibri, sans-serif; font-size: 14.6666669845581px;"&gt;0x01000000 on.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 16:36:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-iATU-on-i-MX6/m-p/365339#M51726</guid>
      <dc:creator>gasperkorinsek</dc:creator>
      <dc:date>2015-01-21T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Configuring iATU on i.MX6</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Configuring-iATU-on-i-MX6/m-p/365340#M51727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solution is described below (base/target addresses were incorrect - reference manual a bit misleading)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define BAR0_ADDR 0x01200000&lt;/P&gt;&lt;P&gt;#define VTSS_ADDR 0x01000000 &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;writel(2, pp-&amp;gt;dbi_base + PCIE_ATU_VIEWPORT); // 0 and 1 are already used in pcie-designware.c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;writel(BAR0_ADDR, pp-&amp;gt;dbi_base + PCIE_ATU_LOWER_BASE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;writel(0, pp-&amp;gt;dbi_base + PCIE_ATU_UPPER_BASE);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;writel(BAR0_ADDR + SZ_1M - 1, pp-&amp;gt;dbi_base + PCIE_ATU_LIMIT);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;writel(VTSS_ADDR, pp-&amp;gt;dbi_base + PCIE_ATU_LOWER_TARGET);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;writel(0, pp-&amp;gt;dbi_base + PCIE_ATU_UPPER_TARGET);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;writel(PCIE_ATU_TYPE_MEM, pp-&amp;gt;dbi_base + PCIE_ATU_CR1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;writel(PCIE_ATU_ENABLE, pp-&amp;gt;dbi_base + PCIE_ATU_CR2);&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 09:26:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Configuring-iATU-on-i-MX6/m-p/365340#M51727</guid>
      <dc:creator>gasperkorinsek</dc:creator>
      <dc:date>2015-01-22T09:26:32Z</dc:date>
    </item>
  </channel>
</rss>

