| /linux/drivers/thermal/ |
| H A D | gov_step_wise.c | 20 * If the temperature is higher than a trip point, 22 * state for this trip point 24 * for this trip point, but keep the cooling state above the applicable 26 * If the temperature is lower than a trip point, 29 * cooling state for this trip point, or if the cooling state already 84 const struct thermal_trip *trip = &td->trip; in thermal_zone_trip_update() local 85 enum thermal_trend trend = get_tz_trend(tz, trip); in thermal_zone_trip_update() 86 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_zone_trip_update() 90 trace_thermal_zone_trip(tz, trip_id, trip->type); in thermal_zone_trip_update() 92 dev_dbg(&tz->device, "Trip%d[type=%d,temp=%d]:trend=%d,throttle=%d\n", in thermal_zone_trip_update() [all …]
|
| H A D | thermal_debugfs.c | 87 * struct trip_stats - Thermal trip statistics 90 * statistics related to temperature going above a trip point. 92 * @timestamp: the trip crossing timestamp 93 * @duration: total time when the zone temperature was above the trip point 94 * @trip_temp: trip temperature at mitigation start 95 * @trip_hyst: trip hysteresis at mitigation start 96 * @count: the number of times the zone temperature was above the trip point 97 * @min: minimum recorded temperature above the trip point 98 * @avg: average temperature above the trip point 114 * mitigation episode begins the trip point with the lower temperature [all …]
|
| H A D | thermal_core.c | 233 if (td->trip.type == THERMAL_TRIP_CRITICAL && in thermal_zone_broken_disable() 234 td->trip.temperature > THERMAL_TEMP_INVALID) { in thermal_zone_broken_disable() 236 "Disabled thermal zone with critical trip point\n"); in thermal_zone_broken_disable() 250 * - Critical trip point will cause a system shutdown. 346 const struct thermal_trip *trip) in handle_critical_trips() argument 348 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips() 350 if (trip->type == THERMAL_TRIP_CRITICAL) in handle_critical_trips() 380 td->threshold = td->trip.temperature; in move_to_trips_high() 387 td->threshold = td->trip in move_to_trips_reached() 400 thermal_governor_trip_crossed(struct thermal_governor * governor,struct thermal_zone_device * tz,const struct thermal_trip * trip,bool upward) thermal_governor_trip_crossed() argument 415 const struct thermal_trip *trip = &td->trip; thermal_trip_crossed() local 438 thermal_zone_set_trip_hyst(struct thermal_zone_device * tz,struct thermal_trip * trip,int hyst) thermal_zone_set_trip_hyst() argument 455 thermal_zone_set_trip_temp(struct thermal_zone_device * tz,struct thermal_trip * trip,int temp) thermal_zone_set_trip_temp() argument 1278 const struct thermal_trip *trip = &td->trip; thermal_zone_get_crit_temp() local 1416 const struct thermal_trip *trip = trips; thermal_zone_device_register_with_trips() local [all...] |
| H A D | thermal_sysfs.c | 90 &td->trip; \ 97 struct thermal_trip *trip = thermal_trip_of_attr(attr, type); in trip_point_type_show() local 99 return sysfs_emit(buf, "%s\n", thermal_trip_type_name(trip->type)); in trip_point_type_show() 106 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_store() local 115 if (temp == trip->temperature) in trip_point_temp_store() 120 temp <= trip->hysteresis + THERMAL_TEMP_INVALID) in trip_point_temp_store() 126 ret = tz->ops.set_trip_temp(tz, trip, temp); in trip_point_temp_store() 131 thermal_zone_set_trip_temp(tz, trip, temp); in trip_point_temp_store() 142 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_show() local 144 return sysfs_emit(buf, "%d\n", READ_ONCE(trip in trip_point_temp_show() 151 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); trip_point_hyst_store() local 188 struct thermal_trip *trip = thermal_trip_of_attr(attr, hyst); trip_point_hyst_show() local [all...] |
| H A D | thermal_of.c | 25 * into the device tree binding of 'trip', property type. 37 * @type: Pointer to resulting trip type 39 * The function gets trip type string from property 'type', 64 struct thermal_trip *trip) in thermal_of_populate_trip() argument 75 trip->temperature = temperature; in thermal_of_populate_trip() 82 trip->hysteresis = hysteresis; in thermal_of_populate_trip() 84 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip() 86 pr_err("wrong trip type property\n"); in thermal_of_populate_trip() 90 trip->flags = THERMAL_TRIP_FLAG_RW_TEMP; in thermal_of_populate_trip() 92 trip in thermal_of_populate_trip() 296 thermal_of_cm_lookup(struct device_node * cm_np,const struct thermal_trip * trip,struct thermal_cooling_device * cdev,struct cooling_spec * c) thermal_of_cm_lookup() argument 324 thermal_of_should_bind(struct thermal_zone_device * tz,const struct thermal_trip * trip,struct thermal_cooling_device * cdev,struct cooling_spec * c) thermal_of_should_bind() argument [all...] |
| H A D | thermal_helpers.c | 25 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip) in get_tz_trend() argument 30 tz->ops.get_trend(tz, trip, &trend)) { in get_tz_trend() 44 const struct thermal_trip *trip) in thermal_instance_present() argument 46 const struct thermal_trip_desc *td = trip_to_trip_desc(trip); in thermal_instance_present() 58 const struct thermal_trip *trip, in thermal_trip_is_bound_to_cdev() argument 64 return thermal_instance_present(tz, cdev, trip); in thermal_trip_is_bound_to_cdev() 94 const struct thermal_trip *trip = &td->trip; in __thermal_zone_get_temp() local 96 if (trip->type == THERMAL_TRIP_CRITICAL) { in __thermal_zone_get_temp() 97 crit_temp = trip->temperature; in __thermal_zone_get_temp()
|
| H A D | gov_power_allocator.c | 75 * @trip_switch_on: first passive trip point of the thermal zone. The 76 * governor switches on when this trip point is crossed. 77 * If the thermal zone only has one passive trip point, 79 * @trip_max: last passive trip point of the thermal zone. The 143 * @trip_switch_on: trip point for the switch on temperature 164 * passive trip points at the same temperature, that person in estimate_pid_constants() 486 * get_governor_trips() - get the two trip points that are key for this governor 491 * a "switch on" trip point and a "maximum desired temperature". These 492 * are defined as the first and last passive trip points. 494 * If there is only one trip poin 509 const struct thermal_trip *trip = &td->trip; get_governor_trips() local 775 const struct thermal_trip *trip = params->trip_switch_on; power_allocator_manage() local [all...] |
| H A D | thermal_trip.c | 35 ret = cb(&td->trip, data); in for_each_thermal_trip() 63 /* No need to change trip points */ in thermal_zone_set_trips() 83 const struct thermal_trip *trip) in thermal_zone_trip_id() argument 86 * Assume the trip to be located within the bounds of the thermal in thermal_zone_trip_id() 89 return trip_to_trip_desc(trip) - tz->trips; in thermal_zone_trip_id()
|
| H A D | thermal_debugfs.h | 12 const struct thermal_trip *trip); 14 const struct thermal_trip *trip); 26 const struct thermal_trip *trip) {}; in thermal_debug_tz_trip_up() argument 28 const struct thermal_trip *trip) {} in thermal_debug_tz_trip_down() argument
|
| /linux/arch/arm/boot/dts/samsung/ |
| H A D | exynos5422-odroidxu3-common.dtsi | 94 trip = <&cpu0_alert0>; 98 trip = <&cpu0_alert1>; 102 trip = <&cpu0_alert2>; 111 trip = <&cpu0_alert3>; 127 trip = <&cpu0_alert4>; 177 trip = <&cpu1_alert0>; 181 trip = <&cpu1_alert1>; 185 trip = <&cpu1_alert2>; 189 trip = <&cpu1_alert3>; 200 trip = <&cpu1_alert4>; [all …]
|
| H A D | exynos5422-odroidhc1.dts | 60 trip = <&cpu0_alert0>; 76 trip = <&cpu0_alert1>; 109 trip = <&cpu1_alert0>; 120 trip = <&cpu1_alert1>; 153 trip = <&cpu2_alert0>; 164 trip = <&cpu2_alert1>; 197 trip = <&cpu3_alert0>; 208 trip = <&cpu3_alert1>; 241 trip = <&gpu_alert0>; 245 trip = <&gpu_alert1>;
|
| /linux/drivers/thermal/broadcom/ |
| H A D | brcmstb_thermal.c | 69 /* HW bit to enable the trip */ 73 /* HW field to read the trip temperature */ 176 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local 177 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() 179 dev_dbg(priv->dev, "%sable trip, type %d\n", en ? "en" : "dis", type); in avs_tmon_trip_enable() 182 val |= trip->enable_mask; in avs_tmon_trip_enable() 184 val &= ~trip->enable_mask; in avs_tmon_trip_enable() 186 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() 192 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local 193 u32 val = __raw_readl(priv->tmon_base + trip in avs_tmon_get_trip_temp() 205 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; avs_tmon_set_trip_temp() local [all...] |
| /linux/arch/arm64/boot/dts/marvell/ |
| H A 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/drivers/thermal/testing/ |
| H A D | zone.c | 28 * @trips: List of trip point templates for this thermal zone template. 32 * @ida: IDA for trip point IDs. 36 * @num_trips: Number of trip points in the @trips list. 56 * struct tt_trip - Testing trip point template 58 * Represents a template of a trip point to be used for populating a trip point 61 * @list_node: Node in the list of all trip templates in the zone template. 62 * @trip: Trip point data to use for thernal zone registration. 63 * @id: The ID of this trip template for the debugfs interface. 67 struct thermal_trip trip; member 318 &tt_trip->trip.temperature, &tt_int_attr); in tt_zone_add_trip_work_fn() [all …]
|
| H A D | command.c | 29 * The thermal zone template can be populated with trip points with the help of 34 * which causes a trip point template to be added to the test thermal zone 40 * The temperature of a trip point template is initially THERMAL_TEMP_INVALID 42 * "trip_x_temp" and "trip_x_hyst" files correspoinding to that trip point 57 * thermal zone and the set of trip point templates associated with it is used 58 * for populating the new thermal zone's trip points table. The type of the new 61 * The temperature and hysteresis of all of the trip points in that new thermal 71 * core, including checking its trip points, sending notifications to user space
|
| /linux/drivers/acpi/ |
| H A D | thermal_lib.c | 6 * Library routines for retrieving trip point temperature values from the 90 * thermal_acpi_active_trip_temp - Retrieve active trip point temperature 96 * the temperature of the active cooling trip point corresponding to the active 111 * thermal_acpi_passive_trip_temp - Retrieve passive trip point temperature 116 * the temperature of the passive cooling trip point. 130 * thermal_acpi_hot_trip_temp - Retrieve hot trip point temperature 135 * the temperature of the trip point at which the system is expected to be put 150 * thermal_acpi_critical_trip_temp - Retrieve critical trip point temperature 155 * the temperature of the critical cooling trip point.
|
| /linux/drivers/thermal/intel/ |
| H A D | intel_quark_dts_thermal.c | 82 /* Programmable Trip Point Register is configured via QRK_MBI_UNIT_RMU */ 94 /* Quark DTS has 2 trip points: hot & catastrophic */ 111 "Polling interval for checking trip points (in milliseconds)"); 172 static int get_trip_temp(int trip) in get_trip_temp() argument 186 * Thermal Sensor Programmable Trip Point Register has 8-bit in get_trip_temp() 187 * fields for critical (catastrophic) and hot set trip point in get_trip_temp() 191 temp = (out >> (trip * QRK_DTS_SHIFT_TP)) & QRK_DTS_MASK_TP_THRES; in get_trip_temp() 217 * Protection against unsafe trip point thresdhold value. in update_trip_temp() 219 * regarding the safe trip point threshold value to use, we choose in update_trip_temp() 226 * Thermal Sensor Programmable Trip Point Register has 8-bit in update_trip_temp() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-class-thermal | 31 trip points so that user application can take full 51 The temperature above which trip point will be fired. 59 Strings which indicate the type of the trip point. 68 The hysteresis value for a trip point, represented as an 84 The trip point in this thermal zone which `cdev[0-*]` is 86 associated with any trip point. 142 temperature" trip point. For more information see 152 temperature" trip point. For more information see 159 Temperature offset from the desired temperature trip point 164 temperature trip point. For more information see
|
| /linux/drivers/thermal/qcom/ |
| H A D | Kconfig | 8 up in Sysfs as a thermal zone with multiple trip points. Disabling the 20 device. It shows up as a thermal zone with multiple trip points. 35 interrupts are forwarded to the thermal framework as trip-violation 36 events. Current support handles a single LVL1 upper (hot) trip. 43 monitoring device. It shows up as a thermal zone with multiple trip points. 54 trip points. The temperature reported by the thermal sensor reflects the
|
| /linux/tools/thermal/tmon/ |
| H A D | tmon.8 | 24 - show trip point binding within each thermal zone 25 - show trip point and cooling device instance bindings 28 - show temperature of all thermal zones w.r.t. its trip points and types 39 zones, and trip points. Can be used for data collection in remote 69 \fBP \fP passive cooling trip point type 70 \fBA \fP active cooling trip point type (fan) 71 \fBC \fP critical trip point type 72 \fBA \fP hot trip point type
|
| H A D | sysfs.c | 121 /* scan and fill in trip point info for a thermal zone and trip point id */ 130 /* check trip point type */ in get_trip_point_data() 165 /* Find trip point info of a thermal zone */ 174 /* check if trip point temp is non-zero in find_tzone_tp() 175 * ignore 0/invalid trip points in find_tzone_tp() 180 /* found a valid trip point */ in find_tzone_tp() 182 syslog(LOG_DEBUG, "tzone %s trip %d temp %lu tpnode %s", in find_tzone_tp() 228 /* find the trip point in which the cdev is bound to in find_tzone_cdev() 235 /* validate trip poin in find_tzone_cdev() [all...] |
| /linux/Documentation/driver-api/thermal/ |
| H A D | x86_pkg_temperature_thermal.rst | 23 zone with maximum two user mode configurable trip points. Number of trip points 24 depends on the capability of the package. Once the trip point is violated, 37 This contains two trip points: 46 Any value other than 0 in these trip points, can trigger thermal notifications.
|
| H A D | power_allocator.rst | 5 Trip points 8 The governor works optimally with the following two passive trip points: 10 1. "switch on" trip point: temperature above which the governor 11 control loop starts operating. This is the first passive trip 14 2. "desired temperature" trip point: it should be higher than the 15 "switch on" trip point. This the target temperature the governor 16 is controlling for. This is the last passive trip point of the 107 above "desired temperature" trip point). Conversely, `k_pu` is the 109 (current temperature below "desired temperature" trip point).
|
| /linux/include/uapi/linux/ |
| H A D | thermal.h | 74 THERMAL_GENL_EVENT_TZ_TRIP_UP, /* Trip point crossed the way up */ 75 THERMAL_GENL_EVENT_TZ_TRIP_DOWN, /* Trip point crossed the way down */ 76 THERMAL_GENL_EVENT_TZ_TRIP_CHANGE, /* Trip point changed */ 77 THERMAL_GENL_EVENT_TZ_TRIP_ADD, /* Trip point added */ 78 THERMAL_GENL_EVENT_TZ_TRIP_DELETE, /* Trip point deleted */
|
| /linux/drivers/thermal/intel/int340x_thermal/ |
| H A D | int340x_thermal_zone.c | 46 const struct thermal_trip *trip, int temp) in int340x_thermal_set_trip_temp() 49 unsigned int trip_index = THERMAL_TRIP_PRIV_TO_INT(trip->priv); in int340x_thermal_set_trip_temp() 204 static int int340x_update_one_trip(struct thermal_trip *trip, void *arg) in int340x_update_one_trip() 210 switch (trip->type) { in int340x_update_one_trip() 222 THERMAL_TRIP_PRIV_TO_INT(trip->priv), in int340x_update_one_trip() 231 thermal_zone_set_trip_temp(int34x_zone->zone, trip, temp); 42 int340x_thermal_set_trip_temp(struct thermal_zone_device * zone,const struct thermal_trip * trip,int temp) int340x_thermal_set_trip_temp() argument 200 int340x_update_one_trip(struct thermal_trip * trip,void * arg) int340x_update_one_trip() argument
|