* [patch] 2.6.6 SN2 specific prom flag in mca.c
@ 2004-05-10 5:55 Keith Owens
2004-05-10 15:15 ` Bjorn Helgaas
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Keith Owens @ 2004-05-10 5:55 UTC (permalink / raw)
To: linux-ia64
SN2 prom needs an extra flag on the MCA setup call.
Index: 2.6.6/arch/ia64/kernel/mca.c
=================================--- 2.6.6.orig/arch/ia64/kernel/mca.c 2004-04-05 12:43:31.000000000 -0500
+++ 2.6.6/arch/ia64/kernel/mca.c 2004-04-05 12:52:48.000000000 -0500
@@ -1207,6 +1207,9 @@
s64 rc;
struct ia64_sal_retval isrv;
u64 timeout = IA64_MCA_RENDEZ_TIMEOUT; /* platform specific */
+ u64 mca_flags = SAL_MC_PARAM_RZ_ALWAYS; /* platform specific */
+ if (ia64_platform_is("sn2"))
+ mca_flags |= 0x8; /* SGI prom specific */
IA64_MCA_DEBUG("%s: begin\n", __FUNCTION__);
@@ -1224,7 +1227,7 @@
SAL_MC_PARAM_MECHANISM_INT,
IA64_MCA_RENDEZ_VECTOR,
timeout,
- SAL_MC_PARAM_RZ_ALWAYS);
+ mca_flags);
rc = isrv.status;
if (rc = 0)
break;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] 2.6.6 SN2 specific prom flag in mca.c
2004-05-10 5:55 [patch] 2.6.6 SN2 specific prom flag in mca.c Keith Owens
@ 2004-05-10 15:15 ` Bjorn Helgaas
2004-05-10 15:47 ` Luck, Tony
2004-05-10 17:53 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Helgaas @ 2004-05-10 15:15 UTC (permalink / raw)
To: linux-ia64
On Sunday 09 May 2004 11:55 pm, Keith Owens wrote:
> SN2 prom needs an extra flag on the MCA setup call.
If the flag is needed always and only on SN2, why doesn't the
prom just set it implicitly?
> Index: 2.6.6/arch/ia64/kernel/mca.c
> =================================> --- 2.6.6.orig/arch/ia64/kernel/mca.c 2004-04-05 12:43:31.000000000 -0500
> +++ 2.6.6/arch/ia64/kernel/mca.c 2004-04-05 12:52:48.000000000 -0500
> @@ -1207,6 +1207,9 @@
> s64 rc;
> struct ia64_sal_retval isrv;
> u64 timeout = IA64_MCA_RENDEZ_TIMEOUT; /* platform specific */
> + u64 mca_flags = SAL_MC_PARAM_RZ_ALWAYS; /* platform specific */
> + if (ia64_platform_is("sn2"))
> + mca_flags |= 0x8; /* SGI prom specific */
>
> IA64_MCA_DEBUG("%s: begin\n", __FUNCTION__);
>
> @@ -1224,7 +1227,7 @@
> SAL_MC_PARAM_MECHANISM_INT,
> IA64_MCA_RENDEZ_VECTOR,
> timeout,
> - SAL_MC_PARAM_RZ_ALWAYS);
> + mca_flags);
> rc = isrv.status;
> if (rc = 0)
> break;
>
> -
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [patch] 2.6.6 SN2 specific prom flag in mca.c
2004-05-10 5:55 [patch] 2.6.6 SN2 specific prom flag in mca.c Keith Owens
2004-05-10 15:15 ` Bjorn Helgaas
@ 2004-05-10 15:47 ` Luck, Tony
2004-05-10 17:53 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: Luck, Tony @ 2004-05-10 15:47 UTC (permalink / raw)
To: linux-ia64
>On Sunday 09 May 2004 11:55 pm, Keith Owens wrote:
>> SN2 prom needs an extra flag on the MCA setup call.
>
>If the flag is needed always and only on SN2, why doesn't the
>prom just set it implicitly?
The SAL spec is unhelpful about platform extensions here, it
defines bits 2-63 as "Reserved, must be zero".
-Tony
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch] 2.6.6 SN2 specific prom flag in mca.c
2004-05-10 5:55 [patch] 2.6.6 SN2 specific prom flag in mca.c Keith Owens
2004-05-10 15:15 ` Bjorn Helgaas
2004-05-10 15:47 ` Luck, Tony
@ 2004-05-10 17:53 ` David Mosberger
2 siblings, 0 replies; 4+ messages in thread
From: David Mosberger @ 2004-05-10 17:53 UTC (permalink / raw)
To: linux-ia64
Keith,
You have been around long enough to do better than that. There is no
way I'm going to accept a patch as ugly as this.
Hints:
- Any patch that contains ia64_platform_is() raises suspicion. It's
almost always wrong to use this macro.
- Magic constant of 0x8? What the heck is that about?
--david
------------------------------------------------------------------
From: Keith Owens <kaos@sgi.com>
Sender: linux-ia64-owner@vger.kernel.org
To: linux-ia64@vger.kernel.org
Subject: [patch] 2.6.6 SN2 specific prom flag in mca.c
Date: Mon, 10 May 2004 15:55:36 +1000
SN2 prom needs an extra flag on the MCA setup call.
Index: 2.6.6/arch/ia64/kernel/mca.c
=================================--- 2.6.6.orig/arch/ia64/kernel/mca.c 2004-04-05 12:43:31.000000000 -0500
+++ 2.6.6/arch/ia64/kernel/mca.c 2004-04-05 12:52:48.000000000 -0500
@@ -1207,6 +1207,9 @@
s64 rc;
struct ia64_sal_retval isrv;
u64 timeout = IA64_MCA_RENDEZ_TIMEOUT; /* platform specific */
+ u64 mca_flags = SAL_MC_PARAM_RZ_ALWAYS; /* platform specific */
+ if (ia64_platform_is("sn2"))
+ mca_flags |= 0x8; /* SGI prom specific */
IA64_MCA_DEBUG("%s: begin\n", __FUNCTION__);
@@ -1224,7 +1227,7 @@
SAL_MC_PARAM_MECHANISM_INT,
IA64_MCA_RENDEZ_VECTOR,
timeout,
- SAL_MC_PARAM_RZ_ALWAYS);
+ mca_flags);
rc = isrv.status;
if (rc = 0)
break;
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-05-10 17:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-10 5:55 [patch] 2.6.6 SN2 specific prom flag in mca.c Keith Owens
2004-05-10 15:15 ` Bjorn Helgaas
2004-05-10 15:47 ` Luck, Tony
2004-05-10 17:53 ` David Mosberger
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox