<?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: kexec feature for imx6ul in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/kexec-feature-for-imx6ul/m-p/555042#M86467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, thanks,  a clk should be enabled after command "kexec -e":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/arch/arm/mach-imx/clk-imx6ul.c b/arch/arm/mach-imx/clk-imx6ul.c&lt;/P&gt;&lt;P&gt;index 7bd0a60..ae815bc 100644&lt;/P&gt;&lt;P&gt;--- a/arch/arm/mach-imx/clk-imx6ul.c&lt;/P&gt;&lt;P&gt;+++ b/arch/arm/mach-imx/clk-imx6ul.c&lt;/P&gt;&lt;P&gt;@@ -401,6 +401,15 @@ static void __init imx6ul_clocks_init(struct &lt;/P&gt;&lt;P&gt;device_node *ccm_node)&lt;/P&gt;&lt;P&gt;         /* mask handshake of mmdc */&lt;/P&gt;&lt;P&gt;         writel_relaxed(BM_CCM_CCDR_MMDC_CH0_MASK, base + CCDR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+       /*&lt;/P&gt;&lt;P&gt;+        * As some of the modules need to access ocotp in MSL,&lt;/P&gt;&lt;P&gt;+        * need to make sure ocotp clk(CCM_CCGR2_CG6) is enabled&lt;/P&gt;&lt;P&gt;+        * during MSL, as on i.MX6UL, accessing OCOTP registers&lt;/P&gt;&lt;P&gt;+        * needs its clk on, it will be disabled by clk late&lt;/P&gt;&lt;P&gt;+        * init and managed by ocotp driver.&lt;/P&gt;&lt;P&gt;+        */&lt;/P&gt;&lt;P&gt;+       writel_relaxed(readl_relaxed(base + 0x70) | 1 &amp;lt;&amp;lt; 12, base + 0x70);&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;         for (i = 0; i &amp;lt; ARRAY_SIZE(clks); i++)&lt;/P&gt;&lt;P&gt;                 if (IS_ERR(clks[i]))&lt;/P&gt;&lt;P&gt;                         pr_err("i.MX6UL clk %d: register failed with &lt;/P&gt;&lt;P&gt;%ld\n", i, PTR_ERR(clks[i]));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;czou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Jul 2016 11:19:47 GMT</pubDate>
    <dc:creator>caozou</dc:creator>
    <dc:date>2016-07-26T11:19:47Z</dc:date>
    <item>
      <title>kexec feature for imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kexec-feature-for-imx6ul/m-p/555040#M86465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I find it isn't a good support for kexec in imx6ul with sdk 3.14.52,&amp;nbsp; i have worked in the feature of kexec for some time, it is almost successful,&amp;nbsp; the only failed place is in the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; drivers/thermal/imx_thermal.c:&amp;nbsp;&amp;nbsp;&amp;nbsp; ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function: imx_get_sensor_data: ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret = regmap_read(map, IMX6_OCOTP_ANA1, &amp;amp;val);&amp;nbsp; --&amp;gt; cpu stopped here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know my description is not very summary, i find it will cause the cpu halt for reading some regs, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this:&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; function: imx_get_sensor_data: ---&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ret = regmap_read(map, IMX6_OCOTP_ANA1, &amp;amp;val);&amp;nbsp; --&amp;gt; cpu stopped here.&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;what condition&amp;nbsp; it need to read the reg of IMX6_OCOTP_ANA1, cpu stop here, it need to enable some clk after i run the command "kexec -e".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jul 2016 09:52:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kexec-feature-for-imx6ul/m-p/555040#M86465</guid>
      <dc:creator>caozou</dc:creator>
      <dc:date>2016-07-11T09:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: kexec feature for imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kexec-feature-for-imx6ul/m-p/555041#M86466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class="Normal tm5"&gt; &lt;SPAN class="tm6"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;&amp;nbsp; is it possible to check the issue with the recent Linux release ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;&lt;A href="http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6-series-software-and-development-tool-resources:IMX6_SW" title="http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6-series-software-and-development-tool-resources:IMX6_SW"&gt;i.MX 6 Series Software and Development Tool|NXP&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;Have a great day,&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;Yuri&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="Normal tm5"&gt;&lt;SPAN class="tm6"&gt;------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 09:43:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kexec-feature-for-imx6ul/m-p/555041#M86466</guid>
      <dc:creator>Yuri</dc:creator>
      <dc:date>2016-07-26T09:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: kexec feature for imx6ul</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/kexec-feature-for-imx6ul/m-p/555042#M86467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no, thanks,  a clk should be enabled after command "kexec -e":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff --git a/arch/arm/mach-imx/clk-imx6ul.c b/arch/arm/mach-imx/clk-imx6ul.c&lt;/P&gt;&lt;P&gt;index 7bd0a60..ae815bc 100644&lt;/P&gt;&lt;P&gt;--- a/arch/arm/mach-imx/clk-imx6ul.c&lt;/P&gt;&lt;P&gt;+++ b/arch/arm/mach-imx/clk-imx6ul.c&lt;/P&gt;&lt;P&gt;@@ -401,6 +401,15 @@ static void __init imx6ul_clocks_init(struct &lt;/P&gt;&lt;P&gt;device_node *ccm_node)&lt;/P&gt;&lt;P&gt;         /* mask handshake of mmdc */&lt;/P&gt;&lt;P&gt;         writel_relaxed(BM_CCM_CCDR_MMDC_CH0_MASK, base + CCDR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;+       /*&lt;/P&gt;&lt;P&gt;+        * As some of the modules need to access ocotp in MSL,&lt;/P&gt;&lt;P&gt;+        * need to make sure ocotp clk(CCM_CCGR2_CG6) is enabled&lt;/P&gt;&lt;P&gt;+        * during MSL, as on i.MX6UL, accessing OCOTP registers&lt;/P&gt;&lt;P&gt;+        * needs its clk on, it will be disabled by clk late&lt;/P&gt;&lt;P&gt;+        * init and managed by ocotp driver.&lt;/P&gt;&lt;P&gt;+        */&lt;/P&gt;&lt;P&gt;+       writel_relaxed(readl_relaxed(base + 0x70) | 1 &amp;lt;&amp;lt; 12, base + 0x70);&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;         for (i = 0; i &amp;lt; ARRAY_SIZE(clks); i++)&lt;/P&gt;&lt;P&gt;                 if (IS_ERR(clks[i]))&lt;/P&gt;&lt;P&gt;                         pr_err("i.MX6UL clk %d: register failed with &lt;/P&gt;&lt;P&gt;%ld\n", i, PTR_ERR(clks[i]));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;czou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jul 2016 11:19:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/kexec-feature-for-imx6ul/m-p/555042#M86467</guid>
      <dc:creator>caozou</dc:creator>
      <dc:date>2016-07-26T11:19:47Z</dc:date>
    </item>
  </channel>
</rss>

