* [PATCH] x86_64 - UV fix for memory-only blades
@ 2009-05-15 19:45 Jack Steiner
2009-05-19 15:13 ` Yinghai Lu
0 siblings, 1 reply; 3+ messages in thread
From: Jack Steiner @ 2009-05-15 19:45 UTC (permalink / raw)
To: mingo, tglx; +Cc: linux-kernel
Fix an endcase in handling UV blades that have memory
but no cpus. The calculation of the highest blade number
failed to handle these blades if they appear last in the
configuration.
Signed-off-by: Jack Steiner <steiner@sgi.com>
---
arch/x86/kernel/apic/x2apic_uv_x.c | 1 +
1 file changed, 1 insertion(+)
Index: linux/arch/x86/kernel/apic/x2apic_uv_x.c
===================================================================
--- linux.orig/arch/x86/kernel/apic/x2apic_uv_x.c 2009-05-15 12:00:59.000000000 -0500
+++ linux/arch/x86/kernel/apic/x2apic_uv_x.c 2009-05-15 14:38:16.000000000 -0500
@@ -632,6 +632,7 @@ void __init uv_system_init(void)
pnode = (paddr >> m_val) & pnode_mask;
blade = boot_pnode_to_blade(pnode);
uv_node_to_blade[nid] = blade;
+ max_pnode = max(pnode, max_pnode);
}
map_gru_high(max_pnode);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86_64 - UV fix for memory-only blades
2009-05-15 19:45 [PATCH] x86_64 - UV fix for memory-only blades Jack Steiner
@ 2009-05-19 15:13 ` Yinghai Lu
2009-05-20 16:13 ` Jack Steiner
0 siblings, 1 reply; 3+ messages in thread
From: Yinghai Lu @ 2009-05-19 15:13 UTC (permalink / raw)
To: Jack Steiner; +Cc: mingo, tglx, linux-kernel
Jack Steiner wrote:
> Fix an endcase in handling UV blades that have memory
> but no cpus. The calculation of the highest blade number
> failed to handle these blades if they appear last in the
> configuration.
>
> Signed-off-by: Jack Steiner <steiner@sgi.com>
>
> ---
> arch/x86/kernel/apic/x2apic_uv_x.c | 1 +
> 1 file changed, 1 insertion(+)
>
> Index: linux/arch/x86/kernel/apic/x2apic_uv_x.c
> ===================================================================
> --- linux.orig/arch/x86/kernel/apic/x2apic_uv_x.c 2009-05-15 12:00:59.000000000 -0500
> +++ linux/arch/x86/kernel/apic/x2apic_uv_x.c 2009-05-15 14:38:16.000000000 -0500
> @@ -632,6 +632,7 @@ void __init uv_system_init(void)
> pnode = (paddr >> m_val) & pnode_mask;
> blade = boot_pnode_to_blade(pnode);
> uv_node_to_blade[nid] = blade;
> + max_pnode = max(pnode, max_pnode);
> }
>
> map_gru_high(max_pnode);
node_possible_map should already include nodes with memory and without memory already.
maybe you could skip max_pnode calculating in the loop.
YH
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] x86_64 - UV fix for memory-only blades
2009-05-19 15:13 ` Yinghai Lu
@ 2009-05-20 16:13 ` Jack Steiner
0 siblings, 0 replies; 3+ messages in thread
From: Jack Steiner @ 2009-05-20 16:13 UTC (permalink / raw)
To: Yinghai Lu; +Cc: mingo, tglx, linux-kernel
On Tue, May 19, 2009 at 08:13:05AM -0700, Yinghai Lu wrote:
> Jack Steiner wrote:
> > Fix an endcase in handling UV blades that have memory
> > but no cpus. The calculation of the highest blade number
> > failed to handle these blades if they appear last in the
> > configuration.
> >
> > Signed-off-by: Jack Steiner <steiner@sgi.com>
> >
> > ---
> > arch/x86/kernel/apic/x2apic_uv_x.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > Index: linux/arch/x86/kernel/apic/x2apic_uv_x.c
> > ===================================================================
> > --- linux.orig/arch/x86/kernel/apic/x2apic_uv_x.c 2009-05-15 12:00:59.000000000 -0500
> > +++ linux/arch/x86/kernel/apic/x2apic_uv_x.c 2009-05-15 14:38:16.000000000 -0500
> > @@ -632,6 +632,7 @@ void __init uv_system_init(void)
> > pnode = (paddr >> m_val) & pnode_mask;
> > blade = boot_pnode_to_blade(pnode);
> > uv_node_to_blade[nid] = blade;
> > + max_pnode = max(pnode, max_pnode);
> > }
> >
> > map_gru_high(max_pnode);
>
> node_possible_map should already include nodes with memory and without memory already.
>
> maybe you could skip max_pnode calculating in the loop.
Terms related to nodes are grossly overloaded.
"pnode" is only loosely related to a node. It is a physical node number that
is a hardware-thing. For example, it is possible to have a 1 node system with a max_pnode
of 128.
pnodes are used only in the UV infrastructure - they have no generic meaning nor would they apply
to any other platform.
--- jack
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-05-20 16:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-15 19:45 [PATCH] x86_64 - UV fix for memory-only blades Jack Steiner
2009-05-19 15:13 ` Yinghai Lu
2009-05-20 16:13 ` Jack Steiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).