<?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: kernel memory corruption in galcore under high load in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947819#M141789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Théo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you try to reproduce issue on NXP i.MX6QP Sabre SD or AI reference boards&lt;/P&gt;&lt;P&gt;(only these boards are officially supported for i.MX6QP)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/sabre-board-for-smart-devices-based-on-the-i.mx-6quadplus-applications-processors:RD-IMX6QP-SABRE" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/sabre-board-for-smart-devices-based-on-the-i.mx-6quadplus-applications-processors:RD-IMX6QP-SABRE"&gt;i.MX 6QuadPlus SABRE Development Board | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=SABREAI6QDPLUSQSG" title="https://www.nxp.com/webapp/Download?colCode=SABREAI6QDPLUSQSG"&gt;https://www.nxp.com/webapp/Download?colCode=SABREAI6QDPLUSQSG&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with Demo Image from&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/i.mx-software-and-development-tool:IMX-SW" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/i.mx-software-and-development-tool:IMX-SW"&gt;i.MX Software | 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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jul 2019 14:08:32 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2019-07-22T14:08:32Z</dc:date>
    <item>
      <title>kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947816#M141786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am encoutering an issue with what I suspect is a galcore crash. For testing purposes, I put an i.MX6 QuadPlus under high load (CPU, VPU and GPU).&amp;nbsp; After a few seconds or minutes of this workload (it's random-ish), I have a kernel Oops or panic that leads to the complete freeze of the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can reproduce this problem consistently with two kernel/graphics drivers versions:&lt;/P&gt;&lt;P&gt;- Community's linux-fslc 4.9 with Vivante 6.2.4&lt;/P&gt;&lt;P&gt;- NXP's latest linux-imx 4.19 with Vivante 6.4.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I build the OS images myself using Yocto Thud (meta-freescale).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On Linux 4.9, kernel only reports what look to be memory corruptions (invalid addresses), whereas Linux 4.19 is more explict as to the root cause of the crash, by explicitely mentionning galcore in the stack dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore, problem only occurs when GPU load is close to 100% (as measured by "on" cycles). Whatever the CPU/VPU load are, system will not crash until I start an intensive OpenGL app such as glmark2 which pushes the GPU to its limits.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached in text files a few of those crashes for each of the two kernel versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a known issue with galcore ? Are there any workarounds to prevent this from happening ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Théo Bueno.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 14:12:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947816#M141786</guid>
      <dc:creator>tbueno</dc:creator>
      <dc:date>2019-07-19T14:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947817#M141787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Théo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reason for panic may be ddr errors so one can run ddr test and update image&lt;/P&gt;&lt;P&gt;with new ddr calibration coefficients found from ddr test&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-105652"&gt;i.MX6/7 DDR Stress Test Tool V3.00&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Linux 4.19 is not supported by nxp yet, one can try with latest official Linux L4.14.98&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.14.98_2.0.0_ga" title="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.14.98_2.0.0_ga"&gt;linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"problem only occurs when GPU load is close to 100%" also may point to power supplies,&lt;/P&gt;&lt;P&gt;one can check power supplies values and ripples with oscilloscope (should be &amp;lt; 5%).&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>Fri, 19 Jul 2019 23:10:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947817#M141787</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-07-19T23:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947818#M141788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran the DDR overnight test for 2 days and no error came up. Board is not custom and is pretty widespread (WandBoard 6QuadPlus) so there should not be any memory problem with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to confirm that my power supply is stable enough (about 4% variation due to ripples, 200 mV peak-to-peak between 4.95 and 5.15V). I have tried different power supplies just in case regardless.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the same linux images, problem could not be reproduced on an i.MX6 Quad. I am trying to get ahold of a different QuadPlus board to run the same test, but the bug looks software to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Théo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 13:20:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947818#M141788</guid>
      <dc:creator>tbueno</dc:creator>
      <dc:date>2019-07-22T13:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947819#M141789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Théo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you try to reproduce issue on NXP i.MX6QP Sabre SD or AI reference boards&lt;/P&gt;&lt;P&gt;(only these boards are officially supported for i.MX6QP)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/sabre-board-for-smart-devices-based-on-the-i.mx-6quadplus-applications-processors:RD-IMX6QP-SABRE" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/sabre-board-for-smart-devices-based-on-the-i.mx-6quadplus-applications-processors:RD-IMX6QP-SABRE"&gt;i.MX 6QuadPlus SABRE Development Board | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/webapp/Download?colCode=SABREAI6QDPLUSQSG" title="https://www.nxp.com/webapp/Download?colCode=SABREAI6QDPLUSQSG"&gt;https://www.nxp.com/webapp/Download?colCode=SABREAI6QDPLUSQSG&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;with Demo Image from&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/i.mx-software-and-development-tool:IMX-SW" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/i.mx-evaluation-and-development-boards/i.mx-software-and-development-tool:IMX-SW"&gt;i.MX Software | 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;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jul 2019 14:08:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947819#M141789</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-07-22T14:08:32Z</dc:date>
    </item>
    <item>
      <title>Re: kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947820#M141790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am seeing similar behavior on a custom IMX8QM + Android: the board seems to work&amp;nbsp;okay before some graphics load is applied,&amp;nbsp;e.g. Maps.ME is the one that makes the thing panic. I see random crashes which have one thing in common: those are always "address between user and kernel address ranges" and mostly with a pattern:&lt;/P&gt;&lt;P&gt;[ 1200.047638] Unable to handle kernel paging request at virtual address 78a3d60178a3d600&lt;BR /&gt;[ 591.645365] Unable to handle kernel paging request at virtual address eaecbf00636d3800&lt;BR /&gt;[ 135.177393] Unable to handle kernel paging request at virtual address eaecbf0008bb7dd0 &lt;/P&gt;&lt;P&gt;[&amp;nbsp; &amp;nbsp;76.281789] Unable to handle kernel paging request at virtual address eaecbf0008241f84&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 247.539768] Unable to handle kernel paging request at virtual address eaecbf018ee47a30&lt;/P&gt;&lt;P&gt;[&amp;nbsp; 107.345418] Unable to handle kernel paging request at virtual address eaecbf019cbfd3a0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note high address bits (&lt;SPAN&gt;eaecbf0).&amp;nbsp;&lt;/SPAN&gt;The stack trace mostly points to galcore, but sometimes to some other random kernel code. I am pretty much sure DDR is not the case here, but it looks like GPU user/kernel space issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Oleksandr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 15:30:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947820#M141790</guid>
      <dc:creator>oleksandr_andru</dc:creator>
      <dc:date>2019-12-05T15:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947821#M141791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;issue may be caused by memory (one can test it also with linux memtester)&lt;/P&gt;&lt;P&gt;and board power supplies (check hardware guide for power supplies guidelines).&lt;/P&gt;&lt;P&gt;Try latest NXP Linux L4.19.35_1.1.0&lt;BR /&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.19.35_1.1.0" title="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_4.19.35_1.1.0"&gt;linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2019 01:38:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947821#M141791</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2019-12-06T01:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947822#M141792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the suggestions, but it seems that this is rather a software problem then HW: if we set galcore.contiguousSize to 8/32/128M we see those sporadic crashes. If that size is set to 256M everything goes smooth (wrt crashes).&lt;/P&gt;&lt;P&gt;Could you please suggest what needs to be done on galcore(?) side to avoid the crashes and what would be the reasonable memory size? We are using&amp;nbsp;Galcore version 6.2.4.190076&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Dec 2019 14:59:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947822#M141792</guid>
      <dc:creator>oleksandr_andru</dc:creator>
      <dc:date>2019-12-10T14:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947823#M141793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, the crashes show up with any memory size we give to galcore.&lt;/P&gt;&lt;P&gt;One way the crashes are reproduced more frequently is to give 3328MB of RAM to the board (u-boot tweaks are required). With this change the crashes are easily reproduced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 12:59:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/947823#M141793</guid>
      <dc:creator>oleksandr_andru</dc:creator>
      <dc:date>2019-12-23T12:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: kernel memory corruption in galcore under high load</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/1384663#M184243</link>
      <description>&lt;P&gt;Hi oleksandr_andru&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Were you then able to solve this issue? Was it a SW problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 08:05:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kernel-memory-corruption-in-galcore-under-high-load/m-p/1384663#M184243</guid>
      <dc:creator>sam_raf</dc:creator>
      <dc:date>2021-12-10T08:05:21Z</dc:date>
    </item>
  </channel>
</rss>

