From: Wolfgang Denk Date: Thu, 27 May 2010 23:16:55 +0200 Subject: [U-Boot] [PATCH] [RFC] memsize.c: adapt get_ram_size() for address spaces >32 bit In-Reply-To: <48A9B08D-9237-4837-91CA-0D23CE1E56D8@kernel.crashing.org> References: <1274983869-9173-1-git-send-email-wd@denx.de> <20100527194442.632FEEAC238@gemini.denx.de> <4BFECF82.60901@freescale.com> <20100527205755.446C4EAC238@gemini.denx.de> <48A9B08D-9237-4837-91CA-0D23CE1E56D8@kernel.crashing.org> Message-ID: <20100527211655.D21B6EAC238@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 Kumar Gala, In message <48A9B08D-9237-4837-91CA-0D23CE1E56D8@kernel.crashing.org> you wrote: > > > The systems I know are the opposite - initially they map more memory > > than they support, then they determine the real size, then they > > adjust the mapping to the real size. > > Is the point of get_ram_size() to deal with having the same firmware > image (binary) be able to be agnostic of memory size? Yes, this is the key point of it. > I'm not sure I understand what utility one gets out of it if we have SPD > eeprom information? I can see some purpose in the soldered memory case > if you dont want to tweak binaries between different memory size > configs. With SPD information the benefits go down to the (limited) testing it does, so you might still detect hardware issues - if you try and insert a 2 GiB DIMM and U-Boot sees only 512 MiB then you can be damn sure that something is not working as expected. Especially on systems where the end user can plug in any types of memory modules that seems to be a pretty useful feature to me. 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 miracle: an extremely outstanding or unusual event, thing, or accomplishment. - Webster's Dictionary