parisc-mm-convert-to-generic_ioremap.patch removed from -mm tree
The quilt patch titled
Subject: parisc: mm: convert to GENERIC_IOREMAP
has been removed from the -mm tree. Its filename was
parisc-mm-convert-to-generic_ioremap.patch
This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
------------------------------------------------------
From: Baoquan He <[email protected]>
Subject: parisc: mm: convert to GENERIC_IOREMAP
Date: Thu, 6 Jul 2023 23:45:15 +0800
By taking GENERIC_IOREMAP method, the generic generic_ioremap_prot(), generic_iounmap(), and their generic wrapper ioremap_prot(), ioremap() and iounmap() are all visible and available to arch. Arch needs to provide wrapper functions to override the generic versions if there's arch specific handling in its ioremap_prot(), ioremap() or iounmap(). This change will simplify implementation by removing duplicated code with generic_ioremap_prot() and generic_iounmap(), and has the equivalent functioality as before.
Here, add wrapper function ioremap_prot() for parisc's special operation when iounmap().
---
arch/parisc/Kconfig | 1 arch/parisc/include/asm/io.h | 15 +++++-- arch/parisc/mm/ioremap.c | 62 ++------------------------------- 3 files changed, 15 insertions(+), 63 deletions(-)
arch/parisc/include/asm/io.h renamed from arch/parisc/include/asm/io.h~parisc-mm-convert-to-generic_ioremap +10 -5
@@ -125,12 +125,17 @@ static inline void gsc_writeq(unsigned l/* * The standard PCI ioremap interfaces */ -void __iomem *ioremap (unsigned long offset,unsigned long size); -#define ioremap_wc ioremap -#define ioremap_uc ioremap -#define pci_iounmap pci_iounmap +#define ioremap_prot ioremap_prot + +#define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \ + _PAGE_ACCESSED | _PAGE_NO_CACHE) -extern void iounmap (const volatile void __iomem *addr); +#define ioremap_wc (addr, size) \ + ioremap_prot((addr), (size), _PAGE_IOREMAP) +#define ioremap_uc (addr, size) \ + ioremap_prot((addr), (size), _PAGE_IOREMAP) + +#define pci_iounmap pci_iounmapvoid memset_io (volatile void __iomem *addr,unsigned char val,int count);void memcpy_fromio (void *dst,const volatile void __iomem *src,int count);
arch/parisc/Kconfig renamed from arch/parisc/Kconfig~parisc-mm-convert-to-generic_ioremap +1 -0
@@ -36,6 +36,7 @@ config PARISC select GENERIC_ATOMIC64 if !64BIT select GENERIC_IRQ_PROBE select GENERIC_PCI_IOMAP + select GENERIC_IOREMAP select ARCH_HAVE_NMI_SAFE_CMPXCHG select GENERIC_SMP_IDLE_THREAD select GENERIC_ARCH_TOPOLOGY if SMP
arch/parisc/mm/ioremap.c renamed from arch/parisc/mm/ioremap.c~parisc-mm-convert-to-generic_ioremap +4 -58
79 lines not on this page · raw message
_
Patches currently in -mm which might be from [email protected] are
net-altera-tse-make-altera_tse-depend-on-has_iomem.patch irqchip-al-fic-make-al_fic-depend-on-has_iomem.patch