<?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のトピックRe: Interrupt for EPIT is not working in sleep mode.</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356415#M49866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me the whole changes (called in which file, which function) or you can give me a patch, I want to test it on our board. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2014 08:31:35 GMT</pubDate>
    <dc:creator>JasonZhao</dc:creator>
    <dc:date>2014-10-29T08:31:35Z</dc:date>
    <item>
      <title>Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356412#M49863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I moved the question to this community.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;---------------------------------------&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Now I am trying to make a timer which is working at sleep mode of iMX6.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;BSP version is Linux 3.0.35(imx_3.0.35_4.0.0).&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Because already GPT has been used as general timer in the kernel, EPIT has been used for a special timer.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The use case is to wake up the system from sleep mode after several seconds.(for example 100 sec)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I confirmed that the interrupt has worked well at active mode and the timer counter has gone well at sleep mode.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;But there has been always a crash in kernel side whenever the interrupt has happened at sleep mode.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;The setting is below for the special timer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;val = __raw_readl(MXC_CCM_CCGR1);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;val |= (MXC_CCM_CCGRx_CG_MASK &amp;lt;&amp;lt; MXC_CCM_CCGRx_CG6_OFFSET);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; __raw_writel(val, MXC_CCM_CCGR1);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;hwtimer_base = ioremap(EPIT1_BASE_ADDR, SZ_4K);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;&amp;nbsp; __raw_writel(0x0, hwtimer_base + EPITCR);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; __raw_writel(0xffffffff, hwtimer_base + EPITLR);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; __raw_writel(EPITCR_EN | EPITCR_CLKSRC_REF_LOW | EPITCR_WAITEN | EPITCR_STOPEN ,&amp;nbsp; hwtimer_base + EPITCR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; set_irq_flags(MXC_INT_EPIT1, IRQF_VALID);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; val = request_threaded_irq(MXC_INT_EPIT1, NULL, epit_timer_interrupt, IRQF_ONESHOT|IRQF_NO_SUSPEND ,&amp;nbsp; "EPIT1", (void *)0);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; enable_irq_wake(MXC_INT_EPIT1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;val = __raw_readl(hwtimer_base + EPITCR);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;val |= EPITCR_OCIEN;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;__raw_writel(val, hwtimer_base + EPITCR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;tcmp = __raw_readl(hwtimer_base + EPITCNR);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp; __raw_writel(-3200000, hwtimer_base + EPITCMPR);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is there anything for me to do more for this use case?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 02:19:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356412#M49863</guid>
      <dc:creator>jamesban</dc:creator>
      <dc:date>2014-10-28T02:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356413#M49864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it may be useful to look at RTC wake example&lt;/P&gt;&lt;P&gt;mxc_rtc/rtcwakeup.c in imx-test ltib package.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 08:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356413#M49864</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2014-10-28T08:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356414#M49865</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;Thanks for your fast response.&lt;/P&gt;&lt;P&gt;Your suggestion might be a solution.&lt;/P&gt;&lt;P&gt;But I have to implement it in kernel driver. And it could be conflict with RTC alarm application.&lt;/P&gt;&lt;P&gt;According to manual, EPIT have to generate an interrupt properly and system have to wake up properly.&lt;/P&gt;&lt;P&gt;Is not the interrupt of EPIT working originally?&lt;/P&gt;&lt;P&gt;EPIT is best way for me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:24:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356414#M49865</guid>
      <dc:creator>jamesban</dc:creator>
      <dc:date>2014-10-28T09:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356415#M49866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you give me the whole changes (called in which file, which function) or you can give me a patch, I want to test it on our board. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 08:31:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356415#M49866</guid>
      <dc:creator>JasonZhao</dc:creator>
      <dc:date>2014-10-29T08:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356416#M49867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shousheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached the modified file.&lt;/P&gt;&lt;P&gt;The location of this file is arch\arm\plat-mxc.&lt;/P&gt;&lt;P&gt;In the source, the timer is set as 100 sec because the system goes to sleep within 100 sec after boot.&lt;/P&gt;&lt;P&gt;You might need to control the system to go to sleep within 100 sec or extend the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 09:02:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356416#M49867</guid>
      <dc:creator>jamesban</dc:creator>
      <dc:date>2014-10-29T09:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356417#M49868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried you code and it cannot boot,&amp;nbsp; it stopped after uncompressing kerenel.&amp;nbsp; I do the test on i.mx6qsabresd.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MMC read: dev # 2, block # 2048, count 16384 ... 16384 blocks read: OK&lt;/P&gt;&lt;P&gt;## Booting kernel from Legacy Image at 10800000 ...&lt;/P&gt;&lt;P&gt;&amp;nbsp; Image Name:&amp;nbsp; Linux-3.0.35-2666-gbdde708-g997a&lt;/P&gt;&lt;P&gt;&amp;nbsp; Image Type:&amp;nbsp; ARM Linux Kernel Image (uncompressed)&lt;/P&gt;&lt;P&gt;&amp;nbsp; Data Size:&amp;nbsp;&amp;nbsp;&amp;nbsp; 3866712 Bytes =&amp;nbsp; 3.7 MB&lt;/P&gt;&lt;P&gt;&amp;nbsp; Load Address: 10008000&lt;/P&gt;&lt;P&gt;&amp;nbsp; Entry Point:&amp;nbsp; 10008000&lt;/P&gt;&lt;P&gt;&amp;nbsp; Verifying Checksum ... OK&lt;/P&gt;&lt;P&gt;&amp;nbsp; Loading Kernel Image ... OK&lt;/P&gt;&lt;P&gt;OK&lt;/P&gt;&lt;P&gt;Starting kernel ...&lt;/P&gt;&lt;P&gt;Uncompressing Linux... done, booting the kernel.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;(...blocked here, no further log exported...)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the EPIT clock source changing, you should strictly follow the below sequence.&lt;/P&gt;&lt;P&gt;1. Disable the EPIT - set EN=0 in EPIT_EPITCR.&lt;/P&gt;&lt;P&gt;2. Disable EPIT ouput - program OM=00 in the EPIT_EPITCR.&lt;/P&gt;&lt;P&gt;3. Disable EPIT interrupts.&lt;/P&gt;&lt;P&gt;4. Program CLKSRC to desired clock source in EPIT_EPITCR.&lt;/P&gt;&lt;P&gt;5. Clear the EPIT status register (EPIT_EPITSR), that is, write "1" to clear (w1c).&lt;/P&gt;&lt;P&gt;6. Set ENMOD= 1 in the EPIT_EPITCR, to bring the EPIT Counter to defined state (EPIT_EPITLR value or 0xFFFF_FFFF).&lt;/P&gt;&lt;P&gt;7. Enable EPIT - set (EN=1) in the EPIT_EPITCR&lt;/P&gt;&lt;P&gt;8. Enable the EPIT interrupts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 03:54:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356417#M49868</guid>
      <dc:creator>JasonZhao</dc:creator>
      <dc:date>2014-10-30T03:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356418#M49869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shousheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sorry for your inconvenience. &lt;/P&gt;&lt;P&gt;I attached our implementation as a file.&lt;/P&gt;&lt;P&gt;You have to include this file in the Makefile of arch\arm\mach-mx6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;obj-$(CONFIG_MACH_MX6Q_SABRESD) += board-mx6q_sabresd.o mx6q_sabresd_pmic_pfuze100.o dlg.o&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you can call a function in mx6_sabresd_board_init.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void hwtimer_irq(void *data); //dlg add&lt;/P&gt;&lt;P&gt;static void __init mx6_sabresd_board_init(void)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; imx6_add_armpmu();&lt;/P&gt;&lt;P&gt;&amp;nbsp; imx6q_add_perfmon(0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; imx6q_add_perfmon(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp; imx6q_add_perfmon(2);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; hwtimer_irq(NULL); //dlg add&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the log, we can see below interrupt every 10 sec at active mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[HWTIMER] Occurred Interrupt!!!!!!!!!!!!!!!!!&lt;/P&gt;&lt;P&gt;[HWTIMER][mxc_timer_interrupt] #### Restart hwtimer ####&lt;/P&gt;&lt;P&gt;[HWTIMER][hwtimer_start] Function Start&lt;/P&gt;&lt;P&gt;[HWTIMER]EPITCR value = 0x3280003&lt;/P&gt;&lt;P&gt;[HWTIMER]EPITCR value = 0x3280002&lt;/P&gt;&lt;P&gt;[HWTIMER]EPITCR value = 0x3280002&lt;/P&gt;&lt;P&gt;[HWTIMER]EPITCR value = 0x3280002&lt;/P&gt;&lt;P&gt;[HWTIMER][hwtimer_start] Function End&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But we can not see any interrupt at sleep mode. It seems linux go to crash or some abnormal state.&lt;/P&gt;&lt;P&gt;We also applied your suggestion when timer&amp;nbsp; stop and restart. But the result was the same.&lt;/P&gt;&lt;P&gt;Please check it again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 06:01:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356418#M49869</guid>
      <dc:creator>jamesban</dc:creator>
      <dc:date>2014-10-30T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356419#M49870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;I tested&amp;nbsp; the program on L3.0.35 4.1.0, i.mx6qsabresd, and find that it works well. My test step is as following.&lt;/P&gt;&lt;P&gt;1) Run the image&lt;/P&gt;&lt;P&gt;2) Observe that in the active stage, the EPIT interrupt&amp;nbsp; occurred&lt;/P&gt;&lt;P&gt;3) Put&amp;nbsp; the system into low power mode by&lt;/P&gt;&lt;P&gt;echo mem &amp;gt; /sys/power/state&lt;/P&gt;&lt;P&gt;it indeed cannot output the info to console, but it can be wakeup by epit interrupt all the time.&lt;/P&gt;&lt;P&gt;4) I guess the interrupt actually occurred, so I add a delayed workqueue into the isr handler to verify it. It proves the interrupt actually occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code segments:&lt;/P&gt;&lt;P&gt;struct delayed_work zss_dwork;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void do_zss_dwork(struct work_struct *work)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; printk("zss %s:%d called\n",__func__, __LINE__);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INIT_DELAYED_WORK(&amp;amp;zss_dwork, do_zss_dwork);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt; &amp;lt;-----------hwtimer_irq&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;schedule_delayed_work(&amp;amp;zss_dwork,msecs_to_jiffies( 5 * 1000)); &lt;SPAN style="color: #575757;"&gt; &lt;STRONG style="color: #000000;"&gt;&amp;lt;---------hwtimer_start()&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The printed log:&lt;/P&gt;&lt;P&gt;root@freescale ~$ echo mem &amp;gt; /sys/power/state&lt;/P&gt;&lt;P&gt;PM: Syncing filesystems ... done.&lt;/P&gt;&lt;P&gt;Freezing user space processes ... (elapsed 0.01 seconds) done.&lt;/P&gt;&lt;P&gt;Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.&lt;/P&gt;&lt;P&gt;Suspending console(s) (use no_console_suspend to debug)&lt;/P&gt;&lt;P&gt;add wake up source irq 101&lt;/P&gt;&lt;P&gt;add wake up source irq 99&lt;/P&gt;&lt;P&gt;add wake up source irq 103&lt;/P&gt;&lt;P&gt;add wake up source irq 51&lt;/P&gt;&lt;P&gt;PM: suspend of devices complete after 25.270 msecs&lt;/P&gt;&lt;P&gt;PM: late suspend of devices complete after 0.629 msecs&lt;/P&gt;&lt;P&gt;Restarting tasks ... done.&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #000000;"&gt; &amp;lt;---system is waked up by epit interrupt after 5sec&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;zss do_zss_dwork:143 called &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #000000;"&gt;&amp;lt;----delayed scheduled work print out the interrupt&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[HWTIMER] Occurred Interrupt!!!!!!!!!!!!!!!!!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: #000000;"&gt;&amp;lt;--------The next interrupt in active mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;[HWTIMER][mxc_timer_interrupt:87] #### Restart hwtimer ####&lt;/P&gt;&lt;P&gt;[HWTIMER][hwtimer_start:152] Function Start&lt;/P&gt;&lt;P&gt;[HWTIMER]EPITCR value = 0x3280003&lt;/P&gt;&lt;P&gt;[HWTIMER]EPITCR value = 0x3280002&lt;/P&gt;&lt;P&gt;[HWTIMER]EPITCR value = 0x3280002&lt;/P&gt;&lt;P&gt;[HWTIMER]EPITCR value = 0x3280002&lt;/P&gt;&lt;P&gt;[HWTIMER][hwtimer_start:196] Function End&lt;/P&gt;&lt;P&gt;zss do_zss_dwork:143 called&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2014 12:05:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356419#M49870</guid>
      <dc:creator>JasonZhao</dc:creator>
      <dc:date>2014-10-30T12:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356420#M49871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi Shousheng,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Thanks for your testing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;We have tested on &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; L3.0.35 4.0.0 so far. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;The difference between you and me is the version of kernel. Maybe some patch in &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; L3.0.35 4.1.0 could impact on this issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;We will try to port &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; L3.0.35 4.1.0 to our system. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;But if you give me some suggestion about which patch of &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; L3.0.35 4.1.0 could impact on this, it would be very helpful to me.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Because the different between two version is quite much and it takes some time to change whole version.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 06:01:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356420#M49871</guid>
      <dc:creator>jamesban</dc:creator>
      <dc:date>2014-10-31T06:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356421#M49872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, James,&lt;/P&gt;&lt;P&gt;BTW, For safety, I added local_irq_save(flags) and local_irq_restore(flags) pair to embrace epit_irq_disable() or epit_irq_enable() for the test.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2014 08:59:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356421#M49872</guid>
      <dc:creator>JasonZhao</dc:creator>
      <dc:date>2014-10-31T08:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356422#M49873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shousheng,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where can I get the source with &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;L3.0.35 4.1.0 version ? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;and Could you please attach the source you tested ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;William&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 05:20:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356422#M49873</guid>
      <dc:creator>williamseo</dc:creator>
      <dc:date>2014-11-04T05:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt for EPIT is not working in sleep mode.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356423#M49874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi William,&lt;/P&gt;&lt;P&gt;You can get the sourcecode from out official website. you can search "L3.0.35_4.1.0_ER_SOURCE_BSP" to get it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Nov 2014 07:10:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/356423#M49874</guid>
      <dc:creator>JasonZhao</dc:creator>
      <dc:date>2014-11-04T07:10:57Z</dc:date>
    </item>
    <item>
      <title>This an automatic process.  We are marking this post as s...</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/1136180#M161143</link>
      <description>&lt;B&gt;This an automatic process.&lt;/B&gt;&lt;BR /&gt;&lt;BR /&gt;
We are marking this post as solved, due to the either low activity or any reply marked as correct.&lt;BR /&gt;&lt;BR /&gt;
If you have additional questions, please create a new post and reference to this closed post.&lt;BR /&gt;&lt;BR /&gt;
NXP Community!</description>
      <pubDate>Thu, 03 Sep 2020 15:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Interrupt-for-EPIT-is-not-working-in-sleep-mode/m-p/1136180#M161143</guid>
      <dc:creator>CommunityBot</dc:creator>
      <dc:date>2020-09-03T15:19:46Z</dc:date>
    </item>
  </channel>
</rss>

