<?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>i.MX ProcessorsのトピックDoes PSCI work on iMX7D?</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904916#M136526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working on a device that has iMX7D on it. I would need to have PSCI integrated for it so that I could get the processor cores to the low power mode.&lt;/P&gt;&lt;P&gt;I would like to know whether iMX7D supports PSCI / whether PSCI has been verified to be working on iMX7D?&lt;/P&gt;&lt;P&gt;If PSCI is supported, which U-Boot and Kernel versions contain PSCI support for iMX7D?&lt;/P&gt;&lt;P&gt;If there are any iMX7 &amp;amp; PSCI specific integration documents or guidelines to share, I would appreciate if you'd share such documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Jari Peltonen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2019 13:05:23 GMT</pubDate>
    <dc:creator>jaripeltonen</dc:creator>
    <dc:date>2019-05-22T13:05:23Z</dc:date>
    <item>
      <title>Does PSCI work on iMX7D?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904916#M136526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working on a device that has iMX7D on it. I would need to have PSCI integrated for it so that I could get the processor cores to the low power mode.&lt;/P&gt;&lt;P&gt;I would like to know whether iMX7D supports PSCI / whether PSCI has been verified to be working on iMX7D?&lt;/P&gt;&lt;P&gt;If PSCI is supported, which U-Boot and Kernel versions contain PSCI support for iMX7D?&lt;/P&gt;&lt;P&gt;If there are any iMX7 &amp;amp; PSCI specific integration documents or guidelines to share, I would appreciate if you'd share such documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Jari Peltonen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 13:05:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904916#M136526</guid>
      <dc:creator>jaripeltonen</dc:creator>
      <dc:date>2019-05-22T13:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Does PSCI work on iMX7D?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904917#M136527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me try to clarify MX7 secure versus non-secure boot.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We boot the mainline kernel in non-secure mode. In this case it brings up the secondary CPU via PSCI method.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In U-boot mainline we have two targets for mx7dsabresd:&lt;/P&gt;&lt;P&gt;mx7dsabresd_defconfig that boots in non-secure mode (used to boot a mainline kernel)&lt;/P&gt;&lt;P&gt;mx7dsabresd_secure_defconfig that boots in secure mode (used to boot a NXP kernel)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please read this thread:&lt;/P&gt;&lt;P&gt;&lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.mail-archive.com%2Fsearch%3Fl%3Dlinux-kernel%40vger.kernel.org%26q%3Dsubject%3A%2522Re%255C%253A%2B%255C%255BPATCH%2Bv8%2B2%255C%252F2%255C%255D%2BARM%255C%253A%2Bimx%255C%253A%2Bsupport%2Bsuspend%2Bstates%2Bon%2Bimx7D%2522%26o%3Dnewest%26f%3D1" rel="nofollow" target="_blank"&gt;https://www.mail-archive.com/search?l=linux-kernel@vger.kernel.org&amp;amp;q=subject:%22Re%5C%3A+%5C%5BPATCH+v8+2%5C%2F2%5C%5D+A…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It shows&amp;nbsp; patch submission to support mx7d suspend/resume and the discussion as to why the i.MX kernel maintainer preferred the PSCI mechanism.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In this thread you can see the related files in arch/arm/mach-imx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2019 14:23:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904917#M136527</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2019-05-22T14:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Does PSCI work on iMX7D?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904918#M136528</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;Thanks for your comments!&lt;/P&gt;&lt;P&gt;I would still like to know whether there's a specific U-Boot and/or Kernel version from which onwards PSCI is supported for iMX7?&lt;/P&gt;&lt;P&gt;I am currently trying to get PSCI functionality working for an iMX7D based device, my U-Boot is based on branch "2018.11+fslc" and Kernel is based on branch "4.19.x+fslc", both are fetched from Freescale Github.&lt;/P&gt;&lt;P&gt;I've done modifications both in U-Boot and Kernel side and I can see PSCI specific messages on the trace log during boot.&lt;/P&gt;&lt;P&gt;When I try to enable "Deep Sleep" (echo mem &amp;gt; /sys/power/state), my SW reports e.g. following;&lt;/P&gt;&lt;P&gt;[ 204.051195] PM: suspend entry (deep)&lt;BR /&gt;[ 204.054841] PM: Syncing filesystems ... done.&lt;BR /&gt;[ 204.089906] Freezing user space processes ... (elapsed 0.002 seconds) done.&lt;BR /&gt;[ 204.099226] OOM killer disabled.&lt;BR /&gt;[ 204.102595] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.&lt;BR /&gt;[ 204.112082] Suspending console(s) (use no_console_suspend to debug)&lt;BR /&gt;[ 204.214777] PM: suspend devices took 0.100 seconds&lt;BR /&gt;[ 204.231623] Disabling non-boot CPUs ...&lt;BR /&gt;[ 204.310491] Retrying again to check for CPU kill&lt;BR /&gt;[ 204.310523] CPU1 killed.&lt;BR /&gt;[ 204.312275] Enabling non-boot CPUs ...&lt;BR /&gt;[ 204.313757] CPU1 is up&lt;BR /&gt;[ 204.399057] mmc0: queuing unknown CIS tuple 0x01 (3 bytes)&lt;BR /&gt;[ 204.409474] mmc0: queuing unknown CIS tuple 0x1a (5 bytes)&lt;BR /&gt;[ 204.414087] mmc0: queuing unknown CIS tuple 0x1b (8 bytes)&lt;BR /&gt;[ 204.415025] mmc0: queuing unknown CIS tuple 0x14 (0 bytes)&lt;BR /&gt;[ 204.424152] PM: resume devices took 0.100 seconds&lt;BR /&gt;[ 204.473425] OOM killer enabled.&lt;BR /&gt;[ 204.476602] Restarting tasks ... done.&lt;BR /&gt;[ 204.483206] PM: suspend exit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But during the "Deep Sleep" period it still draws a lot of current (29mA).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another obsevation is that when I enabled PSCI_CHECKER and it is run during boot, it reports;&lt;/P&gt;&lt;P&gt;[ 2.870803] psci_checker: PSCI checker started using 2 CPUs&lt;BR /&gt;[ 2.876406] psci_checker: Starting hotplug tests&lt;BR /&gt;[ 2.881171] psci_checker: Trying to turn off and on again all CPUs&lt;BR /&gt;[ 2.967112] psci_checker: Trying to turn off and on again group 0 (CPUs 0-1)&lt;BR /&gt;[ 3.053635] psci_checker: Hotplug tests passed OK&lt;BR /&gt;[ 3.058511] psci_checker: Starting suspend tests (10 cycles per state)&lt;BR /&gt;[ 3.066328] psci_checker: CPU 0 entering suspend cycles, states 1 through 1&lt;BR /&gt;[ 3.066394] psci_checker: CPU 1 entering suspend cycles, states 1 through 1&lt;BR /&gt;[ 3.073436] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 0)&lt;BR /&gt;[ 3.080499] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 0)&lt;BR /&gt;[ 3.088665] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 1)&lt;BR /&gt;[ 3.096703] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 1)&lt;BR /&gt;[ 3.104844] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 2)&lt;BR /&gt;[ 3.113006] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 2)&lt;BR /&gt;[ 3.121183] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 3)&lt;BR /&gt;[ 3.129293] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 3)&lt;BR /&gt;[ 3.137384] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 4)&lt;BR /&gt;[ 3.145533] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 4)&lt;BR /&gt;[ 3.153662] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 5)&lt;BR /&gt;[ 3.161819] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 5)&lt;BR /&gt;[ 3.169954] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 6)&lt;BR /&gt;[ 3.178121] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 6)&lt;BR /&gt;[ 3.186198] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 7)&lt;BR /&gt;[ 3.194347] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 7)&lt;BR /&gt;[ 3.202491] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 8)&lt;BR /&gt;[ 3.210645] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 8)&lt;BR /&gt;[ 3.218782] psci_checker: Failed to suspend CPU 0: error -1 (requested state 1, cycle 9)&lt;BR /&gt;[ 3.226890] psci_checker: Failed to suspend CPU 1: error -1 (requested state 1, cycle 9)&lt;BR /&gt;[ 3.367143] [&amp;lt;c01545ec&amp;gt;] (kthread_stop) from [&amp;lt;c10693d0&amp;gt;] (psci_checker+0x358/0x46c)&lt;BR /&gt;[ 3.380593] [&amp;lt;c1069078&amp;gt;] (psci_checker) from [&amp;lt;c0103370&amp;gt;] (do_one_initcall+0x90/0x32c)&lt;BR /&gt;[ 3.515784] psci_checker: CPU 0 suspend test results: success 0, shallow states 0, errors 10&lt;BR /&gt;[ 3.649465] [&amp;lt;c01545ec&amp;gt;] (kthread_stop) from [&amp;lt;c10693d0&amp;gt;] (psci_checker+0x358/0x46c)&lt;BR /&gt;[ 3.662913] [&amp;lt;c1069078&amp;gt;] (psci_checker) from [&amp;lt;c0103370&amp;gt;] (do_one_initcall+0x90/0x32c)&lt;BR /&gt;[ 3.798129] psci_checker: CPU 1 suspend test results: success 0, shallow states 0, errors 10&lt;BR /&gt;[ 3.806877] psci_checker: 20 error(s) encountered in suspend tests&lt;BR /&gt;[ 3.813155] psci_checker: PSCI checker completed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, both of these examples indicate that something is wrong inmy configuration.&lt;/P&gt;&lt;P&gt;Based on the log messages, are you able to give me any advice on why this happens and where to fix it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; best regards,&lt;/P&gt;&lt;P&gt;Jari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 May 2019 13:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904918#M136528</guid>
      <dc:creator>jaripeltonen</dc:creator>
      <dc:date>2019-05-23T13:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Does PSCI work on iMX7D?</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904919#M136529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sending this new message as I haven't heard from you in a while...&lt;/P&gt;&lt;P&gt;If you have any advice to share or comment regarding this topic, please let me know!&lt;/P&gt;&lt;P&gt;The main questions still remain:&lt;/P&gt;&lt;P&gt;- is PSCI method verified on iMX7?&lt;/P&gt;&lt;P&gt;- is there any document describing the steps needed to implement the PSCI support in an iMX7 based custom project?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additional questions regarding current consumption optimization;&lt;/P&gt;&lt;P&gt;- is PSCI supposed to do automatically the needed tricks to optimize current consumption when entering Deep Sleep (e.g. turning off PMIC voltage outputs)&lt;/P&gt;&lt;P&gt;- or should I implement a specific power-down entry sequence that turns off the PMIC voltage outputs that are not needed during Deep Sleep?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 09:35:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Does-PSCI-work-on-iMX7D/m-p/904919#M136529</guid>
      <dc:creator>jaripeltonen</dc:creator>
      <dc:date>2019-06-05T09:35:01Z</dc:date>
    </item>
  </channel>
</rss>

