Skip to contentSkip to conversation

linux-next: manual merge of the akpm-current tree with the pci tree

DISCUSSION Stephen Rothwell 4 participants 4 messages Sep 25, 2014 – Sep 26, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi Andrew,

Today's linux-next merge of the akpm-current tree got a conflict in include/asm-generic/pgtable.h between commit b766eafe6828 ("PCI: Add pci_remap_iospace() to map bus I/O resources") from the pci tree and commit 4cc2f91f2636 ("mm: softdirty: enable write notifications on VMAs after VM_SOFTDIRTY cleared") from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 30 lines
Cheers,
Stephen Rothwell                    [email protected]

diff --cc include/asm-generic/pgtable.h
index 977e545a64c3,f6acf1195182..000000000000
--- a/include/asm-generic/pgtable.h
+++ b/include/asm-generic/pgtable.h
@@@ -249,10 -249,18 +249,22 @@@ static inline int pmd_same(pmd_t pmd_a
  #define pgprot_writecombine pgprot_noncached
  #endif
  
 +#ifndef pgprot_device
 +#define pgprot_device pgprot_noncached
 +#endif
 +
+ #ifndef pgprot_modify
+ #define pgprot_modify pgprot_modify
+ static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
+ {
+ 	if (pgprot_val(oldprot) == pgprot_val(pgprot_noncached(oldprot)))
+ 		newprot = pgprot_noncached(newprot);
+ 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
+ 		newprot = pgprot_writecombine(newprot);
+ 	return newprot;
+ }
+ #endif
+ 
  /*
   * When walking page tables, get the address of the next boundary,
   * or the end address of the range if that comes earlier.  Although no
#1 lore raw
Quoted 25 lines · Stephen Rothwell

Hi Andrew,

Today's linux-next merge of the akpm-current tree got a conflict in include/asm-generic/pgtable.h between commit b766eafe6828 ("PCI: Add pci_remap_iospace() to map bus I/O resources") from the pci tree and commit 4cc2f91f2636 ("mm: softdirty: enable write notifications on VMAs after VM_SOFTDIRTY cleared") from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
include/asm-generic/pgtable.h +0 -0
diff --cc include/asm-generic/pgtable.h
index 977e545a64c3,f6acf1195182..000000000000
@@@ -249,10 -249,18 +249,22 @@@ static inline int pmd_same(pmd_t pmd_a
  #define pgprot_writecombine pgprot_noncached
  #endif
 
 +#ifndef pgprot_device
 +#define pgprot_device pgprot_noncached

include/asm-generic/pgtable.h

Quoted 10 lines
include/asm-generic/pgtable.h +8 -0
 +#endif
 +
+ #ifndef pgprot_modify
+ #define pgprot_modify pgprot_modify
+ static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
+ {
+ 	if (pgprot_val(oldprot) == pgprot_val(pgprot_noncached(oldprot)))
+ 		newprot = pgprot_noncached(newprot);
+ 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
+ 		newprot = pgprot_writecombine(newprot);

For completeness of the arch-independent pgprot-modify,

	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
		newprot = pgprot_device(newprot);

should be added here.

Quoted 7 lines
include/asm-generic/pgtable.h +4 -0
+ 	return newprot;
+ }
+ #endif
+ 
  /*
   * When walking page tables, get the address of the next boundary,
   * or the end address of the range if that comes earlier.  Although no
#2 lore raw
Quoted 39 lines · On Thu, 25 Sep 2014 12:30:00 -0700 Peter Feiner <[email protected]> wrote:
Quoted 25 lines · Stephen Rothwell

Hi Andrew,

Today's linux-next merge of the akpm-current tree got a conflict in include/asm-generic/pgtable.h between commit b766eafe6828 ("PCI: Add pci_remap_iospace() to map bus I/O resources") from the pci tree and commit 4cc2f91f2636 ("mm: softdirty: enable write notifications on VMAs after VM_SOFTDIRTY cleared") from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
include/asm-generic/pgtable.h +0 -0
diff --cc include/asm-generic/pgtable.h
index 977e545a64c3,f6acf1195182..000000000000
@@@ -249,10 -249,18 +249,22 @@@ static inline int pmd_same(pmd_t pmd_a
  #define pgprot_writecombine pgprot_noncached
  #endif
 
 +#ifndef pgprot_device
 +#define pgprot_device pgprot_noncached

include/asm-generic/pgtable.h

Quoted 10 lines
include/asm-generic/pgtable.h +8 -0
 +#endif
 +
+ #ifndef pgprot_modify
+ #define pgprot_modify pgprot_modify
+ static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
+ {
+ 	if (pgprot_val(oldprot) == pgprot_val(pgprot_noncached(oldprot)))
+ 		newprot = pgprot_noncached(newprot);
+ 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
+ 		newprot = pgprot_writecombine(newprot);

For completeness of the arch-independent pgprot-modify,

Quoted 5 lines
	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
		newprot = pgprot_device(newprot);

should be added here.

Tricky. I've moved mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared.paqtch to be staged after linux-next, so I'll merge it after PCI has merged. And added this:

include/asm-generic/pgtable.h renamed from include/asm-generic/pgtable.h~mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared-fix +2 -0
@@ -261,6 +261,8 @@ static inline pgprot_t pgprot_modify(pgp
 		newprot = pgprot_noncached(newprot);
 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
 		newprot = pgprot_writecombine(newprot);
+	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
+		newprot = pgprot_device(newprot);
 	return newprot;
 }
 #endif

_

#3 lore raw
Quoted 41 lines · Andrew Morton
Quoted 39 lines · On Thu, 25 Sep 2014 12:30:00 -0700 Peter Feiner <[email protected]> wrote:
Quoted 25 lines · Stephen Rothwell

Hi Andrew,

Today's linux-next merge of the akpm-current tree got a conflict in include/asm-generic/pgtable.h between commit b766eafe6828 ("PCI: Add pci_remap_iospace() to map bus I/O resources") from the pci tree and commit 4cc2f91f2636 ("mm: softdirty: enable write notifications on VMAs after VM_SOFTDIRTY cleared") from the akpm-current tree.

I fixed it up (see below) and can carry the fix as necessary (no action is required).

Signature · 2 lines
Cheers,
Stephen Rothwell                    [email protected]
include/asm-generic/pgtable.h +0 -0
diff --cc include/asm-generic/pgtable.h
index 977e545a64c3,f6acf1195182..000000000000
@@@ -249,10 -249,18 +249,22 @@@ static inline int pmd_same(pmd_t pmd_a
  #define pgprot_writecombine pgprot_noncached
  #endif
 
 +#ifndef pgprot_device
 +#define pgprot_device pgprot_noncached

include/asm-generic/pgtable.h

Quoted 10 lines
include/asm-generic/pgtable.h +8 -0
 +#endif
 +
+ #ifndef pgprot_modify
+ #define pgprot_modify pgprot_modify
+ static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
+ {
+ 	if (pgprot_val(oldprot) == pgprot_val(pgprot_noncached(oldprot)))
+ 		newprot = pgprot_noncached(newprot);
+ 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
+ 		newprot = pgprot_writecombine(newprot);

For completeness of the arch-independent pgprot-modify,

Quoted 5 lines
Quoted 5 lines
	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
		newprot = pgprot_device(newprot);

should be added here.

Thanks for noticing this Peter!

Quoted 17 lines

Tricky. I've moved mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared.paqtch to be staged after linux-next, so I'll merge it after PCI has merged. And added this:

include/asm-generic/pgtable.h renamed from include/asm-generic/pgtable.h~mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared-fix +2 -0
@@ -261,6 +261,8 @@ static inline pgprot_t pgprot_modify(pgp
 		newprot = pgprot_noncached(newprot);
 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
 		newprot = pgprot_writecombine(newprot);
+	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
+		newprot = pgprot_device(newprot);
 	return newprot;
 }
 #endif
Quoted 2 lines

_

Thanks for the patch Andrew!

Best regards,
Liviu

Signature · 8 lines
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