<?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: i.MX6UL/optee: How is linux getting out of 'idle' in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-optee-How-is-linux-getting-out-of-idle/m-p/750453#M116789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I was missing the unmasking of interrupt in the GPC...&lt;/P&gt;&lt;P&gt;Now I can resume my CPU "almost" correctly (sometimes, the CPU resets completely instead of being resumed to the address I wrote in the SRC), but it's up to me to fix that :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 07:08:57 GMT</pubDate>
    <dc:creator>vsiles</dc:creator>
    <dc:date>2018-04-24T07:08:57Z</dc:date>
    <item>
      <title>i.MX6UL/optee: How is linux getting out of 'idle'</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-optee-How-is-linux-getting-out-of-idle/m-p/750451#M116787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(The linux I'm using is from &lt;A class="link-titled" href="https://github.com/linaro-swg/" title="https://github.com/linaro-swg/"&gt;Linaro Security Working Group · GitHub&lt;/A&gt;&amp;nbsp; but the same code can be found in Linux's master or NXP repo)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm running Linux in the normal world along side a secure OS (optee or another secure blob) &lt;EM&gt;&lt;STRONG&gt;without&lt;/STRONG&gt;&lt;/EM&gt; the SMP activated, so only 1 core is running. At some point, linux is deciding to put the core into idle, and is running the function &lt;SPAN class=""&gt;imx6sx_enter_wait&lt;/SPAN&gt; (see &lt;A class="link-titled" href="https://github.com/linaro-swg/linux/blob/optee/arch/arm/mach-imx/cpuidle-imx6sx.c" title="https://github.com/linaro-swg/linux/blob/optee/arch/arm/mach-imx/cpuidle-imx6sx.c"&gt;linux/cpuidle-imx6sx.c at optee · linaro-swg/linux · GitHub&lt;/A&gt; ). For what I understood and gathered, this function will completely powerdown the core, which will be restarted by some other device, and set to run the v7_cpu_resume function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is to find how does the core (single core, remember) is reset and restored out of IDLE mode ? I tried to use the SNVS RTC interrupt to do so, but it doesn't seem to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone explain to me how is the core restored after an IDLE, in uniprocessor setup ? A link to the relevant code would be great !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 14:24:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-optee-How-is-linux-getting-out-of-idle/m-p/750451#M116787</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2018-04-19T14:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6UL/optee: How is linux getting out of 'idle'</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-optee-How-is-linux-getting-out-of-idle/m-p/750452#M116788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vincent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for code examples one can look on linux low power driver described&lt;/P&gt;&lt;P&gt;in attached Linux Manual Chapter 21 Low-level Power Management (PM) Driver&lt;/P&gt;&lt;P&gt;and power_mode_switch.c example from MX6UL SDK2.2.&lt;/P&gt;&lt;P&gt;Board Support Packages (9)&lt;BR /&gt;SDK2.2_iMX6UL_WIN&lt;BR /&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6ultralite-evaluation-kit:MCIMX6UL-EVK?tab=Design_Tools_Tab" title="https://www.nxp.com/products/processors-and-microcontrollers/applications-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6ultralite-evaluation-kit:MCIMX6UL-EVK?tab=Design_Tools_Tab"&gt;i.MX6UltraLite Evaluation Kit|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 24 Apr 2018 01:35:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-optee-How-is-linux-getting-out-of-idle/m-p/750452#M116788</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2018-04-24T01:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6UL/optee: How is linux getting out of 'idle'</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-optee-How-is-linux-getting-out-of-idle/m-p/750453#M116789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you. I was missing the unmasking of interrupt in the GPC...&lt;/P&gt;&lt;P&gt;Now I can resume my CPU "almost" correctly (sometimes, the CPU resets completely instead of being resumed to the address I wrote in the SRC), but it's up to me to fix that :smileyhappy:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Apr 2018 07:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6UL-optee-How-is-linux-getting-out-of-idle/m-p/750453#M116789</guid>
      <dc:creator>vsiles</dc:creator>
      <dc:date>2018-04-24T07:08:57Z</dc:date>
    </item>
  </channel>
</rss>

