Re: BIOS overwritten during resume (was: Re: Asus L5D resume on battery power)

From: Rafael J. Wysocki
Date: Sat Mar 05 2005 - 04:09:26 EST


Hi,

On Saturday, 5 of March 2005 02:10, Nigel Cunningham wrote:
> Hi.
>
> On Sat, 2005-03-05 at 10:41, Pavel Machek wrote:
> > > non-RAM areas with PG_nosave, at least for sanity reasons (eg to be sure that
> > > we do not break things by dumping stuff to where we should not write to).
> >
> > I'm not sure if it is not better to save & restore non-RAM areas, but
> > it probably just does not matter.

For the address ranges that are reported by the BIOS as reserved, it
probably doesn't matter indeed, but for the address ranges that are
not reported at all, it's potentially dangerous. Unfortunately
they all are generally treated in the same way, so why should we do it
differently?

> IIRC, it does matter. I think there were situations where you got
> something nasty (MCE/oops/freeze) if you tried reading memory that
> doesn't exist. If you push me I'll put the effort into looking up
> suspend2 archives to find the discussion :>

If you're so kind, that would be great!

Greets,
Rafael


--
- Would you tell me, please, which way I ought to go from here?
- That depends a good deal on where you want to get to.
-- Lewis Carroll "Alice's Adventures in Wonderland"
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/