From: Wolfgang Denk Date: Mon, 21 Oct 2013 21:44:36 +0200 Subject: [U-Boot] [RFC] ARM: U-boot and 2 GiB of ram with get_ram_size only being long In-Reply-To: <1382138723.7979.928.camel@snotra.buserror.net> References: <524DDE54.7090709@schinagl.nl> <52521F5B.4090002@schinagl.nl> <20131015091241.48901e5c@lilith> <1381859853.7979.696.camel@snotra.buserror.net> <20131017082748.06618979@lilith> <52607AF9.7050302@schinagl.nl> <1382114601.7979.843.camel@snotra <5261BF4E.9070301@schinagl.nl> <1382138723.7979.928.camel@snotra.buserror.net> Message-ID: <20131021194436.EECF73811D8@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Scott Wood, In message <1382138723.7979.928.camel@snotra.buserror.net> you wrote: > > And the one 64-bit environment that we're about to have in U-Boot > (armv8) has discontiguous memory, which is another case where > get_ram_size() won't work. get_ram_size() is supposed to be run per memory bank. If you have discontiguous memory, then you probably have several memory banks that can be sized separately? > BTW, shouldn't get_ram_size restore the original data in the final > "return (maxsize)" case? I know, patches welcome. :-) Yes, get_ram_size() is non-destructive (at least in the no-error case; otherwise things like PRAM would not work). Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de I think there's a world market for about five computers. -- attr. Thomas J. Watson (Chairman of the Board, IBM), 1943