| /Linux-v5.15/drivers/thermal/ |
| D | thermal_of.c | 25 * struct __thermal_cooling_bind_param - a cooling device for a trip point 27 * @min: minimum cooling state used at this trip point 28 * @max: maximum cooling state used at this trip point 38 * struct __thermal_bind_param - a match between trip and cooling device 41 * @trip_id: the trip point index 58 * @ntrips: number of trip points 59 * @trips: an array of trip points (0..ntrips - 1) 72 /* trip data */ 110 * of_thermal_get_ntrips - function to export number of available trip 114 * This function is a globally visible wrapper to get number of trip points [all …]
|
| D | gov_step_wise.c | 19 * If the temperature is higher than a trip point, 21 * state for this trip point 24 * for this trip point 26 * for this trip point 27 * If the temperature is lower than a trip point, 30 * state for this trip point, if the cooling state already 116 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument 125 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update() 126 tz->ops->get_trip_type(tz, trip, &trip_type); in thermal_zone_trip_update() 128 trend = get_tz_trend(tz, trip); in thermal_zone_trip_update() [all …]
|
| D | Kconfig | 12 Each thermal zone contains its own temperature, trip points, 26 trip point crossed, cooling device update or governor 45 poweroff kicks in. Similarly to the critical trip point, 80 bool "Enable writable trip points" 83 trip temperatures can be changed from userspace. The 88 change trip temperatures. 213 user can manually input temperature and test the different trip 240 CPUs when the passive trip is crossed. 250 It supports one critical trip point and one passive trip point. The 252 passive trip is crossed. [all …]
|
| D | gov_fair_share.c | 19 * get_trip_level: - obtains the current trip level for a zone 38 * count > 0 only if temperature is greater than first trip in get_trip_level() 62 * @trip: trip point index 73 * We do not want to throttle too much when we trip a lower temperature, 74 * whereas the throttling is at full swing if we trip critical levels. 75 * (Heavily assumes the trip points are in ascending order) 78 static int fair_share_throttle(struct thermal_zone_device *tz, int trip) in fair_share_throttle() argument 88 if (instance->trip != trip) in fair_share_throttle() 99 if (instance->trip != trip) in fair_share_throttle()
|
| D | gov_bang_bang.c | 16 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip) in thermal_zone_trip_update() argument 21 tz->ops->get_trip_temp(tz, trip, &trip_temp); in thermal_zone_trip_update() 28 tz->ops->get_trip_hyst(tz, trip, &trip_hyst); in thermal_zone_trip_update() 30 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", in thermal_zone_trip_update() 31 trip, trip_temp, tz->temperature, in thermal_zone_trip_update() 37 if (instance->trip != trip) in thermal_zone_trip_update() 75 * @trip: the trip point 99 static int bang_bang_control(struct thermal_zone_device *tz, int trip) in bang_bang_control() argument 103 thermal_zone_trip_update(tz, trip); in bang_bang_control()
|
| D | thermal_core.h | 73 * @np: pointer to struct device_node that this trip point was created from 76 * @type: trip point type 85 int get_tz_trend(struct thermal_zone_device *tz, int trip); 90 int trip); 94 * a certain cooling device on a certain trip point 102 int trip; member 104 unsigned long upper; /* Highest cooling state for this trip point */ 105 unsigned long lower; /* Lowest cooling state for this trip point */ 165 int trip) in of_thermal_is_trip_valid() argument
|
| D | thermal_sysfs.c | 83 int trip, result; in trip_point_type_show() local 88 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip) != 1) in trip_point_type_show() 91 result = tz->ops->get_trip_type(tz, trip, &type); in trip_point_type_show() 114 int trip, ret; in trip_point_temp_store() local 121 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip) != 1) in trip_point_temp_store() 127 ret = tz->ops->set_trip_temp(tz, trip, temperature); in trip_point_temp_store() 132 ret = tz->ops->get_trip_hyst(tz, trip, &hyst); in trip_point_temp_store() 137 ret = tz->ops->get_trip_type(tz, trip, &type); in trip_point_temp_store() 141 thermal_notify_tz_trip_change(tz->id, trip, type, temperature, hyst); in trip_point_temp_store() 153 int trip, ret; in trip_point_temp_show() local [all …]
|
| D | thermal_core.c | 286 * - Critical trip point will cause a system shutdown. 321 static void handle_non_critical_trips(struct thermal_zone_device *tz, int trip) in handle_non_critical_trips() argument 323 tz->governor ? tz->governor->throttle(tz, trip) : in handle_non_critical_trips() 324 def_governor->throttle(tz, trip); in handle_non_critical_trips() 343 int trip, enum thermal_trip_type trip_type) in handle_critical_trips() argument 347 tz->ops->get_trip_temp(tz, trip, &trip_temp); in handle_critical_trips() 353 trace_thermal_zone_trip(tz, trip, trip_type); in handle_critical_trips() 361 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip) in handle_thermal_trip() argument 366 /* Ignore disabled trip points */ in handle_thermal_trip() 367 if (test_bit(trip, &tz->trips_disabled)) in handle_thermal_trip() [all …]
|
| D | gov_power_allocator.c | 59 * @trip_switch_on: first passive trip point of the thermal zone. The 60 * governor switches on when this trip point is crossed. 61 * If the thermal zone only has one passive trip point, 63 * @trip_max_desired_temperature: last passive trip point of the thermal 99 if (instance->trip != params->trip_max_desired_temperature) in estimate_sustainable_power() 118 * @trip_switch_on: trip point number for the switch on temperature 142 * passive trip points at the same temperature, that person in estimate_pid_constants() 400 if ((instance->trip == trip_max_desired_temperature) && in allocate_power() 443 if (instance->trip != trip_max_desired_temperature) in allocate_power() 479 if (instance->trip != trip_max_desired_temperature) in allocate_power() [all …]
|
| /Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
| D | core_thermal.c | 173 * defined with three trip points. The critical and emergency in mlxsw_thermal_module_trips_update() 175 * and "hot" trip points, "normal" trip point is derived from "active" in mlxsw_thermal_module_trips_update() 194 struct mlxsw_thermal_trip *trip = trips; in mlxsw_thermal_tz_score_update() local 202 i++, trip++) { in mlxsw_thermal_tz_score_update() 203 if (temp < trip->temp) { in mlxsw_thermal_tz_score_update() 204 delta = DIV_ROUND_CLOSEST(temp, trip->temp - temp); in mlxsw_thermal_tz_score_update() 229 const struct mlxsw_thermal_trip *trip = &thermal->trips[i]; in mlxsw_thermal_bind() local 232 trip->max_state, in mlxsw_thermal_bind() 233 trip->min_state, in mlxsw_thermal_bind() 236 dev_err(dev, "Failed to bind cooling device to trip %d\n", i); in mlxsw_thermal_bind() [all …]
|
| /Linux-v5.15/drivers/thermal/intel/int340x_thermal/ |
| D | int340x_thermal_zone.c | 44 int trip, int *temp) in int340x_thermal_get_trip_temp() argument 50 return d->override_ops->get_trip_temp(zone, trip, temp); in int340x_thermal_get_trip_temp() 52 if (trip < d->aux_trip_nr) in int340x_thermal_get_trip_temp() 53 *temp = d->aux_trips[trip]; in int340x_thermal_get_trip_temp() 54 else if (trip == d->crt_trip_id) in int340x_thermal_get_trip_temp() 56 else if (trip == d->psv_trip_id) in int340x_thermal_get_trip_temp() 58 else if (trip == d->hot_trip_id) in int340x_thermal_get_trip_temp() 63 d->act_trips[i].id == trip) { in int340x_thermal_get_trip_temp() 76 int trip, in int340x_thermal_get_trip_type() argument 83 return d->override_ops->get_trip_type(zone, trip, type); in int340x_thermal_get_trip_type() [all …]
|
| /Linux-v5.15/drivers/thermal/intel/ |
| D | intel_quark_dts_thermal.c | 82 /* Programmable Trip Point Register is configured via QRK_MBI_UNIT_RMU */ 93 /* Quark DTS has 2 trip points: hot & catastrophic */ 95 /* If DTS not locked, all trip points are configurable */ 97 /* If DTS locked, all trip points are not configurable */ 114 "Polling interval for checking trip points (in milliseconds)"); 175 static int _get_trip_temp(int trip, int *temp) in _get_trip_temp() argument 189 * Thermal Sensor Programmable Trip Point Register has 8-bit in _get_trip_temp() 190 * fields for critical (catastrophic) and hot set trip point in _get_trip_temp() 194 *temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in _get_trip_temp() 201 int trip, int *temp) in sys_get_trip_temp() argument [all …]
|
| D | Kconfig | 24 two trip points which can be set by user to get notifications via thermal 46 thermal zone. There are two trip points. One of the trip point can 48 notification methods.The other trip is a critical trip point, which 57 The DTS will be registered as a thermal zone. There are two trip points: 58 hot & critical. The critical trip point default value is set by 72 the alert trip point interrupts and notifies the thermal framework with 73 the trip point and temperature details of the zone. 81 programmable trip points and other information.
|
| /Linux-v5.15/Documentation/devicetree/bindings/thermal/ |
| D | thermal-zones.yaml | 35 max dT/dt, such that a device does not cross several trip boundaries 57 this zone, one sub-node containing the various trip points for this 124 An integer expressing the trip temperature in millicelsius. 130 respect to the trip temperature property above, also in 133 (trip temperature - hysteresis). This potentially prevents a 134 situation where the trip gets constantly triggered soon after 145 There are four valid trip types: active, passive, hot, 148 The critical trip type is used to set the maximum 154 The hot trip type can be used to send a notification to 158 The passive trip type can be used to slow down HW e.g. run [all …]
|
| D | db8500-thermal.txt | 9 - num-trips : number of total trip points, this is required, set it 0 if none, 11 - tripN-temp : temperature of trip point N, should be in ascending order; 12 - tripN-type : type of trip point N, should be one of "active" "passive" "hot" 14 - tripN-cdev-num : number of the cooling devices which can be bound to trip 15 point N, this is required if trip point N is defined, set it 0 if none, 17 - tripN-cdev-nameM : name of the No. M cooling device of trip point N;
|
| /Linux-v5.15/arch/arm/boot/dts/ |
| D | exynos5422-odroidxu3-common.dtsi | 78 * Exynos542x supports only 4 trip-points 81 * interrupt-driven trip: cpu0_alert2 96 trip = <&cpu0_alert0>; 100 trip = <&cpu0_alert1>; 104 trip = <&cpu0_alert2>; 113 trip = <&cpu0_alert3>; 129 trip = <&cpu0_alert4>; 179 trip = <&cpu1_alert0>; 183 trip = <&cpu1_alert1>; 187 trip = <&cpu1_alert2>; [all …]
|
| D | exynos5422-odroidhc1.dts | 58 trip = <&cpu0_alert0>; 74 trip = <&cpu0_alert1>; 107 trip = <&cpu1_alert0>; 118 trip = <&cpu1_alert1>; 151 trip = <&cpu2_alert0>; 162 trip = <&cpu2_alert1>; 195 trip = <&cpu3_alert0>; 206 trip = <&cpu3_alert1>; 239 trip = <&gpu_alert0>; 243 trip = <&gpu_alert1>;
|
| /Linux-v5.15/Documentation/driver-api/thermal/ |
| D | sysfs-api.rst | 27 inputs from thermal zone attributes (the current temperature and trip point 55 the total number of trip points this thermal zone supports. 57 Bit string: If 'n'th bit is set, then trip point 'n' is writable. 70 set the trip points window. Whenever the current temperature 71 is updated, the trip points immediately below and above the 79 upon trip points so that user applications can take 84 get the type of certain trip point. 86 get the temperature above which the certain trip point 98 whether trip points have been crossed (0 for interrupt driven systems). 260 int trip, struct thermal_cooling_device *cdev, [all …]
|
| /Linux-v5.15/drivers/thermal/ti-soc-thermal/ |
| D | ti-thermal.h | 30 /* trip points of interest in milicelsius (at hotspot level) */ 43 * ti_thermal_get_trip_value - returns trip temperature based on index 44 * @i: trip index 50 * ti_thermal_is_valid_trip - check for trip index 51 * @i: trip index 53 #define ti_thermal_is_valid_trip(trip) \ argument 54 ((trip) >= 0 && (trip) < OMAP_TRIP_NUMBER)
|
| /Linux-v5.15/drivers/thermal/broadcom/ |
| D | brcmstb_thermal.c | 68 /* HW bit to enable the trip */ 72 /* HW field to read the trip temperature */ 180 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local 181 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() 183 dev_dbg(priv->dev, "%sable trip, type %d\n", en ? "en" : "dis", type); in avs_tmon_trip_enable() 186 val |= trip->enable_mask; in avs_tmon_trip_enable() 188 val &= ~trip->enable_mask; in avs_tmon_trip_enable() 190 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() 196 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local 197 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp() [all …]
|
| /Linux-v5.15/drivers/acpi/ |
| D | thermal.c | 52 MODULE_PARM_DESC(act, "Disable or override all lowest active trip points."); 56 MODULE_PARM_DESC(crt, "Disable or lower all critical trip points."); 72 MODULE_PARM_DESC(psv, "Disable or override all passive trip points."); 250 * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid 259 "ACPI thermal trip point %s changed\n" \ 404 break; /* disable all active trip points */ in acpi_thermal_trips_update() 422 * the next higher trip point in acpi_thermal_trips_update() 493 pr_warn(FW_BUG "No valid trip found\n"); in acpi_thermal_get_trip_points() 519 int trip, enum thermal_trip_type *type) in thermal_get_trip_type() argument 524 if (!tz || trip < 0) in thermal_get_trip_type() [all …]
|
| /Linux-v5.15/arch/arm64/boot/dts/qcom/ |
| D | sm8350.dtsi | 1417 cpu0_alert0: trip-point0 { 1423 cpu0_alert1: trip-point1 { 1438 trip = <&cpu0_alert0>; 1445 trip = <&cpu0_alert1>; 1461 cpu1_alert0: trip-point0 { 1467 cpu1_alert1: trip-point1 { 1482 trip = <&cpu1_alert0>; 1489 trip = <&cpu1_alert1>; 1505 cpu2_alert0: trip-point0 { 1511 cpu2_alert1: trip-point1 { [all …]
|
| /Linux-v5.15/arch/arm64/boot/dts/marvell/ |
| D | armada-8040-clearfog-gt-8k.dts | 118 ap_active: trip-active { 126 trip = <&ap_active>; 130 trip = <&ap_crit>; 139 cp0_active0: trip-active0 { 144 cp0_active1: trip-active1 { 149 cp0_active2: trip-active2 { 154 cp0_active3: trip-active3 { 162 trip = <&cp0_active0>; 166 trip = <&cp0_active1>; 170 trip = <&cp0_active2>; [all …]
|
| /Linux-v5.15/include/linux/ |
| D | thermal.h | 51 THERMAL_TRIP_VIOLATED, /* TRIP Point violation */ 52 THERMAL_TRIP_CHANGED, /* TRIP Point temperature changed */ 111 * @trip_temp_attrs: attributes for trip points for sysfs: trip temperature 112 * @trip_type_attrs: attributes for trip points for sysfs: trip type 113 * @trip_hyst_attrs: attributes for trip points for sysfs: trip hysteresis 116 * @trips: number of trip points the thermal zone supports 121 * checking whether trip points have been crossed (0 for 128 * @passive: 1 if you've crossed a passive trip point, 0 otherwise. 130 trip point. 132 passive trip point. [all …]
|
| /Linux-v5.15/drivers/thermal/samsung/ |
| D | exynos_tmu.c | 166 * @ntrip: number of supported trip points. 168 * @tmu_set_trip_temp: SoC specific method to set trip (rising threshold) 197 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip, 199 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip, 270 "Cannot get trip points from device tree!\n"); in exynos_tmu_initialize() 278 "No CRITICAL trip point defined in device tree!\n"); in exynos_tmu_initialize() 284 "More trip points than supported by this TMU.\n"); in exynos_tmu_initialize() 286 "%d trip points should be configured in polling mode.\n", in exynos_tmu_initialize() 363 int trip, u8 temp) in exynos4210_tmu_set_trip_temp() argument 371 if (trip == 0) { in exynos4210_tmu_set_trip_temp() [all …]
|