package sst
import "github.com/intel/goresctrl/pkg/sst"
Index ¶
- Constants
- func GetCPUClosID(cpu utils.ID) (int, error)
- func SstSupported() bool
- type CPPriorityType
- type SstClosInfo
- type SstPackageInfo
Constants ¶
const ( CONFIG_TDP = 0x7f CONFIG_TDP_GET_LEVELS_INFO = 0x0 CONFIG_TDP_GET_TDP_CONTROL = 0x1 CONFIG_TDP_SET_TDP_CONTROL = 0x2 CONFIG_TDP_GET_TDP_INFO = 0x3 CONFIG_TDP_GET_PWR_INFO = 0x4 CONFIG_TDP_GET_TJMAX_INFO = 0x5 CONFIG_TDP_GET_CORE_MASK = 0x6 CONFIG_TDP_GET_TURBO_LIMIT_RATIOS = 0x7 CONFIG_TDP_SET_LEVEL = 0x8 CONFIG_TDP_GET_UNCORE_P0_P1_INFO = 0x9 CONFIG_TDP_GET_P1_INFO = 0xa CONFIG_TDP_GET_MEM_FREQ = 0xb CONFIG_TDP_GET_FACT_HP_TURBO_LIMIT_NUMCORES = 0x10 CONFIG_TDP_GET_FACT_HP_TURBO_LIMIT_RATIOS = 0x11 CONFIG_TDP_GET_FACT_LP_CLIPPING_RATIO = 0x12 CONFIG_TDP_PBF_GET_CORE_MASK_INFO = 0x20 CONFIG_TDP_PBF_GET_P1HI_P1LO_INFO = 0x21 CONFIG_TDP_PBF_GET_TJ_MAX_INFO = 0x22 CONFIG_TDP_PBF_GET_TDP_INFO = 0x23 CONFIG_CLOS = 0xd0 CLOS_PM_QOS_CONFIG = 0x2 READ_PM_CONFIG = 0x94 WRITE_PM_CONFIG = 0x95 PM_FEATURE = 0x3 PM_QOS_INFO_OFFSET = 0x0 PM_QOS_CONFIG_OFFSET = 0x4 PM_CLOS_OFFSET = 0x8 PQR_ASSOC_OFFSET = 0x20 )
const NumClos = 4
NumClos is the number of CLOSes suported by SST-CP
Functions ¶
func GetCPUClosID ¶
GetCPUClosID returns the SST-CP CLOS id that a cpu is associated with.
func SstSupported ¶
func SstSupported() bool
SstSupported returns true if Intel Speed Select Technologies (SST) is supported by the system and can be interfaced via the Linux kernel device
Types ¶
type CPPriorityType ¶
type CPPriorityType int
CPPriorityType denotes the type CLOS priority ordering used in SST-CP
const ( Proportional CPPriorityType = 0 Ordered CPPriorityType = 1 )
type SstClosInfo ¶
type SstClosInfo struct { EPP int ProportionalPriority int MinFreq int MaxFreq int DesiredFreq int }
SstClosInfo contains parameters of one CLOS of SST-CP
type SstPackageInfo ¶
type SstPackageInfo struct { // Gereric PP info PPSupported bool PPLocked bool PPVersion int PPCurrentLevel int PPMaxLevel int // Information about the currently active PP level CPSupported bool CPEnabled bool CPPriority CPPriorityType BFSupported bool BFEnabled bool BFCores utils.IDSet TFSupported bool TFEnabled bool ClosInfo [NumClos]SstClosInfo }
SstPackageInfo contains status of Intel Speed Select Technologies (SST) for one CPU package
func GetPackageInfo ¶
func GetPackageInfo(pkgId utils.ID) (SstPackageInfo, error)
GetPackageInfo returns information of the SST configuration of one cpu package.
Source Files ¶
sst.go sst_if.go sst_types_priv.go sysfs.go
- Version
- v0.2.0
- Published
- Sep 20, 2021
- Platform
- js/wasm
- Imports
- 11 packages
- Last checked
- 3 days ago –
Tools for package owners.