throttlectl_...level_select(9)
β¨ throttlectl_...level_select β¨
okay so real quick β this is a page straight out of the Kernel API Manual, and it's about one lil function that tells the GPU how hard to chill out. literally its whole personality. π
π NAME π
throttlectl_gpu_level_select β picks out which throttling level the GPU is gonna be living at π
π¦ SYNOPSIS π¦
void throttlectl_gpu_level_select (struct tegra_soctherm *ts , enum
soctherm_throttle_id throt );
like yes bestie it's a void function, we'll get to that whole situation in a sec π
πΈ ARGUMENTS πΈ
tsβ a pointer to astruct tegra_soctherm. that's the soctherm instance you're messing with, mwah π«Άthrotβ theLIGHT/HEAVYof the throttle event id. that's your vibe selector, iykyk β
π₯ DESCRIPTION π₯
okay so here's the tea β β this function programs soctherm's interface to GK20a NV_THERM so it can select one of the pre-configured throttle levels: "Low", "Medium", or "Heavy". that's it, that's the whole job, and it ate π β¨
the way it just goes in and picks the levelβ¦ iconic behavior honestly π
π RETURN π
returns boolean true if HW was programmed β no cap, that's what the page says ππ
π§ SEE ALSO π§
bestie the reading list is long and I'm obsessed with how thorough it is. go be a main character and read all of these fr fr ππ
ccroc_writel(9)ccroc_readl(9)enforce_temp_range(9)thermtrip_program(9)throttrip_program(9)tegra_soctherm_set_hwtrips(9)soctherm_thermal_isr_thread(9)soctherm_oc_intr_enable(9)soctherm_handle_alarm(9)soctherm_edp_isr_thread(9)soctherm_edp_isr(9)soctherm_oc_irq_lock(9)soctherm_oc_irq_sync_unlock(9)soctherm_oc_irq_enable(9)soctherm_oc_irq_disable(9)soctherm_oc_irq_map(9)soctherm_irq_domain_xlate_twocell(9)soctherm_oc_int_init(9)soctherm_init_hw_throt_cdev(9)throttlectl_cpu_level_cfg(9)throttlectl_cpu_level_select(9)throttlectl_cpu_mn(9)soctherm_throttle_program(9)
also the kernel file lives at ./drivers/thermal/tegra/soctherm.c if u wanna go snooping ππ
β¨ quick reminder bb: keep every detail exactly as written β the flags, the paths, the numbers. slay responsibly π
and that's the whole page!! shoutout to ./drivers/thermal/tegra for bringing us this absolute banger of a manpage, dated October 2026, no cap. go program some hardware, bestie β you're literally built for this π«ΆππΈ
π¦ 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