The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@suse.cz>
To: Andreas Mohr <andi@lisas.de>
Cc: Sriram V <vshrirama@gmail.com>,
	Pierre Ossman <drzeus-list@drzeus.cx>,
	Linus Torvalds <torvalds@linux-foundation.org>,
	linux-kernel@vger.kernel.org
Subject: Re: Power Management with rootfs on SDMMC.
Date: Fri, 2 Jan 2009 18:24:13 +0100	[thread overview]
Message-ID: <20090102172407.GD1555@ucw.cz> (raw)
In-Reply-To: <20090102102152.GA26603@rhlx01.hs-esslingen.de>

Hi!

> >   I am using linux-2.6.27.  I am testing power management after
> > booting out of a SD/MMC card.
> >   My root file system is on a SD card.
> > 
> >   I am issuing the following command to suspend
> > 
> >       $ echo -n mem > /sys/power/state
> >  What happens is, The kernel hangs and it does not come out of suspend.
> >  even after i press keypad/generate serial input data.
> 
> 
> > Has anyone tried this before?
> > 
> > Am i missing something here?
> 
> I don't think you're missing much, and you're definitely not alone.
> 
> There have been long threads on mobile phone and netbook related forums about issues
> with seemingly "any slightly advanced use whatsoever" of partitions on SD cards.
> 
> IMHO in this strongly increasingly netbook- and mobile phone-enabled world it's
> a bloody shame that:
...
> - installing a swap partition on an SD card and then resuming can easily
>   go as far as __even completely corrupting__ the entire SD card partitioning
>   plus first partition (corrupts first 1kB of the card: both table and partition)
>   People then immediately resort to a non-helpful "Don't Do This, Ever" reply
>   (using swap partition on SD and suspend, see http://dev.laptop.org/ticket/6532#comment:10),
>   but to this I'd say:
>   News Flash, if this can theoretically be made to work at all using software
>   (i.e. there are no VM-related _hard_ blockers to such an operation
>   of using swap itself on a non-fixed SD slot), then this should goddamn be made
>   to work practically on Linux, _somehow_, since on SSD netbooks this is
>   the most natural thing to do to avoid wear of the builtin device.

I'd like to help with this one... can you reproduce this?


> (or, slightly reworded: I think it's high time for some kernel God to buy a measly
> netbook or some such instead of 16-core mainframes to get a feeling for the
> amount of issues that one hits there)

I have one and yes, its full of problems; see my blog post about 'evil
little cards'.

OTOH currently you can't safely use ext3 on flash card, so suspend
problems seem little 'uninteresting' compared to that.
								Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

  parent reply	other threads:[~2009-01-03 20:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-02  6:35 Power Management with rootfs on SDMMC Sriram V
2009-01-02 10:21 ` Andreas Mohr
2009-01-02 11:21   ` Pierre Ossman
2009-01-02 12:21     ` Andreas Mohr
2009-01-02 17:24   ` Pavel Machek [this message]
2009-01-03 20:23     ` Linus Torvalds
2009-01-03 20:43       ` Pavel Machek
2009-01-03 20:45         ` Alan Cox
2009-01-03 21:16           ` Linus Torvalds
2009-01-03 23:10             ` Alan Cox
2009-01-04  2:59               ` Linus Torvalds
2009-01-04 12:04                 ` Alan Cox
2009-01-04 17:53                   ` Linus Torvalds
2009-03-29 16:26     ` Andreas Mohr
2009-04-05 18:45       ` Pierre Ossman

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=20090102172407.GD1555@ucw.cz \
    --to=pavel@suse.cz \
    --cc=andi@lisas.de \
    --cc=drzeus-list@drzeus.cx \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    --cc=vshrirama@gmail.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