<?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 PCIe hotplug support in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1405797#M9945</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Does ls1043a or ls1046a has support for pcie hotplug ? If yes, let me know how to use the hotplug feature.&lt;/P&gt;&lt;P&gt;I have already tried using below commands&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/bus/pci/devices/&amp;lt;device id&amp;gt;/remove&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/bus/pci/rescan&lt;/P&gt;&lt;P&gt;And i am able to find pci devices properly but memory allocation for BARs is not happening on rescan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Trinath K&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jan 2022 07:28:11 GMT</pubDate>
    <dc:creator>TrinathK</dc:creator>
    <dc:date>2022-01-27T07:28:11Z</dc:date>
    <item>
      <title>PCIe hotplug support</title>
      <link>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1405797#M9945</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Does ls1043a or ls1046a has support for pcie hotplug ? If yes, let me know how to use the hotplug feature.&lt;/P&gt;&lt;P&gt;I have already tried using below commands&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/bus/pci/devices/&amp;lt;device id&amp;gt;/remove&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/bus/pci/rescan&lt;/P&gt;&lt;P&gt;And i am able to find pci devices properly but memory allocation for BARs is not happening on rescan.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Trinath K&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 07:28:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1405797#M9945</guid>
      <dc:creator>TrinathK</dc:creator>
      <dc:date>2022-01-27T07:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: PCIe hotplug support</title>
      <link>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1406315#M9951</link>
      <description>&lt;P&gt;&lt;EM&gt;1. Suppose the PCIe device under /sys/bus/pci/devices/0001:01:00.0 is the Intel PCIe e1000e network card, recognized as eth6. The /sys/bus/pci/devices/0001:00:00.0 is the bus of network card. Configure an ip and ping another host which is in the same subnet, make sure the network card works well.&lt;BR /&gt;# ls /sys/bus/pci/devices/0001:01:00.0/net&lt;BR /&gt;eth6&lt;BR /&gt;# ifconfig eth6 192.168.2.36&lt;BR /&gt;# ping 192.168.2.1&amp;nbsp;-I eth6&lt;BR /&gt;PING 192.168.2.1 (192.168.2.1): 56 data bytes&lt;BR /&gt;64 bytes from 192.168.2.1: seq=0 ttl=64 time=0.454 ms&lt;BR /&gt;64 bytes from 192.168.2.1: seq=1 ttl=64 time=0.251 ms&lt;BR /&gt;64 bytes from 192.168.2.1: seq=2 ttl=64 time=0.272 ms&lt;BR /&gt;&lt;BR /&gt;2. Remove the PCIe network card from system.&lt;BR /&gt;# echo 1 &amp;gt; /sys/bus/pci/devices/0001:01:00.0/remove&lt;BR /&gt;[ 422.446123] e1000e 0001:01:00.0 eth6: NIC Link is Down&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;3. Check whether the PCIe network card still exists in system. All should fail.&lt;BR /&gt;# ifconfig eth6&lt;BR /&gt;eth6: error fetching interface information: Device not found&lt;BR /&gt;# ls /sys/bus/pci/devices/0001:01:00.0&lt;BR /&gt;ls: cannot access '/sys/bus/pci/devices/0001:01:00.0': No such file or directory&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;4. Rescan it from the bus.&lt;BR /&gt;# echo 1 &amp;gt; /sys/bus/pci/devices/0001:00:00.0/rescan&lt;BR /&gt;[ 665.279319] pci 0001:01:00.0: [8086:107d] type 00 class 0x020000&lt;BR /&gt;[ 665.285425] pci 0001:01:00.0: reg 0x10: [mem 0x4840000000-0x484001ffff]&lt;BR /&gt;[ 665.292074] pci 0001:01:00.0: reg 0x14: [mem 0x4840020000-0x484003ffff]&lt;BR /&gt;[ 665.298725] pci 0001:01:00.0: reg 0x18: [io 0x10000-0x1001f]&lt;BR /&gt;[ 665.304591] pci 0001:01:00.0: reg 0x30: [mem 0x4840040000-0x484005ffff pref]&lt;BR /&gt;[ 665.311841] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold&lt;BR /&gt;[ 665.318167] pci 0001:01:00.0: disabling ASPM on pre-1.1 PCIe device. You can enable it with 'pcie_aspm=force'&lt;BR /&gt;[ 665.329029] pci 0001:01:00.0: BAR 0: assigned [mem 0x4840000000-0x484001ffff]&lt;BR /&gt;[ 665.336176] pci 0001:01:00.0: BAR 1: assigned [mem 0x4840020000-0x484003ffff]&lt;BR /&gt;[ 665.343329] pci 0001:01:00.0: BAR 6: assigned [mem 0x4840040000-0x484005ffff pref]&lt;BR /&gt;[ 665.350904] pci 0001:01:00.0: BAR 2: assigned [io 0x10000-0x1001f]&lt;BR /&gt;[ 665.357464] e1000e 0001:01:00.0: Interrupt Throttling Rate (ints/sec) set to dynamic conservative mode&lt;BR /&gt;[ 665.526288] e1000e 0001:01:00.0 eth0: (PCI Express:2.5GT/s:Width x1) 00:15:17:c6:48:a2&lt;BR /&gt;[ 665.534226] e1000e 0001:01:00.0 eth0: Intel(R) PRO/1000 Network Connection&lt;BR /&gt;[ 665.541189] e1000e 0001:01:00.0 eth0: MAC: 1, PHY: 4, PBA No: E55239-001&lt;BR /&gt;&lt;BR /&gt;5. Check whether the device is rescanned and works well.&lt;BR /&gt;# ls /sys/bus/pci/devices/0001:01:00.0/net&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;eth0 &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;# ifconfig eth0 192.168.2.36&lt;BR /&gt;# # ping 192.168.2.1&amp;nbsp;-I eth0&lt;BR /&gt;PING 192.168.2.1 (192.168.2.1): 56 data bytes&lt;BR /&gt;64 bytes from 192.168.2.1: seq=0 ttl=64 time=0.470 ms&lt;BR /&gt;64 bytes from 192.168.2.1: seq=1 ttl=64 time=0.284 ms&lt;BR /&gt;64 bytes from 192.168.2.1: seq=2 ttl=64 time=0.297 ms&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 01:18:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1406315#M9951</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-01-28T01:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: PCIe hotplug support</title>
      <link>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1406411#M9953</link>
      <description>&lt;P&gt;Hi Yiping Wang,&lt;/P&gt;&lt;P&gt;Thanks for the reply. I have established PCIe communication between ls1043ardb (layerscape board as Root complex) and Beagleboard x15 (as endpoint). I enabled PCIe hotplug in kernel configuration of ls1043ardb.&lt;/P&gt;&lt;P&gt;And i have already used "remove" and "rescan" and everything is working fine. I can able to detect my endpoint after rescan. but sometimes BARs are being unassigned.&lt;/P&gt;&lt;P&gt;Firstly, how may i know if a board support hotplug feature or not. In reference manual of ls1043 and ls1046, nothing is mentioned about pcie hotplug.&lt;/P&gt;&lt;P&gt;Also as per my understanding, hardware support is also required for hotplug feature to work. please explain on it.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 05:45:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1406411#M9953</guid>
      <dc:creator>TrinathK</dc:creator>
      <dc:date>2022-01-28T05:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: PCIe hotplug support</title>
      <link>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1406427#M9954</link>
      <description>&lt;P&gt;Would you please create a new thread to ask the hardware team to explain it.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 06:30:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1406427#M9954</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2022-01-28T06:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: PCIe hotplug support</title>
      <link>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1406831#M9959</link>
      <description>&lt;P&gt;Ok&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 04:37:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/PCIe-hotplug-support/m-p/1406831#M9959</guid>
      <dc:creator>TrinathK</dc:creator>
      <dc:date>2022-01-29T04:37:05Z</dc:date>
    </item>
  </channel>
</rss>

