|
TT Zephyr Platforms 19.5.0-rc1
Tenstorrent Firmware
|
#include "fan_ctrl.h"#include "cm2dm_msg.h"#include "gddr.h"#include "telemetry_internal.h"#include "telemetry.h"#include "timer.h"#include "harvesting.h"#include <tenstorrent/msgqueue.h>#include <tenstorrent/smc_msg.h>#include <zephyr/kernel.h>#include <zephyr/sys/util.h>#include <zephyr/logging/log.h>#include <zephyr/drivers/misc/bh_fwtable.h>Macros | |
| #define | STATIC static |
Functions | |
| LOG_MODULE_REGISTER (fan_ctrl, CONFIG_TT_APP_LOG_LEVEL) | |
| static uint32_t | fan_curve (float max_asic_temp, float max_gddr_temp) |
| static void | update_fan_speed (void) |
| uint16_t | GetFanRPM (void) |
| void | SetFanRPM (uint16_t rpm) |
| uint32_t | GetFanSpeed (void) |
| static void | fan_ctrl_work_handler (struct k_work *work) |
| static | K_WORK_DEFINE (fan_ctrl_update_worker, fan_ctrl_work_handler) |
| static void | fan_ctrl_timer_handler (struct k_timer *timer) |
| static | K_TIMER_DEFINE (fan_ctrl_update_timer, fan_ctrl_timer_handler, NULL) |
| void | init_fan_ctrl (void) |
| static uint8_t | force_fan_speed (const union request *request, struct response *response) |
| REGISTER_MESSAGE (TT_SMC_MSG_FORCE_FAN_SPEED, force_fan_speed) | |
| void | DmcFanSpeedFeedback (uint32_t speed_percentage) |
Variables | |
| static struct k_timer | fan_ctrl_update_timer |
| static struct k_work | fan_ctrl_update_worker |
| static int | fan_ctrl_update_interval = 1000 |
| static uint16_t | fan_rpm |
| static uint32_t | fan_speed |
| static bool | fan_speed_forced |
| static uint32_t | fan_speed_feedback |
| static float | max_gddr_temp |
| static float | max_asic_temp |
| static float | alpha = CONFIG_TT_BH_ARC_FAN_CTRL_ALPHA / 100.0f |
| static const struct device *const | fwtable_dev = DEVICE_DT_GET(DT_NODELABEL(fwtable)) |
| #define STATIC static |
| void DmcFanSpeedFeedback | ( | uint32_t | speed_percentage | ) |
|
static |
|
static |
|
static |
| uint16_t GetFanRPM | ( | void | ) |
| uint32_t GetFanSpeed | ( | void | ) |
| void init_fan_ctrl | ( | void | ) |
|
static |
|
static |
| LOG_MODULE_REGISTER | ( | fan_ctrl | , |
| CONFIG_TT_APP_LOG_LEVEL | ) |
| REGISTER_MESSAGE | ( | TT_SMC_MSG_FORCE_FAN_SPEED | , |
| force_fan_speed | ) |
| void SetFanRPM | ( | uint16_t | rpm | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |