From: Wolfgang Denk Date: Thu, 14 Dec 2017 12:30:24 +0100 Subject: [U-Boot] [PATCH] common/memsize.c: restore content of the base address In-Reply-To: <10532397af3d416f9a1b30f0b09a94f1@SFHDAG6NODE3.st.com> References: <1512575263-23010-1-git-send-email-patrick.delaunay@st.com> <20171206210608.925B51205D9@gemini.denx.de> <6daf1478e4284b8590c2862c6a504e9c@SFHDAG6NODE3.st.com> <20171207172628.0FA99120116@gemini.denx.de> <885aaa3abdfe440591ea271f92ab42ff@SFHDAG6NODE3.st.com> <20171209200403.5826C120481@gemini.denx.de> <10532397af3d416f9a1b30f0b09a94f1@SFHDAG6NODE3.st.com> Message-ID: <20171214113024.E4EBA12062D@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 Patrick, In message <10532397af3d416f9a1b30f0b09a94f1@SFHDAG6NODE3.st.com> you wrote: > > > You should keep the functionality, but move it to where it belongs, i. e. to the > > SPL running from OCM. > > I remove it in U-Boot and I call it only in SPL, > executed in onchip RAM, juste after DDR controller initalisation > > So for my board, I have no more issue with the function. Can you please do me the favour and verify that with this change no memmory corruption / modification happens? > For the last case (return (maxsize)), > when no overlap is detect, the content of base is not restored. > So for me, the function get_ram_size is not safe for the DDR content. What exactly do you mean by "overlap" here? > Do you think, that I need to continue with the patchset, > (I need a v2 to remove the uncessary restore in the second loop after code analysis) > even it is no more usefull for me. > > Or do you prefer that I drop the patchset to avoid regression ? I would really like to finally find an explanation why this code is (or has been) working well on so many boards, while on a few boards this problem gets reported - and the supposed fix (which looks reasonable when lookingon it) breaks other boards. So I would really appreciate if you could continue to work on this. Thanks! Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, Managing Director: Wolfgang Denk 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 The IQ of the group is the lowest IQ of a member of the group divided by the number of people in the group.