public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Brad Campbell <brad@wasp.net.au>
Cc: suspend2-devel@lists.suspend2.net, lkml <linux-kernel@vger.kernel.org>
Subject: Re: /dev/rtc not suspending/resuming properly
Date: Tue, 11 Jul 2006 00:36:29 +0200	[thread overview]
Message-ID: <20060710223629.GA7443@elf.ucw.cz> (raw)
In-Reply-To: <44B24CEB.9010103@wasp.net.au>

Hi!

> In trying to track down a bug in an application, I think I may have 
> stumbled across one in the kernel.

Well, that happens in suspend/resume area...

> It would appear that the rtc device is not restoring the state of the PIE 
> control bit when the machine goes to sleep and then wakes up again, 
> resulting in the rtc_dropped_irq() being called repeatedly until the 
> application accessing /dev/rtc is stopped.
> 
> I'm using a vanilla 2.6.17.3 kernel with the suspend2 patch only on x86
> 
> I've had a pretty good look at drivers/char/rtc.c and I can't see anywhere 
> it would actually suspend/resume in the code, and investigation shows it 
> does not appear to re-init the hardware on resume.

Well, you probably need to write suspend/resume support for it...

								Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  reply	other threads:[~2006-07-10 23:32 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-10 12:49 /dev/rtc not suspending/resuming properly Brad Campbell
2006-07-10 22:36 ` Pavel Machek [this message]
2006-07-11  7:57   ` Brad Campbell
2006-07-11 11:18     ` Pavel Machek
2006-07-11 11:31       ` Brad Campbell
2006-07-11 11:33         ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060710223629.GA7443@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=brad@wasp.net.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=suspend2-devel@lists.suspend2.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox