Hi Andrey,
linaro/configs/* is getting bigger and bigger, probably its the right time to
organize it better for the future. There can be multiple things that we can
do to avoid confusions of names but for now probably we can create
separate directories for boards, rootfs & kernel fragments? Or some
other idea that you might have?
--
viresh
While studying the reason why kernel copy from NOR was so slow on our platform,
I realized U-Boot is pulling it from 32-bit NOR in 8-bit chunks needlessly.
bootm uses memmove() and that just takes the approach by default to move u8s
around.
This optimization prefers memcpy() implementation (done mostly in 32-bit reads
and writes) if there's no overlap in source and dest, resulting in a huge
speedup on our platform (480ms copy from 32-bit NOR ---> 140ms)
Signed-off-by: Andy Green <andy.green(a)linaro.org>
---
lib/string.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/lib/string.c b/lib/string.c
index c3ad055..96d66e0 100644
--- a/lib/string.c
+++ b/lib/string.c
@@ -542,13 +542,21 @@ void * memmove(void * dest,const void *src,size_t count)
if (src == dest)
return dest;
- if (dest <= src) {
+ if (dest < src) {
+
+ if ((unsigned long)dest + count <= (unsigned long)src)
+ return memcpy(dest, src, count);
+
tmp = (char *) dest;
s = (char *) src;
while (count--)
*tmp++ = *s++;
}
else {
+
+ if ((unsigned long)src + count <= (unsigned long)dest)
+ return memcpy(dest, src, count);
+
tmp = (char *) dest + count;
s = (char *) src + count;
while (count--)
Hi,
I have some doubts on backup and restore operation. From what i understand:
We copy all registers values & addresses of all controllers in the SOC
to the internal RAM or SRAM.
before we put CPU to sleep?
I want to know if we also copy the code segment into SRAM and what
happens after wakeup.
If so, where exactly we need to copy and how cpu jumps here after
wakeup. or is there any other mechanism
that is used. What executes first since DDR is in self-refresh.
I use OMAP4 and this is my understanding. I could not understand much
other than in OFF mode
all the controller registers get copied to SRAM. Does anything else
also gets copied too?
or am i missing any basics here.
Can anyone clarify my understanding.
/Ryan
Hi all,
Just a reminder that this is happening tomorrow unless anyone shouts now. I've off lined fast models and all vexpress boards already because they take longer to clear the queue.
Please shout now if this is a problem for you.
Thanks
Dave
On 22 Jul 2013, at 14:02, Dave Pigott <dave.pigott(a)linaro.org> wrote:
> Hi all,
>
> We need to start the switch over from launchpad single sign on, and to do this there will need to be a very small downtime of the LAVA server - it should be less than 5 minutes, maybe less than a minute if I do it right.
>
> I intend to do this on Wednesday at 11:00UTC (12:00BST). I would do it tomorrow, but I have a doctor's appointment in the morning.
>
> Thanks for your patience
>
> Dave