On 2016-08-14 13:01, Tom Rini wrote: > On Mon, Aug 08, 2016 at 12:43:03AM -0700, Stefan Agner wrote: >> On 2016-08-07 23:10, Lokesh Vutla wrote: >> > Hi, >> > >> > On Sunday 07 August 2016 11:13 PM, Stefan Agner wrote: >> >> From: Stefan Agner <stefan.ag...@toradex.com> >> >> >> >> The page table is maintained by the CPU, hence it is safe to always >> >> align cache flush to a whole cache line size. This allows to use >> >> mmu_page_table_flush for a single page table, e.g. when configure >> >> only small regions through mmu_set_region_dcache_behaviour. >> >> >> >> Signed-off-by: Stefan Agner <stefan.ag...@toradex.com> >> >> Tested-by: Fabio Estevam <fabio.este...@nxp.com> >> >> Reviewed-by: Simon Glass <s...@chromium.org> >> >> --- >> > >> > I get the following warning when CONFIG_PHYS_64BIT is enabled on arm >> > platforms(dra7xx_evm_defconfig): >> >> Hm, do I see things right, this is otherwise a 32-bit architecture? Does >> that work without LPAE? What is the page table size in this case? > > It's a 32bit architecture with LPAE, iirc, yes.
Hm, when looking at other functions such as set_section_dcache, page_table is casted to a u64* type, hence I guess this is wrong in mmu_set_region_dcache_behaviour. In fact, that makes it seem unsafe to use this function as is... -- Stefan _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot