* [PATCH] x86, UV: initialize BAU MMRs only on hubs with cpus
@ 2010-07-16 15:11 Cliff Wickman
2010-07-17 10:13 ` Ingo Molnar
2010-07-17 11:13 ` [tip:x86/uv] x86, UV: Initialize " tip-bot for Cliff Wickman
0 siblings, 2 replies; 3+ messages in thread
From: Cliff Wickman @ 2010-07-16 15:11 UTC (permalink / raw)
To: mingo; +Cc: linux-kernel
Remove the initialization of MMRs UVH_LB_BAU_SB_ACTIVATION_CONTROL and
UVH_BAU_DATA_BROADCAST on UV hubs that have no active cpus.
Such initialization on hubs with no active cpus would result in a kernel
page fault.
This is not of real high priority, because we don't have any such systems
(with UV hubs that have no active cpus). But they will be coming.
Diffed against 2.6.35-rc4
Signed-off-by: Cliff Wickman <cpw@sgi.com>
---
arch/x86/kernel/tlb_uv.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
Index: linux/arch/x86/kernel/tlb_uv.c
===================================================================
--- linux.orig/arch/x86/kernel/tlb_uv.c
+++ linux/arch/x86/kernel/tlb_uv.c
@@ -1634,12 +1634,16 @@ static int __init uv_bau_init(void)
alloc_intr_gate(vector, uv_bau_message_intr1);
for_each_possible_blade(uvhub) {
- pnode = uv_blade_to_pnode(uvhub);
- /* INIT the bau */
- uv_write_global_mmr64(pnode, UVH_LB_BAU_SB_ACTIVATION_CONTROL,
- ((unsigned long)1 << 63));
- mmr = 1; /* should be 1 to broadcast to both sockets */
- uv_write_global_mmr64(pnode, UVH_BAU_DATA_BROADCAST, mmr);
+ if (uv_blade_nr_possible_cpus(uvhub)) {
+ pnode = uv_blade_to_pnode(uvhub);
+ /* INIT the bau */
+ uv_write_global_mmr64(pnode,
+ UVH_LB_BAU_SB_ACTIVATION_CONTROL,
+ ((unsigned long)1 << 63));
+ mmr = 1; /* should be 1 to broadcast to both sockets */
+ uv_write_global_mmr64(pnode, UVH_BAU_DATA_BROADCAST,
+ mmr);
+ }
}
return 0;
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH] x86, UV: initialize BAU MMRs only on hubs with cpus
2010-07-16 15:11 [PATCH] x86, UV: initialize BAU MMRs only on hubs with cpus Cliff Wickman
@ 2010-07-17 10:13 ` Ingo Molnar
2010-07-17 11:13 ` [tip:x86/uv] x86, UV: Initialize " tip-bot for Cliff Wickman
1 sibling, 0 replies; 3+ messages in thread
From: Ingo Molnar @ 2010-07-17 10:13 UTC (permalink / raw)
To: Cliff Wickman, H. Peter Anvin, Thomas Gleixner; +Cc: linux-kernel
* Cliff Wickman <cpw@sgi.com> wrote:
> Remove the initialization of MMRs UVH_LB_BAU_SB_ACTIVATION_CONTROL and
> UVH_BAU_DATA_BROADCAST on UV hubs that have no active cpus.
> Such initialization on hubs with no active cpus would result in a kernel
> page fault.
Applied to tip:x86/uv, thanks.
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* [tip:x86/uv] x86, UV: Initialize BAU MMRs only on hubs with cpus
2010-07-16 15:11 [PATCH] x86, UV: initialize BAU MMRs only on hubs with cpus Cliff Wickman
2010-07-17 10:13 ` Ingo Molnar
@ 2010-07-17 11:13 ` tip-bot for Cliff Wickman
1 sibling, 0 replies; 3+ messages in thread
From: tip-bot for Cliff Wickman @ 2010-07-17 11:13 UTC (permalink / raw)
To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, cpw, tglx, mingo
Commit-ID: 93a7ca0c3ebe5d931126f1fb732cb9c4518383d4
Gitweb: http://git.kernel.org/tip/93a7ca0c3ebe5d931126f1fb732cb9c4518383d4
Author: Cliff Wickman <cpw@sgi.com>
AuthorDate: Fri, 16 Jul 2010 10:11:21 -0500
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Sat, 17 Jul 2010 12:11:48 +0200
x86, UV: Initialize BAU MMRs only on hubs with cpus
Remove the initialization of MMRs
UVH_LB_BAU_SB_ACTIVATION_CONTROL and UVH_BAU_DATA_BROADCAST on
UV hubs that have no active cpus. Such initialization on hubs
with no active cpus would result in a kernel page fault.
This is not of real high priority, because we don't have any
such systems (with UV hubs that have no active cpus). But they
will be coming.
Signed-off-by: Cliff Wickman <cpw@sgi.com>
LKML-Reference: <E1OZmZN-0006cW-RC@eag09.americas.sgi.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/kernel/tlb_uv.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
diff --git a/arch/x86/kernel/tlb_uv.c b/arch/x86/kernel/tlb_uv.c
index abf3c31..59efb53 100644
--- a/arch/x86/kernel/tlb_uv.c
+++ b/arch/x86/kernel/tlb_uv.c
@@ -1635,12 +1635,16 @@ static int __init uv_bau_init(void)
alloc_intr_gate(vector, uv_bau_message_intr1);
for_each_possible_blade(uvhub) {
- pnode = uv_blade_to_pnode(uvhub);
- /* INIT the bau */
- uv_write_global_mmr64(pnode, UVH_LB_BAU_SB_ACTIVATION_CONTROL,
- ((unsigned long)1 << 63));
- mmr = 1; /* should be 1 to broadcast to both sockets */
- uv_write_global_mmr64(pnode, UVH_BAU_DATA_BROADCAST, mmr);
+ if (uv_blade_nr_possible_cpus(uvhub)) {
+ pnode = uv_blade_to_pnode(uvhub);
+ /* INIT the bau */
+ uv_write_global_mmr64(pnode,
+ UVH_LB_BAU_SB_ACTIVATION_CONTROL,
+ ((unsigned long)1 << 63));
+ mmr = 1; /* should be 1 to broadcast to both sockets */
+ uv_write_global_mmr64(pnode, UVH_BAU_DATA_BROADCAST,
+ mmr);
+ }
}
return 0;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-17 11:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-16 15:11 [PATCH] x86, UV: initialize BAU MMRs only on hubs with cpus Cliff Wickman
2010-07-17 10:13 ` Ingo Molnar
2010-07-17 11:13 ` [tip:x86/uv] x86, UV: Initialize " tip-bot for Cliff Wickman
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®