Re: [PATCH 4/4] MIPS: Malta: initialise MAARs
From: Sergei Shtylyov <hidden>
Date: 2014-07-14 11:33:15
Hello. On 07/14/2014 01:32 PM, Paul Burton wrote:
Initialise the MAARs such that speculation is enabled for all physical addresses outside of the I/O region.
Signed-off-by: Paul Burton <redacted> --- arch/mips/mti-malta/malta-memory.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
quoted hunk ↗ jump to hunk
diff --git a/arch/mips/mti-malta/malta-memory.c b/arch/mips/mti-malta/malta-memory.c index 6d97730..e96803d 100644 --- a/arch/mips/mti-malta/malta-memory.c +++ b/arch/mips/mti-malta/malta-memory.c
[...]
quoted hunk ↗ jump to hunk
@@ -164,3 +165,28 @@ void __init prom_free_prom_memory(void) addr, addr + boot_mem_map.map[i].size); } } + +unsigned platform_maar_init(unsigned num_pairs) +{ + phys_addr_t mem_end = (physical_memsize & ~0xffffull) - 1; + struct maar_config cfg[] = { + /* DRAM preceeding I/O */
Perhaps "preceding"?
WBR, Sergei