All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch/x86/mm/srat: Print non-volatile flag in SRAT
@ 2015-09-01 16:21 Linda Knippers
  2015-09-01 19:17 ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Linda Knippers @ 2015-09-01 16:21 UTC (permalink / raw)
  To: linux-kernel; +Cc: x86, tglx, mingo, hpa


Nobody checks this flag but it would be interesting to know if it's being
set on any platforms.

Signed-off-by: Linda Knippers <linda.knippers@hp.com>
---
 arch/x86/mm/srat.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/arch/x86/mm/srat.c b/arch/x86/mm/srat.c
index 66338a6..c2aea63 100644
--- a/arch/x86/mm/srat.c
+++ b/arch/x86/mm/srat.c
@@ -192,10 +192,11 @@ acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *ma)
 
 	node_set(node, numa_nodes_parsed);
 
-	pr_info("SRAT: Node %u PXM %u [mem %#010Lx-%#010Lx]%s\n",
+	pr_info("SRAT: Node %u PXM %u [mem %#010Lx-%#010Lx]%s%s\n",
 		node, pxm,
 		(unsigned long long) start, (unsigned long long) end - 1,
-		hotpluggable ? " hotplug" : "");
+		hotpluggable ? " hotplug" : "",
+		ma->flags & ACPI_SRAT_MEM_NON_VOLATILE ? " non-volatile" : "");
 
 	/* Mark hotplug range in memblock. */
 	if (hotpluggable && memblock_mark_hotplug(start, ma->length))
-- 
1.8.3.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] arch/x86/mm/srat: Print non-volatile flag in SRAT
  2015-09-01 16:21 [PATCH] arch/x86/mm/srat: Print non-volatile flag in SRAT Linda Knippers
@ 2015-09-01 19:17 ` Thomas Gleixner
  2015-09-01 19:23   ` Linda Knippers
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Gleixner @ 2015-09-01 19:17 UTC (permalink / raw)
  To: Linda Knippers; +Cc: linux-kernel, x86, mingo, hpa

On Tue, 1 Sep 2015, Linda Knippers wrote:
> Nobody checks this flag but it would be interesting to know if it's being
> set on any platforms.

What you're omitting to explain, is WHY it would be interesting.

Thanks,

	tglx

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arch/x86/mm/srat: Print non-volatile flag in SRAT
  2015-09-01 19:17 ` Thomas Gleixner
@ 2015-09-01 19:23   ` Linda Knippers
  2015-09-01 19:26     ` Thomas Gleixner
  0 siblings, 1 reply; 4+ messages in thread
From: Linda Knippers @ 2015-09-01 19:23 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: linux-kernel, x86, mingo, hpa

On 9/1/2015 3:17 PM, Thomas Gleixner wrote:
> On Tue, 1 Sep 2015, Linda Knippers wrote:
>> Nobody checks this flag but it would be interesting to know if it's being
>> set on any platforms.
> 
> What you're omitting to explain, is WHY it would be interesting.

With the addition of NVDIMM support, a question came up as to whether
NVDIMM ranges should be in the SRAT with this bit set.  I think the
consensus was no because the ranges are in the NFIT with proximity
domain information there.

ACPI is not clear on the meaning of this bit in the SRAT.
If someone is setting it, we might want to ask them what they expect
to happen with it.

Right now this bit is only printed if all the ACPI debug information is
turned on.

Sorry, I should have explained more.

-- ljk

> 
> Thanks,
> 
> 	tglx
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] arch/x86/mm/srat: Print non-volatile flag in SRAT
  2015-09-01 19:23   ` Linda Knippers
@ 2015-09-01 19:26     ` Thomas Gleixner
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Gleixner @ 2015-09-01 19:26 UTC (permalink / raw)
  To: Linda Knippers; +Cc: linux-kernel, x86, mingo, hpa

On Tue, 1 Sep 2015, Linda Knippers wrote:
> On 9/1/2015 3:17 PM, Thomas Gleixner wrote:
> > On Tue, 1 Sep 2015, Linda Knippers wrote:
> >> Nobody checks this flag but it would be interesting to know if it's being
> >> set on any platforms.
> > 
> > What you're omitting to explain, is WHY it would be interesting.
> 
> With the addition of NVDIMM support, a question came up as to whether
> NVDIMM ranges should be in the SRAT with this bit set.  I think the
> consensus was no because the ranges are in the NFIT with proximity
> domain information there.
> 
> ACPI is not clear on the meaning of this bit in the SRAT.
> If someone is setting it, we might want to ask them what they expect
> to happen with it.
> 
> Right now this bit is only printed if all the ACPI debug information is
> turned on.
> 
> Sorry, I should have explained more.

Indeed. And that explanation wants to be in the changelog. Care to resend?

Thanks,

	tglx

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-09-01 19:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-01 16:21 [PATCH] arch/x86/mm/srat: Print non-volatile flag in SRAT Linda Knippers
2015-09-01 19:17 ` Thomas Gleixner
2015-09-01 19:23   ` Linda Knippers
2015-09-01 19:26     ` Thomas Gleixner

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.