* [Qemu-devel] [PATCH v0] spapr: Restore support for older PowerPC CPU cores
@ 2016-06-28 15:05 Bharata B Rao
2016-06-29 1:41 ` David Gibson
2016-06-29 7:13 ` Thomas Huth
0 siblings, 2 replies; 3+ messages in thread
From: Bharata B Rao @ 2016-06-28 15:05 UTC (permalink / raw)
To: qemu-devel; +Cc: qemu-ppc, david, thuth, Bharata B Rao
Introduction of core based CPU hotplug for PowerPC sPAPR didn't
add support for 970 and POWER5+ based core types. Add support for
the same.
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
---
TODO:
- There are few other variants of 970, like 970fx etc for which I have not
added core types since I am not sure if they fall under sPAPR category.
- Is it time to add core type for POWER8NVL yet ?
hw/ppc/spapr_cpu_core.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
index 8b802a6..cebeef5 100644
--- a/hw/ppc/spapr_cpu_core.c
+++ b/hw/ppc/spapr_cpu_core.c
@@ -325,7 +325,6 @@ static void spapr_cpu_core_class_init(ObjectClass *oc, void *data)
/*
* instance_init routines from different flavours of sPAPR CPU cores.
- * TODO: Add support for 'host' core type.
*/
#define SPAPR_CPU_CORE_INITFN(_type, _fname) \
static void glue(glue(spapr_cpu_core_, _fname), _initfn(Object *obj)) \
@@ -338,6 +337,8 @@ static void glue(glue(spapr_cpu_core_, _fname), _initfn(Object *obj)) \
core->cpu_class = oc; \
}
+SPAPR_CPU_CORE_INITFN(970_v2.2, 970);
+SPAPR_CPU_CORE_INITFN(POWER5+_v2.1, POWER5plus);
SPAPR_CPU_CORE_INITFN(POWER7_v2.3, POWER7);
SPAPR_CPU_CORE_INITFN(POWER7+_v2.1, POWER7plus);
SPAPR_CPU_CORE_INITFN(POWER8_v2.0, POWER8);
@@ -349,6 +350,12 @@ typedef struct SPAPRCoreInfo {
} SPAPRCoreInfo;
static const SPAPRCoreInfo spapr_cores[] = {
+ /* 970 */
+ { .name = "970", .initfn = spapr_cpu_core_970_initfn },
+
+ /* POWER5 */
+ { .name = "POWER5+", .initfn = spapr_cpu_core_POWER5plus_initfn },
+
/* POWER7 and aliases */
{ .name = "POWER7_v2.3", .initfn = spapr_cpu_core_POWER7_initfn },
{ .name = "POWER7", .initfn = spapr_cpu_core_POWER7_initfn },
--
2.1.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH v0] spapr: Restore support for older PowerPC CPU cores
2016-06-28 15:05 [Qemu-devel] [PATCH v0] spapr: Restore support for older PowerPC CPU cores Bharata B Rao
@ 2016-06-29 1:41 ` David Gibson
2016-06-29 7:13 ` Thomas Huth
1 sibling, 0 replies; 3+ messages in thread
From: David Gibson @ 2016-06-29 1:41 UTC (permalink / raw)
To: Bharata B Rao; +Cc: qemu-devel, qemu-ppc, thuth
[-- Attachment #1: Type: text/plain, Size: 2332 bytes --]
On Tue, Jun 28, 2016 at 08:35:02PM +0530, Bharata B Rao wrote:
> Introduction of core based CPU hotplug for PowerPC sPAPR didn't
> add support for 970 and POWER5+ based core types. Add support for
> the same.
>
> Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Applied to ppc-for-2.7
> ---
> TODO:
> - There are few other variants of 970, like 970fx etc for which I have not
> added core types since I am not sure if they fall under sPAPR category.
Yeah, frankly I wouldn't really trust the spapr code with anything
except POWER7 or POWER8.
> - Is it time to add core type for POWER8NVL yet ?
Yes.
> hw/ppc/spapr_cpu_core.c | 9 ++++++++-
> 1 file changed, 8 insertions(+), 1 deletion(-)
>
> diff --git a/hw/ppc/spapr_cpu_core.c b/hw/ppc/spapr_cpu_core.c
> index 8b802a6..cebeef5 100644
> --- a/hw/ppc/spapr_cpu_core.c
> +++ b/hw/ppc/spapr_cpu_core.c
> @@ -325,7 +325,6 @@ static void spapr_cpu_core_class_init(ObjectClass *oc, void *data)
>
> /*
> * instance_init routines from different flavours of sPAPR CPU cores.
> - * TODO: Add support for 'host' core type.
> */
> #define SPAPR_CPU_CORE_INITFN(_type, _fname) \
> static void glue(glue(spapr_cpu_core_, _fname), _initfn(Object *obj)) \
> @@ -338,6 +337,8 @@ static void glue(glue(spapr_cpu_core_, _fname), _initfn(Object *obj)) \
> core->cpu_class = oc; \
> }
>
> +SPAPR_CPU_CORE_INITFN(970_v2.2, 970);
> +SPAPR_CPU_CORE_INITFN(POWER5+_v2.1, POWER5plus);
> SPAPR_CPU_CORE_INITFN(POWER7_v2.3, POWER7);
> SPAPR_CPU_CORE_INITFN(POWER7+_v2.1, POWER7plus);
> SPAPR_CPU_CORE_INITFN(POWER8_v2.0, POWER8);
> @@ -349,6 +350,12 @@ typedef struct SPAPRCoreInfo {
> } SPAPRCoreInfo;
>
> static const SPAPRCoreInfo spapr_cores[] = {
> + /* 970 */
> + { .name = "970", .initfn = spapr_cpu_core_970_initfn },
> +
> + /* POWER5 */
> + { .name = "POWER5+", .initfn = spapr_cpu_core_POWER5plus_initfn },
> +
> /* POWER7 and aliases */
> { .name = "POWER7_v2.3", .initfn = spapr_cpu_core_POWER7_initfn },
> { .name = "POWER7", .initfn = spapr_cpu_core_POWER7_initfn },
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH v0] spapr: Restore support for older PowerPC CPU cores
2016-06-28 15:05 [Qemu-devel] [PATCH v0] spapr: Restore support for older PowerPC CPU cores Bharata B Rao
2016-06-29 1:41 ` David Gibson
@ 2016-06-29 7:13 ` Thomas Huth
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Huth @ 2016-06-29 7:13 UTC (permalink / raw)
To: Bharata B Rao, qemu-devel; +Cc: qemu-ppc, david
On 28.06.2016 17:05, Bharata B Rao wrote:
> Introduction of core based CPU hotplug for PowerPC sPAPR didn't
> add support for 970 and POWER5+ based core types. Add support for
> the same.
>
> Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
> ---
> TODO:
> - There are few other variants of 970, like 970fx etc for which I have not
> added core types since I am not sure if they fall under sPAPR category.
At least the 970MP was used in IBM's JS21 blade server which was also a
sPAPR based system, so you might at least want to add that CPU, too.
If I get https://en.wikipedia.org/wiki/PowerPC_970#PowerPC_970FX right,
the 970FX has only been used in Apple computers, so it's likely not
needed to add support for these FX CPUs.
Thomas
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-29 7:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-28 15:05 [Qemu-devel] [PATCH v0] spapr: Restore support for older PowerPC CPU cores Bharata B Rao
2016-06-29 1:41 ` David Gibson
2016-06-29 7:13 ` Thomas Huth
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).