[U-Boot] [PATCH] powerpc: add support for the Freescale P1022DS reference board

Timur Tabi
2010-05-27T19:07:41Z

Scott Wood wrote:

> Passing the actual, known size of RAM (why guess when we know?) as "maxsize"
> should eliminate the machine check problem[1] -- you'd just be using it as a
> not particularly exhaustive memory tester. I don't see why it should be
> mandatory.

The purpose of get_ram_size() is to verify the "known size of RAM". That
is, once you think you know how much RAM there is, you ask get_ram_size() to
verify that claim. The return value is the true, validated amount of RAM.

> It also doesn't handle non-power-of-two sized memory -- don't rely on the
> value it returns.

Ah, that's a serious limitation.

--
Timur Tabi
Linux kernel developer at Freescale