]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc64: Increase the nap level on power9 idling
authorjhibbits <jhibbits@FreeBSD.org>
Fri, 12 Apr 2019 00:44:33 +0000 (00:44 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Fri, 12 Apr 2019 00:44:33 +0000 (00:44 +0000)
commitc5657f49cc8840b77fad7bf7f6ee51816e949c0c
tree93e67a1533f4da0943ac1b8b3f91d866cc1610ac
parent7186df98c89d483ee4c7448368a915ba9801ecbb
powerpc64: Increase the nap level on power9 idling

The POWER9 documentation specifies that levels 0-3 are the 'lightest' sleep
level, meaning lowest latency and with no state loss.  However, state 3 is
not implemented, and is instead reserved for future chips.  This now
properly configures the PSSCR, specifying state 2 as the lowest level to
enter, but request level 0 for quickest sleep level.  If the OCC determines
that the CPU can enter states 1 or 2 it will trigger the transition to those
states on demand.

MFC after: 1 week
sys/powerpc/include/spr.h
sys/powerpc/powerpc/cpu.c