[RFC PATCH 4/9] powerpc/mm/book3s-64: Move _PAGE_PRESENT to the most significant bit

kbuild test robot lkp at intel.com
Sat Feb 20 19:33:36 AEDT 2016


Hi Paul,

[auto build test ERROR on powerpc/next]
[also build test ERROR on v4.5-rc4 next-20160219]
[if your patch is applied to the wrong git tree, please drop us a note to help improving the system]

url:    https://github.com/0day-ci/linux/commits/Paul-Mackerras-via-Linuxppc-dev/powerpc-mm-Restructure-Linux-PTE-on-Book3S-64-to-radix-format/20160220-143050
base:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next
config: powerpc-allmodconfig (attached as .config)
reproduce:
        wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # save the attached .config to linux build tree
        make.cross ARCH=powerpc 

All error/warnings (new ones prefixed by >>):

   In file included from arch/powerpc/include/asm/thread_info.h:34:0,
                    from include/linux/thread_info.h:54,
                    from include/asm-generic/preempt.h:4,
                    from arch/powerpc/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/uapi/linux/timex.h:56,
                    from include/linux/timex.h:56,
                    from include/linux/sched.h:19,
                    from arch/powerpc/mm/pgtable_64.c:25:
   arch/powerpc/mm/pgtable_64.c: In function 'map_kernel_page':
>> arch/powerpc/include/asm/page.h:335:35: error: incompatible types when initializing type 'long unsigned int' using type 'pgprot_t {aka struct <anonymous>}'
    #define __pgprot(x) ((pgprot_t) { (x) })
                                      ^
>> arch/powerpc/mm/pgtable_64.c:110:10: note: in expansion of macro '__pgprot'
             __pgprot(flags)));
             ^
