From: Patrick DELAUNAY Date: Thu, 9 Apr 2020 18:10:08 +0000 Subject: [PATCH v2 2/2] arm: stm32mp: activate data cache on DDR in SPL In-Reply-To: <2b133f06-e111-e709-8bdb-b01e791df284@denx.de> References: <20200403092537.19961-1-patrick.delaunay@st.com> <20200403105644.v2.2.Ib571c64a8c50fcbe386e728e38bbd320427e4efb@changeid> <2b133f06-e111-e709-8bdb-b01e791df284@denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Marek, > From: Marek Vasut > Sent: vendredi 3 avril 2020 23:33 > > On 4/3/20 11:25 AM, Patrick Delaunay wrote: > > Activate cache on DDR to improves the accesses to DDR used by SPL: > > - CONFIG_SPL_BSS_START_ADDR > > - CONFIG_SYS_SPL_MALLOC_START > > > > Cache is configured only when DDR is fully initialized, to avoid > > speculative access and issue in get_ram_size(). > > Data cache is deactivated at the end of SPL, to flush the data cache > > and the TLB. > > > > Signed-off-by: Patrick Delaunay > > --- > > > > Changes in v2: > > - new > > [...] > > +void spl_board_prepare_for_boot(void) { > > + dcache_disable(); > > + debug("SPL bye\n"); > > +} > > + > > +void spl_board_prepare_for_boot_linux(void) > > +{ > > + dcache_disable(); > > + debug("SPL bye\n"); > > Is the debug() statement really needed ? I think the common SPL code already > has some. Not needed, I will drop them in V3. Patrick