Skip to contentSkip to conversation

linux-next: manual merge of the generic-ioremap tree with the risc-v tree

PATCH Stephen Rothwell 3 participants 3 messages Nov 18, 2019 – Nov 19, 2019

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

Hi all,

Today's linux-next merge of the generic-ioremap tree got a conflict in:

arch/riscv/include/asm/io.h

between commit:

0c3ac28931d5 ("riscv: separate MMIO functions into their own header file")

from the risc-v tree and commits:

d092a8707326 ("arch: rely on asm-generic/io.h for default ioremap_* definitions") 38af57825313 ("riscv: use the generic ioremap code")

from the generic-ioremap tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

From: Stephen Rothwell <[email protected]>
Date: Mon, 18 Nov 2019 17:42:04 +1100
Subject: [PATCH] fixup for moved code in riscv

---
 arch/riscv/include/asm/mmio.h | 15 +--------------
 1 file changed, 1 insertion(+), 14 deletions(-)
arch/riscv/include/asm/mmio.h +1 -14
index a297a835e402..a2c809df2733 100644
@@ -14,20 +14,7 @@
 #include <linux/types.h>
 #include <asm/mmiowb.h>
 
-#ifdef CONFIG_MMU
-void __iomem *ioremap(phys_addr_t offset, unsigned long size);
-
-/*
- * The RISC-V ISA doesn't yet specify how to query or modify PMAs, so we can't
- * change the properties of memory regions.  This should be fixed by the
- * upcoming platform spec.
- */
-#define ioremap_nocache(addr, size) ioremap((addr), (size))
-#define ioremap_wc(addr, size) ioremap((addr), (size))
-#define ioremap_wt(addr, size) ioremap((addr), (size))
-
-void iounmap(volatile void __iomem *addr);
-#else
+#ifndef CONFIG_MMU
 #define pgprot_noncached(x)	(x)
 #endif /* CONFIG_MMU */
 
Signature · 5 lines
2.23.0

-- 
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 1 line · Stephen Rothwell

0c3ac28931d5 ("riscv: separate MMIO functions into their own header file")

As already mentioned in reply to this patch when it was posted I think this kinda of split is a very bad idea.

#2 lore raw

Christoph,

Quoted 5 lines · Christoph Hellwig
Quoted 1 line · Stephen Rothwell

0c3ac28931d5 ("riscv: separate MMIO functions into their own header file")

As already mentioned in reply to this patch when it was posted I think this kinda of split is a very bad idea.

Unless I missed a followup from you, you mentioned that you thought there might be a better way to implement it, but you didn't highlight any problems with it:

https://lore.kernel.org/linux-riscv/[email protected]/

If you think there's something critically wrong with the patch that can be fixed in time for the merge window, I'm happy to take a look at a proposal. Otherwise I think we'll need to drop the nommu set from the v5.5 queue.

- Paul

_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv