aboutsummaryrefslogtreecommitdiff
path: root/core/cpu.c
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.ibm.com>2019-06-03 14:50:50 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-06-04 10:29:05 +1000
commit16b7ae64103797b0ecab1dbb7c45df23b14810b9 (patch)
treea3330ee950c4f93c9c7afe278cf1425f66366b95 /core/cpu.c
parent9cae036fafea468219892406a846639f2715854d (diff)
downloadskiboot-16b7ae64103797b0ecab1dbb7c45df23b14810b9.zip
skiboot-16b7ae64103797b0ecab1dbb7c45df23b14810b9.tar.gz
skiboot-16b7ae64103797b0ecab1dbb7c45df23b14810b9.tar.bz2
Remove POWER7 and POWER7+ support
It's been a good long while since either OPAL POWER7 user touched a machine, and even longer since they'd have been okay using an old version rather than tracking master. There's also been no testing of OPAL on POWER7 systems for an awfully long time, so it's pretty safe to assume that it's very much bitrotted. It also saves a whole 14kb of xz compressed payload space. Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Enthusiasticly-Acked-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'core/cpu.c')
-rw-r--r--core/cpu.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/core/cpu.c b/core/cpu.c
index 62c0201..168a49a 100644
--- a/core/cpu.c
+++ b/core/cpu.c
@@ -110,7 +110,7 @@ static void cpu_wake(struct cpu_thread *cpu)
if (!cpu->in_idle)
return;
- if (proc_gen == proc_gen_p8 || proc_gen == proc_gen_p7) {
+ if (proc_gen == proc_gen_p8) {
/* Poke IPI */
icp_kick_cpu(cpu);
} else if (proc_gen == proc_gen_p9) {
@@ -992,10 +992,6 @@ void init_boot_cpu(void)
/* Get CPU family and other flags based on PVR */
switch(PVR_TYPE(pvr)) {
- case PVR_TYPE_P7:
- case PVR_TYPE_P7P:
- proc_gen = proc_gen_p7;
- break;
case PVR_TYPE_P8E:
case PVR_TYPE_P8:
proc_gen = proc_gen_p8;
@@ -1023,11 +1019,6 @@ void init_boot_cpu(void)
/* Get a CPU thread count based on family */
switch(proc_gen) {
- case proc_gen_p7:
- cpu_thread_count = 4;
- prlog(PR_INFO, "CPU: P7 generation processor"
- " (max %d threads/core)\n", cpu_thread_count);
- break;
case proc_gen_p8:
cpu_thread_count = 8;
prlog(PR_INFO, "CPU: P8 generation processor"
@@ -1580,13 +1571,6 @@ static int64_t opal_reinit_cpus(uint64_t flags)
if (req.set_bits || req.clr_bits)
cpu_change_all_hid0(&req);
- /* If we have a P7, error out for LE switch, do nothing for BE */
- if (proc_gen < proc_gen_p8) {
- if (flags & OPAL_REINIT_CPUS_HILE_LE)
- rc = OPAL_UNSUPPORTED;
- flags &= ~(OPAL_REINIT_CPUS_HILE_BE | OPAL_REINIT_CPUS_HILE_LE);
- }
-
if (flags & OPAL_REINIT_CPUS_TM_SUSPEND_DISABLED) {
flags &= ~OPAL_REINIT_CPUS_TM_SUSPEND_DISABLED;