/linux-6.14.4/drivers/thermal/ |
D | gov_bang_bang.c | 46 * Enable the fan when the trip is crossed on the way up and disable it in bang_bang_set_instance_target() 47 * when the trip is crossed on the way down. in bang_bang_set_instance_target() 60 * @trip: the trip point 61 * @upward: whether or not the trip has been crossed on the way up 64 const struct thermal_trip *trip, in bang_bang_trip_crossed() argument 67 const struct thermal_trip_desc *td = trip_to_trip_desc(trip); in bang_bang_trip_crossed() 72 dev_dbg(&tz->device, "Trip%d[temp=%d]:temp=%d:hyst=%d\n", in bang_bang_trip_crossed() 73 thermal_zone_trip_id(tz, trip), trip->temperature, in bang_bang_trip_crossed() 74 tz->temperature, trip->hysteresis); in bang_bang_trip_crossed() 90 const struct thermal_trip *trip = &td->trip; in bang_bang_manage() local [all …]
|
D | gov_step_wise.c | 20 * If the temperature is higher than a trip point, 22 * state for this trip point 24 * If the temperature is lower than a trip point, 27 * state for this trip point, if the cooling state already 72 const struct thermal_trip *trip = &td->trip; in thermal_zone_trip_update() local 73 enum thermal_trend trend = get_tz_trend(tz, trip); in thermal_zone_trip_update() 74 int trip_id = thermal_zone_trip_id(tz, trip); in thermal_zone_trip_update() 80 trace_thermal_zone_trip(tz, trip_id, trip->type); in thermal_zone_trip_update() 83 dev_dbg(&tz->device, "Trip%d[type=%d,temp=%d]:trend=%d,throttle=%d\n", in thermal_zone_trip_update() 84 trip_id, trip->type, trip_threshold, trend, throttle); in thermal_zone_trip_update() [all …]
|
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 …]
|
D | Kconfig | 12 Each thermal zone contains its own temperature, trip points, 26 trip point crossed, cooling device update or governor 49 with trip points in order to exercise the thermal core 61 poweroff kicks in. Similarly to the critical trip point, 121 The Userspace governor allows to get trip point crossed 139 devices one step at the time, taking into account the trip 237 user can manually input temperature and test the different trip 264 CPUs when the passive trip is crossed. 274 It supports one critical trip point and one passive trip point. The 276 passive trip is crossed. [all …]
|
D | thermal_core.h | 32 struct thermal_trip trip; member 47 * @trip_crossed: called for trip points that have just been crossed 58 const struct thermal_trip *trip, 85 * @num_trips: number of trip points the thermal zone supports 89 * checking whether trip points have been crossed (0 for 98 * @passive: 1 if you've crossed a passive trip point, 0 otherwise. 100 trip point. 102 passive trip point. 226 int get_tz_trend(struct thermal_zone_device *tz, const struct thermal_trip *trip); 230 * a certain cooling device on a certain trip point [all …]
|
D | thermal_core.c | 291 if (td->trip.type == THERMAL_TRIP_CRITICAL && in thermal_zone_broken_disable() 292 td->trip.temperature > THERMAL_TEMP_INVALID) { in thermal_zone_broken_disable() 294 "Disabled thermal zone with critical trip point\n"); in thermal_zone_broken_disable() 308 * - Critical trip point will cause a system shutdown. 401 const struct thermal_trip *trip) in handle_critical_trips() argument 403 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, trip), trip->type); in handle_critical_trips() 405 if (trip->type == THERMAL_TRIP_CRITICAL) in handle_critical_trips() 435 td->threshold = td->trip.temperature; in move_to_trips_high() 442 td->threshold = td->trip.temperature - td->trip.hysteresis; in move_to_trips_reached() 455 const struct thermal_trip *trip, in thermal_governor_trip_crossed() argument [all …]
|
D | gov_fair_share.c | 38 trace_thermal_zone_trip(tz, thermal_zone_trip_id(tz, &level_td->trip), in get_trip_level() 39 level_td->trip.type); in get_trip_level() 47 * @td: trip point descriptor 59 * We do not want to throttle too much when we trip a lower temperature, 60 * whereas the throttling is at full swing if we trip critical levels. 104 const struct thermal_trip *trip = &td->trip; in fair_share_manage() local 106 if (trip->temperature == THERMAL_TEMP_INVALID || in fair_share_manage() 107 trip->type == THERMAL_TRIP_CRITICAL || in fair_share_manage() 108 trip->type == THERMAL_TRIP_HOT) in fair_share_manage()
|
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 74 trip->temperature = prop; in thermal_of_populate_trip() 81 trip->hysteresis = prop; in thermal_of_populate_trip() 83 ret = thermal_of_get_trip_type(np, &trip->type); in thermal_of_populate_trip() 85 pr_err("wrong trip type property\n"); in thermal_of_populate_trip() 89 trip->flags = THERMAL_TRIP_FLAG_RW_TEMP; in thermal_of_populate_trip() 91 trip->priv = np; in thermal_of_populate_trip() [all …]
|
D | gov_user_space.c | 26 * user_space_trip_crossed - Notify user space about trip crossing events 28 * @trip: trip point 29 * @upward: whether or not the trip has been crossed on the way up 34 const struct thermal_trip *trip, in user_space_trip_crossed() argument 44 thermal_prop[2] = kasprintf(GFP_KERNEL, "TRIP=%d", in user_space_trip_crossed() 45 thermal_zone_trip_id(tz, trip)); in user_space_trip_crossed()
|
D | thermal_sysfs.c | 88 &td->trip; \ 95 struct thermal_trip *trip = thermal_trip_of_attr(attr, type); in trip_point_type_show() local 97 return sprintf(buf, "%s\n", thermal_trip_type_name(trip->type)); in trip_point_type_show() 104 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_store() local 113 if (temp == trip->temperature) in trip_point_temp_store() 118 temp <= trip->hysteresis + THERMAL_TEMP_INVALID) in trip_point_temp_store() 124 ret = tz->ops.set_trip_temp(tz, trip, temp); in trip_point_temp_store() 129 thermal_zone_set_trip_temp(tz, trip, temp); in trip_point_temp_store() 140 struct thermal_trip *trip = thermal_trip_of_attr(attr, temp); in trip_point_temp_show() local 142 return sprintf(buf, "%d\n", READ_ONCE(trip->temperature)); in trip_point_temp_show() [all …]
|
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()
|
/linux-6.14.4/drivers/acpi/ |
D | thermal.c | 54 * 1.An invalid trip point becomes invalid or a valid trip point becomes invalid 62 "ACPI thermal trip point %s changed\n" \ 68 MODULE_PARM_DESC(act, "Disable or override all lowest active trip points."); 72 MODULE_PARM_DESC(crt, "Disable or lower all critical trip points."); 84 MODULE_PARM_DESC(psv, "Disable or override all passive trip points."); 94 struct acpi_thermal_trip trip; member 101 struct acpi_thermal_trip trip; member 194 active = container_of(acpi_trip, struct acpi_thermal_active, trip); in active_trip_index() 229 const struct thermal_trip *trip) in acpi_thermal_update_trip() argument 231 struct acpi_thermal_trip *acpi_trip = trip->priv; in acpi_thermal_update_trip() [all …]
|
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-6.14.4/Documentation/devicetree/bindings/thermal/ |
D | thermal-zones.yaml | 35 max dT/dt, such that a device does not cross several trip boundaries 60 this zone, one sub-node containing the various trip points for this 143 An integer expressing the trip temperature in millicelsius. 149 respect to the trip temperature property above, also in 152 (trip temperature - hysteresis). This potentially prevents a 153 situation where the trip gets constantly triggered soon after 164 There are four valid trip types: active, passive, hot, 167 The critical trip type is used to set the maximum 173 The hot trip type can be used to send a notification to 177 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-6.14.4/arch/arm/boot/dts/samsung/ |
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 …]
|
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-6.14.4/drivers/thermal/broadcom/ |
D | brcmstb_thermal.c | 68 /* HW bit to enable the trip */ 72 /* HW field to read the trip temperature */ 178 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_trip_enable() local 179 u32 val = __raw_readl(priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() 181 dev_dbg(priv->dev, "%sable trip, type %d\n", en ? "en" : "dis", type); in avs_tmon_trip_enable() 184 val |= trip->enable_mask; in avs_tmon_trip_enable() 186 val &= ~trip->enable_mask; in avs_tmon_trip_enable() 188 __raw_writel(val, priv->tmon_base + trip->enable_offs); in avs_tmon_trip_enable() 194 struct avs_tmon_trip *trip = &avs_tmon_trips[type]; in avs_tmon_get_trip_temp() local 195 u32 val = __raw_readl(priv->tmon_base + trip->reg_offs); in avs_tmon_get_trip_temp() [all …]
|
/linux-6.14.4/drivers/thermal/intel/ |
D | Kconfig | 31 two trip points which can be set by user to get notifications via thermal 53 thermal zone. There are two trip points. One of the trip point can 55 notification methods.The other trip is a critical trip point, which 64 The DTS will be registered as a thermal zone. There are two trip points: 65 hot & critical. The critical trip point default value is set by 80 the alert trip point interrupts and notifies the thermal framework with 81 the trip point and temperature details of the zone. 90 programmable trip points and other information.
|
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-6.14.4/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-6.14.4/drivers/thermal/testing/ |
D | zone.c | 29 * @trips: List of trip point templates for this thermal zone template. 33 * @ida: IDA for trip point IDs. 37 * @num_trips: Number of trip points in the @trips list. 57 * struct tt_trip - Testing trip point template 59 * Represents a template of a trip point to be used for populating a trip point 62 * @list_node: Node in the list of all trip templates in the zone template. 63 * @trip: Trip point data to use for thernal zone registration. 64 * @id: The ID of this trip template for the debugfs interface. 68 struct thermal_trip trip; member 322 &tt_trip->trip.temperature, &tt_int_attr); in tt_zone_add_trip_work_fn() [all …]
|
/linux-6.14.4/Documentation/ABI/testing/ |
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-6.14.4/Documentation/driver-api/thermal/ |
D | sysfs-api.rst | 25 inputs from thermal zone attributes (the current temperature and trip point 55 the table of trip points for this thermal zone. 63 a given trip point in this thermal zone. 67 set the trip points window. Whenever the current temperature 68 is updated, the trip points immediately below and above the 73 set the temperature of a given trip point. 82 hot trip point crossing handler. 84 critical trip point crossing handler. 92 whether trip points have been crossed (0 for interrupt driven systems). 290 |---trip_point_[0-*]_temp: Trip point temperature [all …]
|
/linux-6.14.4/tools/thermal/tmon/ |
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
|