Merge tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
Pull ARM updates from Russell King: - Add a "cut here" to make it clearer where oops dumps should be cut from - we already have a marker for the end of the dumps. - Add logging severity to show_pte() - Drop unnecessary common-page-size linker flag - Errata workarounds for Cortex A12 857271, Cortex A17 857272 and Cortex A7 814220. - Remove some unused variables that had started to provoke a compiler warning. * tag 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm: ARM: 8863/1: stm32: select ARM errata 814220 ARM: 8862/1: errata: 814220-B-Cache maintenance by set/way operations can execute out of order ARM: 8865/1: mm: remove unused variables ARM: 8864/1: Add workaround for I-Cache line size mismatch between CPU cores ARM: 8861/1: errata: Workaround errata A12 857271 / A17 857272 ARM: 8860/1: VDSO: Drop implicit common-page-size linker flag ARM: arrange show_pte() to issue severity-based messages ARM: add "8<--- cut here ---" to kernel dumps
This commit is contained in:
@@ -239,6 +239,22 @@ static void __init arm_initrd_init(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CPU_ICACHE_MISMATCH_WORKAROUND
|
||||
void check_cpu_icache_size(int cpuid)
|
||||
{
|
||||
u32 size, ctr;
|
||||
|
||||
asm("mrc p15, 0, %0, c0, c0, 1" : "=r" (ctr));
|
||||
|
||||
size = 1 << ((ctr & 0xf) + 2);
|
||||
if (cpuid != 0 && icache_size != size)
|
||||
pr_info("CPU%u: detected I-Cache line size mismatch, workaround enabled\n",
|
||||
cpuid);
|
||||
if (icache_size > size)
|
||||
icache_size = size;
|
||||
}
|
||||
#endif
|
||||
|
||||
void __init arm_memblock_init(const struct machine_desc *mdesc)
|
||||
{
|
||||
/* Register the kernel text, kernel data and initrd with memblock. */
|
||||
@@ -447,12 +463,6 @@ static void __init free_highpages(void)
|
||||
*/
|
||||
void __init mem_init(void)
|
||||
{
|
||||
#ifdef CONFIG_HAVE_TCM
|
||||
/* These pointers are filled in on TCM detection */
|
||||
extern u32 dtcm_end;
|
||||
extern u32 itcm_end;
|
||||
#endif
|
||||
|
||||
set_max_mapnr(pfn_to_page(max_pfn) - mem_map);
|
||||
|
||||
/* this will put all unused low memory onto the freelists */
|
||||
|
Reference in New Issue
Block a user