tegra_soctherm_set_hwtrips(9)
πΈ NAME πΈ
Okay bestie, welcome to the Kernel API Manual page for tegra_soctherm_set_hwtrips(9) β the icon itself. Its whole NAME vibe is set HW trip point from DT data, and yes, that is literally what we're doing here. π
β¨ SYNOPSIS β¨
int tegra_soctherm_set_hwtrips (struct device *dev , const struct
tegra_tsensor_group *sg , struct thermal_zone_device *tz );
π«Ά ARGUMENTS π«Ά
devβ thestruct device *of the SOC_THERM instance. That's the device bestie right there.sgβ pointer to the sensor group to set the thermtrip temperature for. She's got a specific job. π―tzβ astruct thermal_zone_device *. Yep, that's the whole description, no cap.
π₯ DESCRIPTION π₯
So here's the tea: this configures the SOC_THERM HW trip points β specifically the "THERMTRIP" and "THROTTLE" trip points β using a trip_temp from the thermal zone, pulled from the "thermtrips", "critical" or "hot" type. β¨
After they've been configured, THERMTRIP or THROTTLE will take action when the configured SoC thermal sensor group reaches a certain temperature. Like, that's the whole moment. π‘οΈπ
π RETURN π
Returns 0 upon success, or a negative error code on failure. π«Ά
But bestie, read this part twice: "Success" does not mean that trips was enabled; it could also mean that no node was found in DT. Not me side-eyeing a 0 that's just being mysterious. π
THERMTRIP has been enabled successfully when a message similar to this one appears on the serial console:
"thermtrip: will shut down when sensor group XXX reaches YYYYYY mC"
THROTTLE has been enabled successfully when a message similar to this one appears on the serial console:
""throttrip: will throttle when sensor group XXX reaches YYYYYY mC"
That double-quote situation on the throttrip line is exactly what the original says β we do not fix, we preserve. πβ¨
π SEE ALSO π
Kernel file ./drivers/thermal/tegra/soctherm.c is where the lore lives. Also peep these icons:
ccroc_writel(9)ccroc_readl(9)enforce_temp_range(9)thermtrip_program(9)throttrip_program(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)throttlectl_gpu_level_select(9)soctherm_throttle_program(9)
Signing off from ./drivers/thermal/tegra β October 2026, still serving tegra_soctherm_set_hwtrips(9) realness. Mwah. ππ¦
π¦ 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