<?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: Soft reset LS1021A from Linux</title>
    <link>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621537#M1884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can turn off cpu1 by writing 0 to&amp;nbsp;/sys/devices/system/cpu/cpu1/online&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;echo &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;sys&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;devices&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;system&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;cpu&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;cpu1&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;online&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;LS1021A does not allow shutting down cpu0 this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to perform core soft reset instead of turning off/on cpu cores.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Jan 2017 19:44:42 GMT</pubDate>
    <dc:creator>rahulr</dc:creator>
    <dc:date>2017-01-17T19:44:42Z</dc:date>
    <item>
      <title>Soft reset LS1021A from Linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621535#M1882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My understanding is that the Linux&amp;nbsp;&lt;EM&gt;reboot&lt;/EM&gt; command will cause a watchdog timeout to create the reset condition.&amp;nbsp;Is there a Linux command to perform a core&amp;nbsp;soft reset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Section&amp;nbsp;4.4.3 (Core soft reset) of the LS1021A reference manual explains steps for soft reset. Since I am using Linux, do I need to manually manipulate registers and create ISRs if I were to write a tool for soft reset?&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Write '1' to SCFG_CORESRENCR[CORESREN], to enable the soft reset to the corresponding core.&lt;/LI&gt;&lt;LI&gt;Write '1' to SCFG_CORE0_SFT_RST[SOFT_RESET] and SCFG_CORE1_SFT_RST[SOFT_RESET] to enable the soft reset to the core 0 and core 1 respectively. Writing '1' to these bits triggers the corresponding interrupt to respective cores (Interrupt ID 228 and Interrupt ID 229). The interrupts need to be configured as edge trigger interrupt.&lt;/LI&gt;&lt;LI&gt;Perform the GIC interrupt mapping as follows:&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;Enable the interrupt.&lt;/LI&gt;&lt;LI&gt;Select edge trigger mode.&lt;/LI&gt;&lt;LI&gt;Route 228 to core 0 and 229 to core 1.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;In the core 0 ISR, set SCFG_CORE0SFTRSTSR[SFTRST] for the chip to recognize the soft reset to core 0 and execute WFI instruction.&lt;/LI&gt;&lt;LI&gt;In the core 1 ISR, execute the WFI instruction.&lt;/LI&gt;&lt;LI&gt;Once the cores execute WFI instruction, COP generates the corresponding core soft reset.&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 02:52:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621535#M1882</guid>
      <dc:creator>rahulr</dc:creator>
      <dc:date>2017-01-17T02:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Soft reset LS1021A from Linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621536#M1883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you look at&amp;nbsp;arch/arm/mach-imx/platsmp.c you can see the code used to boot the secondary procesor in SMP configuration.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you just want to reset this core you can use the linux CPU hotplug support to bring the secondary core down and up again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 17:07:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621536#M1883</guid>
      <dc:creator>erdani80</dc:creator>
      <dc:date>2017-01-17T17:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Soft reset LS1021A from Linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621537#M1884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can turn off cpu1 by writing 0 to&amp;nbsp;/sys/devices/system/cpu/cpu1/online&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;echo &lt;SPAN class="number token"&gt;0&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;sys&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;devices&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;system&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;cpu&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;cpu1&lt;SPAN class="operator token"&gt;/&lt;/SPAN&gt;online&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;LS1021A does not allow shutting down cpu0 this way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for a way to perform core soft reset instead of turning off/on cpu cores.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Jan 2017 19:44:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621537#M1884</guid>
      <dc:creator>rahulr</dc:creator>
      <dc:date>2017-01-17T19:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Soft reset LS1021A from Linux</title>
      <link>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621538#M1885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then probably the best option is to add the soft reset to the kernel either in a driver or into a custom syscall and call this code from userspace using a compatible method: syscall calling from C code or driver manipulation using sysfs or ioctl for example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2017 08:52:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Soft-reset-LS1021A-from-Linux/m-p/621538#M1885</guid>
      <dc:creator>erdani80</dc:creator>
      <dc:date>2017-01-18T08:52:46Z</dc:date>
    </item>
  </channel>
</rss>

