TT Zephyr Platforms 18.11.99
Tenstorrent Firmware
|
#include <zephyr/sys/util.h>
#include <zephyr/logging/log.h>
#include <zephyr/sys/byteorder.h>
#include "throttler.h"
#include "aiclk_ppm.h"
#include "cm2dm_msg.h"
#include <zephyr/drivers/misc/bh_fwtable.h>
#include "telemetry_internal.h"
#include "telemetry.h"
Data Structures | |
struct | ThrottlerLimitRange |
struct | ThrottlerParams |
struct | Throttler |
Macros | |
#define | kThrottlerAiclkScaleFactor 500.0F |
#define | DEFAULT_BOARD_POWER_LIMIT 150 |
Enumerations | |
enum | ThrottlerId { kThrottlerTDP , kThrottlerFastTDC , kThrottlerTDC , kThrottlerThm , kThrottlerBoardPower , kThrottlerGDDRThm , kThrottlerCount } |
Functions | |
LOG_MODULE_REGISTER (throttler) | |
static void | SetThrottlerLimit (ThrottlerId id, float limit) |
void | InitThrottlers (void) |
static void | UpdateThrottler (ThrottlerId id, float value) |
static void | UpdateThrottlerArb (ThrottlerId id) |
void | CalculateThrottlers (void) |
int32_t | Dm2CmSetBoardPowerLimit (const uint8_t *data, uint8_t size) |
Variables | |
static const struct device *const | fwtable_dev = DEVICE_DT_GET(DT_NODELABEL(fwtable)) |
static const ThrottlerLimitRange | throttler_limit_ranges [kThrottlerCount] |
static Throttler | throttler [kThrottlerCount] |
#define DEFAULT_BOARD_POWER_LIMIT 150 |
#define kThrottlerAiclkScaleFactor 500.0F |
enum ThrottlerId |
void CalculateThrottlers | ( | void | ) |
void InitThrottlers | ( | void | ) |
LOG_MODULE_REGISTER | ( | throttler | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |