aboutsummaryrefslogtreecommitdiffstats
path: root/arch/tile/mm/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/tile/mm/init.c')
-rw-r--r--arch/tile/mm/init.c32
1 files changed, 13 insertions, 19 deletions
diff --git a/arch/tile/mm/init.c b/arch/tile/mm/init.c
index caa270165f86..be240cc4978d 100644
--- a/arch/tile/mm/init.c
+++ b/arch/tile/mm/init.c
@@ -357,11 +357,11 @@ static int __init setup_ktext(char *str)
357 cpulist_scnprintf(buf, sizeof(buf), &ktext_mask); 357 cpulist_scnprintf(buf, sizeof(buf), &ktext_mask);
358 if (cpumask_weight(&ktext_mask) > 1) { 358 if (cpumask_weight(&ktext_mask) > 1) {
359 ktext_small = 1; 359 ktext_small = 1;
360 pr_info("ktext: using caching neighborhood %s " 360 pr_info("ktext: using caching neighborhood %s with small pages\n",
361 "with small pages\n", buf); 361 buf);
362 } else { 362 } else {
363 pr_info("ktext: caching on cpu %s with one huge page\n", 363 pr_info("ktext: caching on cpu %s with one huge page\n",
364 buf); 364 buf);
365 } 365 }
366 } 366 }
367 367
@@ -413,19 +413,16 @@ static void __init kernel_physical_mapping_init(pgd_t *pgd_base)
413 int rc, i; 413 int rc, i;
414 414
415 if (ktext_arg_seen && ktext_hash) { 415 if (ktext_arg_seen && ktext_hash) {
416 pr_warning("warning: \"ktext\" boot argument ignored" 416 pr_warn("warning: \"ktext\" boot argument ignored if \"kcache_hash\" sets up text hash-for-home\n");
417 " if \"kcache_hash\" sets up text hash-for-home\n");
418 ktext_small = 0; 417 ktext_small = 0;
419 } 418 }
420 419
421 if (kdata_arg_seen && kdata_hash) { 420 if (kdata_arg_seen && kdata_hash) {
422 pr_warning("warning: \"kdata\" boot argument ignored" 421 pr_warn("warning: \"kdata\" boot argument ignored if \"kcache_hash\" sets up data hash-for-home\n");
423 " if \"kcache_hash\" sets up data hash-for-home\n");
424 } 422 }
425 423
426 if (kdata_huge && !hash_default) { 424 if (kdata_huge && !hash_default) {
427 pr_warning("warning: disabling \"kdata=huge\"; requires" 425 pr_warn("warning: disabling \"kdata=huge\"; requires kcache_hash=all or =allbutstack\n");
428 " kcache_hash=all or =allbutstack\n");
429 kdata_huge = 0; 426 kdata_huge = 0;
430 } 427 }
431 428
@@ -470,8 +467,8 @@ static void __init kernel_physical_mapping_init(pgd_t *pgd_base)
470 pte[pte_ofs] = pfn_pte(pfn, prot); 467 pte[pte_ofs] = pfn_pte(pfn, prot);
471 } else { 468 } else {
472 if (kdata_huge) 469 if (kdata_huge)
473 printk(KERN_DEBUG "pre-shattered huge" 470 printk(KERN_DEBUG "pre-shattered huge page at %#lx\n",
474 " page at %#lx\n", address); 471 address);
475 for (pte_ofs = 0; pte_ofs < PTRS_PER_PTE; 472 for (pte_ofs = 0; pte_ofs < PTRS_PER_PTE;
476 pfn++, pte_ofs++, address += PAGE_SIZE) { 473 pfn++, pte_ofs++, address += PAGE_SIZE) {
477 pgprot_t prot = init_pgprot(address); 474 pgprot_t prot = init_pgprot(address);
@@ -501,8 +498,8 @@ static void __init kernel_physical_mapping_init(pgd_t *pgd_base)
501 pr_info("ktext: not using unavailable cpus %s\n", buf); 498 pr_info("ktext: not using unavailable cpus %s\n", buf);
502 } 499 }
503 if (cpumask_empty(&ktext_mask)) { 500 if (cpumask_empty(&ktext_mask)) {
504 pr_warning("ktext: no valid cpus; caching on %d.\n", 501 pr_warn("ktext: no valid cpus; caching on %d\n",
505 smp_processor_id()); 502 smp_processor_id());
506 cpumask_copy(&ktext_mask, 503 cpumask_copy(&ktext_mask,
507 cpumask_of(smp_processor_id())); 504 cpumask_of(smp_processor_id()));
508 } 505 }
@@ -798,11 +795,9 @@ void __init mem_init(void)
798#ifdef CONFIG_HIGHMEM 795#ifdef CONFIG_HIGHMEM
799 /* check that fixmap and pkmap do not overlap */ 796 /* check that fixmap and pkmap do not overlap */
800 if (PKMAP_ADDR(LAST_PKMAP-1) >= FIXADDR_START) { 797 if (PKMAP_ADDR(LAST_PKMAP-1) >= FIXADDR_START) {
801 pr_err("fixmap and kmap areas overlap" 798 pr_err("fixmap and kmap areas overlap - this will crash\n");
802 " - this will crash\n");
803 pr_err("pkstart: %lxh pkend: %lxh fixstart %lxh\n", 799 pr_err("pkstart: %lxh pkend: %lxh fixstart %lxh\n",
804 PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP-1), 800 PKMAP_BASE, PKMAP_ADDR(LAST_PKMAP-1), FIXADDR_START);
805 FIXADDR_START);
806 BUG(); 801 BUG();
807 } 802 }
808#endif 803#endif
@@ -926,8 +921,7 @@ static void free_init_pages(char *what, unsigned long begin, unsigned long end)
926 unsigned long addr = (unsigned long) begin; 921 unsigned long addr = (unsigned long) begin;
927 922
928 if (kdata_huge && !initfree) { 923 if (kdata_huge && !initfree) {
929 pr_warning("Warning: ignoring initfree=0:" 924 pr_warn("Warning: ignoring initfree=0: incompatible with kdata=huge\n");
930 " incompatible with kdata=huge\n");
931 initfree = 1; 925 initfree = 1;
932 } 926 }
933 end = (end + PAGE_SIZE - 1) & PAGE_MASK; 927 end = (end + PAGE_SIZE - 1) & PAGE_MASK;