mm-ioremap-consider-ioremap-space-in-generic-ioremap.patch removed from -mm tree
The quilt patch titled
Subject: mm/ioremap: consider IOREMAP space in generic ioremap
has been removed from the -mm tree. Its filename was
mm-ioremap-consider-ioremap-space-in-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: Christophe Leroy <[email protected]>
Subject: mm/ioremap: consider IOREMAP space in generic ioremap
Date: Thu, 6 Jul 2023 23:45:16 +0800
Architectures like powerpc have a dedicated space for IOREMAP mappings.
If so, use it in generic_ioremap_prot().
Signed-off-by Christophe Leroy <[email protected]>
Signed-off-by Baoquan He <[email protected]>
Reviewed-by Christoph Hellwig <[email protected]>
Cc Alexander Gordeev <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Brian Cain <[email protected]>
Cc Catalin Marinas <[email protected]>
Cc Christian Borntraeger <[email protected]>
Cc Chris Zankel <[email protected]>
Cc David Laight <[email protected]>
Cc Geert Uytterhoeven <[email protected]>
Cc Gerald Schaefer <[email protected]>
Cc Heiko Carstens <[email protected]>
Cc Helge Deller <[email protected]>
Cc "James E.J. Bottomley" <[email protected]>
Cc John Paul Adrian Glaubitz <[email protected]>
Cc Jonas Bonn <[email protected]>
Cc Kefeng Wang <[email protected]>
Cc Matthew Wilcox <[email protected]>
Cc Max Filippov <[email protected]>
Cc Michael Ellerman <[email protected]>
Cc Mike Rapoport (IBM) <[email protected]>
Cc Nathan Chancellor <[email protected]>
Cc Nicholas Piggin <[email protected]>
Cc Niklas Schnelle <[email protected]>
Cc Rich Felker <[email protected]>
Cc Stafford Horne <[email protected]>
Cc Stefan Kristiansson <[email protected]>
Cc Sven Schnelle <[email protected]>
Cc Vasily Gorbik <[email protected]>
Cc Vineet Gupta <[email protected]>
Cc Will Deacon <[email protected]>
Cc Yoshinori Sato <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/ioremap.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-)
mm/ioremap.c renamed from mm/ioremap.c~mm-ioremap-consider-ioremap-space-in-generic-ioremap +12 -3
@@ -11,6 +11,15 @@#include <linux/io.h> #include <linux/export.h> +/* +* Ioremap often, but not always uses the generic vmalloc area. E.g on +* Power ARCH, it could have different ioremap space. +*/ +#ifndef IOREMAP_START +#define IOREMAP_START VMALLOC_START +#define IOREMAP_END VMALLOC_END +#endif +void __iomem *generic_ioremap_prot (phys_addr_t phys_addr,size_t size,pgprot_t prot) {
@@ -35,8 +44,8 @@ void __iomem *generic_ioremap_prot(phys_if (!ioremap_allowed (phys_addr, size,pgprot_val (prot)))return NULL ; - area =get_vm_area_caller (size,VM_IOREMAP , -__builtin_return_address (0 )); + area =__get_vm_area_caller (size,VM_IOREMAP ,IOREMAP_START , +IOREMAP_END ,__builtin_return_address (0 ));if (!area)return NULL ; vaddr = (unsigned long )area->addr;
@@ -66,7 +75,7 @@ void generic_iounmap(volatile void __iomif (!iounmap_allowed (vaddr))return ; -if (is_vmalloc_addr (vaddr)) +if (is_ioremap_addr (vaddr))vunmap (vaddr); }
_
Patches currently in -mm which might be from [email protected] are