<?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.MX8MM: wdog: sw reset doesn't work in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150171#M161414</link>
    <description>&lt;P&gt;Hi Flavio&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&lt;SPAN&gt;how to reset the board using the wdog3 and a sw-reset, without any use of WDOG_B pin.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry, I am afraid this is not feasible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
    <pubDate>Tue, 08 Sep 2020 07:53:29 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-09-08T07:53:29Z</dc:date>
    <item>
      <title>i.MX8MM: wdog: sw reset doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1149784#M161351</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;with the mx8mm-evk, I need to use two wdogs with an important requirement: the possibility to distinguish which wdog causes the reboot.&lt;/P&gt;&lt;P&gt;I've choosen wdog1 and wdog3, since the wdog2 is used for TZ.&lt;/P&gt;&lt;P&gt;So I decided to use wdog1 with hw-reset and wdog3 with sw-reset.&lt;/P&gt;&lt;P&gt;All is ok in u-boot: the sw-reset with wdog3 works. For example I tested it with:&lt;/P&gt;&lt;P&gt;mw.w 302a0000 64&lt;/P&gt;&lt;P&gt;But in Linux it doesn't work; I added the wdog3 in the DT, without the "ext-reset-output", in order to use the sw reset only, but, with the same command as in u-boot, the system hangs, but doesn't reset:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;memtool -16 302a0000=64&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;To reset the board I have to wait the wdog1 timeout (60s) or I have to press the mx8mm-evk reset button.&lt;/P&gt;&lt;P&gt;Any idea about how to enable the sw-reset wdog3 in Linux?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Sep 2020 15:28:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1149784#M161351</guid>
      <dc:creator>flaviosuligoi</dc:creator>
      <dc:date>2020-09-07T15:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM: wdog: sw reset doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1149895#M161367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;flaviosuligoi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one can check with oscilloscope if there is toggling signal on&amp;nbsp;GPIO1_IO02,&lt;/P&gt;
&lt;P&gt;on&amp;nbsp;SPF-31399 schematic ("CPU WDOG_B Reset for PMIC") it toggles PMIC.&lt;/P&gt;
&lt;P&gt;Also there are some wdog configs in&amp;nbsp;General Purpose Register 5 (IOMUXC_GPR_GPR5).&lt;/P&gt;
&lt;H3 class="media-flex-heading"&gt;&lt;A id="docsAndSoftware_designResultTitle1_2" class="dtmcustomrulelink" href="https://www.nxp.com/webapp/Download?colCode=8MMINILPD4-EVK-DESIGNFILES" data-dtmaction="Documents and Software Results - Software Link click" data-dtmsubaction="i.MX 8M Mini Evaluation Kit LPDDR4 Design Files" target="_blank"&gt;i.MX 8M Mini Evaluation Kit LPDDR4 Design Files&lt;/A&gt;&lt;SUP&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SUP&gt;&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 00:50:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1149895#M161367</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-08T00:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM: wdog: sw reset doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150120#M161407</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;thanks for your quick answer, but my problem is not how to reset the board with wdog and hw-reset.&lt;/P&gt;&lt;P&gt;My problem is how to reset the board using the wdog3 and a sw-reset, without any use of WDOG_B pin.&lt;/P&gt;&lt;P&gt;At the moment all is ok with u-boot but not in Linux; in Linux, after the wdog3 timeout, the sw-reset starts but it doesn't work and the system hangs, without any reboot. Ok, after 60 seconds the system resets because of the action of wdog1, with its hw-resets using the WDOG_B signal, but this is not what I want.&lt;/P&gt;&lt;P&gt;I ask this because, after a boot, I need to distinguish between the action of the two POR/hwreset/wdog1 and wdog3 (sw reset).&lt;/P&gt;&lt;P&gt;I hope I have been clearer now.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 07:10:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150120#M161407</guid>
      <dc:creator>flaviosuligoi</dc:creator>
      <dc:date>2020-09-08T07:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM: wdog: sw reset doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150171#M161414</link>
      <description>&lt;P&gt;Hi Flavio&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&lt;SPAN&gt;how to reset the board using the wdog3 and a sw-reset, without any use of WDOG_B pin.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sorry, I am afraid this is not feasible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 07:53:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150171#M161414</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-08T07:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM: wdog: sw reset doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150209#M161425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I tried and it seems WDOG1 reset it OK, but WDOG3 reset failed..&lt;/P&gt;
