From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Yu Subject: [PATCH 0/2][RFC] PM / sleep: Expose DPM watchdog timeout to sysfs Date: Thu, 11 Aug 2016 20:29:17 +0800 Message-ID: Return-path: Received: from mga02.intel.com ([134.134.136.20]:45181 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932331AbcHKMV0 (ORCPT ); Thu, 11 Aug 2016 08:21:26 -0400 Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: Linux PM List Cc: "Rafael J. Wysocki" , Pavel Machek , Greg Kroah-Hartman , Len Brown , Takashi Iwai , Benoit Goby , Chen Yu Recently we have a new report that, the harddisk can not resume on time due to firmware issues, and got a kernel panic because of DPM watchdog timeout. Since the default timeout has once been modified from 12 to 60 seconds, we might still encounter new case which requires a longer timeout, so expose the value to sysfs and let the users decide which value is appropriate, meanwhile this can also ease the debugging process. The first patch is to force DPM watchdog depending on CONFIG_PM_SLEEP, thus the second patch which does the actual work, can use CONFIG_DPM_WATCHDOG safely without checking CONFIG_PM_SLEEP. Chen Yu (2): PM / sleep: Make DPM watchdog depend on PM_SLEEP PM / Sleep: Expose DPM watchdog timeout to sysfs drivers/base/power/main.c | 4 +++- include/linux/sched/sysctl.h | 4 ++++ kernel/power/Kconfig | 2 +- kernel/sysctl.c | 16 ++++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) -- 2.7.4