[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-arm-kernel
Subject: Re: Arm linux software suspend
From: junjie cai <junjiec () gmail ! com>
Date: 2005-08-09 9:24:39
Message-ID: ca992f1105080902242975abb8 () mail ! gmail ! com
[Download RAW message or body]
hi,
maybe you could try a dummy application as i did,
if it failed neither, then there may be something wrong with
the storager driver.
according to your OOPS messages,
it failed to access 0x8000_XXXX
which is not a address in the kernel space.
does the OOPS exactly the same
for example in the same function, accessing same address
or just randomly?
below is my dummy test program.
thanks
#include <stdio.h>
#include <sys/mman.h>
int main(void){
char *buf=mmap(NULL,
1024*1024*8,
PROT_WRITE | PROT_READ,
MAP_PRIVATE | MAP_ANONYMOUS,
-1,
0
);
if(buf == MAP_FAILED){
perror("mmap");
return -1;
}
printf("start: %8lX\n", buf);
memset(buf,'A',1024*1024*8);
{
int i=0;
while(1){
for(i=0;i<1024*1024*8;i++){
sleep(10);
printf("%c\n",buf[i]);
}
}
}
}
On 8/9/05, Hiroki Kaminaga <kaminaga@sm.sony.co.jp> wrote:
> From: junjie cai <junjiec@gmail.com>
> Subject: Re: Arm linux software suspend
> Date: Tue, 9 Aug 2005 16:00:28 +0900
>
> > hi,
> > you mentioned that when the image got bigger(above 2000 page?),
> > the resume failed even in simple case,
> > so just for curious ,i wrote a dummy application allocationg 8M memory
> > and printing, then do suspend-to-disk. after disabling free_some_memory,
> > the image is about 4200 pages and it worked just fine.
> >
> > FYI, i did the test in a
> > 2.6.10 kernel
> > +
> > swap partition on IDE
> > +
> > root fs on NFS
> > +
> > my local patches.
>
>
> I tried your patch.
>
> It works on simple case, but still, I get same kernel panic when
> I do software suspend while playing mplayer.
>
> My boardf is omap_osk_5912, and does not have HDD, and thus using
> flash as swap.
>
> 2.6.11 kernel
> +
> swap partition on flash
> +
> root fs on NFS
> +
> your patch
>
> Maybe I might try using swap on USB mass storage.
>
>
> HK.
> --
>
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic