<?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: Clearification on imx8mp watchdog. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Clearification-on-imx8mp-watchdog/m-p/1675823#M208129</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I exported the watchdog timer to the sysfs, however only watchdog0 was exported to the userspace and not watchdog.&amp;nbsp; He is the output from my linux terminal&lt;/P&gt;&lt;P&gt;~ # ls /dev/watch*&lt;BR /&gt;/dev/watchdog dev/watchdog0&lt;BR /&gt;~ # ls /sys/class/watch*&lt;BR /&gt;watchdog0&lt;/P&gt;&lt;P&gt;Why is the watchdog not exported to the sysfs so that I can inspect the parameters of the watchdog timer.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jun 2023 08:22:18 GMT</pubDate>
    <dc:creator>ababatola</dc:creator>
    <dc:date>2023-06-26T08:22:18Z</dc:date>
    <item>
      <title>Clearification on imx8mp watchdog.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clearification-on-imx8mp-watchdog/m-p/1669378#M207610</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I would like to test my i.mx8mp hardware watchdog and I need a clarification on this.&lt;/P&gt;&lt;P&gt;The command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;echo 'V' &amp;gt; /dev/watchdog&lt;/P&gt;&lt;P&gt;disables he watchdog?&amp;nbsp; Which means that the watchdog is no longer working.&lt;/P&gt;&lt;P&gt;After executing this command and them I enter the below command&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cat &amp;gt;&amp;gt; /dev/watchdog&lt;/P&gt;&lt;P&gt;The watchdog operates as expected and resets the system.&lt;/P&gt;&lt;P&gt;My understanding is that if the watchdog is disabled, the above command should not lead to a reset unless the watchdog is enabled back.&lt;/P&gt;&lt;P&gt;Also after the&amp;nbsp;&lt;/P&gt;&lt;P&gt;echo 'V' &amp;gt; /dev/watchdog&lt;/P&gt;&lt;P&gt;command the watchdog daemon is still working.&amp;nbsp; This is an extract from my shell&lt;/P&gt;&lt;P&gt;~ # echo 'V' &amp;gt; /dev/watchdog&lt;BR /&gt;~ # ps -e | grep watchdogd&lt;BR /&gt;81 root [watchdogd]&lt;BR /&gt;330 root grep watchdogd&lt;/P&gt;&lt;P&gt;Is this behaviour correct?&lt;/P&gt;&lt;P&gt;Thanks&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>Wed, 14 Jun 2023 14:18:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clearification-on-imx8mp-watchdog/m-p/1669378#M207610</guid>
      <dc:creator>ababatola</dc:creator>
      <dc:date>2023-06-14T14:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Clearification on imx8mp watchdog.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clearification-on-imx8mp-watchdog/m-p/1669550#M207617</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;According to the Kernel documentation that is called the 'Magic Close' feature:&lt;/P&gt;
&lt;P&gt;If a driver supports "Magic Close", the driver will not disable the watchdog unless a specific magic character 'V' has been sent to /dev/watchdog just before closing the file. If the userspace daemon closes the file without sending this special character, the driver will assume that the daemon (and userspace in general) died, and will stop pinging the watchdog without disabling it first. This will then cause a reboot if the watchdog is not re-opened in sufficient time.&lt;/P&gt;
&lt;P&gt;And according to the i.MX Linux reference manual:&lt;/P&gt;
&lt;P&gt;After the WDOG timer is activated, it must be serviced by software on a periodic basis and the watchdog module cannot be deactivated after it is activated.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;Jorge.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 19:07:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clearification-on-imx8mp-watchdog/m-p/1669550#M207617</guid>
      <dc:creator>JorgeCas</dc:creator>
      <dc:date>2023-06-14T19:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Clearification on imx8mp watchdog.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Clearification-on-imx8mp-watchdog/m-p/1675823#M208129</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I exported the watchdog timer to the sysfs, however only watchdog0 was exported to the userspace and not watchdog.&amp;nbsp; He is the output from my linux terminal&lt;/P&gt;&lt;P&gt;~ # ls /dev/watch*&lt;BR /&gt;/dev/watchdog dev/watchdog0&lt;BR /&gt;~ # ls /sys/class/watch*&lt;BR /&gt;watchdog0&lt;/P&gt;&lt;P&gt;Why is the watchdog not exported to the sysfs so that I can inspect the parameters of the watchdog timer.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 08:22:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Clearification-on-imx8mp-watchdog/m-p/1675823#M208129</guid>
      <dc:creator>ababatola</dc:creator>
      <dc:date>2023-06-26T08:22:18Z</dc:date>
    </item>
  </channel>
</rss>

