From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755557Ab2DPVsV (ORCPT ); Mon, 16 Apr 2012 17:48:21 -0400 Received: from e1.ny.us.ibm.com ([32.97.182.141]:37070 "EHLO e1.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755077Ab2DPVsQ (ORCPT ); Mon, 16 Apr 2012 17:48:16 -0400 Message-ID: <4F8C926D.2040503@linaro.org> Date: Mon, 16 Apr 2012 14:43:09 -0700 From: John Stultz User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Mark Lord CC: richard -rw- weinberger , Linux Kernel , rtc-linux@googlegroups.com, Alessandro Zummo , Greg Kroah-Hartman , stable@vger.kernel.org, Rabin Vincent Subject: Re: [REGRESSION] rtc/interface.c: kills suspend-to-ram References: <4F8BA1C1.4030804@teksavvy.com> <4F8C24E5.4020703@teksavvy.com> <4F8C3DDF.8030103@teksavvy.com> <4F8C415C.80806@teksavvy.com> <4F8C76EB.20709@linaro.org> In-Reply-To: <4F8C76EB.20709@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Content-Scanned: Fidelis XPS MAILER x-cbid: 12041621-6078-0000-0000-00000A135B11 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 04/16/2012 12:45 PM, John Stultz wrote: > On 04/16/2012 08:57 AM, Mark Lord wrote: >> On 12-04-16 11:49 AM, richard -rw- weinberger wrote: >>> On Mon, Apr 16, 2012 at 5:42 PM, Mark Lord wrote: >>>> On 12-04-16 10:23 AM, richard -rw- weinberger wrote: >>>>> On Mon, Apr 16, 2012 at 3:55 PM, Mark Lord >>>>> wrote: >>>>>> On 12-04-16 12:36 AM, Mark Lord wrote: >>>>>>> Something recent has killed suspend-to-ram on a number of >>>>>>> machines here. >>>>>>> The symptom is that they suspend, but immediately wake up and >>>>>>> panic, >>>>>>> with just a black screen so no visible messages to go by. >>>>>>> >>>>>>> The patch below works around the issue -- making things work as >>>>>>> they used to work. >>>>>>> >>>>>>> +++ linux/drivers/rtc/interface.c 2012-04-16 >>>>>>> 00:09:14.105387382 -0400 >>>>>>> @@ -773,7 +773,7 @@ >>>>>>> if (!rtc->ops || !rtc->ops->alarm_irq_enable) >>>>>>> return; >>>>>>> >>>>>>> - rtc->ops->alarm_irq_enable(rtc->dev.parent, false); >>>>>>> + //rtc->ops->alarm_irq_enable(rtc->dev.parent, false); // >>>>>>> Kills suspend on ZBOX HD-ID41U >>>>>>> } >>>> >>>> How about the line above -- that's the commit that breaks things here. >>> Download Linus' GIT tree and use git blame. :-) >> Too steep a learning curve for a casual user. >> But google works: >> >> http://www.mail-archive.com/stable@vger.kernel.org/msg04391.html > > Thanks for the report and sorry for the trouble. I'm trying to > reproduce this locally. Can you send me your .config? Ok, so far I've not been able to reproduce anything like this with my atom x86_64 system (done a number of suspends both with and without RTC alarms queued to wake the system up). Can you provide any more details about how you're triggering suspend when you see the problem? Do you have an RTC alarm set for some future time to wake up the system? I'm just trying to understand when rtc_alarm_disable is being called and causing the trouble in your case. The original related issue with the earlier version of this patch was some hardware would wake up immediately after suspend if the rtc was set in the past (which is what was done to "disable" the alarm). I suspect there is a similar hardware quirk we're dealing with that may require extra logic in the rtc-cmos.c alarm_irq_enable() function. thanks -john