public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb•auug.org.au>
To: Catalin Marinas <catalin.marinas@arm•com>
Cc: linux-next@vger•kernel.org, linux-kernel@vger•kernel.org,
	Russell King <rmk@arm•linux.org.uk>
Subject: linux-next: manual merge of the catalin tree with the arm tree
Date: Fri, 23 Jul 2010 13:15:09 +1000	[thread overview]
Message-ID: <20100723131509.8614658a.sfr@canb.auug.org.au> (raw)

Hi Catalin,

Today's linux-next merge of the catalin tree got a conflict in
arch/arm/mm/mmu.c between commit 3abe9d33b382cb9eee7bfee8d90b10078f4baa4d
("ARM: early_alloc()") from the arm tree and commit
838105a674b7b72cb26c346155a40901c5bf7723 ("ARM: Remove the domain
switching on ARMv6k/v7 CPUs") from the catalin tree.

I fixed it up (I think - see below) and can carry the fix as necessary.
-- 
Cheers,
Stephen Rothwell                    sfr@canb•auug.org.au

diff --cc arch/arm/mm/mmu.c
index 9ee3c75,e107f1b..0000000
--- a/arch/arm/mm/mmu.c
+++ b/arch/arm/mm/mmu.c
@@@ -11,12 -11,14 +11,13 @@@
  #include <linux/kernel.h>
  #include <linux/errno.h>
  #include <linux/init.h>
 -#include <linux/bootmem.h>
  #include <linux/mman.h>
  #include <linux/nodemask.h>
 +#include <linux/memblock.h>
  #include <linux/sort.h>
+ #include <linux/fs.h>
  
  #include <asm/cputype.h>
 -#include <asm/mach-types.h>
  #include <asm/sections.h>
  #include <asm/cachetype.h>
  #include <asm/setup.h>
@@@ -498,30 -488,33 +500,43 @@@ static void __init build_mem_type_table
  	}
  }
  
+ #ifdef CONFIG_ARM_DMA_MEM_BUFFERABLE
+ pgprot_t phys_mem_access_prot(struct file *file, unsigned long pfn,
+ 			      unsigned long size, pgprot_t vma_prot)
+ {
+ 	if (!pfn_valid(pfn))
+ 		return pgprot_noncached(vma_prot);
+ 	else if (file->f_flags & O_SYNC)
+ 		return pgprot_writecombine(vma_prot);
+ 	return vma_prot;
+ }
+ EXPORT_SYMBOL(phys_mem_access_prot);
+ #endif
+ 
  #define vectors_base()	(vectors_high() ? 0xffff0000 : 0)
  
 -static void __init alloc_init_pte(pmd_t *pmd, unsigned long addr,
 -				  unsigned long end, unsigned long pfn,
 -				  const struct mem_type *type)
 +static void __init *early_alloc(unsigned long sz)
  {
 -	pte_t *pte;
 +	void *ptr = __va(memblock_alloc(sz, sz));
 +	memset(ptr, 0, sz);
 +	return ptr;
 +}
  
 +static pte_t *early_pte_alloc(pmd_t *pmd, unsigned long addr, unsigned long prot)
 +{
  	if (pmd_none(*pmd)) {
 -		pte = alloc_bootmem_low_pages(2 * PTRS_PER_PTE * sizeof(pte_t));
 -		__pmd_populate(pmd, __pa(pte) | type->prot_l1);
 +		pte_t *pte = early_alloc(2 * PTRS_PER_PTE * sizeof(pte_t));
 +		__pmd_populate(pmd, __pa(pte) | prot);
  	}
 +	BUG_ON(pmd_bad(*pmd));
 +	return pte_offset_kernel(pmd, addr);
 +}
  
 -	pte = pte_offset_kernel(pmd, addr);
 +static void __init alloc_init_pte(pmd_t *pmd, unsigned long addr,
 +				  unsigned long end, unsigned long pfn,
 +				  const struct mem_type *type)
 +{
 +	pte_t *pte = early_pte_alloc(pmd, addr, type->prot_l1);
  	do {
  		set_pte_ext(pte, pfn_pte(pfn, __pgprot(type->prot_pte)), 0);
  		pfn++;
@@@ -888,7 -954,7 +902,7 @@@ static void __init devicemaps_init(stru
  	/*
  	 * Allocate the vector page early.
  	 */
- 	vectors = early_alloc(PAGE_SIZE);
 -	vectors_page = alloc_bootmem_low_pages(PAGE_SIZE);
++	vectors_page = early_alloc(PAGE_SIZE);
  
  	for (addr = VMALLOC_END; addr; addr += PGDIR_SIZE)
  		pmd_clear(pmd_off_k(addr));

             reply	other threads:[~2010-07-23  3:15 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-23  3:15 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-07-23  3:15 linux-next: manual merge of the catalin tree with the arm tree Stephen Rothwell
2010-09-09  1:41 Stephen Rothwell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100723131509.8614658a.sfr@canb.auug.org.au \
    --to=sfr@canb$(echo .)auug.org.au \
    --cc=catalin.marinas@arm$(echo .)com \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=linux-next@vger$(echo .)kernel.org \
    --cc=rmk@arm$(echo .)linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox