<?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: Does ls1043a PPA support PSCI function from 32-bit mode core? in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Does-ls1043a-PPA-support-PSCI-function-from-32-bit-mode-core/m-p/614331#M1806</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;1. does my above test approves that PPA support smc command from a 32-bit core?&lt;/P&gt;&lt;P&gt;&amp;gt;2. if no, can you please share me the correct way to use PSCI?&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;[Platon] It is not possible to tell what is wrong with your code without stepping through it in a debugger. Make sure you are using the most recent PPA binary and see how 32-bit Linux invokes PSCI calls in the following kernel source files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arch/arm/kernel/psci-call.S&lt;BR /&gt;arch/arm/kernel/psci.c&lt;BR /&gt;arch/arm/kernel/psci_smp.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;3.Is there a workaround to boot up a secondary core without using smc command?&lt;/P&gt;&lt;P&gt;[Platon] &amp;nbsp;See how PPA does it in soc.c. Refer to LS1043ARM, Sections 12.3.15 and 11.3.54 for more &lt;BR /&gt;information. If you are doing it directly from your code, PPA should not be loaded/initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Mar 2017 13:51:49 GMT</pubDate>
    <dc:creator>bpe</dc:creator>
    <dc:date>2017-03-21T13:51:49Z</dc:date>
    <item>
      <title>Does ls1043a PPA support PSCI function from 32-bit mode core?</title>
      <link>https://community.nxp.com/t5/Layerscape/Does-ls1043a-PPA-support-PSCI-function-from-32-bit-mode-core/m-p/614330#M1805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LS1043A supports two mode: 64-bit mode and 32-bit compatibility mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have verified PSCI functions on 64-bit mode, everything goes fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is two examples (using pseudo code)&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;query the PSCI version&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;move x0, 0x84000000 &amp;nbsp;&lt;/P&gt;&lt;P&gt;smc 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I got result x0 = 0x00000002, means the PSCI version is 0.2&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;UL&gt;&lt;LI&gt;boot up secondary core&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;move x0, 0xc4000003&lt;/P&gt;&lt;P&gt;move x1, cpuId&lt;/P&gt;&lt;P&gt;move x2, imageEntry&lt;/P&gt;&lt;P&gt;smc 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I got result x0 = 0x0, and secondary core is up&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But When I run the CPU on 32 bit compatibility mode (el1 is running on 32-bit), I found the two examples can not work at all. Code is like this:&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;query the PSCI version&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;move r0, 0x84000000 &amp;nbsp;&lt;/P&gt;&lt;P&gt;smc 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I got result r0 = &lt;SPAN style="background-color: #f6f6f6;"&gt;0x84000000&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;boot up secondary core&lt;/LI&gt;&lt;/UL&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: none #f6f6f6; border-left: 2px solid #cccccc; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P&gt;move r0, 0x84000003&lt;/P&gt;&lt;P&gt;move r1, cpuId&lt;/P&gt;&lt;P&gt;move r2, imageEntry&lt;/P&gt;&lt;P&gt;smc 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I got result r0 = &lt;SPAN style="background-color: #f6f6f6;"&gt;0x&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;8&lt;/SPAN&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;4000003&lt;/SPAN&gt;, and secondary core is not up at all&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The test env is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;LS1043ardb board&lt;/LI&gt;&lt;LI&gt;U-boot and ppa.itb are all from "QorIQ Linux SDK v2.0 AARCH64 IMAGE.iso" downloaded from&amp;nbsp;&lt;A class="link-titled" href="https://nxp.flexnetoperations.com/control/frse/download?element=7726177" title="https://nxp.flexnetoperations.com/control/frse/download?element=7726177"&gt;https://nxp.flexnetoperations.com/control/frse/download?element=7726177&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here my question is:&lt;/P&gt;&lt;P&gt;1. does my above test approves that PPA support smc command from a 32-bit core?&lt;/P&gt;&lt;P&gt;2. if no, can you please share me the correct way to use PSCI?&lt;/P&gt;&lt;P&gt;3. if yes, is there a workaround to boot up a secondary core without using smc command?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Mar 2017 06:18:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Does-ls1043a-PPA-support-PSCI-function-from-32-bit-mode-core/m-p/614330#M1805</guid>
      <dc:creator>uncoldice</dc:creator>
      <dc:date>2017-03-03T06:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Does ls1043a PPA support PSCI function from 32-bit mode core?</title>
      <link>https://community.nxp.com/t5/Layerscape/Does-ls1043a-PPA-support-PSCI-function-from-32-bit-mode-core/m-p/614331#M1806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;1. does my above test approves that PPA support smc command from a 32-bit core?&lt;/P&gt;&lt;P&gt;&amp;gt;2. if no, can you please share me the correct way to use PSCI?&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;[Platon] It is not possible to tell what is wrong with your code without stepping through it in a debugger. Make sure you are using the most recent PPA binary and see how 32-bit Linux invokes PSCI calls in the following kernel source files:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arch/arm/kernel/psci-call.S&lt;BR /&gt;arch/arm/kernel/psci.c&lt;BR /&gt;arch/arm/kernel/psci_smp.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;3.Is there a workaround to boot up a secondary core without using smc command?&lt;/P&gt;&lt;P&gt;[Platon] &amp;nbsp;See how PPA does it in soc.c. Refer to LS1043ARM, Sections 12.3.15 and 11.3.54 for more &lt;BR /&gt;information. If you are doing it directly from your code, PPA should not be loaded/initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 13:51:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Does-ls1043a-PPA-support-PSCI-function-from-32-bit-mode-core/m-p/614331#M1806</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2017-03-21T13:51:49Z</dc:date>
    </item>
  </channel>
</rss>

