Skip to content

Commit ffd2961

Browse files
npigginmpe
authored andcommitted
powerpc/powernv/idle: add a basic stop 0-3 driver for POWER10
This driver does not restore stop > 3 state, so it limits itself to states which do not lose full state or TB. The POWER10 SPRs are sufficiently different from P9 that it seems easier to split out the P10 code. The POWER10 deep sleep code (e.g., the BHRB restore) has been taken out, but it can be re-added when stop > 3 support is added. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Tested-by: Pratik Rajesh Sampat<psampat@linux.ibm.com> Tested-by: Vaidyanathan Srinivasan <svaidy@linux.ibm.com> Reviewed-by: Pratik Rajesh Sampat<psampat@linux.ibm.com> Reviewed-by: Gautham R. Shenoy <ego@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200819094700.493399-1-npiggin@gmail.com
1 parent 79b123c commit ffd2961

5 files changed

Lines changed: 212 additions & 97 deletions

File tree

‎arch/powerpc/include/asm/machdep.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ struct machdep_calls {
222222

223223
extern void e500_idle(void);
224224
extern void power4_idle(void);
225-
extern void power7_idle(void);
226-
extern void power9_idle(void);
227225
extern void ppc6xx_idle(void);
228226
extern void book3e_idle(void);
229227

‎arch/powerpc/include/asm/processor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ enum idle_boot_override {IDLE_NO_OVERRIDE = 0, IDLE_POWERSAVE_OFF};
432432
extern int powersave_nap; /* set if nap mode can be used in idle loop */
433433

434434
extern void power7_idle_type(unsigned long type);
435-
extern void power9_idle_type(unsigned long stop_psscr_val,
435+
extern void arch300_idle_type(unsigned long stop_psscr_val,
436436
unsigned long stop_psscr_mask);
437437

438438
extern int fix_alignment(struct pt_regs *);

‎arch/powerpc/include/asm/reg.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,6 +1353,7 @@
13531353
#define PVR_POWER8NVL 0x004C
13541354
#define PVR_POWER8 0x004D
13551355
#define PVR_POWER9 0x004E
1356+
#define PVR_POWER10 0x0080
13561357
#define PVR_BE 0x0070
13571358
#define PVR_PA6T 0x0090
13581359

0 commit comments

Comments
 (0)