&lt;P&gt;root@imx8mmevk:~# /unit_tests/memtool -16 0x30280000=0x74&lt;BR /&gt;Writing 16-bit value 0x74 to address 0x30280000&lt;BR /&gt;root@imx8mmevk:~#&lt;BR /&gt;U-Boot SPL 2018.03 (May 29 2020 - 16:00:02 +0800)&lt;BR /&gt;power_bd71837_init&lt;BR /&gt;DDRINFO: start lpddr4 ddr init&lt;BR /&gt;DRAM PHY training for 3000MTS&lt;BR /&gt;check ddr4_pmu_train_imem code&lt;BR /&gt;check ddr4_pmu_train_imem code pass&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From ./arch/arm64/boot/dts/freescale/imx8mm-evk.dts, it seems only wdog1 is enabled. wdog3 is disabled by default.&lt;/P&gt;
&lt;P&gt;&amp;amp;wdog1 {&lt;BR /&gt;pinctrl-names = "default";&lt;BR /&gt;pinctrl-0 = &amp;lt;&amp;amp;pinctrl_wdog&amp;gt;;&lt;BR /&gt;fsl,ext-reset-output;&lt;BR /&gt;status = "okay";&lt;BR /&gt;};&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Could you enable wdog3 in dts and have a try?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Thanks!&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Terry&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 08:45:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150209#M161425</guid>
      <dc:creator>terry_lv</dc:creator>
      <dc:date>2020-09-08T08:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM: wdog: sw reset doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150258#M161433</link>
      <description>&lt;P&gt;Hi Igor,&lt;/P&gt;&lt;P&gt;but the sw-reset (without WDOG_B) with wdog3, in u-boot, works good. After the reset, in u-boot, as "reset cause", I read:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Reset cause: WDOG3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Why does it not work in Linux?&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:22:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150258#M161433</guid>
      <dc:creator>flaviosuligoi</dc:creator>
      <dc:date>2020-09-08T09:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM: wdog: sw reset doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150268#M161434</link>
      <description>&lt;P&gt;Hi Terry,&lt;/P&gt;&lt;P&gt;I have already enabled the wdog3 with the sw-reset, both in u-boot and in Linux kernel).&lt;/P&gt;&lt;P&gt;With u-boot, when the wdog3 timeout expires, the sw-reset works works good.&lt;/P&gt;&lt;P&gt;The problem is that it doesn't work in Linux: with wdog3 (programmed for sw-reset, without using WDOG_B pin), when the wdog3 timeout expires, the system hang immediately, no reset occurs.&lt;/P&gt;&lt;P&gt;Flavio&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 09:27:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150268#M161434</guid>
      <dc:creator>flaviosuligoi</dc:creator>
      <dc:date>2020-09-08T09:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX8MM: wdog: sw reset doesn't work</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150382#M161452</link>
      <description>&lt;P&gt;Hi Flavio&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yes it may work (like in uboot) and may not work (as in linux).&lt;/P&gt;
&lt;P&gt;Reason is that when reset is used with all board power-off/on sequence&lt;/P&gt;
&lt;P&gt;all processor modules and external components are placed in predetermined&lt;/P&gt;
&lt;P&gt;known state (as in first board power-up). When reset is used without all board reset,&lt;/P&gt;
&lt;P&gt;some external components (like emmc, spi-nor e.t.c.) are left in random state.&lt;/P&gt;
&lt;P&gt;In some cases if the memory was trying to read memory back to the processor when the SDCLK&lt;BR /&gt;was removed, the memory may try to finish the read cycle when the SDCLK is first restored.&lt;/P&gt;
&lt;P&gt;So processor can not proceed normally as it expects all modules to be in&lt;/P&gt;
&lt;P&gt;some known predefined state (as in first board power-up).&lt;/P&gt;
&lt;P&gt;You can try to analyze which peripheral (it may be processor module or external&lt;/P&gt;
&lt;P&gt;component) is left in "wrong" state, for example dump all processor registers&lt;/P&gt;
&lt;P&gt;and compare it with "good" case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;</description>
      <pubDate>Tue, 08 Sep 2020 13:21:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX8MM-wdog-sw-reset-doesn-t-work/m-p/1150382#M161452</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-09-08T13:21:43Z</dc:date>
    </item>
  </channel>
</rss>