>> arch/powerpc/mm/pgtable_64.c:143:49: error: incompatible type for argument 4 of 'htab_bolt_mapping'
      if (htab_bolt_mapping(ea, ea + PAGE_SIZE, pa, flags,
                                                    ^
   In file included from arch/powerpc/include/asm/mmu.h:185:0,
                    from arch/powerpc/include/asm/lppaca.h:36,
                    from arch/powerpc/include/asm/paca.h:21,
                    from arch/powerpc/include/asm/hw_irq.h:42,
                    from arch/powerpc/include/asm/irqflags.h:11,
                    from include/linux/irqflags.h:15,
                    from include/linux/spinlock.h:53,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/uapi/linux/timex.h:56,
                    from include/linux/timex.h:56,
                    from include/linux/sched.h:19,
                    from arch/powerpc/mm/pgtable_64.c:25:
   arch/powerpc/include/asm/mmu-hash64.h:358:12: note: expected 'long unsigned int' but argument is of type 'pgprot_t {aka struct <anonymous>}'
    extern int htab_bolt_mapping(unsigned long vstart, unsigned long vend,
               ^
   arch/powerpc/mm/pgtable_64.c: In function '__ioremap_at':
>> arch/powerpc/mm/pgtable_64.c:183:50: error: incompatible type for argument 3 of 'map_kernel_page'
      if (map_kernel_page((unsigned long)ea+i, pa+i, flags))
                                                     ^
   arch/powerpc/mm/pgtable_64.c:91:5: note: expected 'pgprot_t {aka struct <anonymous>}' but argument is of type 'long unsigned int'
    int map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t flags)
        ^

vim +/htab_bolt_mapping +143 arch/powerpc/mm/pgtable_64.c

14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   19   *  as published by the Free Software Foundation; either version
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   20   *  2 of the License, or (at your option) any later version.
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   21   *
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   22   */
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   23  
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   24  #include <linux/signal.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  @25  #include <linux/sched.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   26  #include <linux/kernel.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   27  #include <linux/errno.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   28  #include <linux/string.h>
66b15db6 arch/powerpc/mm/pgtable_64.c Paul Gortmaker                  2011-05-27   29  #include <linux/export.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   30  #include <linux/types.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   31  #include <linux/mman.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   32  #include <linux/mm.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   33  #include <linux/swap.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   34  #include <linux/stddef.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   35  #include <linux/vmalloc.h>
95f72d1e arch/powerpc/mm/pgtable_64.c Yinghai Lu                      2010-07-12   36  #include <linux/memblock.h>
5a0e3ad6 arch/powerpc/mm/pgtable_64.c Tejun Heo                       2010-03-24   37  #include <linux/slab.h>
06743521 arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2014-11-05   38  #include <linux/hugetlb.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   39  
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   40  #include <asm/pgalloc.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   41  #include <asm/page.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   42  #include <asm/prom.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   43  #include <asm/io.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   44  #include <asm/mmu_context.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   45  #include <asm/pgtable.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   46  #include <asm/mmu.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   47  #include <asm/smp.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   48  #include <asm/machdep.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   49  #include <asm/tlb.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   50  #include <asm/processor.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   51  #include <asm/cputable.h>
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   52  #include <asm/sections.h>
5e203d68 arch/powerpc/mm/pgtable_64.c Stephen Rothwell                2006-09-25   53  #include <asm/firmware.h>
68cf0d64 arch/powerpc/mm/pgtable_64.c Anton Blanchard                 2014-09-17   54  #include <asm/dma.h>
800fc3ee arch/powerpc/mm/pgtable_64.c David Gibson                    2005-11-16   55  
800fc3ee arch/powerpc/mm/pgtable_64.c David Gibson                    2005-11-16   56  #include "mmu_decl.h"
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   57  
9e813308 arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2014-08-13   58  #define CREATE_TRACE_POINTS
9e813308 arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2014-08-13   59  #include <trace/events/thp.h>
9e813308 arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2014-08-13   60  
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   61  /* Some sanity checking */
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   62  #if TASK_SIZE_USER64 > PGTABLE_RANGE
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   63  #error TASK_SIZE_USER64 exceeds pagetable range
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   64  #endif
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   65  
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   66  #ifdef CONFIG_PPC_STD_MMU_64
af81d787 arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2013-03-13   67  #if TASK_SIZE_USER64 > (1UL << (ESID_BITS + SID_SHIFT))
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   68  #error TASK_SIZE_USER64 exceeds user VSID range
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   69  #endif
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   70  #endif
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   71  
78f1dbde arch/powerpc/mm/pgtable_64.c Aneesh Kumar K.V                2012-09-10   72  unsigned long ioremap_bot = IOREMAP_BASE;
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   73  
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   74  #ifdef CONFIG_PPC_MMU_NOHASH
7d176221 arch/powerpc/mm/pgtable_64.c Scott Wood                      2014-08-01   75  static __ref void *early_alloc_pgtable(unsigned long size)
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   76  {
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   77  	void *pt;
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   78  
10239733 arch/powerpc/mm/pgtable_64.c Anton Blanchard                 2014-09-17   79  	pt = __va(memblock_alloc_base(size, size, __pa(MAX_DMA_ADDRESS)));
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   80  	memset(pt, 0, size);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   81  
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   82  	return pt;
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   83  }
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   84  #endif /* CONFIG_PPC_MMU_NOHASH */
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   85  
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   86  /*
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   87   * map_kernel_page currently only called by __ioremap
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   88   * map_kernel_page adds an entry to the ioremap page table
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   89   * and adds an entry to the HPT, possibly bolting it
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   90   */
be212f32 arch/powerpc/mm/pgtable_64.c Paul Mackerras via Linuxppc-dev 2016-02-20   91  int map_kernel_page(unsigned long ea, unsigned long pa, pgprot_t flags)
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   92  {
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   93  	pgd_t *pgdp;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   94  	pud_t *pudp;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   95  	pmd_t *pmdp;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   96  	pte_t *ptep;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   97  
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23   98  	if (slab_is_available()) {
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26   99  		pgdp = pgd_offset_k(ea);
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  100  		pudp = pud_alloc(&init_mm, pgdp, ea);
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  101  		if (!pudp)
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  102  			return -ENOMEM;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  103  		pmdp = pmd_alloc(&init_mm, pudp, ea);
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  104  		if (!pmdp)
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  105  			return -ENOMEM;
23fd0775 arch/powerpc/mm/pgtable_64.c Paul Mackerras                  2005-10-31  106  		ptep = pte_alloc_kernel(pmdp, ea);
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  107  		if (!ptep)
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  108  			return -ENOMEM;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  109  		set_pte_at(&init_mm, ea, ptep, pfn_pte(pa >> PAGE_SHIFT,
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26 @110  							  __pgprot(flags)));
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  111  	} else {
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  112  #ifdef CONFIG_PPC_MMU_NOHASH
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  113  		pgdp = pgd_offset_k(ea);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  114  #ifdef PUD_TABLE_SIZE
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  115  		if (pgd_none(*pgdp)) {
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  116  			pudp = early_alloc_pgtable(PUD_TABLE_SIZE);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  117  			BUG_ON(pudp == NULL);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  118  			pgd_populate(&init_mm, pgdp, pudp);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  119  		}
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  120  #endif /* PUD_TABLE_SIZE */
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  121  		pudp = pud_offset(pgdp, ea);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  122  		if (pud_none(*pudp)) {
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  123  			pmdp = early_alloc_pgtable(PMD_TABLE_SIZE);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  124  			BUG_ON(pmdp == NULL);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  125  			pud_populate(&init_mm, pudp, pmdp);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  126  		}
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  127  		pmdp = pmd_offset(pudp, ea);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  128  		if (!pmd_present(*pmdp)) {
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  129  			ptep = early_alloc_pgtable(PAGE_SIZE);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  130  			BUG_ON(ptep == NULL);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  131  			pmd_populate_kernel(&init_mm, pmdp, ptep);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  132  		}
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  133  		ptep = pte_offset_kernel(pmdp, ea);
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  134  		set_pte_at(&init_mm, ea, ptep, pfn_pte(pa >> PAGE_SHIFT,
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  135  							  __pgprot(flags)));
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  136  #else /* CONFIG_PPC_MMU_NOHASH */
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  137  		/*
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  138  		 * If the mm subsystem is not fully up, we cannot create a
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  139  		 * linux page table entry for this mapping.  Simply bolt an
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  140  		 * entry in the hardware page table.
3c726f8d arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2005-11-07  141  		 *
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  142  		 */
1189be65 arch/powerpc/mm/pgtable_64.c Paul Mackerras                  2007-10-11 @143  		if (htab_bolt_mapping(ea, ea + PAGE_SIZE, pa, flags,
1189be65 arch/powerpc/mm/pgtable_64.c Paul Mackerras                  2007-10-11  144  				      mmu_io_psize, mmu_kernel_ssize)) {
77ac166f arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2005-11-10  145  			printk(KERN_ERR "Failed to do bolted mapping IO "
77ac166f arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2005-11-10  146  			       "memory at %016lx !\n", pa);
77ac166f arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2005-11-10  147  			return -ENOMEM;
77ac166f arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2005-11-10  148  		}
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23  149  #endif /* !CONFIG_PPC_MMU_NOHASH */
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  150  	}
47ce8af4 arch/powerpc/mm/pgtable_64.c Scott Wood                      2013-10-11  151  
47ce8af4 arch/powerpc/mm/pgtable_64.c Scott Wood                      2013-10-11  152  	smp_wmb();
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  153  	return 0;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  154  }
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  155  
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  156  
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  157  /**
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  158   * __ioremap_at - Low level function to establish the page tables
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  159   *                for an IO mapping
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  160   */
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  161  void __iomem * __ioremap_at(phys_addr_t pa, void *ea, unsigned long size,
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  162  			    unsigned long flags)
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  163  {
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  164  	unsigned long i;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  165  
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  166  	/* Make sure we have the base flags */
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  167  	if ((flags & _PAGE_PRESENT) == 0)
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  168  		flags |= pgprot_val(PAGE_KERNEL);
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  169  
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  170  	/* Non-cacheable page cannot be coherent */
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  171  	if (flags & _PAGE_NO_CACHE)
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  172  		flags &= ~_PAGE_COHERENT;
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  173  
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  174  	/* We don't support the 4K PFN hack with ioremap */
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  175  	if (flags & _PAGE_4K_PFN)
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  176  		return NULL;
a1f242ff arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2008-07-23  177  
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  178  	WARN_ON(pa & ~PAGE_MASK);
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  179  	WARN_ON(((unsigned long)ea) & ~PAGE_MASK);
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  180  	WARN_ON(size & ~PAGE_MASK);
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  181  
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  182  	for (i = 0; i < size; i += PAGE_SIZE)
a245067e arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2009-07-23 @183  		if (map_kernel_page((unsigned long)ea+i, pa+i, flags))
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  184  			return NULL;
14cf11af arch/powerpc/mm/pgtable64.c  Paul Mackerras                  2005-09-26  185  
3d5134ee arch/powerpc/mm/pgtable_64.c Benjamin Herrenschmidt          2007-06-04  186  	return (void __iomem *)ea;

:::::: The code at line 143 was first introduced by commit
:::::: 1189be6508d45183013ddb82b18f4934193de274 [POWERPC] Use 1TB segments

:::::: TO: Paul Mackerras <paulus at samba.org>
:::::: CC: Paul Mackerras <paulus at samba.org>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/octet-stream
Size: 47660 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20160220/875abaf8/attachment-0001.obj>


More information about the Linuxppc-dev mailing list