]> asedeno.scripts.mit.edu Git - linux.git/commit
fpga: dfl: fme: add thermal management support
authorWu Hao <hao.wu@intel.com>
Mon, 14 Oct 2019 05:42:02 +0000 (13:42 +0800)
committerMoritz Fischer <mdf@kernel.org>
Thu, 17 Oct 2019 02:18:27 +0000 (19:18 -0700)
commit4284c65a9fda9d31f45209062f1b7f9bb438fc04
tree843062eb4dff213196f3e45fa8e4b39eb348918c
parent214be7470e5fb0f3b1e228df376397c3da17638c
fpga: dfl: fme: add thermal management support

This patch adds support to thermal management private feature for DFL
FPGA Management Engine (FME). This private feature driver registers
a hwmon for thermal/temperature monitoring (hwmon temp1_input).
If hardware automatic throttling is supported by this hardware, then
driver also exposes sysfs interfaces under hwmon for thresholds
(temp1_max/ crit/ emergency), threshold alarms (temp1_max_alarm/
temp1_crit_alarm) and throttling policy (temp1_max_policy).

Signed-off-by: Luwei Kang <luwei.kang@intel.com>
Signed-off-by: Russ Weight <russell.h.weight@intel.com>
Signed-off-by: Xu Yilun <yilun.xu@intel.com>
Signed-off-by: Wu Hao <hao.wu@intel.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Documentation/ABI/testing/sysfs-platform-dfl-fme
drivers/fpga/Kconfig
drivers/fpga/dfl-fme-main.c