kernel-resource-make-walk_mem_res-find-all-busy-ioresource_mem-resources.patch removed from -mm tree
The patch titled
Subject: kernel/resource: make walk_mem_res() find all busy IORESOURCE_MEM resources
has been removed from the -mm tree. Its filename was
kernel-resource-make-walk_mem_res-find-all-busy-ioresource_mem-resources.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: David Hildenbrand <[email protected]>
Subject: kernel/resource: make walk_mem_res() find all busy IORESOURCE_MEM resources
It used to be true that we can have system RAM (IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY) only on the first level in the resource tree. However, this is no longer holds for driver-managed system RAM (i.e., added via dax/kmem and virtio-mem), which gets added on lower levels, for example, inside device containers.
IORESOURCE_SYSTEM_RAM is defined as IORESOURCE_MEM | IORESOURCE_SYSRAM and just a special type of IORESOURCE_MEM.
The function walk_mem_res() only considers the first level and is used in arch/x86/mm/ioremap.c:__ioremap_check_mem() only. We currently fail to identify System RAM added by dax/kmem and virtio-mem as "IORES_MAP_SYSTEM_RAM", for example, allowing for remapping of such "normal RAM" in __ioremap_caller().
Let's find all IORESOURCE_MEM | IORESOURCE_BUSY resources, making the function behave similar to walk_system_ram_res().
---
kernel/resource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/resource.c renamed from kernel/resource.c~kernel-resource-make-walk_mem_res-find-all-busy-ioresource_mem-resources +1 -1
@@ -470,7 +470,7 @@ int walk_mem_res(u64 start, u64 end, voi {unsigned long flags =IORESOURCE_MEM |IORESOURCE_BUSY ; -return __walk_iomem_res_desc (start, end, flags,IORES_DESC_NONE , true, +return __walk_iomem_res_desc (start, end, flags,IORES_DESC_NONE , false, arg, func); }
_
Patches currently in -mm which might be from [email protected] are