Suspend fail, errno -95 (EOPNOTSUPP), status=0x0

TX2 suspend fail.

Jun 10 23:17:42 tegra-ubuntu kernel: [ 5016.933798] Wake[32:0] status=0x0
Jun 10 23:17:42 tegra-ubuntu kernel: [ 5016.933798] Wake[64:32] status=0x0
Jun 10 23:17:42 tegra-ubuntu kernel: [ 5016.933798] Wake[96:64] status=0x0

  1. cat /sys/kernel/debug/suspend_stats
    success: 5
    fail: 6
    failed_freeze: 0
    failed_prepare: 0
    failed_suspend: 0
    failed_suspend_late: 0
    failed_suspend_noirq: 0
    failed_resume: 0
    failed_resume_early: 0
    failed_resume_noirq: 0
    failures:
    last_failed_dev:

last_failed_errno: -95
-95
last_failed_step:

  1. When suspend fail, the fail counts up.

Could you give reproduce information?
Any suspicious kernel message?

Did you connect any device?

  1. Reproduce information
  • suspend using cmd : sudo systemctl suspend

  • wake-up using gpio ctrl : power button gpio signal 2sec

  • sometimes suspend fail occurs before wake-up using gpio ctrl

  1. initcall_debug message
  • init_call debug cmd : echo 1 > /sys/module/kernel/parameters/initcall_debug

  • issue log
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.837339] psci: CPU5 killed.
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849915] PM: Calling sched_clock_suspend+0x0/0x38
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling timekeeping_suspend+0x0/0x200
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling fw_suspend+0x0/0x14
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_wdt_t18x_syscore_suspend+0x0/0x30
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_la_suspend+0x0/0x24
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_pinctrl_suspend+0x0/0xec
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_debug_uart_suspend+0x0/0x10c
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Entered SC7
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling cpu_pm_suspend+0x0/0x1c
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_pm_irq_suspend+0x0/0x288
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[31-0] level=0x40000000
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[63-32] level=0x0
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[95-64] level=0x7f220
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[31-0] enable=0x21000000
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[63-32] enable=0x200000
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[95-64] enable=0x7f280
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[31-0] route=0x21000000
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[63-32] route=0x200000
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[95-64] route=0x7f280
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_pm_irq_resume+0x0/0x1b4
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[32:0] status=0x0
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[64:32] status=0x0
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Wake[96:64] status=0x0
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra186_timer_resume+0x0/0xac
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling cpu_pm_resume+0x0/0x18
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_debug_uart_resume+0x0/0x108
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] Exited SC7
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_pinctrl_resume+0x0/0x158
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_bpmp_resume+0x0/0x28
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] bpmp: waiting for handshake
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] bpmp: synchronizing channels
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] bpmp: channels synchronized
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_la_resume+0x0/0x98
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling tegra_wdt_t18x_syscore_resume+0x0/0x2c
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling irq_pm_syscore_resume+0x0/0x18
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling timekeeping_resume+0x0/0x1b0
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849916] PM: Calling sched_clock_resume+0x0/0x4c
    Jun 15 14:26:40 tegra-ubuntu kernel: [ 1318.849966] Enabling non-boot CPUs …

  • normal log
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.909794] psci: CPU5 killed.
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922364] PM: Calling sched_clock_suspend+0x0/0x38
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling timekeeping_suspend+0x0/0x200
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling fw_suspend+0x0/0x14
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_wdt_t18x_syscore_suspend+0x0/0x30
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_la_suspend+0x0/0x24
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_pinctrl_suspend+0x0/0xec
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_debug_uart_suspend+0x0/0x10c
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Entered SC7
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling cpu_pm_suspend+0x0/0x1c
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_pm_irq_suspend+0x0/0x288
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[31-0] level=0x40000000
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[63-32] level=0x0
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[95-64] level=0x7f220
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[31-0] enable=0x21000000
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[63-32] enable=0x200000
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[95-64] enable=0x7f280
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[31-0] route=0x21000000
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[63-32] route=0x200000
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[95-64] route=0x7f280
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_pm_irq_resume+0x0/0x1b4
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[32:0] status=0x20000000
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Resume caused by WAKE29, Power
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[64:32] status=0x0
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Wake[96:64] status=0x0
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra186_timer_resume+0x0/0xac
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling cpu_pm_resume+0x0/0x18
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_debug_uart_resume+0x0/0x108
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] Exited SC7
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_pinctrl_resume+0x0/0x158
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_bpmp_resume+0x0/0x28
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] bpmp: waiting for handshake
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] bpmp: synchronizing channels
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] bpmp: channels synchronized
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_la_resume+0x0/0x98
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling tegra_wdt_t18x_syscore_resume+0x0/0x2c
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling irq_pm_syscore_resume+0x0/0x18
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling timekeeping_resume+0x0/0x1b0
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922365] PM: Calling sched_clock_resume+0x0/0x4c
    Jun 15 14:08:32 tegra-ubuntu kernel: [ 549.922505] Enabling non-boot CPUs …

  1. Connected devices
  • many… (usb, ethernet, sensors etc…)

For your information

How did you put your the device to suspend.
Could you try “sudo systemctl suspend” command.

I used “sudo systemctl suspend” like my description before.

  1. Reproduce information
  • suspend using cmd : sudo systemctl suspend
  • wake-up using gpio ctrl : power button gpio signal 2sec
  • sometimes suspend fail occurs before wake-up using gpio ctrl

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one. Thanks

Can you remove the IOs connected and try?
Also can you share which release branch you are using.
Please share the complete boot log