mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Mike Travis <travis@sgi.com>
To: Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>,
	Thomas Gleixner <tglx@linutronix.de>,
	Andrew Morton <akpm@linux-foundation.org>,
	Len Brown <len.brown@intel.com>,
	Dimitri Sivanich <sivanich@sgi.com>
Cc: Russ Anderson <rja@sgi.com>, John Estabrook <estabrook@sgi.com>,
	Andrew Banman <abanman@sgi.com>, Nathan Zimmer <nzimmer@sgi.com>,
	x86@kernel.org, linux-kernel@vger.kernel.org
Subject: [PATCH 08/20] X86_64, UV: Update MMIOH setup function to work for both UV3 and UV4
Date: Tue, 03 May 2016 10:27:20 -0500	[thread overview]
Message-ID: <20160503152713.479948353@asylum.americas.sgi.com> (raw)
In-Reply-To: <20160503152712.059510311@asylum.americas.sgi.com>

[-- Attachment #1: uv4_merge_uv3_mmioh --]
[-- Type: text/plain, Size: 1095 bytes --]

Since UV3 and UV4 MMIOH regions are setup the same, we can use a common
function to setup both.

Signed-off-by: Mike Travis <travis@sgi.com>
Reviewed-by: Dimitri Sivanich <sivanich@sgi.com>
Tested-by: John Estabrook <estabrook@sgi.com>
Tested-by: Gary Kroening <gfk@sgi.com>
Tested-by: Nathan Zimmer <nzimmer@sgi.com>
---
 arch/x86/kernel/apic/x2apic_uv_x.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- linux.orig/arch/x86/kernel/apic/x2apic_uv_x.c
+++ linux/arch/x86/kernel/apic/x2apic_uv_x.c
@@ -601,6 +601,7 @@ static __initdata struct mmioh_config mm
 	},
 };
 
+/* UV3 & UV4 have identical MMIOH overlay configs */
 static __init void map_mmioh_high_uv3(int index, int min_pnode, int max_pnode)
 {
 	union uv3h_rh_gam_mmioh_overlay_config0_mmr_u overlay;
@@ -680,7 +681,7 @@ static __init void map_mmioh_high(int mi
 	unsigned long mmr, base;
 	int shift, enable, m_io, n_io;
 
-	if (is_uv3_hub()) {
+	if (is_uv3_hub() || is_uv4_hub()) {
 		/* Map both MMIOH Regions */
 		map_mmioh_high_uv3(0, min_pnode, max_pnode);
 		map_mmioh_high_uv3(1, min_pnode, max_pnode);

-- 

  parent reply	other threads:[~2016-05-03 15:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-03 15:27 [PATCH 00/20] X86_64, UV: Update kernel for SGI UV4 support Mike Travis
2016-05-03 15:27 ` [PATCH 01/20] X86_64, UV: Add Initial UV4 definitions Mike Travis
2016-05-03 15:27 ` [PATCH 02/20] X86_64, UV: Add UV Architecture Defines Mike Travis
2016-05-03 15:27 ` [PATCH 03/20] X86_64, UV: Add UV4 Specific Defines Mike Travis
2016-05-03 15:27 ` [PATCH 04/20] X86_64, UV: Add UV MMR Illegal Access Function Mike Travis
2016-05-03 15:27 ` [PATCH 05/20] X86_64, UV: Prep for UV4 MMR updates Mike Travis
2016-05-03 15:27 ` [PATCH 06/20] X86_64, UV: Add UV4 Specific MMR definitions Mike Travis
2016-05-03 15:27 ` [PATCH 07/20] X86_64, UV: Clean up redunduncies after merge of UV4 " Mike Travis
2016-05-03 15:27 ` Mike Travis [this message]
2016-05-03 15:27 ` [PATCH 09/20] X86_64, UV: Create per cpu info structs to replace per hub info structs Mike Travis
2016-05-03 15:27 ` [PATCH 10/20] X86_64, UV: Move scir info to the per cpu info struct Mike Travis
2016-05-03 15:27 ` [PATCH 11/20] X86_64, UV: Move blade local processor ID " Mike Travis
2016-05-03 15:27 ` [PATCH 12/20] X86_64, UV: Allocate common per node hub info structs on local node Mike Travis
2016-05-03 15:27 ` [PATCH 13/20] X86_64, UV: Fold blade info into per node hub info structs Mike Travis
2016-05-03 15:27 ` [PATCH 14/20] X86_64, UV: Add UV4 addressing discovery function Mike Travis
2016-05-03 15:27 ` [PATCH 15/20] X86_64, UV: Add obtaining GAM Range Table from UV BIOS Mike Travis
2016-05-03 15:27 ` [PATCH 16/20] X86_64, UV: Support UV4 socket address changes Mike Travis
2016-05-03 15:27 ` [PATCH 17/20] X86_64, UV: Build GAM reference tables Mike Travis
2016-05-03 15:27 ` [PATCH 18/20] X86_64, UV: Update physical address conversions for UV4 Mike Travis
2016-05-03 15:27 ` [PATCH 19/20] X86_64, UV: Remove Obsolete GRU MMR address translation Mike Travis
2016-05-03 15:27 ` [PATCH 20/20] X86_64, UV: Fix incorrect nodes and pnodes for cpuless and memoryless nodes Mike Travis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160503152713.479948353@asylum.americas.sgi.com \
    --to=travis@sgi.com \
    --cc=abanman@sgi.com \
    --cc=akpm@linux-foundation.org \
    --cc=estabrook@sgi.com \
    --cc=hpa@zytor.com \
    --cc=len.brown@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=nzimmer@sgi.com \
    --cc=rja@sgi.com \
    --cc=sivanich@sgi.com \
    --cc=tglx@linutronix.de \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®