From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chen Yu Subject: [PATCH 0/2][RFC v6] Ignore bogus sleep time if pm_trace is enabled Date: Tue, 8 Nov 2016 17:00:10 +0800 Message-ID: Reply-To: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Sender: rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org Cc: Thomas Gleixner , "Rafael J. Wysocki" , Len Brown , John Stultz , Xunlei Pang , linux-pm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, rtc-linux-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Chen Yu List-Id: linux-pm@vger.kernel.org This patch set is based on Thomas's previous solution, to bypass the bogus CMOS-RTC sleep time after resumed, thus to avoid damage to timekeeping system. The bogus sleep time comes from pm_trace, which might use CMOS-RTC for debugging purpose. Meanwhile, a solution to save/restore of CMOS-RTC is also proposed to give better user experience. Chen Yu (2): timekeeping: Ignore the bogus sleep time if pm_trace is enabled PM / sleep: save/restore RTC time after resumed if pm_trace enabled arch/x86/kernel/rtc.c | 9 +++++++++ drivers/base/power/trace.c | 31 +++++++++++++++++++++++++++++++ drivers/rtc/rtc-cmos.c | 7 +++++++ include/linux/mc146818rtc.h | 1 + include/linux/pm-trace.h | 9 ++++++++- 5 files changed, 56 insertions(+), 1 deletion(-) -- 2.7.4 -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/d/optout. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Sender: rtc-linux@googlegroups.com MIME-Version: 1.0 Received: from mga14.intel.com (mga14.intel.com. [192.55.52.115]) by gmr-mx.google.com with ESMTPS id n18si8678066pfb.2.2016.11.08.00.51.56 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Nov 2016 00:51:56 -0800 (PST) From: Chen Yu To: x86@kernel.org Cc: Thomas Gleixner , "Rafael J. Wysocki" , Len Brown , John Stultz , Xunlei Pang , linux-pm@vger.kernel.org, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, Chen Yu Subject: [rtc-linux] [PATCH 0/2][RFC v6] Ignore bogus sleep time if pm_trace is enabled Date: Tue, 8 Nov 2016 17:00:10 +0800 Message-Id: Reply-To: rtc-linux@googlegroups.com Content-Type: text/plain; charset=UTF-8 List-ID: List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , This patch set is based on Thomas's previous solution, to bypass the bogus CMOS-RTC sleep time after resumed, thus to avoid damage to timekeeping system. The bogus sleep time comes from pm_trace, which might use CMOS-RTC for debugging purpose. Meanwhile, a solution to save/restore of CMOS-RTC is also proposed to give better user experience. Chen Yu (2): timekeeping: Ignore the bogus sleep time if pm_trace is enabled PM / sleep: save/restore RTC time after resumed if pm_trace enabled arch/x86/kernel/rtc.c | 9 +++++++++ drivers/base/power/trace.c | 31 +++++++++++++++++++++++++++++++ drivers/rtc/rtc-cmos.c | 7 +++++++ include/linux/mc146818rtc.h | 1 + include/linux/pm-trace.h | 9 ++++++++- 5 files changed, 56 insertions(+), 1 deletion(-) -- 2.7.4 -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932427AbcKHIv7 (ORCPT ); Tue, 8 Nov 2016 03:51:59 -0500 Received: from mga09.intel.com ([134.134.136.24]:14716 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932345AbcKHIv5 (ORCPT ); Tue, 8 Nov 2016 03:51:57 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,609,1473145200"; d="scan'208";a="1082149426" From: Chen Yu To: x86@kernel.org Cc: Thomas Gleixner , "Rafael J. Wysocki" , Len Brown , John Stultz , Xunlei Pang , linux-pm@vger.kernel.org, rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, Chen Yu Subject: [PATCH 0/2][RFC v6] Ignore bogus sleep time if pm_trace is enabled Date: Tue, 8 Nov 2016 17:00:10 +0800 Message-Id: X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set is based on Thomas's previous solution, to bypass the bogus CMOS-RTC sleep time after resumed, thus to avoid damage to timekeeping system. The bogus sleep time comes from pm_trace, which might use CMOS-RTC for debugging purpose. Meanwhile, a solution to save/restore of CMOS-RTC is also proposed to give better user experience. Chen Yu (2): timekeeping: Ignore the bogus sleep time if pm_trace is enabled PM / sleep: save/restore RTC time after resumed if pm_trace enabled arch/x86/kernel/rtc.c | 9 +++++++++ drivers/base/power/trace.c | 31 +++++++++++++++++++++++++++++++ drivers/rtc/rtc-cmos.c | 7 +++++++ include/linux/mc146818rtc.h | 1 + include/linux/pm-trace.h | 9 ++++++++- 5 files changed, 56 insertions(+), 1 deletion(-) -- 2.7.4