* [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR
@ 2006-12-12 4:02 Ishizaki Kou
2006-12-12 4:13 ` Michael Ellerman
0 siblings, 1 reply; 7+ messages in thread
From: Ishizaki Kou @ 2006-12-12 4:02 UTC (permalink / raw)
To: paulus, linuxppc-dev
op_model_cell supports native Cell processor. Under LPAR environment,
it cannot work.
Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
---
Index: linux-powerpc-git/arch/powerpc/oprofile/common.c
diff -u linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 linux-powerpc-git/arch/powerpc/oprofile/common.c:1.2
--- linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 Wed Dec 6 08:25:43 2006
+++ linux-powerpc-git/arch/powerpc/oprofile/common.c Wed Dec 6 08:43:15 2006
@@ -149,6 +149,8 @@
#ifdef CONFIG_PPC64
#ifdef CONFIG_PPC_CELL_NATIVE
case PPC_OPROFILE_CELL:
+ if (firmware_has_feature(FW_FEATURE_LPAR))
+ return -ENODEV;
model = &op_model_cell;
break;
#endif
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR
2006-12-12 4:02 [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR Ishizaki Kou
@ 2006-12-12 4:13 ` Michael Ellerman
2006-12-12 4:53 ` Benjamin Herrenschmidt
2006-12-12 19:55 ` Arnd Bergmann
0 siblings, 2 replies; 7+ messages in thread
From: Michael Ellerman @ 2006-12-12 4:13 UTC (permalink / raw)
To: Ishizaki Kou; +Cc: linuxppc-dev, paulus
[-- Attachment #1: Type: text/plain, Size: 1136 bytes --]
On Tue, 2006-12-12 at 13:02 +0900, Ishizaki Kou wrote:
> op_model_cell supports native Cell processor. Under LPAR environment,
> it cannot work.
>
> Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
> ---
>
> Index: linux-powerpc-git/arch/powerpc/oprofile/common.c
> diff -u linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 linux-powerpc-git/arch/powerpc/oprofile/common.c:1.2
> --- linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 Wed Dec 6 08:25:43 2006
> +++ linux-powerpc-git/arch/powerpc/oprofile/common.c Wed Dec 6 08:43:15 2006
> @@ -149,6 +149,8 @@
> #ifdef CONFIG_PPC64
> #ifdef CONFIG_PPC_CELL_NATIVE
> case PPC_OPROFILE_CELL:
> + if (firmware_has_feature(FW_FEATURE_LPAR))
> + return -ENODEV;
> model = &op_model_cell;
> break;
> #endif
Is FW_FEATURE_LPAR is the right switch to use here, I'm not sure.
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR
2006-12-12 4:13 ` Michael Ellerman
@ 2006-12-12 4:53 ` Benjamin Herrenschmidt
2006-12-12 4:55 ` Michael Ellerman
2006-12-12 19:55 ` Arnd Bergmann
1 sibling, 1 reply; 7+ messages in thread
From: Benjamin Herrenschmidt @ 2006-12-12 4:53 UTC (permalink / raw)
To: michael; +Cc: linuxppc-dev, paulus
On Tue, 2006-12-12 at 15:13 +1100, Michael Ellerman wrote:
> On Tue, 2006-12-12 at 13:02 +0900, Ishizaki Kou wrote:
> > op_model_cell supports native Cell processor. Under LPAR environment,
> > it cannot work.
> >
> > Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
> > ---
> >
> > Index: linux-powerpc-git/arch/powerpc/oprofile/common.c
> > diff -u linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 linux-powerpc-git/arch/powerpc/oprofile/common.c:1.2
> > --- linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 Wed Dec 6 08:25:43 2006
> > +++ linux-powerpc-git/arch/powerpc/oprofile/common.c Wed Dec 6 08:43:15 2006
> > @@ -149,6 +149,8 @@
> > #ifdef CONFIG_PPC64
> > #ifdef CONFIG_PPC_CELL_NATIVE
> > case PPC_OPROFILE_CELL:
> > + if (firmware_has_feature(FW_FEATURE_LPAR))
> > + return -ENODEV;
> > model = &op_model_cell;
> > break;
> > #endif
>
> Is FW_FEATURE_LPAR is the right switch to use here, I'm not sure.
For now, it probably is as none of the LPAR env. for cell work with that
op_model.
Ben.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR
2006-12-12 4:53 ` Benjamin Herrenschmidt
@ 2006-12-12 4:55 ` Michael Ellerman
2006-12-12 11:49 ` Ishizaki Kou
0 siblings, 1 reply; 7+ messages in thread
From: Michael Ellerman @ 2006-12-12 4:55 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: linuxppc-dev, paulus
[-- Attachment #1: Type: text/plain, Size: 1636 bytes --]
On Tue, 2006-12-12 at 15:53 +1100, Benjamin Herrenschmidt wrote:
> On Tue, 2006-12-12 at 15:13 +1100, Michael Ellerman wrote:
> > On Tue, 2006-12-12 at 13:02 +0900, Ishizaki Kou wrote:
> > > op_model_cell supports native Cell processor. Under LPAR environment,
> > > it cannot work.
> > >
> > > Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
> > > ---
> > >
> > > Index: linux-powerpc-git/arch/powerpc/oprofile/common.c
> > > diff -u linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 linux-powerpc-git/arch/powerpc/oprofile/common.c:1.2
> > > --- linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 Wed Dec 6 08:25:43 2006
> > > +++ linux-powerpc-git/arch/powerpc/oprofile/common.c Wed Dec 6 08:43:15 2006
> > > @@ -149,6 +149,8 @@
> > > #ifdef CONFIG_PPC64
> > > #ifdef CONFIG_PPC_CELL_NATIVE
> > > case PPC_OPROFILE_CELL:
> > > + if (firmware_has_feature(FW_FEATURE_LPAR))
> > > + return -ENODEV;
> > > model = &op_model_cell;
> > > break;
> > > #endif
> >
> > Is FW_FEATURE_LPAR is the right switch to use here, I'm not sure.
>
> For now, it probably is as none of the LPAR env. for cell work with that
> op_model.
Sure, there's probably twenty different things we could use at the
moment, I'm just wondering out loud if LPAR is the best thing to reduce
the chance we have to change it in the future.
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR
2006-12-12 4:55 ` Michael Ellerman
@ 2006-12-12 11:49 ` Ishizaki Kou
0 siblings, 0 replies; 7+ messages in thread
From: Ishizaki Kou @ 2006-12-12 11:49 UTC (permalink / raw)
To: michael; +Cc: paulus, linuxppc-dev
> On Tue, 2006-12-12 at 15:53 +1100, Benjamin Herrenschmidt wrote:
> > On Tue, 2006-12-12 at 15:13 +1100, Michael Ellerman wrote:
> > > On Tue, 2006-12-12 at 13:02 +0900, Ishizaki Kou wrote:
> > > > op_model_cell supports native Cell processor. Under LPAR environment,
> > > > it cannot work.
> > > >
> > > > Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
> > > > ---
> > > >
> > > > Index: linux-powerpc-git/arch/powerpc/oprofile/common.c
> > > > diff -u linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 linux-powerpc-git/arch/powerpc/oprofile/common.c:1.2
> > > > --- linux-powerpc-git/arch/powerpc/oprofile/common.c:1.1.1.1 Wed Dec 6 08:25:43 2006
> > > > +++ linux-powerpc-git/arch/powerpc/oprofile/common.c Wed Dec 6 08:43:15 2006
> > > > @@ -149,6 +149,8 @@
> > > > #ifdef CONFIG_PPC64
> > > > #ifdef CONFIG_PPC_CELL_NATIVE
> > > > case PPC_OPROFILE_CELL:
> > > > + if (firmware_has_feature(FW_FEATURE_LPAR))
> > > > + return -ENODEV;
> > > > model = &op_model_cell;
> > > > break;
> > > > #endif
> > >
> > > Is FW_FEATURE_LPAR is the right switch to use here, I'm not sure.
> >
> > For now, it probably is as none of the LPAR env. for cell work with that
> > op_model.
>
> Sure, there's probably twenty different things we could use at the
> moment, I'm just wondering out loud if LPAR is the best thing to reduce
> the chance we have to change it in the future.
We will implement Cell LPAR support in the future. The code doesn't
exist now, and it tries to use oprofile_timer by returning -ENODEV
here.
Thank you,
Kou Ishizaki
Toshiba
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR
2006-12-12 4:13 ` Michael Ellerman
2006-12-12 4:53 ` Benjamin Herrenschmidt
@ 2006-12-12 19:55 ` Arnd Bergmann
2006-12-12 22:51 ` Michael Ellerman
1 sibling, 1 reply; 7+ messages in thread
From: Arnd Bergmann @ 2006-12-12 19:55 UTC (permalink / raw)
To: linuxppc-dev, michael; +Cc: paulus
On Tuesday 12 December 2006 05:13, Michael Ellerman wrote:
> On Tue, 2006-12-12 at 13:02 +0900, Ishizaki Kou wrote:
> > op_model_cell supports native Cell processor. Under LPAR environment,
> > it cannot work.
> >
> > Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
>
> Is FW_FEATURE_LPAR is the right switch to use here, I'm not sure.
Yes, I think it is. The code accesses I/O memory areas that can not
work under any hypervisor, so FW_FEATURE_LPAR makes perfect sense
to me.
Arnd <><
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR
2006-12-12 19:55 ` Arnd Bergmann
@ 2006-12-12 22:51 ` Michael Ellerman
0 siblings, 0 replies; 7+ messages in thread
From: Michael Ellerman @ 2006-12-12 22:51 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: linuxppc-dev, paulus
[-- Attachment #1: Type: text/plain, Size: 1001 bytes --]
On Tue, 2006-12-12 at 20:55 +0100, Arnd Bergmann wrote:
> On Tuesday 12 December 2006 05:13, Michael Ellerman wrote:
> > On Tue, 2006-12-12 at 13:02 +0900, Ishizaki Kou wrote:
> > > op_model_cell supports native Cell processor. Under LPAR environment,
> > > it cannot work.
> > >
> > > Signed-off-by: Kou Ishizaki <kou.ishizaki.co.jp>
>
> Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
>
> >
> > Is FW_FEATURE_LPAR is the right switch to use here, I'm not sure.
>
> Yes, I think it is. The code accesses I/O memory areas that can not
> work under any hypervisor, so FW_FEATURE_LPAR makes perfect sense
> to me.
Yeah it's good enough.
But to be pedantic, P (LPAR) implies Q (HV), but !P does not imply !Q :)
cheers
--
Michael Ellerman
OzLabs, IBM Australia Development Lab
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)
We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2006-12-12 22:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-12 4:02 [PATCH 12/15] powerpc: Do not use op_model_cell under LPAR Ishizaki Kou
2006-12-12 4:13 ` Michael Ellerman
2006-12-12 4:53 ` Benjamin Herrenschmidt
2006-12-12 4:55 ` Michael Ellerman
2006-12-12 11:49 ` Ishizaki Kou
2006-12-12 19:55 ` Arnd Bergmann
2006-12-12 22:51 ` Michael Ellerman
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).