diff options
author | Reza Arbab <arbab@linux.ibm.com> | 2019-02-10 14:42:18 -0600 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2019-02-10 21:42:32 -0600 |
commit | d3803711f8a9ac90e675bf9978d983f38d14b856 (patch) | |
tree | 9abfbee5b56928258beda511d45f1ca5b2046df1 /core | |
parent | 23470f10d0b1e120dc2d2f1606444fb6fc07b506 (diff) | |
download | skiboot-d3803711f8a9ac90e675bf9978d983f38d14b856.zip skiboot-d3803711f8a9ac90e675bf9978d983f38d14b856.tar.gz skiboot-d3803711f8a9ac90e675bf9978d983f38d14b856.tar.bz2 |
Add PVR_TYPE_P9P
Enable a new PVR to get us running on another p9 variant.
Signed-off-by: Reza Arbab <arbab@linux.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core')
-rw-r--r-- | core/cpu.c | 1 | ||||
-rw-r--r-- | core/cpufeatures.c | 10 |
2 files changed, 10 insertions, 1 deletions
@@ -971,6 +971,7 @@ void init_boot_cpu(void) hid0_attn = SPR_HID0_POWER8_ENABLE_ATTN; break; case PVR_TYPE_P9: + case PVR_TYPE_P9P: proc_gen = proc_gen_p9; hile_supported = true; radix_supported = true; diff --git a/core/cpufeatures.c b/core/cpufeatures.c index 9f56c9b..070419d 100644 --- a/core/cpufeatures.c +++ b/core/cpufeatures.c @@ -57,9 +57,10 @@ #define CPU_P8_DD2 (1U << 1) #define CPU_P9_DD1 (1U << 2) #define CPU_P9_DD2 (1U << 3) +#define CPU_P9P (1U << 4) #define CPU_P8 (CPU_P8_DD1|CPU_P8_DD2) -#define CPU_P9 (CPU_P9_DD1|CPU_P9_DD2) +#define CPU_P9 (CPU_P9_DD1|CPU_P9_DD2|CPU_P9P) #define CPU_ALL (CPU_P8|CPU_P9) struct cpu_feature { @@ -910,6 +911,13 @@ void dt_add_cpufeatures(struct dt_node *root) } break; + case PVR_TYPE_P9P: + if (!cpu_name) + cpu_name = "POWER9P"; + + cpu_feature_isa = ISA_V3_0B; + cpu_feature_cpu = CPU_P9P; + break; default: return; } |