map_cdies(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 on
  • id β€” User domain ID πŸ”’ the one you're rolling up with
  • partition β€” 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 πŸ”₯

  • -EINVAL on 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