Skip to contentSkip to conversation

target-ppc: Complete POWER5+ CPU model support

PATCH Applied Andreas Färber 3 participants 9 messages Aug 1, 2013 – Aug 14, 2013

lore
Share & tools
lore
#0 lore raw

cover target-ppc: Complete POWER5+ CPU model support

Hello,

This mini-series cleans up, enables and complements POWER5+ support, so that KVM with default -cpu host works on POWER5+ (gs) v2.1.

Thanks to Ben for some valuable hints on how to model POWER5P family!

Regards,
Andreas

Cc Anthony Liguori <[email protected]>
Cc Alexey Kardashevskiy <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Alexander Graf <[email protected]>

Andreas Färber (4):
target-ppc: Turn POWER5gs CPU into alias for POWER5+
target-ppc: Turn POWER5gr CPU into alias for POWER5
target-ppc: Prepare POWER5P CPU family
target-ppc: Add POWER5+ v2.1 CPU model

 target-ppc/cpu-models.c     |  10 ++---
 target-ppc/cpu-models.h     |   3 +-
 target-ppc/translate_init.c | 104 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 109 insertions(+), 8 deletions(-)
Signature · 1 line
1.8.1.4
#1 lore raw

PATCH 1/4 target-ppc: Turn POWER5gs CPU into alias for POWER5+

---
 target-ppc/cpu-models.c | 3 +--
 target-ppc/cpu-models.h | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
target-ppc/cpu-models.c +1 -2
index 9578ed8..49b193f 100644
@@ -1126,8 +1126,6 @@
 #if defined(TODO)
     POWERPC_DEF("POWER5+",       CPU_POWERPC_POWER5P,                POWER5P,
                 "POWER5+")
