public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] post memory test
@ 2007-11-12 23:50 Dongying_Xu at us.alphanetworks.com
  2007-11-14 11:02 ` Detlev Zundel
  0 siblings, 1 reply; 7+ messages in thread
From: Dongying_Xu at us.alphanetworks.com @ 2007-11-12 23:50 UTC (permalink / raw)
  To: u-boot

Hi,

I have a question about post memory test. According to the following code, 
even if memory size is greater than 256M, only 256M memory will be tested. 
 Is it true or I missed something.  Thanks a lot. 

In U-BOOT-1.2.0 
u-boot\post\drivers\memory.c,

int memory_post_test (int flags)
{
        int ret = 0;
        DECLARE_GLOBAL_DATA_PTR;
        bd_t *bd = gd->bd;
        unsigned long memsize = (bd->bi_memsize >= 256 << 20 ?
                                 256 << 20 : bd->bi_memsize) - (1 << 20);

        if (flags & POST_SLOWTEST) {
                ret = memory_post_tests (CFG_SDRAM_BASE, memsize);
        } else {                        /* POST_NORMAL */

                unsigned long i;

                for (i = 0; i < (memsize >> 20) && ret == 0; i++) {
                        if (ret == 0)
                                ret = memory_post_tests (i << 20, 0x800);
                        if (ret == 0)
                                ret = memory_post_tests ((i << 20) + 
0xff800, 0x800);
                }
        }

        return ret;
}

Best Regards
dongy



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20071112/8adf4bab/attachment.htm 

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-11-19 15:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-12 23:50 [U-Boot-Users] post memory test Dongying_Xu at us.alphanetworks.com
2007-11-14 11:02 ` Detlev Zundel
2007-11-16 13:29   ` Jens Gehrlein
2007-11-16 19:21     ` Wolfgang Denk
2007-11-19  7:55       ` Jens Gehrlein
2007-11-19 13:13         ` Wolfgang Denk
2007-11-19 15:34         ` Detlev Zundel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox