]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Merge remote-tracking branch 'arm-lpae/for-next'
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 22 Nov 2011 01:03:45 +0000 (12:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 22 Nov 2011 01:03:45 +0000 (12:03 +1100)
Conflicts:
arch/arm/include/asm/pgalloc.h
arch/arm/include/asm/pgtable.h
arch/arm/include/asm/tlb.h
arch/arm/mm/ioremap.c

1  2 
arch/arm/Kconfig
arch/arm/include/asm/pgtable.h
arch/arm/include/asm/system.h
arch/arm/kernel/head.S
arch/arm/mm/idmap.c
arch/arm/mm/ioremap.c
arch/arm/mm/mmu.c

Simple merge
index a24a2b8feb9213e1632ccfa33011ad2b1c9d864c,aec18abf4e6b341a86ef2b44cda5411baa2bb42d..0542166129f30e0adb4e3c969e1a93b8f05b4933
  
  #include <asm-generic/pgtable-nopud.h>
  #include <asm/memory.h>
 -#include <mach/vmalloc.h>
  #include <asm/pgtable-hwdef.h>
  
+ #ifdef CONFIG_ARM_LPAE
+ #include <asm/pgtable-3level.h>
+ #else
  #include <asm/pgtable-2level.h>
+ #endif
  
  /*
   * Just any arbitrary offset to the start of the vmalloc VM area: the
Simple merge
Simple merge
Simple merge
index 12c7ad215ce732a743475a75a8c31f6dd3e7f5a9,d1f78bacb015a9756214d704d62ec694ba687f76..80632e8d7538f33d5a6539df5a72a90fff52e7ec
@@@ -194,7 -208,14 +202,8 @@@ void __iomem * __arm_ioremap_pfn_caller
         */
        if (pfn >= 0x100000 && (__pfn_to_phys(pfn) & ~SUPERSECTION_MASK))
                return NULL;
+ #endif
  
 -      /*
 -       * Don't allow RAM to be mapped - this causes problems with ARMv6+
 -       */
 -      if (WARN_ON(pfn_valid(pfn)))
 -              return NULL;
 -
        type = get_mem_type(mtype);
        if (!type)
                return NULL;
@@@ -329,34 -322,28 +338,34 @@@ __arm_ioremap_exec(unsigned long phys_a
  void __iounmap(volatile void __iomem *io_addr)
  {
        void *addr = (void *)(PAGE_MASK & (unsigned long)io_addr);
 -#if !defined(CONFIG_SMP) && !defined(CONFIG_ARM_LPAE)
 -      struct vm_struct **p, *tmp;
 +      struct vm_struct *vm;
  
 -      /*
 -       * If this is a section based mapping we need to handle it
 -       * specially as the VM subsystem does not know how to handle
 -       * such a beast. We need the lock here b/c we need to clear
 -       * all the mappings before the area can be reclaimed
 -       * by someone else.
 -       */
 -      write_lock(&vmlist_lock);
 -      for (p = &vmlist ; (tmp = *p) ; p = &tmp->next) {
 -              if ((tmp->flags & VM_IOREMAP) && (tmp->addr == addr)) {
 -                      if (tmp->flags & VM_ARM_SECTION_MAPPING) {
 -                              unmap_area_sections((unsigned long)tmp->addr,
 -                                                  tmp->size);
 -                      }
 +      read_lock(&vmlist_lock);
 +      for (vm = vmlist; vm; vm = vm->next) {
 +              if (vm->addr > addr)
 +                      break;
 +              if (!(vm->flags & VM_IOREMAP))
 +                      continue;
 +              /* If this is a static mapping we must leave it alone */
 +              if ((vm->flags & VM_ARM_STATIC_MAPPING) &&
 +                  (vm->addr <= addr) && (vm->addr + vm->size > addr)) {
 +                      read_unlock(&vmlist_lock);
 +                      return;
 +              }
- #ifndef CONFIG_SMP
++#if !defined(CONFIG_SMP) && !defined(CONFIG_ARM_LPAE)
 +              /*
 +               * If this is a section based mapping we need to handle it
 +               * specially as the VM subsystem does not know how to handle
 +               * such a beast.
 +               */
 +              if ((vm->addr == addr) &&
 +                  (vm->flags & VM_ARM_SECTION_MAPPING)) {
 +                      unmap_area_sections((unsigned long)vm->addr, vm->size);
                        break;
                }
 -      }
 -      write_unlock(&vmlist_lock);
  #endif
 +      }
 +      read_unlock(&vmlist_lock);
  
        vunmap(addr);
  }
Simple merge