map_cdies(9)
π map_cdies(9)
okay so bestie, real talk: we're in the Kernel API Manual, section 9, and this little icon is called map_cdies β the way it just maps a user domain ID to a compute domain ID?? we love a glow-up with a clear purpose β¨
πΈ NAME πΈ
map_cdies β Map user domain ID to compute domain ID πΊοΈπ
β¨ SYNOPSIS β¨
int map_cdies (struct tpmi_sst_struct *sst_inst , u8 id , u8 *partition
);
yes the signature is literally right there, copy it exactly, do not freestyle it, i'm begging π«Ά
π ARGUMENTS π
sst_instβ TPMI Instance π like, this is the whole vibe you're operating onidβ User domain ID π’ the one you're rolling up withpartitionβ Resolved partition π§ this is where the answer lands, bestie
π¦ DESCRIPTION π¦
So here's the tea, no cap: this is a helper function for map_partition_power_domain_id β its whole job is to resolve the compute domain ID and the partition. π«Ά
And the way it does it? It takes the hardware-provided cdie_mask for a partition, uses it as is, and that's how a compute domain ID gets resolved. no extra steps, no overthinking, just "use the mask, get the ID." slay π
it's giving "small function, big main character energy" honestly π
π₯ RETURN π₯
-EINVALon error π (boo, but at least it's honest)- otherwise, the mapped domain ID
>= 0πβ¨
lowkey important: on a bad day you get-EINVAL, and on a good day you get a domain ID that's>= 0. don't mix those up bestie π
β SEE ALSO β
Kernel file π
./drivers/platform/x86/intel/speed_select_if/isst_tpmi_core.c β plus the whole friend group of structs and functions, all with their (9) on, exactly like this:
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 pp_status_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_partition_power_domain_id(9)
like okay connection network, we see you πΈοΈπ
πΈπ and that's the page!! it came to you from ./drivers/platform/x86/intel/s... (yes the path gets shy and trails off at the end, leave it alone π) dated October 2026 β so go forth, map those compute domain IDs, and remember: use the hardware-provided cdie_mask as is, periodt π
ππ¦
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms