tegra_soctherm_set_hwtrips(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 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 β€” the struct 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 β€” a struct 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:


Signing off from ./drivers/thermal/tegra β€” October 2026, still serving tegra_soctherm_set_hwtrips(9) realness. Mwah. πŸ’‹πŸ¦‹

πŸ“¦ where this page comes from