acrn-kernel/drivers/thermal
Srinivas Pandruvada 52f04f10b9 thermal: intel: int340x: processor_thermal: Fix deadlock
When user space updates the trip point there is a deadlock, which results
in caller gets blocked forever.

Commit 05eeee2b51 ("thermal/core: Protect sysfs accesses to thermal
operations with thermal zone mutex"), added a mutex for tz->lock in the
function trip_point_temp_store(). Hence, trip set callback() can't
call any thermal zone API as they are protected with the same mutex lock.

The callback here calling thermal_zone_device_enable(), which will result
in deadlock.

Move the thermal_zone_device_enable() to proc_thermal_pci_probe() to
avoid this deadlock.

Fixes: 05eeee2b51 ("thermal/core: Protect sysfs accesses to thermal operations with thermal zone mutex")
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@intel.com>
Cc: 6.2+ <stable@vger.kernel.org> # 6.2+
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2023-03-03 20:34:49 +01:00
..
broadcom thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
intel thermal: intel: int340x: processor_thermal: Fix deadlock 2023-03-03 20:34:49 +01:00
mediatek thermal/drivers/mediatek: Add the Low Voltage Thermal Sensor driver 2023-02-15 17:28:42 +01:00
qcom ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
samsung thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
st thermal/drivers/st: Remove syscfg based driver 2023-02-15 17:30:04 +01:00
tegra thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
ti-soc-thermal
Kconfig thermal/drivers/mediatek: Relocate driver to mediatek folder 2023-02-15 17:28:25 +01:00
Makefile thermal/drivers/mediatek: Relocate driver to mediatek folder 2023-02-15 17:28:25 +01:00
amlogic_thermal.c thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
armada_thermal.c thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
cpufreq_cooling.c
cpuidle_cooling.c
da9062-thermal.c
db8500_thermal.c
devfreq_cooling.c
dove_thermal.c
gov_bang_bang.c
gov_fair_share.c
gov_power_allocator.c
gov_step_wise.c
gov_user_space.c
hisi_thermal.c thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
imx8mm_thermal.c thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
imx_sc_thermal.c thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
imx_thermal.c
k3_bandgap.c
k3_j72xx_bandgap.c
khadas_mcu_fan.c
kirkwood_thermal.c
max77620_thermal.c
qoriq_thermal.c thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
rcar_gen3_thermal.c thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00
rcar_thermal.c
rockchip_thermal.c
rzg2l_thermal.c
spear_thermal.c
sprd_thermal.c
sun8i_thermal.c
thermal-generic-adc.c
thermal_acpi.c
thermal_core.c thermal: core: Use sysfs_emit_at() instead of scnprintf() 2023-02-09 20:39:48 +01:00
thermal_core.h
thermal_helpers.c
thermal_hwmon.c
thermal_hwmon.h
thermal_mmio.c
thermal_netlink.c
thermal_netlink.h
thermal_of.c
thermal_sysfs.c
thermal_trip.c
uniphier_thermal.c thermal: Remove core header inclusion from drivers 2023-02-15 17:29:48 +01:00