TT-System-Firmware APIs 19.15.99
Tenstorrent Firmware
Loading...
Searching...
No Matches
cat.h File Reference
#include <stdbool.h>
#include <tenstorrent/bh_arc.h>
Include dependency graph for cat.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define T_J_SHUTDOWN   110 /* BH Prod Spec 7.3 */

Functions

int StartGddrThermTripMonitor (void)
int EvaluateGddrThermTrip (int64_t now, int max_temp, int trip_temp, int critical_temp, int64_t duration_ms)
 Evaluate the GDDR thermal-trip state machine for one sample against the supplied thresholds.
uint8_t CatSetGddrThermTripEnabled (bool enabled)
 Enable or disable the GDDR thermal-trip action at runtime.

Macro Definition Documentation

◆ T_J_SHUTDOWN

#define T_J_SHUTDOWN   110 /* BH Prod Spec 7.3 */

Function Documentation

◆ CatSetGddrThermTripEnabled()

uint8_t CatSetGddrThermTripEnabled ( bool enabled)

Enable or disable the GDDR thermal-trip action at runtime.

Parameters
enabledfalse to disable, true to enable.
Returns
0 on success.

◆ EvaluateGddrThermTrip()

int EvaluateGddrThermTrip ( int64_t now,
int max_temp,
int trip_temp,
int critical_temp,
int64_t duration_ms )

Evaluate the GDDR thermal-trip state machine for one sample against the supplied thresholds.

Production code uses the internal MonitorGddrThermTrip wrapper, which supplies the thresholds seeded from the firmware table at init.

Parameters
nowCurrent uptime in milliseconds.
max_tempHighest observed GDDR temperature in degrees Celsius.
trip_tempSustained over-temp threshold in degrees Celsius.
critical_tempInstantaneous (no-dwell) trip threshold in degrees Celsius.
duration_msSustained dwell time before tripping, in milliseconds.
Returns
The tripping temperature (non-zero) when a trip fires, otherwise 0.

◆ StartGddrThermTripMonitor()

int StartGddrThermTripMonitor ( void )