public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform
@ 2011-06-02 19:59 Jack Steiner
  2011-06-03  8:28 ` Ingo Molnar
  2011-06-03 14:03 ` [tip:x86/uv] " tip-bot for Jack Steiner
  0 siblings, 2 replies; 4+ messages in thread
From: Jack Steiner @ 2011-06-02 19:59 UTC (permalink / raw)
  To: mingo, tglx, hpa, x86; +Cc: linux-kernel

Enable 64-bit ACPI MFCG support for SGI UV2 platform. The check is similar
to the check on UV1. UV2 has a different oem_id string.

Signed-off-by: Jack Steiner <steiner@sgi.com>


---
 arch/x86/pci/mmconfig-shared.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: linux/arch/x86/pci/mmconfig-shared.c
===================================================================
--- linux.orig/arch/x86/pci/mmconfig-shared.c	2011-05-31 12:13:19.635285219 -0500
+++ linux/arch/x86/pci/mmconfig-shared.c	2011-06-02 14:41:26.645034257 -0500
@@ -519,7 +519,8 @@ static int __init acpi_mcfg_check_entry(
 	if (cfg->address < 0xFFFFFFFF)
 		return 0;
 
-	if (!strcmp(mcfg->header.oem_id, "SGI"))
+	if (!strcmp(mcfg->header.oem_id, "SGI") ||
+	    		!strcmp(mcfg->header.oem_id, "SGI2"))
 		return 0;
 
 	if (mcfg->header.revision >= 1) {

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

* Re: [PATCH] x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform
  2011-06-02 19:59 [PATCH] x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform Jack Steiner
@ 2011-06-03  8:28 ` Ingo Molnar
  2011-06-03 13:17   ` Jack Steiner
  2011-06-03 14:03 ` [tip:x86/uv] " tip-bot for Jack Steiner
  1 sibling, 1 reply; 4+ messages in thread
From: Ingo Molnar @ 2011-06-03  8:28 UTC (permalink / raw)
  To: Jack Steiner; +Cc: tglx, hpa, x86, linux-kernel


* Jack Steiner <steiner@sgi.com> wrote:

> Enable 64-bit ACPI MFCG support for SGI UV2 platform. The check is similar
> to the check on UV1. UV2 has a different oem_id string.
> 
> Signed-off-by: Jack Steiner <steiner@sgi.com>
> 
> 
> ---
>  arch/x86/pci/mmconfig-shared.c |    3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> Index: linux/arch/x86/pci/mmconfig-shared.c
> ===================================================================
> --- linux.orig/arch/x86/pci/mmconfig-shared.c	2011-05-31 12:13:19.635285219 -0500
> +++ linux/arch/x86/pci/mmconfig-shared.c	2011-06-02 14:41:26.645034257 -0500
> @@ -519,7 +519,8 @@ static int __init acpi_mcfg_check_entry(
>  	if (cfg->address < 0xFFFFFFFF)
>  		return 0;
>  
> -	if (!strcmp(mcfg->header.oem_id, "SGI"))
> +	if (!strcmp(mcfg->header.oem_id, "SGI") ||
> +	    		!strcmp(mcfg->header.oem_id, "SGI2"))

Wouldnt strncmp(,,3) cover any future SGI3, SGI4 strings as well?

Thanks,

	Ingo

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

* Re: [PATCH] x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform
  2011-06-03  8:28 ` Ingo Molnar
@ 2011-06-03 13:17   ` Jack Steiner
  0 siblings, 0 replies; 4+ messages in thread
From: Jack Steiner @ 2011-06-03 13:17 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: tglx, hpa, x86, linux-kernel

On Fri, Jun 03, 2011 at 10:28:45AM +0200, Ingo Molnar wrote:
> 
> * Jack Steiner <steiner@sgi.com> wrote:
> 
> > Enable 64-bit ACPI MFCG support for SGI UV2 platform. The check is similar
> > to the check on UV1. UV2 has a different oem_id string.
> > 
> > Signed-off-by: Jack Steiner <steiner@sgi.com>
> > 
> > 
> > ---
> >  arch/x86/pci/mmconfig-shared.c |    3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> > 
> > Index: linux/arch/x86/pci/mmconfig-shared.c
> > ===================================================================
> > --- linux.orig/arch/x86/pci/mmconfig-shared.c	2011-05-31 12:13:19.635285219 -0500
> > +++ linux/arch/x86/pci/mmconfig-shared.c	2011-06-02 14:41:26.645034257 -0500
> > @@ -519,7 +519,8 @@ static int __init acpi_mcfg_check_entry(
> >  	if (cfg->address < 0xFFFFFFFF)
> >  		return 0;
> >  
> > -	if (!strcmp(mcfg->header.oem_id, "SGI"))
> > +	if (!strcmp(mcfg->header.oem_id, "SGI") ||
> > +	    		!strcmp(mcfg->header.oem_id, "SGI2"))
> 
> Wouldnt strncmp(,,3) cover any future SGI3, SGI4 strings as well?

I considered that but was not certain whether I could safely claim all
oemid's starting with "SGI".

There is a weak precedent in x2apic_uv_x.c - only SGI & SGI2 will be
recognized as an SGI platform. An id such as SGIABC will be treated as
a non SGI platform.

--- jack

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

* [tip:x86/uv] x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform
  2011-06-02 19:59 [PATCH] x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform Jack Steiner
  2011-06-03  8:28 ` Ingo Molnar
@ 2011-06-03 14:03 ` tip-bot for Jack Steiner
  1 sibling, 0 replies; 4+ messages in thread
From: tip-bot for Jack Steiner @ 2011-06-03 14:03 UTC (permalink / raw)
  To: linux-tip-commits; +Cc: linux-kernel, hpa, mingo, steiner, tglx, mingo

Commit-ID:  6885685923ee786f26e7b170e3b961ac0fa14037
Gitweb:     http://git.kernel.org/tip/6885685923ee786f26e7b170e3b961ac0fa14037
Author:     Jack Steiner <steiner@sgi.com>
AuthorDate: Thu, 2 Jun 2011 14:59:43 -0500
Committer:  Ingo Molnar <mingo@elte.hu>
CommitDate: Fri, 3 Jun 2011 16:00:03 +0200

x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform

Enable 64-bit ACPI MFCG support for SGI UV2 platform. The check
is similar to the check on UV1. UV2 has a different oem_id
string.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Link: http://lkml.kernel.org/r/20110602195943.GA27079@sgi.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
 arch/x86/pci/mmconfig-shared.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c
index 750c346..301e325 100644
--- a/arch/x86/pci/mmconfig-shared.c
+++ b/arch/x86/pci/mmconfig-shared.c
@@ -519,7 +519,8 @@ static int __init acpi_mcfg_check_entry(struct acpi_table_mcfg *mcfg,
 	if (cfg->address < 0xFFFFFFFF)
 		return 0;
 
-	if (!strcmp(mcfg->header.oem_id, "SGI"))
+	if (!strcmp(mcfg->header.oem_id, "SGI") ||
+			!strcmp(mcfg->header.oem_id, "SGI2"))
 		return 0;
 
 	if (mcfg->header.revision >= 1) {

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

end of thread, other threads:[~2011-06-03 14:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-02 19:59 [PATCH] x66, UV: Enable 64-bit ACPI MFCG support for SGI UV2 platform Jack Steiner
2011-06-03  8:28 ` Ingo Molnar
2011-06-03 13:17   ` Jack Steiner
2011-06-03 14:03 ` [tip:x86/uv] " tip-bot for Jack Steiner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox