<?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 Linux BSP can suspend only one time. in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-BSP-can-suspend-only-one-time/m-p/977491#M145417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to suspend/resume function with i.MX6Q SABRE-AI + base board.&lt;/P&gt;&lt;P&gt;Using Linux BSP is a L4.19.35-1.1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first time, it is success to suspend by following command and success to resume by button on base board.&lt;/P&gt;&lt;P&gt;&amp;gt; echo mem &amp;gt; /sys/power/state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;root@imx6qsabreauto:~# echo mem &amp;gt; /sys/power/state&lt;BR /&gt;PM: suspend entry (deep)&lt;BR /&gt;PM: Syncing filesystems ... done.&lt;BR /&gt;Freezing user space processes ... (elapsed 0.001 seconds) done.&lt;BR /&gt;OOM killer disabled.&lt;BR /&gt;Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.&lt;BR /&gt;Suspending console(s) (use no_console_suspend to debug)&lt;BR /&gt;PM: suspend devices took 0.050 seconds&lt;BR /&gt;Disabling non-boot CPUs ...&lt;BR /&gt;CPU1 killed.&lt;BR /&gt;CPU2 killed.&lt;BR /&gt;IRQ 17: no longer affine to CPU3&lt;BR /&gt;CPU3 killed.&lt;BR /&gt;Enabling non-boot CPUs ...&lt;BR /&gt;CPU1 is up&lt;BR /&gt;CPU2 is up&lt;BR /&gt;CPU3 is up&lt;BR /&gt;PM: resume devices took 0.060 seconds&lt;BR /&gt;OOM killer enabled.&lt;BR /&gt;Restarting tasks ... done.&lt;BR /&gt;PM: suspend exit&lt;BR /&gt;root@imx6qsabreauto:~# ata1: SATA link down (SStatus 0 SControl 300)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But try to suspend after resume, it will be failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;root@imx6qsabreauto:~# ata1: SATA link down (SStatus 0 SControl 300)&lt;BR /&gt;echo mem &amp;gt; /sys/power/state&lt;BR /&gt;PM: suspend entry (deep)&lt;BR /&gt;PM: Syncing filesystems ... done.&lt;BR /&gt;Freezing user space processes ... (elapsed 0.001 seconds) done.&lt;BR /&gt;OOM killer disabled.&lt;BR /&gt;Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.&lt;BR /&gt;Suspending console(s) (use no_console_suspend to debug)&lt;BR /&gt;dpm_run_callback(): egalax_ts_suspend+0x0/0x3c returns -6&lt;BR /&gt;PM: Device 1-0004 failed to suspend: error -6&lt;BR /&gt;PM: Some devices failed to suspend, or early wake event detected&lt;BR /&gt;PM: resume devices took 0.020 seconds&lt;BR /&gt;OOM killer enabled.&lt;BR /&gt;Restarting tasks ... done.&lt;BR /&gt;PM: suspend exit&lt;BR /&gt;-sh: echo: write error: No such device or address&lt;BR /&gt;root@imx6qsabreauto:~# ata1: SATA link down (SStatus 0 SControl 300)&lt;BR /&gt;random: crng init done&lt;BR /&gt;random: 7 urandom warning(s) missed due to ratelimiting&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;In third time, it will dump some trace log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;echo mem &amp;gt; /sys/power/state&lt;BR /&gt;PM: suspend entry (deep)&lt;BR /&gt;PM: Syncing filesystems ... done.&lt;BR /&gt;Freezing user space processes ... (elapsed 0.001 seconds) done.&lt;BR /&gt;OOM killer disabled.&lt;BR /&gt;Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.&lt;BR /&gt;Suspending console(s) (use no_console_suspend to debug)&lt;BR /&gt;------------[ cut here ]------------&lt;BR /&gt;WARNING: CPU: 2 PID: 585 at kernel/irq/devres.c:146 devm_free_irq+0x78/0x80&lt;BR /&gt;Modules linked in: mxc_v4l2_capture ipu_bg_overlay_sdc ipu_still ipu_prp_enc ipu_csi_enc ipu_fg_overlay_sdc adv7180_tvin v4l2_int_device mxc_dcic galcore(O)&lt;BR /&gt;CPU: 2 PID: 585 Comm: sh Tainted: G O 4.19.35-1.1.0+g0f9917c #1&lt;BR /&gt;Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)&lt;BR /&gt;[&amp;lt;8010f7a0&amp;gt;] (unwind_backtrace) from [&amp;lt;8010b798&amp;gt;] (show_stack+0x10/0x14)&lt;BR /&gt;[&amp;lt;8010b798&amp;gt;] (show_stack) from [&amp;lt;80a109a8&amp;gt;] (dump_stack+0x78/0x8c)&lt;BR /&gt;[&amp;lt;80a109a8&amp;gt;] (dump_stack) from [&amp;lt;8012f24c&amp;gt;] (__warn+0xd4/0xf0)&lt;BR /&gt;[&amp;lt;8012f24c&amp;gt;] (__warn) from [&amp;lt;8012f2a8&amp;gt;] (warn_slowpath_null+0x40/0x48)&lt;BR /&gt;[&amp;lt;8012f2a8&amp;gt;] (warn_slowpath_null) from [&amp;lt;8017856c&amp;gt;] (devm_free_irq+0x78/0x80)&lt;BR /&gt;[&amp;lt;8017856c&amp;gt;] (devm_free_irq) from [&amp;lt;806a253c&amp;gt;] (egalax_ts_suspend+0x1c/0x3c)&lt;BR /&gt;[&amp;lt;806a253c&amp;gt;] (egalax_ts_suspend) from [&amp;lt;80541520&amp;gt;] (dpm_run_callback.constprop.5+0x48/0xd0)&lt;BR /&gt;[&amp;lt;80541520&amp;gt;] (dpm_run_callback.constprop.5) from [&amp;lt;80542124&amp;gt;] (__device_suspend+0xf0/0x390)&lt;BR /&gt;[&amp;lt;80542124&amp;gt;] (__device_suspend) from [&amp;lt;805433d0&amp;gt;] (dpm_suspend+0x114/0x20c)&lt;BR /&gt;[&amp;lt;805433d0&amp;gt;] (dpm_suspend) from [&amp;lt;8016e368&amp;gt;] (suspend_devices_and_enter+0xec/0x60c)&lt;BR /&gt;[&amp;lt;8016e368&amp;gt;] (suspend_devices_and_enter) from [&amp;lt;8016ebdc&amp;gt;] (pm_suspend+0x354/0x3ac)&lt;BR /&gt;[&amp;lt;8016ebdc&amp;gt;] (pm_suspend) from [&amp;lt;8016d56c&amp;gt;] (state_store+0x6c/0xcc)&lt;BR /&gt;[&amp;lt;8016d56c&amp;gt;] (state_store) from [&amp;lt;8028b154&amp;gt;] (kernfs_fop_write+0xe8/0x1c8)&lt;BR /&gt;[&amp;lt;8028b154&amp;gt;] (kernfs_fop_write) from [&amp;lt;80217a44&amp;gt;] (__vfs_write+0x2c/0x160)&lt;BR /&gt;[&amp;lt;80217a44&amp;gt;] (__vfs_write) from [&amp;lt;80217d00&amp;gt;] (vfs_write+0xa4/0x17c)&lt;BR /&gt;[&amp;lt;80217d00&amp;gt;] (vfs_write) from [&amp;lt;80217f18&amp;gt;] (ksys_write+0x4c/0xac)&lt;BR /&gt;[&amp;lt;80217f18&amp;gt;] (ksys_write) from [&amp;lt;80101000&amp;gt;] (ret_fast_syscall+0x0/0x54)&lt;BR /&gt;Exception stack(0xd8a1ffa8 to 0xd8a1fff0)&lt;BR /&gt;ffa0: 00000004 00e5cee0 00000001 00e5cee0 00000004 00000000&lt;BR /&gt;ffc0: 00000004 00e5cee0 76eaebe0 00000004 00e5cee0 00000004 00000000 00000000&lt;BR /&gt;ffe0: 00000070 7ea2c938 76ddad44 76e3446c&lt;BR /&gt;---[ end trace 20e3247c9a996374 ]---&lt;BR /&gt;------------[ cut here ]------------&lt;BR /&gt;WARNING: CPU: 2 PID: 585 at kernel/irq/manage.c:1600 __free_irq+0xb4/0x310&lt;BR /&gt;Trying to free already-free IRQ 146&lt;BR /&gt;Modules linked in: mxc_v4l2_capture ipu_bg_overlay_sdc ipu_still ipu_prp_enc ipu_csi_enc ipu_fg_overlay_sdc adv7180_tvin v4l2_int_device mxc_dcic galcore(O)&lt;BR /&gt;CPU: 2 PID: 585 Comm: sh Tainted: G W O 4.19.35-1.1.0+g0f9917c #1&lt;BR /&gt;Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)&lt;BR /&gt;[&amp;lt;8010f7a0&amp;gt;] (unwind_backtrace) from [&amp;lt;8010b798&amp;gt;] (show_stack+0x10/0x14)&lt;BR /&gt;[&amp;lt;8010b798&amp;gt;] (show_stack) from [&amp;lt;80a109a8&amp;gt;] (dump_stack+0x78/0x8c)&lt;BR /&gt;[&amp;lt;80a109a8&amp;gt;] (dump_stack) from [&amp;lt;8012f24c&amp;gt;] (__warn+0xd4/0xf0)&lt;BR /&gt;[&amp;lt;8012f24c&amp;gt;] (__warn) from [&amp;lt;8012eeb0&amp;gt;] (warn_slowpath_fmt+0x48/0x6c)&lt;BR /&gt;[&amp;lt;8012eeb0&amp;gt;] (warn_slowpath_fmt) from [&amp;lt;8017443c&amp;gt;] (__free_irq+0xb4/0x310)&lt;BR /&gt;[&amp;lt;8017443c&amp;gt;] (__free_irq) from [&amp;lt;80174710&amp;gt;] (free_irq+0x38/0x8c)&lt;BR /&gt;[&amp;lt;80174710&amp;gt;] (free_irq) from [&amp;lt;80178544&amp;gt;] (devm_free_irq+0x50/0x80)&lt;BR /&gt;[&amp;lt;80178544&amp;gt;] (devm_free_irq) from [&amp;lt;806a253c&amp;gt;] (egalax_ts_suspend+0x1c/0x3c)&lt;BR /&gt;[&amp;lt;806a253c&amp;gt;] (egalax_ts_suspend) from [&amp;lt;80541520&amp;gt;] (dpm_run_callback.constprop.5+0x48/0xd0)&lt;BR /&gt;[&amp;lt;80541520&amp;gt;] (dpm_run_callback.constprop.5) from [&amp;lt;80542124&amp;gt;] (__device_suspend+0xf0/0x390)&lt;BR /&gt;[&amp;lt;80542124&amp;gt;] (__device_suspend) from [&amp;lt;805433d0&amp;gt;] (dpm_suspend+0x114/0x20c)&lt;BR /&gt;[&amp;lt;805433d0&amp;gt;] (dpm_suspend) from [&amp;lt;8016e368&amp;gt;] (suspend_devices_and_enter+0xec/0x60c)&lt;BR /&gt;[&amp;lt;8016e368&amp;gt;] (suspend_devices_and_enter) from [&amp;lt;8016ebdc&amp;gt;] (pm_suspend+0x354/0x3ac)&lt;BR /&gt;[&amp;lt;8016ebdc&amp;gt;] (pm_suspend) from [&amp;lt;8016d56c&amp;gt;] (state_store+0x6c/0xcc)&lt;BR /&gt;[&amp;lt;8016d56c&amp;gt;] (state_store) from [&amp;lt;8028b154&amp;gt;] (kernfs_fop_write+0xe8/0x1c8)&lt;BR /&gt;[&amp;lt;8028b154&amp;gt;] (kernfs_fop_write) from [&amp;lt;80217a44&amp;gt;] (__vfs_write+0x2c/0x160)&lt;BR /&gt;[&amp;lt;80217a44&amp;gt;] (__vfs_write) from [&amp;lt;80217d00&amp;gt;] (vfs_write+0xa4/0x17c)&lt;BR /&gt;[&amp;lt;80217d00&amp;gt;] (vfs_write) from [&amp;lt;80217f18&amp;gt;] (ksys_write+0x4c/0xac)&lt;BR /&gt;[&amp;lt;80217f18&amp;gt;] (ksys_write) from [&amp;lt;80101000&amp;gt;] (ret_fast_syscall+0x0/0x54)&lt;BR /&gt;Exception stack(0xd8a1ffa8 to 0xd8a1fff0)&lt;BR /&gt;ffa0: 00000004 00e5cee0 00000001 00e5cee0 00000004 00000000&lt;BR /&gt;ffc0: 00000004 00e5cee0 76eaebe0 00000004 00e5cee0 00000004 00000000 00000000&lt;BR /&gt;ffe0: 00000070 7ea2c938 76ddad44 76e3446c&lt;BR /&gt;---[ end trace 20e3247c9a996375 ]---&lt;BR /&gt;dpm_run_callback(): egalax_ts_suspend+0x0/0x3c returns -6&lt;BR /&gt;PM: Device 1-0004 failed to suspend: error -6&lt;BR /&gt;PM: Some devices failed to suspend, or early wake event detected&lt;BR /&gt;PM: resume devices took 0.020 seconds&lt;BR /&gt;ata1: SATA link down (SStatus 0 SControl 300)&lt;BR /&gt;OOM killer enabled.&lt;BR /&gt;Restarting tasks ... done.&lt;BR /&gt;PM: suspend exit&lt;BR /&gt;-sh: echo: write error: No such device or address&lt;BR /&gt;&lt;A href="mailto:root@imx6qsabreauto:~"&gt;root@imx6qsabreauto:~#&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;On android BSP N7.1.2-2.0.0, it success to suspend/resume by sw5 on base board.&lt;/P&gt;&lt;P&gt;Why can't Linux BSP suspend properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ishii.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Jan 2020 13:15:56 GMT</pubDate>
    <dc:creator>takayuki_ishii</dc:creator>
    <dc:date>2020-01-20T13:15:56Z</dc:date>
    <item>
      <title>Linux BSP can suspend only one time.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-BSP-can-suspend-only-one-time/m-p/977491#M145417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to suspend/resume function with i.MX6Q SABRE-AI + base board.&lt;/P&gt;&lt;P&gt;Using Linux BSP is a L4.19.35-1.1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In first time, it is success to suspend by following command and success to resume by button on base board.&lt;/P&gt;&lt;P&gt;&amp;gt; echo mem &amp;gt; /sys/power/state&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;root@imx6qsabreauto:~# echo mem &amp;gt; /sys/power/state&lt;BR /&gt;PM: suspend entry (deep)&lt;BR /&gt;PM: Syncing filesystems ... done.&lt;BR /&gt;Freezing user space processes ... (elapsed 0.001 seconds) done.&lt;BR /&gt;OOM killer disabled.&lt;BR /&gt;Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.&lt;BR /&gt;Suspending console(s) (use no_console_suspend to debug)&lt;BR /&gt;PM: suspend devices took 0.050 seconds&lt;BR /&gt;Disabling non-boot CPUs ...&lt;BR /&gt;CPU1 killed.&lt;BR /&gt;CPU2 killed.&lt;BR /&gt;IRQ 17: no longer affine to CPU3&lt;BR /&gt;CPU3 killed.&lt;BR /&gt;Enabling non-boot CPUs ...&lt;BR /&gt;CPU1 is up&lt;BR /&gt;CPU2 is up&lt;BR /&gt;CPU3 is up&lt;BR /&gt;PM: resume devices took 0.060 seconds&lt;BR /&gt;OOM killer enabled.&lt;BR /&gt;Restarting tasks ... done.&lt;BR /&gt;PM: suspend exit&lt;BR /&gt;root@imx6qsabreauto:~# ata1: SATA link down (SStatus 0 SControl 300)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But try to suspend after resume, it will be failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;root@imx6qsabreauto:~# ata1: SATA link down (SStatus 0 SControl 300)&lt;BR /&gt;echo mem &amp;gt; /sys/power/state&lt;BR /&gt;PM: suspend entry (deep)&lt;BR /&gt;PM: Syncing filesystems ... done.&lt;BR /&gt;Freezing user space processes ... (elapsed 0.001 seconds) done.&lt;BR /&gt;OOM killer disabled.&lt;BR /&gt;Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.&lt;BR /&gt;Suspending console(s) (use no_console_suspend to debug)&lt;BR /&gt;dpm_run_callback(): egalax_ts_suspend+0x0/0x3c returns -6&lt;BR /&gt;PM: Device 1-0004 failed to suspend: error -6&lt;BR /&gt;PM: Some devices failed to suspend, or early wake event detected&lt;BR /&gt;PM: resume devices took 0.020 seconds&lt;BR /&gt;OOM killer enabled.&lt;BR /&gt;Restarting tasks ... done.&lt;BR /&gt;PM: suspend exit&lt;BR /&gt;-sh: echo: write error: No such device or address&lt;BR /&gt;root@imx6qsabreauto:~# ata1: SATA link down (SStatus 0 SControl 300)&lt;BR /&gt;random: crng init done&lt;BR /&gt;random: 7 urandom warning(s) missed due to ratelimiting&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;In third time, it will dump some trace log.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;echo mem &amp;gt; /sys/power/state&lt;BR /&gt;PM: suspend entry (deep)&lt;BR /&gt;PM: Syncing filesystems ... done.&lt;BR /&gt;Freezing user space processes ... (elapsed 0.001 seconds) done.&lt;BR /&gt;OOM killer disabled.&lt;BR /&gt;Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.&lt;BR /&gt;Suspending console(s) (use no_console_suspend to debug)&lt;BR /&gt;------------[ cut here ]------------&lt;BR /&gt;WARNING: CPU: 2 PID: 585 at kernel/irq/devres.c:146 devm_free_irq+0x78/0x80&lt;BR /&gt;Modules linked in: mxc_v4l2_capture ipu_bg_overlay_sdc ipu_still ipu_prp_enc ipu_csi_enc ipu_fg_overlay_sdc adv7180_tvin v4l2_int_device mxc_dcic galcore(O)&lt;BR /&gt;CPU: 2 PID: 585 Comm: sh Tainted: G O 4.19.35-1.1.0+g0f9917c #1&lt;BR /&gt;Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)&lt;BR /&gt;[&amp;lt;8010f7a0&amp;gt;] (unwind_backtrace) from [&amp;lt;8010b798&amp;gt;] (show_stack+0x10/0x14)&lt;BR /&gt;[&amp;lt;8010b798&amp;gt;] (show_stack) from [&amp;lt;80a109a8&amp;gt;] (dump_stack+0x78/0x8c)&lt;BR /&gt;[&amp;lt;80a109a8&amp;gt;] (dump_stack) from [&amp;lt;8012f24c&amp;gt;] (__warn+0xd4/0xf0)&lt;BR /&gt;[&amp;lt;8012f24c&amp;gt;] (__warn) from [&amp;lt;8012f2a8&amp;gt;] (warn_slowpath_null+0x40/0x48)&lt;BR /&gt;[&amp;lt;8012f2a8&amp;gt;] (warn_slowpath_null) from [&amp;lt;8017856c&amp;gt;] (devm_free_irq+0x78/0x80)&lt;BR /&gt;[&amp;lt;8017856c&amp;gt;] (devm_free_irq) from [&amp;lt;806a253c&amp;gt;] (egalax_ts_suspend+0x1c/0x3c)&lt;BR /&gt;[&amp;lt;806a253c&amp;gt;] (egalax_ts_suspend) from [&amp;lt;80541520&amp;gt;] (dpm_run_callback.constprop.5+0x48/0xd0)&lt;BR /&gt;[&amp;lt;80541520&amp;gt;] (dpm_run_callback.constprop.5) from [&amp;lt;80542124&amp;gt;] (__device_suspend+0xf0/0x390)&lt;BR /&gt;[&amp;lt;80542124&amp;gt;] (__device_suspend) from [&amp;lt;805433d0&amp;gt;] (dpm_suspend+0x114/0x20c)&lt;BR /&gt;[&amp;lt;805433d0&amp;gt;] (dpm_suspend) from [&amp;lt;8016e368&amp;gt;] (suspend_devices_and_enter+0xec/0x60c)&lt;BR /&gt;[&amp;lt;8016e368&amp;gt;] (suspend_devices_and_enter) from [&amp;lt;8016ebdc&amp;gt;] (pm_suspend+0x354/0x3ac)&lt;BR /&gt;[&amp;lt;8016ebdc&amp;gt;] (pm_suspend) from [&amp;lt;8016d56c&amp;gt;] (state_store+0x6c/0xcc)&lt;BR /&gt;[&amp;lt;8016d56c&amp;gt;] (state_store) from [&amp;lt;8028b154&amp;gt;] (kernfs_fop_write+0xe8/0x1c8)&lt;BR /&gt;[&amp;lt;8028b154&amp;gt;] (kernfs_fop_write) from [&amp;lt;80217a44&amp;gt;] (__vfs_write+0x2c/0x160)&lt;BR /&gt;[&amp;lt;80217a44&amp;gt;] (__vfs_write) from [&amp;lt;80217d00&amp;gt;] (vfs_write+0xa4/0x17c)&lt;BR /&gt;[&amp;lt;80217d00&amp;gt;] (vfs_write) from [&amp;lt;80217f18&amp;gt;] (ksys_write+0x4c/0xac)&lt;BR /&gt;[&amp;lt;80217f18&amp;gt;] (ksys_write) from [&amp;lt;80101000&amp;gt;] (ret_fast_syscall+0x0/0x54)&lt;BR /&gt;Exception stack(0xd8a1ffa8 to 0xd8a1fff0)&lt;BR /&gt;ffa0: 00000004 00e5cee0 00000001 00e5cee0 00000004 00000000&lt;BR /&gt;ffc0: 00000004 00e5cee0 76eaebe0 00000004 00e5cee0 00000004 00000000 00000000&lt;BR /&gt;ffe0: 00000070 7ea2c938 76ddad44 76e3446c&lt;BR /&gt;---[ end trace 20e3247c9a996374 ]---&lt;BR /&gt;------------[ cut here ]------------&lt;BR /&gt;WARNING: CPU: 2 PID: 585 at kernel/irq/manage.c:1600 __free_irq+0xb4/0x310&lt;BR /&gt;Trying to free already-free IRQ 146&lt;BR /&gt;Modules linked in: mxc_v4l2_capture ipu_bg_overlay_sdc ipu_still ipu_prp_enc ipu_csi_enc ipu_fg_overlay_sdc adv7180_tvin v4l2_int_device mxc_dcic galcore(O)&lt;BR /&gt;CPU: 2 PID: 585 Comm: sh Tainted: G W O 4.19.35-1.1.0+g0f9917c #1&lt;BR /&gt;Hardware name: Freescale i.MX6 Quad/DualLite (Device Tree)&lt;BR /&gt;[&amp;lt;8010f7a0&amp;gt;] (unwind_backtrace) from [&amp;lt;8010b798&amp;gt;] (show_stack+0x10/0x14)&lt;BR /&gt;[&amp;lt;8010b798&amp;gt;] (show_stack) from [&amp;lt;80a109a8&amp;gt;] (dump_stack+0x78/0x8c)&lt;BR /&gt;[&amp;lt;80a109a8&amp;gt;] (dump_stack) from [&amp;lt;8012f24c&amp;gt;] (__warn+0xd4/0xf0)&lt;BR /&gt;[&amp;lt;8012f24c&amp;gt;] (__warn) from [&amp;lt;8012eeb0&amp;gt;] (warn_slowpath_fmt+0x48/0x6c)&lt;BR /&gt;[&amp;lt;8012eeb0&amp;gt;] (warn_slowpath_fmt) from [&amp;lt;8017443c&amp;gt;] (__free_irq+0xb4/0x310)&lt;BR /&gt;[&amp;lt;8017443c&amp;gt;] (__free_irq) from [&amp;lt;80174710&amp;gt;] (free_irq+0x38/0x8c)&lt;BR /&gt;[&amp;lt;80174710&amp;gt;] (free_irq) from [&amp;lt;80178544&amp;gt;] (devm_free_irq+0x50/0x80)&lt;BR /&gt;[&amp;lt;80178544&amp;gt;] (devm_free_irq) from [&amp;lt;806a253c&amp;gt;] (egalax_ts_suspend+0x1c/0x3c)&lt;BR /&gt;[&amp;lt;806a253c&amp;gt;] (egalax_ts_suspend) from [&amp;lt;80541520&amp;gt;] (dpm_run_callback.constprop.5+0x48/0xd0)&lt;BR /&gt;[&amp;lt;80541520&amp;gt;] (dpm_run_callback.constprop.5) from [&amp;lt;80542124&amp;gt;] (__device_suspend+0xf0/0x390)&lt;BR /&gt;[&amp;lt;80542124&amp;gt;] (__device_suspend) from [&amp;lt;805433d0&amp;gt;] (dpm_suspend+0x114/0x20c)&lt;BR /&gt;[&amp;lt;805433d0&amp;gt;] (dpm_suspend) from [&amp;lt;8016e368&amp;gt;] (suspend_devices_and_enter+0xec/0x60c)&lt;BR /&gt;[&amp;lt;8016e368&amp;gt;] (suspend_devices_and_enter) from [&amp;lt;8016ebdc&amp;gt;] (pm_suspend+0x354/0x3ac)&lt;BR /&gt;[&amp;lt;8016ebdc&amp;gt;] (pm_suspend) from [&amp;lt;8016d56c&amp;gt;] (state_store+0x6c/0xcc)&lt;BR /&gt;[&amp;lt;8016d56c&amp;gt;] (state_store) from [&amp;lt;8028b154&amp;gt;] (kernfs_fop_write+0xe8/0x1c8)&lt;BR /&gt;[&amp;lt;8028b154&amp;gt;] (kernfs_fop_write) from [&amp;lt;80217a44&amp;gt;] (__vfs_write+0x2c/0x160)&lt;BR /&gt;[&amp;lt;80217a44&amp;gt;] (__vfs_write) from [&amp;lt;80217d00&amp;gt;] (vfs_write+0xa4/0x17c)&lt;BR /&gt;[&amp;lt;80217d00&amp;gt;] (vfs_write) from [&amp;lt;80217f18&amp;gt;] (ksys_write+0x4c/0xac)&lt;BR /&gt;[&amp;lt;80217f18&amp;gt;] (ksys_write) from [&amp;lt;80101000&amp;gt;] (ret_fast_syscall+0x0/0x54)&lt;BR /&gt;Exception stack(0xd8a1ffa8 to 0xd8a1fff0)&lt;BR /&gt;ffa0: 00000004 00e5cee0 00000001 00e5cee0 00000004 00000000&lt;BR /&gt;ffc0: 00000004 00e5cee0 76eaebe0 00000004 00e5cee0 00000004 00000000 00000000&lt;BR /&gt;ffe0: 00000070 7ea2c938 76ddad44 76e3446c&lt;BR /&gt;---[ end trace 20e3247c9a996375 ]---&lt;BR /&gt;dpm_run_callback(): egalax_ts_suspend+0x0/0x3c returns -6&lt;BR /&gt;PM: Device 1-0004 failed to suspend: error -6&lt;BR /&gt;PM: Some devices failed to suspend, or early wake event detected&lt;BR /&gt;PM: resume devices took 0.020 seconds&lt;BR /&gt;ata1: SATA link down (SStatus 0 SControl 300)&lt;BR /&gt;OOM killer enabled.&lt;BR /&gt;Restarting tasks ... done.&lt;BR /&gt;PM: suspend exit&lt;BR /&gt;-sh: echo: write error: No such device or address&lt;BR /&gt;&lt;A href="mailto:root@imx6qsabreauto:~"&gt;root@imx6qsabreauto:~#&lt;/A&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;On android BSP N7.1.2-2.0.0, it success to suspend/resume by sw5 on base board.&lt;/P&gt;&lt;P&gt;Why can't Linux BSP suspend properly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ishii.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jan 2020 13:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-BSP-can-suspend-only-one-time/m-p/977491#M145417</guid>
      <dc:creator>takayuki_ishii</dc:creator>
      <dc:date>2020-01-20T13:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: Linux BSP can suspend only one time.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-BSP-can-suspend-only-one-time/m-p/977492#M145418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ishii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from log issue is caused by touchscreen:&lt;/P&gt;&lt;P&gt;"dpm_run_callback(): egalax_ts_suspend+0x0/0x3c returns -6&lt;BR /&gt;PM: Device 1-0004 failed to suspend: error -6&lt;BR /&gt;PM: Some devices failed to suspend, or early wake event detected"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is known issue with latest AI boards (early revisions like SPF-27142_B1 do not have&lt;/P&gt;&lt;P&gt;such issue) and caused by U1514 on p.15 SPF-27142_d_x4 from&lt;/P&gt;&lt;P&gt;&lt;A data-dtmaction="Document and Software Collection Section Click" data-dtmsubaction="Design files for i.MX 6Quad and i.MX 6DualLite CPU1 Cards" href="https://www.nxp.com/webapp/Download?colCode=i.MX6_SABRE_AI_CPU1_DESIGNFILES&amp;amp;appType=license"&gt;Design files for i.MX 6Quad and i.MX 6DualLite CPU1 Cards&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Explanations are given on p.15 that schematic:&lt;/P&gt;&lt;P&gt;"The MCIMX-LVDS1 display with touch can be placed in Sleep&lt;BR /&gt;through the I2C port. However, INT_B must be driven&lt;BR /&gt;with a falling edge to wake up the display, which is not&lt;BR /&gt;allowed due to U1514."&lt;/P&gt;&lt;P&gt;I sent additional details via mail.&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>Thu, 23 Jan 2020 11:01:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-BSP-can-suspend-only-one-time/m-p/977492#M145418</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-01-23T11:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: Linux BSP can suspend only one time.</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-BSP-can-suspend-only-one-time/m-p/977493#M145419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was fixed this problem by your suggestion by mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ishii.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jan 2020 06:45:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-BSP-can-suspend-only-one-time/m-p/977493#M145419</guid>
      <dc:creator>takayuki_ishii</dc:creator>
      <dc:date>2020-01-24T06:45:18Z</dc:date>
    </item>
  </channel>
</rss>

