Patchwork [v2,1/2] Mark Memory Resources as busy

login
register
mail settings
Submitter Nathan Fontenot
Date Aug. 20, 2013, 2:52 a.m.
Message ID <5212D9E4.40500@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/268350/
State Accepted, archived
Headers show

Comments

Nathan Fontenot - Aug. 20, 2013, 2:52 a.m.
Memory I/O resources need to be marked as busy or else we cannot remove
them when doing memory hot remove.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
---
 arch/powerpc/mm/mem.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

Index: linux/arch/powerpc/mm/mem.c
===================================================================
--- linux.orig/arch/powerpc/mm/mem.c
+++ linux/arch/powerpc/mm/mem.c
@@ -514,7 +514,7 @@  static int add_system_ram_resources(void
 			res->name = "System RAM";
 			res->start = base;
 			res->end = base + size - 1;
-			res->flags = IORESOURCE_MEM;
+			res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
 			WARN_ON(request_resource(&iomem_resource, res) < 0);
 		}
 	}