Pull thermal updates from Daniel Lezcano: - Add support to enable/disable the thermal zones resulting on core code and drivers cleanup (Andrzej Pietrasiewicz) - Add generic netlink support for userspace notifications: events, temperature and discovery commands (Daniel Lezcano) - Fix redundant initialization for a ret variable (Colin Ian King) - Remove the clock cooling code as it is used nowhere (Amit Kucheria) - Add the rcar_gen3_thermal's r8a774e1 support (Marian-Cristian Rotariu) - Replace all references to thermal.txt in the documentation to the corresponding yaml files (Amit Kucheria) - Add maintainer entry for the IPA (Lukasz Luba) - Add support for MSM8939 for the tsens (Shawn Guo) - Update power allocator and devfreq cooling to SPDX licensing (Lukasz Luba) - Add Cannon Lake Low Power PCH support (Sumeet Pawnikar) - Add tsensor support for V2 mediatek thermal system (Henry Yen) - Fix thermal zone lookup by ID for the core code (Thierry Reding) * tag 'thermal-v5.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/thermal/linux: (40 commits) thermal: intel: intel_pch_thermal: Add Cannon Lake Low Power PCH support thermal: mediatek: Add tsensor support for V2 thermal system thermal: mediatek: Prepare to add support for other platforms thermal: Update power allocator and devfreq cooling to SPDX licensing MAINTAINERS: update entry to thermal governors file name prefixing thermal: core: Add thermal zone enable/disable notification thermal: qcom: tsens-v0_1: Add support for MSM8939 dt-bindings: tsens: qcom: Document MSM8939 compatible thermal: core: Fix thermal zone lookup by ID thermal: int340x: processor_thermal: fix: update Jasper Lake PCI id thermal: imx8mm: Support module autoloading thermal: ti-soc-thermal: Fix reversed condition in ti_thermal_expose_sensor() MAINTAINERS: Add maintenance information for IPA thermal: rcar_gen3_thermal: Do not shadow thcode variable dt-bindings: thermal: Get rid of thermal.txt and replace references thermal: core: Move initialization after core initcall thermal: netlink: Improve the initcall ordering net: genetlink: Move initialization to core_initcall thermal: rcar_gen3_thermal: Add r8a774e1 support thermal/drivers/clock_cooling: Remove clock_cooling code ...
Showing the changes to include/uapi (1 of 75 files). Show all
Unified · Split
| @@ -4,31 +4,86 @@ · 3 unmodified lines | ||
| 4 | 4 | |
| 5 | 5 | #define THERMAL_NAME_LENGTH 20 |
| 6 | 6 | |
| 7 | −/* Adding event notification support elements */ | |
| 8 | −#define THERMAL_GENL_FAMILY_NAME "thermal_event" | |
| 9 | −#define THERMAL_GENL_VERSION 0x01 | |
| 10 | −#define THERMAL_GENL_MCAST_GROUP_NAME "thermal_mc_grp" | |
| 11 | − | |
| 12 | −/* Events supported by Thermal Netlink */ | |
| 13 | −enum events { | |
| 14 | − THERMAL_AUX0, | |
| 15 | − THERMAL_AUX1, | |
| 16 | − THERMAL_CRITICAL, | |
| 17 | − THERMAL_DEV_FAULT, | |
| 7 | +enum thermal_device_mode { | |
| 8 | + THERMAL_DEVICE_DISABLED = 0, | |
| 9 | + THERMAL_DEVICE_ENABLED, | |
| 10 | +}; | |
| 11 | + | |
| 12 | +enum thermal_trip_type { | |
| 13 | + THERMAL_TRIP_ACTIVE = 0, | |
| 14 | + THERMAL_TRIP_PASSIVE, | |
| 15 | + THERMAL_TRIP_HOT, | |
| 16 | + THERMAL_TRIP_CRITICAL, | |
| 18 | 17 | }; |
| 19 | 18 | |
| 20 | −/* attributes of thermal_genl_family */ | |
| 21 | −enum { | |
| 19 | +/* Adding event notification support elements */ | |
| 20 | +#define THERMAL_GENL_FAMILY_NAME "thermal" | |
| 21 | +#define THERMAL_GENL_VERSION 0x01 | |
| 22 | +#define THERMAL_GENL_SAMPLING_GROUP_NAME "sampling" | |
| 23 | +#define THERMAL_GENL_EVENT_GROUP_NAME "event" | |
| 24 | + | |
| 25 | +/* Attributes of thermal_genl_family */ | |
| 26 | +enum thermal_genl_attr { | |
| 22 | 27 | THERMAL_GENL_ATTR_UNSPEC, |
| 23 | − THERMAL_GENL_ATTR_EVENT, | |
| 28 | + THERMAL_GENL_ATTR_TZ, | |
| 29 | + THERMAL_GENL_ATTR_TZ_ID, | |
| 30 | + THERMAL_GENL_ATTR_TZ_TEMP, | |
| 31 | + THERMAL_GENL_ATTR_TZ_TRIP, | |
| 32 | + THERMAL_GENL_ATTR_TZ_TRIP_ID, | |
| 33 | + THERMAL_GENL_ATTR_TZ_TRIP_TYPE, | |
| 34 | + THERMAL_GENL_ATTR_TZ_TRIP_TEMP, | |
| 35 | + THERMAL_GENL_ATTR_TZ_TRIP_HYST, | |
| 36 | + THERMAL_GENL_ATTR_TZ_MODE, | |
| 37 | + THERMAL_GENL_ATTR_TZ_NAME, | |
| 38 | + THERMAL_GENL_ATTR_TZ_CDEV_WEIGHT, | |
| 39 | + THERMAL_GENL_ATTR_TZ_GOV, | |
| 40 | + THERMAL_GENL_ATTR_TZ_GOV_NAME, | |
| 41 | + THERMAL_GENL_ATTR_CDEV, | |
| 42 | + THERMAL_GENL_ATTR_CDEV_ID, | |
| 43 | + THERMAL_GENL_ATTR_CDEV_CUR_STATE, | |
| 44 | + THERMAL_GENL_ATTR_CDEV_MAX_STATE, | |
| 45 | + THERMAL_GENL_ATTR_CDEV_NAME, | |
| 46 | + THERMAL_GENL_ATTR_GOV_NAME, | |
| 47 | + | |
| 24 | 48 | __THERMAL_GENL_ATTR_MAX, |
| 25 | 49 | }; |
| 26 | 50 | #define THERMAL_GENL_ATTR_MAX (__THERMAL_GENL_ATTR_MAX - 1) |
| 27 | 51 | |
| 28 | −/* commands supported by the thermal_genl_family */ | |
| 29 | −enum { | |
| 52 | +enum thermal_genl_sampling { | |
| 53 | + THERMAL_GENL_SAMPLING_TEMP, | |
| 54 | + __THERMAL_GENL_SAMPLING_MAX, | |
| 55 | +}; | |
| 56 | +#define THERMAL_GENL_SAMPLING_MAX (__THERMAL_GENL_SAMPLING_MAX - 1) | |
| 57 | + | |
| 58 | +/* Events of thermal_genl_family */ | |
| 59 | +enum thermal_genl_event { | |
| 60 | + THERMAL_GENL_EVENT_UNSPEC, | |
| 61 | + THERMAL_GENL_EVENT_TZ_CREATE, /* Thermal zone creation */ | |
| 62 | + THERMAL_GENL_EVENT_TZ_DELETE, /* Thermal zone deletion */ | |
| 63 | + THERMAL_GENL_EVENT_TZ_DISABLE, /* Thermal zone disabed */ | |
| 64 | + THERMAL_GENL_EVENT_TZ_ENABLE, /* Thermal zone enabled */ | |
| 65 | + THERMAL_GENL_EVENT_TZ_TRIP_UP, /* Trip point crossed the way up */ | |
| 66 | + THERMAL_GENL_EVENT_TZ_TRIP_DOWN, /* Trip point crossed the way down */ | |
| 67 | + THERMAL_GENL_EVENT_TZ_TRIP_CHANGE, /* Trip point changed */ | |
| 68 | + THERMAL_GENL_EVENT_TZ_TRIP_ADD, /* Trip point added */ | |
| 69 | + THERMAL_GENL_EVENT_TZ_TRIP_DELETE, /* Trip point deleted */ | |
| 70 | + THERMAL_GENL_EVENT_CDEV_ADD, /* Cdev bound to the thermal zone */ | |
| 71 | + THERMAL_GENL_EVENT_CDEV_DELETE, /* Cdev unbound */ | |
| 72 | + THERMAL_GENL_EVENT_CDEV_STATE_UPDATE, /* Cdev state updated */ | |
| 73 | + THERMAL_GENL_EVENT_TZ_GOV_CHANGE, /* Governor policy changed */ | |
| 74 | + __THERMAL_GENL_EVENT_MAX, | |
| 75 | +}; | |
| 76 | +#define THERMAL_GENL_EVENT_MAX (__THERMAL_GENL_EVENT_MAX - 1) | |
| 77 | + | |
| 78 | +/* Commands supported by the thermal_genl_family */ | |
| 79 | +enum thermal_genl_cmd { | |
| 30 | 80 | THERMAL_GENL_CMD_UNSPEC, |
| 31 | − THERMAL_GENL_CMD_EVENT, | |
| 81 | + THERMAL_GENL_CMD_TZ_GET_ID, /* List of thermal zones id */ | |
| 82 | + THERMAL_GENL_CMD_TZ_GET_TRIP, /* List of thermal trips */ | |
| 83 | + THERMAL_GENL_CMD_TZ_GET_TEMP, /* Get the thermal zone temperature */ | |
| 84 | + THERMAL_GENL_CMD_TZ_GET_GOV, /* Get the thermal zone governor */ | |
| 85 | + THERMAL_GENL_CMD_TZ_GET_MODE, /* Get the thermal zone mode */ | |
| 86 | + THERMAL_GENL_CMD_CDEV_GET, /* List of cdev id */ | |
| 32 | 87 | __THERMAL_GENL_CMD_MAX, |
| 33 | 88 | }; |
| 34 | 89 | #define THERMAL_GENL_CMD_MAX (__THERMAL_GENL_CMD_MAX - 1) |