mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Oliver Neukum <neukum@fachschaft.cup.uni-muenchen.de>
Cc: Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>,
	Robert Love <rml@novell.com>, Andrew Morton <akpm@osdl.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [patch] IBM HDAPS accelerometer driver.
Date: Mon, 29 Aug 2005 11:10:38 +0200	[thread overview]
Message-ID: <20050829091038.GA30073@elf.ucw.cz> (raw)
In-Reply-To: <Pine.LNX.4.58.0508291057400.27754@fachschaft.cup.uni-muenchen.de>

Hi!

> > > >>I think he doesn't need to export it at all and he should write code to
> > > >>park and disable hard disk instead.
> > > >>(in userspace it's unsolvable --- i.e. you can't enable hard disk when
> > > >>detected stable condition if the daemon is swapped out on that hard disk)
> > > >
> > > >man mlockall() :-).
> > > 
> > > You also must not use any syscall that allocates even temporary memory in 
> > > kernel (select, poll, many others ...) or that waits on semaphore that 
> > > might be held while allocating memory (i.e. audit and rewrite ide ioctl 
> > > path).
> > 
> > Kernel module would have exactly same problem.
> 
> It has control of its memory allocations.

It will have to be carefull with doing calls that allocate memory, and
to avoid semaphores that may block it... 

> > > And you need extra flags to protect the daemon from being killed at 
> > > shutdown or blocked at suspend.
> > 
> > Why?
> 
> Because the disk must be unlocked even if the laptop falls down while
> a suspension or shutdown are under way.
> And it should work until the heads are parked anyway.

It can't. It has to be user controllable at any point, or you will not
be able to shutdown your notebook while on bumpy road.

Anyone who wants to put it into kernel _please_ read that IBM
paper. It is really complex, with some signal processing, and it goes
wrong at times, so it needs UI so you can disable it.

								Pavel
-- 
if you have sharp zaurus hardware you don't need... you know my address

  reply	other threads:[~2005-08-29  9:10 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-26 15:18 Robert Love
2005-08-26 17:05 ` Bill Nottingham
2005-08-26 17:15   ` Robert Love
2005-08-26 17:33 ` Brian Gerst
2005-08-26 17:33   ` Robert Love
2005-08-26 18:01     ` Arjan van de Ven
2005-08-26 18:03       ` Robert Love
2005-08-26 18:45         ` Dave Jones
2005-08-26 18:52           ` Robert Love
2005-08-26 19:55         ` Alan Cox
2005-08-26 19:29           ` Robert Love
2005-08-26 19:33             ` Jeff Garzik
2005-08-26 19:37               ` Robert Love
2005-08-26 20:21                 ` Alan Cox
2005-08-26 22:43                 ` Andi Kleen
2005-08-26 20:27             ` Dave Jones
2005-08-26 19:54   ` Alan Cox
2005-08-26 18:18 ` Andrew Morton
2005-08-26 18:30   ` Robert Love
2005-08-26 19:27 ` Dmitry Torokhov
2005-08-26 19:39   ` Robert Love
2005-08-26 19:43     ` Robert Love
2005-08-26 20:09       ` Dmitry Torokhov
2005-08-26 20:12     ` Dmitry Torokhov
2005-08-28 11:00       ` Yani Ioannou
2005-08-27 12:41 ` Pavel Machek
2005-08-28  2:59   ` Mikulas Patocka
2005-08-28  8:09     ` Pavel Machek
2005-08-28  9:21       ` Oliver Neukum
2005-08-28 19:30       ` Mikulas Patocka
2005-08-29  8:35         ` Pavel Machek
2005-08-29  8:59           ` Oliver Neukum
2005-08-29  9:10             ` Pavel Machek [this message]
2005-08-30 17:44               ` Mikulas Patocka
2005-08-31  0:12                 ` Yani Ioannou
     [not found] <4FOa3-8fm-39@gated-at.bofh.it>
     [not found] ` <4GlyV-3Rk-3@gated-at.bofh.it>
     [not found]   ` <4GqyE-2bk-19@gated-at.bofh.it>
     [not found]     ` <4GrEp-3E2-21@gated-at.bofh.it>
2005-08-28 16:26       ` Robert Hancock

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=20050829091038.GA30073@elf.ucw.cz \
    --to=pavel@ucw.cz \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikulas@artax.karlin.mff.cuni.cz \
    --cc=neukum@fachschaft.cup.uni-muenchen.de \
    --cc=rml@novell.com \
    /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

all inboxes | Powered by JetHome®