linux-next: manual merge of the akpm-current tree with the powerpc tree
Subsystems (2)
Hi Andrew,
Today's linux-next merge of the akpm-current tree got a conflict in:
arch/powerpc/include/asm/pgtable.h
between commit:
ee4889c7bc2a ("powerpc/mm: Don't have generic headers introduce functions touching pte bits")
from the powerpc tree and commit:
e0e8474c0d55 ("mm, dax, gpu: convert vm_insert_mixed to pfn_t")
from the akpm-current tree.
I fixed it up (the code being changed was moved from this file - I added the fix up patch below) and can carry the fix as necessary (no action is required).
From: Stephen Rothwell <[email protected]>
Date: Fri, 18 Dec 2015 16:30:47 +1100
Subject: [PATCH] mm, dax, gpu: merge fix for convert vm_insert_mixed to pfn_t
--- arch/powerpc/include/asm/book3s/32/pgtable.h | 1 + arch/powerpc/include/asm/book3s/64/hash.h | 1 + arch/powerpc/include/asm/nohash/pgtable.h | 1 + 3 files changed, 3 insertions(+)
arch/powerpc/include/asm/book3s/32/pgtable.h +1 -0
@@ -313,6 +313,7 @@ static inline int pte_present(pte_t pte)* Even if PTEs can be unsigned long long, a PFN is always an unsigned * long for now. */ +#define pfn_pte pfn_ptestatic inline pte_t pfn_pte (unsigned long pfn,pgprot_t pgprot) { return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) |
arch/powerpc/include/asm/book3s/64/hash.h +1 -0
@@ -410,6 +410,7 @@ static inline int pte_present(pte_t pte)* Even if PTEs can be unsigned long long, a PFN is always an unsigned * long for now. */ +#define pfn_pte pfn_ptestatic inline pte_t pfn_pte (unsigned long pfn,pgprot_t pgprot) { return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) |
arch/powerpc/include/asm/nohash/pgtable.h +1 -0
@@ -49,6 +49,7 @@ static inline int pte_present(pte_t pte)* Even if PTEs can be unsigned long long, a PFN is always an unsigned * long for now. */ +#define pfn_pte pfn_ptestatic inline pte_t pfn_pte (unsigned long pfn,pgprot_t pgprot) {return __pte (((pte_basic_t)(pfn) <<PTE_RPN_SHIFT ) |pgprot_val (pgprot)); }
Signature · 5 lines
2.6.2 -- Cheers, Stephen Rothwell [email protected]
Hi all,
Quoted 68 lines · On Fri, 18 Dec 2015 16:33:51 +1100 Stephen Rothwell <[email protected]>…
Today's linux-next merge of the akpm-current tree got a conflict in:
arch/powerpc/include/asm/pgtable.hbetween commit:
ee4889c7bc2a("powerpc/mm: Don't have generic headers introduce functions touching pte bits")from the powerpc tree and commit:
e0e8474c0d55("mm, dax, gpu: convertvm_insert_mixedtopfn_t")from the akpm-current tree.
I fixed it up (the code being changed was moved from this file - I added the fix up patch below) and can carry the fix as necessary (no action is required).
From: Stephen Rothwell <[email protected]>
Date: Fri, 18 Dec 2015 16:30:47 +1100
Subject: [PATCH] mm, dax, gpu: merge fix for convertvm_insert_mixedtopfn_tSigned-off-by Stephen Rothwell <[email protected]>--- arch/powerpc/include/asm/book3s/32/pgtable.h | 1 + arch/powerpc/include/asm/book3s/64/hash.h | 1 + arch/powerpc/include/asm/nohash/pgtable.h | 1 + 3 files changed, 3 insertions(+)arch/powerpc/include/asm/book3s/32/pgtable.h +1
-0@@ -313,6 +313,7 @@ static inline int pte_present(pte_t pte)* Even if PTEs can be unsigned long long, a PFN is always an unsigned * long for now. */ +#define pfn_pte pfn_ptestatic inline pte_t pfn_pte (unsigned long pfn,pgprot_t pgprot) { return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) |arch/powerpc/include/asm/book3s/64/hash.h +1
-0@@ -410,6 +410,7 @@ static inline int pte_present(pte_t pte)* Even if PTEs can be unsigned long long, a PFN is always an unsigned * long for now. */ +#define pfn_pte pfn_ptestatic inline pte_t pfn_pte (unsigned long pfn,pgprot_t pgprot) { return __pte(((pte_basic_t)(pfn) << PTE_RPN_SHIFT) |arch/powerpc/include/asm/nohash/pgtable.h +1
-0@@ -49,6 +49,7 @@ static inline int pte_present(pte_t pte)* Even if PTEs can be unsigned long long, a PFN is always an unsigned * long for now. */ +#define pfn_pte pfn_ptestatic inline pte_t pfn_pte (unsigned long pfn,pgprot_t pgprot) {return __pte (((pte_basic_t)(pfn) <<PTE_RPN_SHIFT ) |pgprot_val (pgprot)); }Signature · 1 line
2.6.2
This merge fix up patch now looks like this:
From: Stephen Rothwell <[email protected]>
Date: Tue, 15 Dec 2015 16:50:42 +1100
Subject: [PATCH] merge fix for "powerpc, thp: remove infrastructure for handling splitting PMDs"
--- arch/powerpc/include/asm/book3s/64/hash-64k.h | 12 ------------ arch/powerpc/include/asm/book3s/64/hash.h | 11 +++-------- arch/powerpc/include/asm/book3s/64/pgtable.h | 4 ---- 3 files changed, 2 insertions(+), 24 deletions(-)
arch/powerpc/include/asm/book3s/64/hash-64k.h +0 -12
@@ -256,13 +256,6 @@ static inline int pmd_trans_huge(pmd_t pmd) (_PAGE_PTE | _PAGE_THP_HUGE)); } -static inline int pmd_trans_splitting (pmd_t pmd) -{ -if (pmd_trans_huge (pmd)) -return pmd_val (pmd) & _PAGE_SPLITTING; -return 0 ; -} -static inline int pmd_large (pmd_t pmd) {return !!(pmd_val (pmd) & _PAGE_PTE);
@@ -273,11 +266,6 @@ static inline pmd_t pmd_mknotpresent(pmd_t pmd)return __pmd (pmd_val (pmd) & ~_PAGE_PRESENT); } -static inline pmd_t pmd_mksplitting (pmd_t pmd) -{ -return __pmd (pmd_val (pmd) | _PAGE_SPLITTING); -} -#define __HAVE_ARCH_PMD_SAMEstatic inline int pmd_same (pmd_t pmd_a,pmd_t pmd_b) {
arch/powerpc/include/asm/book3s/64/hash.h +3 -8
@@ -36,11 +36,6 @@#define _PAGE_SOFT_DIRTY 0x20000/* software: software dirty tracking */ /* -* THP pages can't be special. So use the _PAGE_SPECIAL -*/ -#define _PAGE_SPLITTING _PAGE_SPECIAL - -/* * We need to differentiate between explicit huge page and THP huge * page, since THP huge page also need to track real subpage details */
@@ -49,9 +44,9 @@/* * set of bits not changed in pmd_modify. */ -#define _HPAGE_CHG_MASK (PTE_RPN_MASK | _PAGE_HPTEFLAGS | \ - _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_SPLITTING | \ - _PAGE_THP_HUGE | _PAGE_PTE | _PAGE_SOFT_DIRTY) +#define _HPAGE_CHG_MASK (PTE_RPN_MASK | _PAGE_HPTEFLAGS | _PAGE_DIRTY | \ + _PAGE_ACCESSED | _PAGE_THP_HUGE | _PAGE_PTE | \ + _PAGE_SOFT_DIRTY)#ifdef CONFIG_PPC_64K_PAGES #include <asm/book3s/64/hash-64k.h>
arch/powerpc/include/asm/book3s/64/pgtable.h +0 -4
@@ -258,10 +258,6 @@ extern int pmdp_clear_flush_young(struct vm_area_struct *vma,extern pmd_t pmdp_huge_get_and_clear (struct mm_struct *mm,unsigned long addr,pmd_t *pmdp); -#define __HAVE_ARCH_PMDP_SPLITTING_FLUSH -extern void pmdp_splitting_flush (struct vm_area_struct *vma, -unsigned long address,pmd_t *pmdp); -extern pmd_t pmdp_collapse_flush (struct vm_area_struct *vma,unsigned long address,pmd_t *pmdp);#define pmdp_collapse_flush pmdp_collapse_flush
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]
Quoted 1 line · Stephen Rothwell
This merge fix up patch now looks like this:
What about the #define pfn_pte part ? We don't need that now ?
Quoted 91 lines
From: Stephen Rothwell <[email protected]>
Date: Tue, 15 Dec 2015 16:50:42 +1100
Subject: [PATCH] merge fix for "powerpc, thp: remove infrastructure for handling splitting PMDs"Signed-off-by Stephen Rothwell <[email protected]>--- arch/powerpc/include/asm/book3s/64/hash-64k.h | 12 ------------ arch/powerpc/include/asm/book3s/64/hash.h | 11 +++-------- arch/powerpc/include/asm/book3s/64/pgtable.h | 4 ---- 3 files changed, 2 insertions(+), 24 deletions(-)arch/powerpc/include/asm/book3s/64/hash-64k.h +0
-12@@ -256,13 +256,6 @@ static inline int pmd_trans_huge(pmd_t pmd) (_PAGE_PTE | _PAGE_THP_HUGE)); } -static inline int pmd_trans_splitting (pmd_t pmd) -{ -if (pmd_trans_huge (pmd)) -return pmd_val (pmd) & _PAGE_SPLITTING; -return 0 ; -} -static inline int pmd_large (pmd_t pmd) {return !!(pmd_val (pmd) & _PAGE_PTE);@@ -273,11 +266,6 @@ static inline pmd_t pmd_mknotpresent(pmd_t pmd)return __pmd (pmd_val (pmd) & ~_PAGE_PRESENT); } -static inline pmd_t pmd_mksplitting (pmd_t pmd) -{ -return __pmd (pmd_val (pmd) | _PAGE_SPLITTING); -} -#define __HAVE_ARCH_PMD_SAMEstatic inline int pmd_same (pmd_t pmd_a,pmd_t pmd_b) {arch/powerpc/include/asm/book3s/64/hash.h +3
-8@@ -36,11 +36,6 @@#define _PAGE_SOFT_DIRTY 0x20000/* software: software dirty tracking */ /* -* THP pages can't be special. So use the _PAGE_SPECIAL -*/ -#define _PAGE_SPLITTING _PAGE_SPECIAL - -/* * We need to differentiate between explicit huge page and THP huge * page, since THP huge page also need to track real subpage details */ @@ -49,9 +44,9 @@/* * set of bits not changed in pmd_modify. */ -#define _HPAGE_CHG_MASK (PTE_RPN_MASK | _PAGE_HPTEFLAGS | \ - _PAGE_DIRTY | _PAGE_ACCESSED | _PAGE_SPLITTING | \ - _PAGE_THP_HUGE | _PAGE_PTE | _PAGE_SOFT_DIRTY) +#define _HPAGE_CHG_MASK (PTE_RPN_MASK | _PAGE_HPTEFLAGS | _PAGE_DIRTY | \ + _PAGE_ACCESSED | _PAGE_THP_HUGE | _PAGE_PTE | \ + _PAGE_SOFT_DIRTY)#ifdef CONFIG_PPC_64K_PAGES #include <asm/book3s/64/hash-64k.h> arch/powerpc/include/asm/book3s/64/pgtable.h +0
-4@@ -258,10 +258,6 @@ extern int pmdp_clear_flush_young(struct vm_area_struct *vma,extern pmd_t pmdp_huge_get_and_clear (struct mm_struct *mm,unsigned long addr,pmd_t *pmdp); -#define __HAVE_ARCH_PMDP_SPLITTING_FLUSH -extern void pmdp_splitting_flush (struct vm_area_struct *vma, -unsigned long address,pmd_t *pmdp); -extern pmd_t pmdp_collapse_flush (struct vm_area_struct *vma,unsigned long address,pmd_t *pmdp);#define pmdp_collapse_flush pmdp_collapse_flushSignature · 3 lines
-- Cheers, Stephen Rothwell [email protected]
Hi Aneesh,
Quoted 7 lines · On Thu, 07 Jan 2016 22:45:19 +0530 "Aneesh Kumar K.V"…
Quoted 1 line · Stephen Rothwell
This merge fix up patch now looks like this:
What about the #define
pfn_ptepart ? We don't need that now ?
That is done as part of the merge conflict resolution. This is an extra needed merge resolution patch due to code being moved between files. You can see the entire merge resolution using
git diff-tree --cc 5a028bd9b7de
in next-20160107.
The #defines are there in
arch/powerpc/include/asm/book3s/32/pgtable.h
arch/powerpc/include/asm/book3s/64/hash.h
arch/powerpc/include/asm/nohash/pgtable.h
Signature · 2 lines
Cheers, Stephen Rothwell [email protected]