<?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>LayerscapeのトピックRe: How to change PCI memory size</title>
    <link>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1385482#M9635</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Does it have to be at least 1G ？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My problem now is that it might allocate too much memory, , and I want to make it smaller，if I want to change it to 256M,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;modify to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;ranges = &amp;lt;0x82000000 0x0 0x10000000 0x80 0x10000000 0x0 0x10000000&amp;gt;; /* non-prefetchable&lt;/FONT&gt;&amp;nbsp;memory */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it is ok？&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 14 Dec 2021 02:58:04 GMT</pubDate>
    <dc:creator>muaxi8</dc:creator>
    <dc:date>2021-12-14T02:58:04Z</dc:date>
    <item>
      <title>How to change PCI memory size</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1384572#M9625</link>
      <description>&lt;P&gt;&amp;nbsp;1)&amp;nbsp;&lt;SPAN&gt;How to change PCI memory size ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2)&amp;nbsp; How to explain the parameters of the device tree "ranges" node?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;pcie@3400000 {&lt;BR /&gt;compatible = "fsl,lx2160a-pcie";&lt;BR /&gt;reg = &amp;lt;0x00 0x03400000 0x0 0x00100000 /* controller registers */&lt;BR /&gt;0x80 0x00000000 0x0 0x00001000&amp;gt;; /* configuration space */&lt;BR /&gt;.....&lt;BR /&gt;interrupt-names = "aer", "pme", "intr";&lt;BR /&gt;#address-cells = &amp;lt;3&amp;gt;;&lt;BR /&gt;#size-cells = &amp;lt;2&amp;gt;;&lt;BR /&gt;device_type = "pci";&lt;BR /&gt;dma-coherent;&lt;BR /&gt;apio-wins = &amp;lt;8&amp;gt;;&lt;BR /&gt;ppio-wins = &amp;lt;8&amp;gt;;&lt;BR /&gt;bus-range = &amp;lt;0x0 0xff&amp;gt;;&lt;BR /&gt;&lt;FONT color="#FF6600"&gt;ranges = &amp;lt;0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000&amp;gt;; /* non-prefetchable&lt;/FONT&gt; memory */&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;status = "disabled";&lt;BR /&gt;};&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 13:15:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1384572#M9625</guid>
      <dc:creator>muaxi8</dc:creator>
      <dc:date>2021-12-10T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to change PCI memory size</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1385471#M9634</link>
      <description>&lt;P&gt;The first value&amp;nbsp;&lt;SPAN&gt;is the property bitfield of this memory region,&amp;nbsp;0x82000000 specify&amp;nbsp;a non-prefetchable 64-bit memory space.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The second and third values 0x0 0x40000000 are the high and low parts of the 64-bit PCI address to be mapped in, since the high part is 0, the actual address is 0x40000000 .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The fourth and fifth values 0x80 0x40000000 are&amp;nbsp;high and low parts of the CPU's bus to map the segment of the PCI bus into. It is 64-bits on a 64-bit processor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The sixth and seventh values&amp;nbsp;0x0 0x40000000&amp;nbsp;specify the size of the segment to map in. In this case a 1G segment.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;For example, if you want to change&amp;nbsp;&lt;SPAN&gt;PCI memory size to 2G, you need to do the following modification.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;ranges = &amp;lt;0x82000000 0x0 0x40000000 0x80 0x40000000 0x0 0x40000000&amp;gt;; /* non-prefetchable&lt;/FONT&gt;&amp;nbsp;memory */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;modify to:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;ranges = &amp;lt;0x82000000 0x0 0x80000000 0x80 0x80000000 0x0 0x80000000&amp;gt;; /* non-prefetchable&lt;/FONT&gt;&amp;nbsp;memory */&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 08:30:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1385471#M9634</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-12-13T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to change PCI memory size</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1385482#M9635</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Does it have to be at least 1G ？&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My problem now is that it might allocate too much memory, , and I want to make it smaller，if I want to change it to 256M,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;modify to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF6600"&gt;ranges = &amp;lt;0x82000000 0x0 0x10000000 0x80 0x10000000 0x0 0x10000000&amp;gt;; /* non-prefetchable&lt;/FONT&gt;&amp;nbsp;memory */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;it is ok？&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 02:58:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1385482#M9635</guid>
      <dc:creator>muaxi8</dc:creator>
      <dc:date>2021-12-14T02:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change PCI memory size</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1386101#M9642</link>
      <description>&lt;P&gt;It's OK to&amp;nbsp;&lt;SPAN&gt;change it to 256M.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 06:19:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1386101#M9642</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2021-12-14T06:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to change PCI memory size</title>
      <link>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1386184#M9643</link>
      <description>&lt;P&gt;&lt;SPAN&gt;My RC mode is configured as shown below, So my driver should use "/drivers/pci/controller/DWC/pci-layerscapc.c",&amp;nbsp; But there is no information about "fsl, LX2160A-pcie" in the driver code;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="muaxi8_0-1639467961676.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/165072iCD7EF0EB5768D6C2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="muaxi8_0-1639467961676.png" alt="muaxi8_0-1639467961676.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;muaxi8_0-1639467961676.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="muaxi8_1-1639468259635.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/165074i18DE75B2CDAD97AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="muaxi8_1-1639468259635.png" alt="muaxi8_1-1639468259635.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;muaxi8_1-1639468259635.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 07:52:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/How-to-change-PCI-memory-size/m-p/1386184#M9643</guid>
      <dc:creator>muaxi8</dc:creator>
      <dc:date>2021-12-14T07:52:07Z</dc:date>
    </item>
  </channel>
</rss>

