tpmi

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 1, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BFGetCoreMask

func BFGetCoreMask(socketID, punitID, level uint8) (uint64, error)

BFGetCoreMask reads the BF core mask for a punit and perf level.

func BFGetInfo

func BFGetInfo(socketID, punitID, level uint8) (isst.BaseFreqInfo, error)

BFGetInfo reads SST-BF frequency info for a performance level.

func BFSetStatus

func BFSetStatus(socketID, punitID uint8, enable bool) error

BFSetStatus enables or disables SST-BF for one punit, preserving the current TF state.

func CPGetPriorityType

func CPGetPriorityType(socketID, punitID uint8) (uint8, error)

CPGetPriorityType reads the current CP priority type for one punit.

func CPGetState

func CPGetState(socketID, punitID uint8) (isst.CorePower, error)

CPGetState reads the SST-CP state for a punit.

func CPSetPriorityType

func CPSetPriorityType(socketID, punitID uint8, priority uint8) error

CPSetPriorityType updates the CP priority type for one punit, preserving the current enable state.

func CPSetState

func CPSetState(socketID, punitID uint8, enable bool, priority uint8) error

CPSetState sets SST-CP enabled/disabled with the given priority for one punit.

func ClosAssociate

func ClosAssociate(socketID, punitID uint8, punitCoreID uint16, clos uint8) error

ClosAssociate associates a punit core to a CLOS.

func ClosGetParam

func ClosGetParam(socketID, punitID, closIdx uint8) (isst.ClosParam, error)

ClosGetParam reads CLOS parameters for one CLOS on a punit.

func ClosReset

func ClosReset(socketID, punitID uint8) error

ClosReset resets all CLOSes to default values for one punit.

func ClosSetParam

func ClosSetParam(socketID, punitID, clos, proportional uint8, minFreq, maxFreq uint16) error

ClosSetParam writes CLOS parameters for one CLOS on one punit interface. Frequency values are in MHz.

func GetCPUClosID

func GetCPUClosID(socketID, punitID uint8, punitCoreID uint16) (uint8, error)

GetCPUClosID returns the CLOS id for a punit core.

func GetCPUPunitID

func GetCPUPunitID(cpu uint16) (uint8, error)

GetCPUPunitID returns the TPMI power domain (punit) ID for a given logical CPU.

func GetPunitCoreID

func GetPunitCoreID(cpu uint16) (uint16, error)

GetPunitCoreID returns the TPMI punit core id for a given logical CPU.

func GetSocketPunits

func GetSocketPunits(socketID uint8) ([]uint8, error)

GetSocketPunits returns the valid TPMI power domain (punit) indices for a socket.

func PPGetPerfLevels

func PPGetPerfLevels(socketID, punitID uint8) (isst.PerfLevelInfo, error)

PPGetPerfLevels reads performance level info for a punit.

func PerfLevelGetCPUMask

func PerfLevelGetCPUMask(socketID, punitID, level uint8) (uint64, error)

PerfLevelGetCPUMask reads the punit core bitmask for a performance level.

func TFGetInfo

func TFGetInfo(socketID, punitID, level uint8) (isst.TurboFreqInfo, error)

TFGetInfo reads SST-TF frequency info for a performance level.

func TFSetStatus

func TFSetStatus(socketID, punitID uint8, enable bool) error

TFSetStatus enables or disables SST-TF for one punit via the TPMI interface, preserving the current BF state.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL