1/3 swsusp: use non-contiguous memory on resume

2005-03-09 Thread Pavel Machek
Hi! The following patch is designed to fix a problem in the current implementation of swsusp in mainline kernels. Namely, swsusp uses an array of page backup entries (aka pagedir) to store pointers to memory pages that must be saved during suspend and restored during resume. Unfortunately, the p

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Pavel Machek
Hi! > > > > Yes, I did diff between -mm and -pavel, sorry. > > > > > > > > But I can't easily generate diff against -linus because that one is > > > > dependend on fixing order-8 allocations during suspend. So I guess > > > > I'll just wait until that one propagates into -linus? > > > > > > Just

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Rafael J. Wysocki
On Friday, 4 of March 2005 12:52, Pavel Machek wrote: > Hi! > > > > > > Problem is that pagedir is allocated as order-8 allocation on resume > > > > > in -mmX (and linus). Unfortunately, order-8 allocation sometimes > > > > > fails, and for some people (Rafael, seife :-) it fails way too often.

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Pavel Machek
Hi! > > > > Problem is that pagedir is allocated as order-8 allocation on resume > > > > in -mmX (and linus). Unfortunately, order-8 allocation sometimes > > > > fails, and for some people (Rafael, seife :-) it fails way too often. > > > > > > > > Solution is to change format of pagedir from t

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Andrew Morton
Pavel Machek <[EMAIL PROTECTED]> wrote: > > Hi! > > > > Problem is that pagedir is allocated as order-8 allocation on resume > > > in -mmX (and linus). Unfortunately, order-8 allocation sometimes > > > fails, and for some people (Rafael, seife :-) it fails way too often. > > > > > > Solution i

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Rafael J. Wysocki
On Friday, 4 of March 2005 11:51, Andrew Morton wrote: > Pavel Machek <[EMAIL PROTECTED]> wrote: > > > > Problem is that pagedir is allocated as order-8 allocation on resume > > in -mmX (and linus). Unfortunately, order-8 allocation sometimes > > fails, and for some people (Rafael, seife :-) it f

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Pavel Machek
Hi! > > Problem is that pagedir is allocated as order-8 allocation on resume > > in -mmX (and linus). Unfortunately, order-8 allocation sometimes > > fails, and for some people (Rafael, seife :-) it fails way too often. > > > > Solution is to change format of pagedir from table to linklist, >

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Andrew Morton
Pavel Machek <[EMAIL PROTECTED]> wrote: > > Problem is that pagedir is allocated as order-8 allocation on resume > in -mmX (and linus). Unfortunately, order-8 allocation sometimes > fails, and for some people (Rafael, seife :-) it fails way too often. > > Solution is to change format of pagedir

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Pavel Machek
Hi! > > Subject: non-contiguous pagedir for resume > > > > This fixes problem where we could have enough memory but not in > > continuous chunk, and resume would fail. > > It seems to do more that that? What's all the assembly stuff? > > General point: this changlog entry doesn't describe th

Re: swsusp: use non-contiguous memory on resume

2005-03-04 Thread Andrew Morton
Pavel Machek <[EMAIL PROTECTED]> wrote: > > Subject: non-contiguous pagedir for resume > > This fixes problem where we could have enough memory but not in > continuous chunk, and resume would fail. It seems to do more that that? What's all the assembly stuff? General point: this changlog entr

swsusp: use non-contiguous memory on resume

2005-03-04 Thread Pavel Machek
From: Rafael J. Wysocki <[EMAIL PROTECTED]> From: hugang <[EMAIL PROTECTED]> Subject: non-contiguous pagedir for resume This fixes problem where we could have enough memory but not in continuous chunk, and resume would fail. Signed-off-by: Pavel Machek <[EMAIL PROTECTED]> Please apply,