Re: [RFC][PATCH] ia64 node hotplug -- cpu - node relationship fix [0/2] intro

From: Yasunori Goto
Date: Fri May 26 2006 - 06:22:29 EST


> 1. empty-node-fix : avoid creating empty node
> SRAT's enable bit just shows 'you can read this entry'. But the kernel know
> this and checks each entries are vaild or not later.
>
> But pxm_bit/node_online_mask is not treated as they should be.
> The kernel creates empty node, which has no cpu, no memory.

I would like to mention about background of this more.

I thought if enable bit of each SRAT entry is on, then its entry's
object is usable for OS.

However, SRAT specification says only
"If clear, the OSPM ignores the contents of the Processor Local
APIC/SAPIC (or Memory) Affinity Structure."

So, our firmware team (or Micro $oft) interprets this
"If enable bit is on, then this entry is just readable by OS.
The object of its entry MIGHT NOT EXIST. This entry can be used for
reserve resource for memory/cpu which can be hot-add later."
They implemented it.

I really really hate this. :-(
But, indeed, ACPI spec. says just IGNORE if clear. They are correct.

Current linux code checks memory and cpu existence by other ways.
But, PXM remains even if they don't exist. The first patch is to remove it.

Bye.

--
Yasunori Goto


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/