#ifdef CONFIG_PPC_POWERNV /* Thread state used in powernv idle state management */ #define PNV_THREAD_RUNNING 0 #define PNV_THREAD_NAP 1 #define PNV_THREAD_SLEEP 2 #define PNV_THREAD_WINKLE 3
/* * Core state used in powernv idle for POWER8. * * The lock bit synchronizes updates to the state, as well as parts of the * sleep/wake code (see kernel/idle_book3s.S). * * Bottom 8 bits track the idle state of each thread. Bit is cleared before * the thread executes an idle instruction (nap/sleep/winkle). * * Then there is winkle tracking. A core does not lose complete state * until every thread is in winkle. So the winkle count field counts the * number of threads in winkle (small window of false positives is okay * around the sleep/wake, so long as there are no false negatives). * * When the winkle count reaches 8 (the COUNT_ALL_BIT becomes set), then * the THREAD_WINKLE_BITS are set, which indicate which threads have not * yet woken from the winkle state.
*/ #define NR_PNV_CORE_IDLE_LOCK_BIT 28 #define PNV_CORE_IDLE_LOCK_BIT (1ULL << NR_PNV_CORE_IDLE_LOCK_BIT)
/* * ============================ NOTE ================================= * The older firmware populates only the RL field in the psscr_val and * sets the psscr_mask to 0xf. On such a firmware, the kernel sets the * remaining PSSCR fields to default values as follows: * * - ESL and EC bits are to 1. So wakeup from any stop state will be * at vector 0x100. * * - MTL and PSLL are set to the maximum allowed value as per the ISA, * i.e. 15. * * - The Transition Rate, TR is set to the Maximum value 3.
*/ #define PSSCR_HV_DEFAULT_VAL (PSSCR_ESL | PSSCR_EC | \
PSSCR_PSLL_MASK | PSSCR_TR_MASK | \
PSSCR_MTL_MASK)
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.