[PATCH] power: suspend: Add suspend timeout handler

2020-10-15 Thread Joseph Jang
From: josephjang Add suspend timeout handler to prevent device stuck during suspend/ resume process. Suspend timeout handler will dump disk sleep task at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is 30 seconds. Note: Can use following

Re: [PATCH] power: suspend: Add suspend timeout handler

2020-10-16 Thread Joseph Jang
Thank you Greg's promptly reply. let me try to explain detail in following. Sorry I forgot to switch to plain text mode in gmail. On Fri, Oct 16, 2020 at 11:51:09AM +0800, Joseph Jang wrote: > From: josephjang Please use your name as spelled out like you did above in the email header. Sure

Re: [PATCH] power: suspend: Add suspend timeout handler

2020-10-16 Thread Joseph Jang
Thanks Petr promptly response. On Fri 2020-10-16 11:51:09, Joseph Jang wrote: > From: josephjang > > Add suspend timeout handler to prevent device stuck during suspend/ > resume process. Suspend timeout handler will dump disk sleep task > at first round timeout and trigger kernel

Re: [PATCH] power: suspend: Add suspend timeout handler

2020-10-16 Thread Joseph Jang
Yes, I agree. Rafael J. Wysocki 於 2020年10月16日 週五 下午9:24寫道: > > On Fri, Oct 16, 2020 at 3:22 PM wrote: > > > > Thank you Rafael's promptly response. > > > > > On Fri, Oct 16, 2020 at 5:51 AM Joseph Jang wrote: > > > > > > > > From

[PATCH v3] power: suspend: Move dpm_watchdog to suspend.c and enhance it

2020-10-23 Thread Joseph Jang
handler to cover more sleep hang issues. The new timeout handler will dump disk sleep task at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is defined in CONFIG_PM_SLEEP_TIMER_TIMEOUT. Signed-off-by: Joseph Jang --- Changes since v2: - Add

[PATCH] power: suspend: Replace dpm_watchdog by sleep timer

2020-10-20 Thread Joseph Jang
disk sleep task at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is defined in CONFIG_PM_SLEEP_TIMER_TIMEOUT. Signed-off-by: Joseph Jang --- drivers/base/power/main.c| 69 --- include/linux/console.h | 1

[PATCH v2] power: suspend: Replace dpm_watchdog by sleep timer

2020-10-20 Thread Joseph Jang
will dump disk sleep task at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is defined in CONFIG_PM_SLEEP_TIMER_TIMEOUT. Signed-off-by: Joseph Jang --- Changes in v2: - Add commit message to explain why remove dpm_watchdog. - Remove dpm_watchdog

[PATCH v6] power: suspend: Move dpm_watchdog to suspend.c and enhance it

2021-01-28 Thread Joseph Jang
issues. The new timeout handler will dump disk sleep task call trace at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is defined in CONFIG_PM_SUSPEND_WATCHDOG_TIMEOUT. Signed-off-by: Joseph Jang --- Changes since v5: - Remove MAINTAINERS update

[PATCH] power: suspend: Add sleep timer and timeout handler

2020-10-20 Thread Joseph Jang
-off-by: Joseph Jang --- MAINTAINERS | 2 + include/linux/console.h | 1 + include/linux/suspend_timer.h | 90 +++ kernel/power/Kconfig | 15 ++ kernel/power/suspend.c| 19 kernel/printk/printk.c| 5

[PATCH v4] power: suspend: Move dpm_watchdog to suspend.c and enhance it

2021-01-07 Thread Joseph Jang
issues. The new timeout handler will dump disk sleep task call trace at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is defined in CONFIG_PM_SUSPEND_WATCHDOG_TIMEOUT. Signed-off-by: Joseph Jang --- Changes since v3: - Change the naming from

[PATCH v5] power: suspend: Move dpm_watchdog to suspend.c and enhance it

2021-01-07 Thread Joseph Jang
issues. The new timeout handler will dump disk sleep task call trace at first round timeout and trigger kernel panic at second round timeout. The default timer for each round is defined in CONFIG_PM_SUSPEND_WATCHDOG_TIMEOUT. Signed-off-by: Joseph Jang --- Changes since v4: - Change #define