Documentation
¶
Index ¶
- func BFReadCoreMask(cpu uint16, ppCurrentLevel, maskIndex int) (uint32, error)
- func BFSetStatus(cpu uint16, ppCurrentLevel int, enable bool) error
- func CPGetPriorityType(cpu uint16) (int, error)
- func CPSendClosCmd(cpu uint16, subCmd uint16, parameter uint32, reqData uint32) (uint32, error)
- func CPSetPriorityType(cpu uint16, priority int) error
- func CPSetStatus(cpu uint16, enable bool, priority int) error
- func ClosAssociate(cpu uint16, clos uint8) error
- func ClosReset(cpu uint16) error
- func ClosSetParam(cpu uint16, clos, epp, proportional, minFreq, maxFreq, desiredFreq uint8) error
- func GetCPUClosID(cpu uint16) (uint8, error)
- func PPGetCurrentLevel(cpu uint16) (int, error)
- func PerfLevelGetCoreMask64(cpu uint16, level int) (uint64, error)
- func TFSetStatus(cpu uint16, ppCurrentLevel int, enable bool) error
- type BFInfo
- type CPStatus
- type ClosParam
- type PPInfo
- type TDPControl
- type TFInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BFReadCoreMask ¶
BFReadCoreMask reads one BF core mask word (32-bit) for the given PP level and mask index.
func BFSetStatus ¶
BFSetStatus enables or disables SST-BF.
func CPGetPriorityType ¶
CPGetPriorityType reads the current CP priority type (0=proportional, 1=ordered).
func CPSendClosCmd ¶
CPSendClosCmd sends a CLOS command via MMIO to PUNIT.
func CPSetPriorityType ¶
CPSetPriorityType changes the CP priority type.
func CPSetStatus ¶
CPSetStatus sets the SST-CP status. Returns an error if the hardware did not reflect the expected state.
func ClosAssociate ¶
ClosAssociate associates one CPU to a CLOS.
func ClosSetParam ¶
ClosSetParam writes CLOS parameters for one CLOS. Frequency values are 8-bit ratios (x100 = MHz).
func GetCPUClosID ¶
GetCPUClosID returns the CLOS id of a CPU.
func PPGetCurrentLevel ¶
PPGetCurrentLevel reads the current PP level for a CPU.
func PerfLevelGetCoreMask64 ¶
PerfLevelGetCoreMask64 reads the 64-bit punit core bitmask for a PP level.
Types ¶
type BFInfo ¶
type BFInfo struct {
HighPriorityBaseFreqRatio int // ratio (x100 = MHz)
LowPriorityBaseFreqRatio int // ratio (x100 = MHz)
CoreMask uint64
}
BFInfo holds SST-BF properties for one PP level.
type CPStatus ¶
CPStatus holds SST-CP support/enable status.
func CPReadStatus ¶
CPReadStatus reads SST-CP support and enable state.
type PPInfo ¶
PPInfo holds SST-PP (perf profile) information.
func PPReadInfo ¶
PPReadInfo reads SST-PP info for a CPU.
type TDPControl ¶
TDPControl holds SST-BF and SST-TF support/enable flags.
func PPReadTDPControl ¶
func PPReadTDPControl(cpu uint16, ppCurrentLevel int) (TDPControl, error)
PPReadTDPControl reads SST BF/TF status for a CPU at the given PP level.
type TFInfo ¶
type TFInfo struct {
LPClipRatios [3]int // x100 = MHz, indices 0=SSE, 1=AVX2, 2=AVX512
HPCoreCounts [8]int // high-priority core count per bucket
HPTRLRatios [3][8]int // [trllevel][bucket] ratio, x100 = MHz
}
TFInfo holds SST-TF properties for one PP level. Note: Mbox TF only exposes up to 3 TRL levels (SSE=0, AVX2=1, AVX512=2).