Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1301882

[PATCH v3 08/17] xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM

From Toshi Kani <toshi.kani@hpe.com>
Newsgroups linux.kernel
Subject [PATCH v3 08/17] xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM
Date 2016-01-05 20:00 +0100
Message-ID <qNEZR-6P2-39@gated-at.bofh.it> (permalink)
References <qNEZQ-6P2-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Set IORESOURCE_SYSTEM_RAM to 'flags' of struct resource entries
with "System RAM".

Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-mm@kvack.org
Cc: xen-devel@lists.xenproject.org
Acked-by: David Vrabel <david.vrabel@citrix.com> # xen
Signed-off-by: Toshi Kani <toshi.kani@hpe.com>
---
 drivers/xen/balloon.c |    2 +-
 mm/memory_hotplug.c   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/xen/balloon.c b/drivers/xen/balloon.c
index 12eab50..dc4305b 100644
--- a/drivers/xen/balloon.c
+++ b/drivers/xen/balloon.c
@@ -257,7 +257,7 @@ static struct resource *additional_memory_resource(phys_addr_t size)
 		return NULL;
 
 	res->name = "System RAM";
-	res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
+	res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
 
 	ret = allocate_resource(&iomem_resource, res,
 				size, 0, -1,
diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c
index a042a9d..0712585 100644
--- a/mm/memory_hotplug.c
+++ b/mm/memory_hotplug.c
@@ -136,7 +136,7 @@ static struct resource *register_memory_resource(u64 start, u64 size)
 	res->name = "System RAM";
 	res->start = start;
 	res->end = start + size - 1;
-	res->flags = IORESOURCE_MEM | IORESOURCE_BUSY;
+	res->flags = IORESOURCE_SYSTEM_RAM | IORESOURCE_BUSY;
 	if (request_resource(&iomem_resource, res) < 0) {
 		pr_debug("System RAM resource %pR cannot be added\n", res);
 		kfree(res);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v3 01/17] resource: Add System RAM resource type Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 10/17] resource: Change walk_system_ram to use System RAM type Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 14/17] x86,nvdimm,kexec: Use walk_iomem_res_desc() for iomem search Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
    Re: [PATCH v3 14/17] x86,nvdimm,kexec: Use walk_iomem_res_desc() for  iomem search Dave Young <dyoung@redhat.com> - 2016-01-07 13:40 +0100
  [PATCH v3 12/17] memremap: Change region_intersects() to take @flags and @desc Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 08/17] xen, mm: Set IORESOURCE_SYSTEM_RAM to System RAM Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 16/17] resource: Kill walk_iomem_res() Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
    Re: [PATCH v3 16/17] resource: Kill walk_iomem_res() Dave Young <dyoung@redhat.com> - 2016-01-07 13:50 +0100
  [PATCH v3 06/17] arch: Set IORESOURCE_SYSTEM_RAM to System RAM Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 13/17] resource: Add walk_iomem_res_desc() Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 09/17] drivers: Initialize resource entry to zero Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
    Re: [PATCH v3 09/17] drivers: Initialize resource entry to zero Helge Deller <deller@gmx.de> - 2016-01-05 22:00 +0100
  [PATCH v3 11/17] arm/samsung: Change s3c_pm_run_res() to use System RAM type Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:00 +0100
  [PATCH v3 03/17] resource: Add I/O resource descriptor Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:10 +0100
  [PATCH v3 02/17] resource: make resource flags handled properly Toshi Kani <toshi.kani@hpe.com> - 2016-01-05 20:10 +0100

csiph-web