STRUCT PP_STATUS_OFFSET(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌟 struct pp_status_offset(9) 🌟

okay bestie, so this is from the Kernel API Manual, and it's literally all about the offsets for SST PP status fields. iykyk πŸ’…βœ¨


πŸŽ€ NAME πŸŽ€

struct pp_status_offset β€” offsets for SST PP status fields, no cap 🫢


✨ SYNOPSIS ✨

struct pp_status_offset {
    u64 sst_pp_level :3;
    u64 sst_pp_lock :1;
    u64 error_type :4;
    u64 feature_state :8;
    u64 reserved0 :16;
    u64 feature_error_type : 24;
    u64 reserved1 :8;
 };

πŸ’… MEMBERS πŸ’…

  • sst_pp_level β€” returns the current SST-PP level, periodt ✨
  • sst_pp_lock β€” returns the lock bit setting of perf_level_lock in pp_control_offsetβ€”like, it's giving security vibes πŸ”’
  • error_type β€” returns the last error of a SST-PP level change request. 0: no error, 1: level change not allowed, others: reservedβ€”so basically, if you see a 1, bestie, it wasn't meant to be πŸ˜­πŸ’€
  • feature_state β€” a bit mask that shows the enable(1)/disable(0) state of each feature of the current PP level. bit 0 = BF, bit 1 = TF, bit 2-7 reservedβ€”literally a vibe check for your features 🌈
  • reserved0 β€” reserved for future use πŸͺ‘ (saving a seat for later, fr fr)
  • feature_error_type β€” returns the last error of a specific feature. three error_type bits per feature, i.e. ERROR_TYPE[2:0] for BF, ERROR_TYPE[5:3] for TF, etc. 0x0: no error, 0x1: the specific feature is not supported by the hardware, 0x2-0x6: reserved, 0x7: feature state change is not allowedβ€”so many numbers but it's all about knowing what's up πŸ”₯
  • reserved1 β€” reserved for future use πŸͺ‘ (another seat for another future friend)

😭 DESCRIPTION 😭

okay so this struct is literally used to store offsets of SST PP status in the register bank. and it's packed to the same format as defined in the specificationsβ€”iconic behavior, honestly πŸ’β€β™€οΈβœ¨


πŸ”₯ SEE ALSO πŸ”₯

kernel file:

./drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c

and the whole squad: struct sst_header(9), struct cp_header(9), struct pp_header(9), struct feature_offset(9), struct levels_offset(9), struct pp_control_offset(9), struct perf_level(9), struct tpmi_per_power_domain_info(9), struct tpmi_sst_struct(9), struct tpmi_sst_common_struct(9), map_cdies(9), map_partition_power_domain_id(9)


β€” from ./drivers/platform/x86/intel/s... (the source file) on October 2026, struct pp_status_offset(9). catch you later, bestie! πŸ«ΆπŸ’–πŸŒΈ

πŸ“¦ where this page comes from