-    POWERPC_DEF("POWER5gs",      CPU_POWERPC_POWER5GS,               POWER5P,
-                "POWER5GS")
 #endif
 #if defined(TODO)
     POWERPC_DEF("POWER6",        CPU_POWERPC_POWER6,                 POWER6,
@@ -1389,6 +1387,7 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
     { "Boxer", "POWER3" },
     { "Dino",  "POWER3" },
     { "POWER3+", "631" },
+    { "POWER5gs", "POWER5+" },
     { "POWER7", "POWER7_v2.3" },
     { "POWER8", "POWER8_v1.0" },
     { "970fx", "970fx_v3.1" },
target-ppc/cpu-models.h +0 -1
index 01e488f..0e4db11 100644
@@ -549,7 +549,6 @@ enum {
     CPU_POWERPC_POWER5             = 0x003A0203,
 #define CPU_POWERPC_POWER5GR         CPU_POWERPC_POWER5
     CPU_POWERPC_POWER5P            = 0x003B0000,
-#define CPU_POWERPC_POWER5GS         CPU_POWERPC_POWER5P
     CPU_POWERPC_POWER6             = 0x003E0000,
     CPU_POWERPC_POWER6_5           = 0x0F000001, /* POWER6 in POWER5 mode */
     CPU_POWERPC_POWER6A            = 0x0F000002,
Signature · 1 line
1.8.1.4
#2 lore raw

PATCH 2/4 target-ppc: Turn POWER5gr CPU into alias for POWER5

In reply to Andreas Färber
---
 target-ppc/cpu-models.c | 3 +--
 target-ppc/cpu-models.h | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
target-ppc/cpu-models.c +1 -2
index 49b193f..3f7a6f4 100644
@@ -1120,8 +1120,6 @@
 #if defined(TODO)
     POWERPC_DEF("POWER5",        CPU_POWERPC_POWER5,                 POWER5,
                 "POWER5")
-    POWERPC_DEF("POWER5gr",      CPU_POWERPC_POWER5GR,               POWER5,
-                "POWER5GR")
 #endif
 #if defined(TODO)
     POWERPC_DEF("POWER5+",       CPU_POWERPC_POWER5P,                POWER5P,
@@ -1387,6 +1385,7 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
     { "Boxer", "POWER3" },
     { "Dino",  "POWER3" },
     { "POWER3+", "631" },
+    { "POWER5gr", "POWER5" },
     { "POWER5gs", "POWER5+" },
     { "POWER7", "POWER7_v2.3" },
     { "POWER8", "POWER8_v1.0" },
target-ppc/cpu-models.h +0 -1
index 0e4db11..a844d0d 100644
@@ -547,7 +547,6 @@ enum {
     CPU_POWERPC_POWER4P            = 0x00380000,
      /* XXX: missing 0x003A0201 */
     CPU_POWERPC_POWER5             = 0x003A0203,
-#define CPU_POWERPC_POWER5GR         CPU_POWERPC_POWER5
     CPU_POWERPC_POWER5P            = 0x003B0000,
     CPU_POWERPC_POWER6             = 0x003E0000,
     CPU_POWERPC_POWER6_5           = 0x0F000001, /* POWER6 in POWER5 mode */
Signature · 1 line
1.8.1.4
#3 lore raw

PATCH 3/4 target-ppc: Prepare POWER5P CPU family

In reply to Andreas Färber

It is ISA 2.03. Modelled as 970FX minus AltiVec flag.

Cc Benjamin Herrenschmidt <[email protected]>
Cc Alexey Kardashevskiy <[email protected]>
---
 target-ppc/cpu-models.c     |   2 -
 target-ppc/translate_init.c | 104 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 104 insertions(+), 2 deletions(-)
target-ppc/cpu-models.c +0 -2
index 3f7a6f4..f2604eb 100644
@@ -1121,10 +1121,8 @@
     POWERPC_DEF("POWER5",        CPU_POWERPC_POWER5,                 POWER5,
                 "POWER5")
 #endif
-#if defined(TODO)
     POWERPC_DEF("POWER5+",       CPU_POWERPC_POWER5P,                POWER5P,
                 "POWER5+")
-#endif
 #if defined(TODO)
     POWERPC_DEF("POWER6",        CPU_POWERPC_POWER6,                 POWER6,
                 "POWER6")
target-ppc/translate_init.c +104 -0

110 lines not on this page · raw message

Signature · 1 line
1.8.1.4
#4 lore raw

PATCH 4/4 target-ppc: Add POWER5+ v2.1 CPU model

In reply to Andreas Färber

Let's avoid -cpu host barfing at this PVR.
Linux recognizes it as "POWER5+ (gs) v2.1".

---
 target-ppc/cpu-models.c | 2 ++
 target-ppc/cpu-models.h | 1 +
 2 files changed, 3 insertions(+)
target-ppc/cpu-models.c +2 -0
index f2604eb..70157d6 100644
@@ -1123,6 +1123,8 @@
 #endif
     POWERPC_DEF("POWER5+",       CPU_POWERPC_POWER5P,                POWER5P,
                 "POWER5+")
+    POWERPC_DEF("POWER5+_v2.1",  CPU_POWERPC_POWER5P_v21,            POWER5P,
+                "POWER5+ v2.1")
 #if defined(TODO)
     POWERPC_DEF("POWER6",        CPU_POWERPC_POWER6,                 POWER6,
                 "POWER6")
target-ppc/cpu-models.h +1 -0
index a844d0d..830ab84 100644
@@ -548,6 +548,7 @@ enum {
      /* XXX: missing 0x003A0201 */
     CPU_POWERPC_POWER5             = 0x003A0203,
     CPU_POWERPC_POWER5P            = 0x003B0000,
+    CPU_POWERPC_POWER5P_v21        = 0x003B0201,
     CPU_POWERPC_POWER6             = 0x003E0000,
     CPU_POWERPC_POWER6_5           = 0x0F000001, /* POWER6 in POWER5 mode */
     CPU_POWERPC_POWER6A            = 0x0F000002,
Signature · 1 line
1.8.1.4
#5 lore raw

[Qemu-devel] Ping for-1.6: [PATCH for-next 0/4] target-ppc: Complete POWER5+ CPU model support

In reply to Andreas Färber

Am 01.08.2013 03:41, schrieb Andreas Färber:

Quoted 4 lines

Hello,

This mini-series cleans up, enables and complements POWER5+ support, so that KVM with default -cpu host works on POWER5+ (gs) v2.1.

Ping! According to Anthony fixing -cpu host on new models is a bug fix, so please apply this for POWER5+ v2.1 to work, too.

Thanks,
Andreas

Quoted 23 lines

Thanks to Ben for some valuable hints on how to model POWER5P family!

Regards,
Andreas

Cc Anthony Liguori <[email protected]>
Cc Alexey Kardashevskiy <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Alexander Graf <[email protected]>

Andreas Färber (4):
target-ppc: Turn POWER5gs CPU into alias for POWER5+
target-ppc: Turn POWER5gr CPU into alias for POWER5
target-ppc: Prepare POWER5P CPU family
target-ppc: Add POWER5+ v2.1 CPU model

 target-ppc/cpu-models.c     |  10 ++---
 target-ppc/cpu-models.h     |   3 +-
 target-ppc/translate_init.c | 104 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 109 insertions(+), 8 deletions(-)
Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#6 lore raw
In reply to Andreas Färber
Quoted 7 lines · Andreas Färber

Hello,

This mini-series cleans up, enables and complements POWER5+ support, so that KVM with default -cpu host works on POWER5+ (gs) v2.1.

Thanks to Ben for some valuable hints on how to model POWER5P family!

Quoted 8 lines

Regards,
Andreas

Cc Anthony Liguori <[email protected]>
Cc Alexey Kardashevskiy <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Alexander Graf <[email protected]>

Thanks, applied to ppc-next.

Alex

#7 lore raw

Am 14.08.2013 15:59, schrieb Alexander Graf:

Quoted 13 lines · Andreas Färber
Quoted 11 lines

Hello,

This mini-series cleans up, enables and complements POWER5+ support, so that KVM with default -cpu host works on POWER5+ (gs) v2.1.

Thanks to Ben for some valuable hints on how to model POWER5P family!

Regards,
Andreas

Quoted 7 lines
Quoted 5 lines
Cc Anthony Liguori <[email protected]>
Cc Alexey Kardashevskiy <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc Alexander Graf <[email protected]>

Thanks, applied to ppc-next.

Thanks, but some kind of workflow problem here: Anthony declared adding CPU models for -cpu host a bugfix and applied both POWER7+ and POWER5+ for 1.6 already.

Cheers,
Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg