<?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 Re: imx6 solo linux kernel memory map and PCIe device? in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427766#M64965</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The driver in question isn't the driver for the imx6 PCIe root device, but rather a driver for a device that I'm connecting to the PCIe bus with the imx6 as master.&amp;nbsp; We designed the device (well, sort of, it's an FPGA so our driver is heavily based on sample code from the manufacturer) so I don't think your answer applies.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand it, the FPGA registers get memory mapped into the imx6 memory space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2015 12:30:11 GMT</pubDate>
    <dc:creator>jpa</dc:creator>
    <dc:date>2015-06-25T12:30:11Z</dc:date>
    <item>
      <title>imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427764#M64963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to bring up a (Yocto) linux PCIe device driver that I've used successfully under the QorIQ SDK, now porting to the imx6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The driver fails when calling pci_request_regions.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking this may be because:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Virtual kernel memory layout:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; vector&amp;nbsp; : 0xffff0000 - 0xffff1000&amp;nbsp;&amp;nbsp; (&amp;nbsp;&amp;nbsp; 4 kB)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fixmap&amp;nbsp; : 0xfff00000 - 0xfffe0000&amp;nbsp;&amp;nbsp; ( 896 kB)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif; line-height: 1.5;"&gt;and lspci for my PCIe device says:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Region 0: Memory at fffc0000 (32-bit, non-prefetchable) [disabled] [size=256K]&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Region 1: Memory at fffc0000 (32-bit, non-prefetchable) [disabled] [size=256K]&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Does it make sense that the vector/fixmap memory space and the memory mapped region for the PCIe device are conflicting?&amp;nbsp; Or am I confusing memory spaces?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;If it does, is there a (relatively) easy way to move the vector space to another address location for the imx6 in the context of Yocto and u-boot ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Or must I redesign the PCIe device?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;John&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 19:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427764#M64963</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-06-24T19:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427765#M64964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you simply use the mx6 pci driver instead?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is located at drivers/pci/host/pci-imx6.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 22:12:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427765#M64964</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2015-06-24T22:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427766#M64965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The driver in question isn't the driver for the imx6 PCIe root device, but rather a driver for a device that I'm connecting to the PCIe bus with the imx6 as master.&amp;nbsp; We designed the device (well, sort of, it's an FPGA so our driver is heavily based on sample code from the manufacturer) so I don't think your answer applies.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I understand it, the FPGA registers get memory mapped into the imx6 memory space. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 12:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427766#M64965</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-06-25T12:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427767#M64966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For what it's worth, this &lt;A _jive_internal="true" href="https://community.nxp.com/thread/328248"&gt;&lt;/A&gt;&lt;A href="https://community.freescale.com/thread/328248" target="test_blank"&gt;https://community.freescale.com/thread/328248&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;seems like a very similar, if not the same, problem.&amp;nbsp;&amp;nbsp; There's some kind of issue with pci_request_regions and Lattice ECP FPGAs.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 19:55:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427767#M64966</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-06-25T19:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427768#M64967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you also try this with a 4.1 kernel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If the problem still happens with this version, then I would suggest you to post this to &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:linux-pci@vger.kernel.org"&gt;linux-pci@vger.kernel.org&lt;/A&gt;&lt;SPAN&gt; so that someone could potentially help. Please also Cc the mx6 pci driver maintainers as shown by&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;./scripts/get_maintainer.pl -f drivers/pci/host/pci-imx6.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2015 20:01:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427768#M64967</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2015-06-25T20:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427769#M64968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure I understand what you mean by '4.1 kernel'.&amp;nbsp;&amp;nbsp; I'm using 3.14.28, which I believe is the latest released.&amp;nbsp; Are you referring to "L3.0.101_4.1.1" ?&amp;nbsp; Isn't that a significant step backwards, particularly for pcie fixes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem seems to be limited to the imx6, as the exact same FPGA firmware works with the QorIQ P1010, acknowledging that they're running different kernels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=L3.0.101_4.1.1_IM6QDLS_BUNDLE&amp;amp;appType=license&amp;amp;location=null&amp;amp;fpsp=1&amp;amp;WT_TYPE=Board%20Support%20Packages&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=gz&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.gz&amp;amp;Parent_nodeId=1276810298241720831102&amp;amp;Parent_pageType=product" title="https://www.freescale.com/webapp/Download?colCode=L3.0.101_4.1.1_IM6QDLS_BUNDLE&amp;amp;appType=license&amp;amp;location=null&amp;amp;fpsp=1&amp;amp;WT_TYPE=Board%20Support%20Packages&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=gz&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.gz&amp;amp;Parent_nodeId=1276810298241720831102&amp;amp;Parent_pageType=product"&gt; &lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 15:19:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427769#M64968</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-06-26T15:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427770#M64969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant kernel 4.1 from kernel.org:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.kernel.org/" title="https://www.kernel.org/"&gt;https://www.kernel.org/&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be interesting to see if such problem happens with this version as well and get the feedback from the PCI maintainers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 15:47:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427770#M64969</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2015-06-26T15:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427771#M64970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I'd need a lot of help to get from a manufacturer's custom BSP layered on top of Freescale's Yocto release to a full-custom kernel.&amp;nbsp; But I'm up for it if you are. :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 16:52:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427771#M64970</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-06-26T16:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427772#M64971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To run 4.1 is very simple:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After doing the git clone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make imx_v6_v7_defconfig&lt;/P&gt;&lt;P&gt;make&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;make &amp;lt;your.dtb&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then copy zImage and dtb to your SD card.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fabio Estevam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 16:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427772#M64971</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2015-06-26T16:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427773#M64972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We seem to have found some success by enabling PCIe in u-boot (2014.04).&amp;nbsp; Now when I halt the boot at the u-boot prompt, and type "pci handle 01:00.00" the result shows that the BAR addresses have been re-mapped to new, non-duplicate locations.&amp;nbsp;&amp;nbsp; If I continue with the kernel boot, my driver no longer fails when reserving the new addresses.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My guess is that u-boot is doing something to initialize the PCIe properly that the kernel boot is not, but this is beyond my expertise.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not successful building 4.1.&amp;nbsp; My guess is that your instructions assume a native build, not a cross-compile.&amp;nbsp; I know the Yocto documentation talks about the possibility of a complete custom kernel build, and if I get time, I may explore that further.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:02:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427773#M64972</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-07-01T14:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427774#M64973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prior to building I export the cross compile:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;export ARCH=arm&lt;/P&gt;&lt;P&gt;export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adjust your CROSS_COMPILE as needed to match your toolchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting finding that U-boot makes things to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would still be interesting to know if 4.1 works fine without PCI being enabled in U-boot or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then we try to see the missing initialization from 3.14.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jul 2015 14:09:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427774#M64973</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2015-07-01T14:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427775#M64974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enabling PCIe in u-boot allowed our driver to load, but we had intermittent errors where the kernel wouldn't start.&amp;nbsp; I think maybe you wrote the comment in u-boot that indicates that we have to pick either u-boot or the kernel for configuring pcie, but not both, because of a pcie_reset/enumeration problem with the imx6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I'm trying your suggestion to use 4.1.2 of the kernel.&amp;nbsp;&amp;nbsp; I used the DTB from the board manufacturer.&amp;nbsp; It kernel panics with "buggy DT: spidev listed directly in DT" and also can't find the rootfs...I think it's looking for it on mmc1 and the new kernel is putting it at mmc0.&amp;nbsp; I think I know how to fix the second problem with a change to u-boot. &lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #51626f;"&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427775#M64974</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-07-15T17:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427776#M64975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With mainline U-boot + mainline kernel it is possible to have PCI enabled in both U-boot and kernel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About your SPI error, it comes from:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;commit 956b200a846e324322f6211034c734c65a38e550&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Author: Mark Brown &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:broonie@kernel.org"&gt;broonie@kernel.org&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Date:&amp;nbsp;&amp;nbsp; Fri Mar 27 16:36:04 2015 -0700&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi: spidev: Warn loudly if instantiated from DT as "spidev"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Since spidev is a detail of how Linux controls a device rather than a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; description of the hardware in the system we should never have a node&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; described as "spidev" in DT, any SPI device could be a spidev so this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; is just not a useful description.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; In order to help prevent users from writing such device trees generate a&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; warning if spidev is instantiated as a DT node without an ID in the match&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Signed-off-by: Mark Brown &amp;lt;&lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:broonie@kernel.org"&gt;broonie@kernel.org&lt;/A&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:20:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427776#M64975</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2015-07-15T17:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427777#M64976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Fabio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{Edit: Sorry, our messages crossed.&amp;nbsp; I can try re-enabling pcie in u-boot and kernel with 4.1.2 kernel and see if that has the intermittent kernel hang}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4.1.2 doesn't help, the device's registers still don't get remapped into the proper I/O space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dmesg is attached, note that&lt;/P&gt;&lt;P&gt;pci 0000:01:00.0: reg 0x10: [mem 0xfffc0000-0xffffffff]&lt;/P&gt;&lt;P&gt;pci 0000:01:00.0: reg 0x14: [mem 0xfffc0000-0xffffffff]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;never gets remapped, and it's bars are not assigned. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:52:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427777#M64976</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-07-15T17:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427778#M64977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please report this problem to the linux-pci list with the PCI maintainers on Cc (see an earlier post where I send the details).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2015 17:55:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427778#M64977</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2015-07-15T17:55:51Z</dc:date>
    </item>
    <item>
      <title>Re: imx6 solo linux kernel memory map and PCIe device?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427779#M64978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As reported before, with PCIe enabled in both u-boot and kernel, we experienced intermittent hangs at "Starting Kernel".&amp;nbsp; I'd guess that it was 1 out of 10 times, but it was very unpredictable.&amp;nbsp; Kernel is 3.14.28, u-boot is 2014.04.&amp;nbsp;&amp;nbsp; Our board vendor replicated this behavior with other carrier boards and PCIe devices.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we only enabled PCIe in the kernel (and not in u-boot), our device was not being assigned resources, so the base address registers remained at the same (invalid) locations that were specified in the device design.&amp;nbsp; I determined that the resources weren't being allocated to our device because our class was set to "0", and at some point, the kernel ignores the device and does not assign resources if the class is unknown.&amp;nbsp; Assigning a non-zero class to the device caused the kernel to assign resources and remap the bars, and everything worked.&amp;nbsp;&amp;nbsp; With PCIe enabled in the kernel only, we never saw the intermittent hang.&amp;nbsp;&amp;nbsp; I'm guessing the behavior of ignoring devices with class=0 is new, and so the reason we didn't encounter the same problem with other processor builds is because they were using older kernels, but I did not go back to the kernel source of the other builds to confirm this.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is now closed as far as I'm concerned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2015 19:40:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx6-solo-linux-kernel-memory-map-and-PCIe-device/m-p/427779#M64978</guid>
      <dc:creator>jpa</dc:creator>
      <dc:date>2015-07-28T19:40:17Z</dc:date>
    </item>
  </channel>
</rss>

