Re: Two other h1940 fixes

From: Tom Talpey <tmtalpey_at_rcn.com>
Date: Fri, 26 Jan 2007 08:20:14 -0500

At 03:33 AM 1/26/2007, Pierre Hébert wrote:
>I encounter the same problem on another s3c24xx hardware (G500). In my
>case even 8 bytes was too much and seemed to overwritte something. In
>case this may help, the only solution I found to this problem was to
>copy the 8 bytes just before entering suspend, and replace them with the
>previous content just after resume.

What bootloader does the G500 have? If it doesn't reserve the space
at physaddr H1940_SUSPEND_RESUMEAT (0x30081000), then the copy
will overwrite something. Basically, this physaddr goes into a reserved
gpio register (GSTATUS3), and the resume code jumps to it. Take a look
at s3c2410-pm.c, pm-h1940.S and sleep.S.

I guess if you can't reserve a physaddr, then your copy/restore fix will
work - as long as the code you overwrite isn't needed before you can
restore it. Come to think of it you may need to flush the icache around
that copy...

Tom.
Received on Fri Jan 26 2007 - 08:21:22 EST

This archive was generated by hypermail 2.2.0 : Fri Jan 26 2007 - 08:21:37 EST