* [PATCH v2] ACPI: SRAT: report non-volatile memory in debug
@ 2013-01-09 22:06 Davidlohr Bueso
2013-01-11 22:00 ` Rafael J. Wysocki
0 siblings, 1 reply; 2+ messages in thread
From: Davidlohr Bueso @ 2013-01-09 22:06 UTC (permalink / raw)
To: Len Brown, Rafael J. Wysocki; +Cc: linux-acpi, linux-kernel
Just as with the other memory affinity flags, report
non-volatile memory with ACPI debug.
Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
---
drivers/acpi/numa.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c
index cb31298..2935d3a 100644
--- a/drivers/acpi/numa.c
+++ b/drivers/acpi/numa.c
@@ -116,14 +116,16 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header)
struct acpi_srat_mem_affinity *p =
(struct acpi_srat_mem_affinity *)header;
ACPI_DEBUG_PRINT((ACPI_DB_INFO,
- "SRAT Memory (0x%lx length 0x%lx) in proximity domain %d %s%s\n",
+ "SRAT Memory (0x%lx length 0x%lx) in proximity domain %d %s%s%s\n",
(unsigned long)p->base_address,
(unsigned long)p->length,
p->proximity_domain,
(p->flags & ACPI_SRAT_MEM_ENABLED)?
"enabled" : "disabled",
(p->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE)?
- " hot-pluggable" : ""));
+ " hot-pluggable" : "",
+ (p->flags & ACPI_SRAT_MEM_NON_VOLATILE)?
+ " non-volatile" : ""));
}
#endif /* ACPI_DEBUG_OUTPUT */
break;
--
1.7.11.7
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH v2] ACPI: SRAT: report non-volatile memory in debug
2013-01-09 22:06 [PATCH v2] ACPI: SRAT: report non-volatile memory in debug Davidlohr Bueso
@ 2013-01-11 22:00 ` Rafael J. Wysocki
0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2013-01-11 22:00 UTC (permalink / raw)
To: Davidlohr Bueso; +Cc: Len Brown, linux-acpi, linux-kernel
On Wednesday, January 09, 2013 02:06:08 PM Davidlohr Bueso wrote:
> Just as with the other memory affinity flags, report
> non-volatile memory with ACPI debug.
Applied to the linux-next branch of the linux-pm.git tree as v3.9 material.
Thanks,
Rafael
> Signed-off-by: Davidlohr Bueso <davidlohr.bueso@hp.com>
> ---
> drivers/acpi/numa.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c
> index cb31298..2935d3a 100644
> --- a/drivers/acpi/numa.c
> +++ b/drivers/acpi/numa.c
> @@ -116,14 +116,16 @@ acpi_table_print_srat_entry(struct acpi_subtable_header *header)
> struct acpi_srat_mem_affinity *p =
> (struct acpi_srat_mem_affinity *)header;
> ACPI_DEBUG_PRINT((ACPI_DB_INFO,
> - "SRAT Memory (0x%lx length 0x%lx) in proximity domain %d %s%s\n",
> + "SRAT Memory (0x%lx length 0x%lx) in proximity domain %d %s%s%s\n",
> (unsigned long)p->base_address,
> (unsigned long)p->length,
> p->proximity_domain,
> (p->flags & ACPI_SRAT_MEM_ENABLED)?
> "enabled" : "disabled",
> (p->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE)?
> - " hot-pluggable" : ""));
> + " hot-pluggable" : "",
> + (p->flags & ACPI_SRAT_MEM_NON_VOLATILE)?
> + " non-volatile" : ""));
> }
> #endif /* ACPI_DEBUG_OUTPUT */
> break;
>
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-11 21:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-09 22:06 [PATCH v2] ACPI: SRAT: report non-volatile memory in debug Davidlohr Bueso
2013-01-11 22:00 ` Rafael J. Wysocki
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®