Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1822666ybi; Mon, 1 Jul 2019 00:49:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzzcNYI4S6l88B3D7c1/rd58ze8fzzFbkqOQ2fJ0++grFJD6PzFMrQ7qhLvptDs5rnzxDH0 X-Received: by 2002:a17:90a:5207:: with SMTP id v7mr6795116pjh.127.1561967383418; Mon, 01 Jul 2019 00:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561967383; cv=none; d=google.com; s=arc-20160816; b=Pw9J+HUADsxht8p/r9iv6/NGpXd2jPYyrBAXvcRf2a/zry1AKmXzfBIxrOlwGxiG3+ ztmpb7w4A6qv8jsZ7rKJ4976+LQZirq2IJnf7Ez7Jz3N+FCc4favBKAl2ZHjxtHD3pPA dLoQmD/U20BrwHWIFEcQwSyWwWtdoXngOlzuey8GVR8zyAHQ+9qukmKfEnk+irZO9VNx O/txyLmo4oc14zwde4i8z36fpMCS+q8E/SgNnobupJ8A+lNBnxxW2BPPibQXXbFT3Sbk qtvbHMV0VyVDIjGU9POIm/EhU7q4yIIzGNpyYndBwHa/vGw6P84XKMgOT2/BhGEXPb5Y LZfg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=jWE0/jevLytNx6azW0ZEIBkVdaP5CqqQtv12e45lf90=; b=Jh3I2nbygg752BJ5k2J50fuHF38Sp5fg0LWHyUnQ+GCyIA6TMUO/jlPvBidwKzxo23 +jZkn2zwRGkH/YWTE9LuqvRsvwqeoTroDL+4bFfTQyTT5Cr5ogk0+tFa5dQGdUk1qsLk 9ltZHsSdNw+wa4eA8Uxx6vwgEnZD/67qIDlLpZDeTcVi4k8+9Jkz2o7qdmf52BxL1T8X LcsdVCCM74WkSCncvEDVcoFQZrgm54Wo38MhCTvVVMUxM3wSoGDiI4H4YlbEvJtkNBvt 1u2U5apSTiqV5TTKsKjLHAwcp8JrlJjE8/+QYHedMotShn3NMBfwS50KRLzO1Bs0MMHX O4pA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24si9215387pgm.427.2019.07.01.00.49.27; Mon, 01 Jul 2019 00:49:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727678AbfGAGz1 (ORCPT + 99 others); Mon, 1 Jul 2019 02:55:27 -0400 Received: from mga18.intel.com ([134.134.136.126]:53181 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727342AbfGAGz1 (ORCPT ); Mon, 1 Jul 2019 02:55:27 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 30 Jun 2019 23:54:00 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,437,1557212400"; d="scan'208";a="165254980" Received: from hao-dev.bj.intel.com ([10.238.157.65]) by fmsmga007.fm.intel.com with ESMTP; 30 Jun 2019 23:53:58 -0700 From: Wu Hao To: mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-api@vger.kernel.org, linux-hwmon@vger.kernel.org, jdelvare@suse.com, linux@roeck-us.net, atull@kernel.org, gregkh@linuxfoundation.org, Wu Hao Subject: [PATCH v5 0/3] add thermal/power management features for FPGA DFL drivers Date: Mon, 1 Jul 2019 14:37:04 +0800 Message-Id: <1561963027-4213-1-git-send-email-hao.wu@intel.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds thermal and power management features for FPGA DFL drivers. Both patches are using hwmon as userspace interfaces. Main changes from v4: - rebase due to Documentation format change (dfl.txt -> rst). - clamp threshold inputs for sysfs interfaces. (patch#3) - update sysfs doc to add more description for ltr sysfs interfaces. (patch#3) Main changes from v3: - use HWMON_CHANNEL_INFO. Main changes from v2: - switch to standard hwmon APIs for thermal hwmon: temp1_alarm --> temp1_max temp1_alarm_status --> temp1_max_alarm temp1_crit_status --> temp1_crit_alarm temp1_alarm_policy --> temp1_max_policy - switch to standard hwmon APIs for power hwmon: power1_cap --> power1_max power1_cap_status --> power1_max_alarm power1_crit_status --> power1_crit_alarm Please note that this patchset is generated on top of this patchset. [PATCH 0/15] FPGA DFL updates https://lkml.org/lkml/2019/6/27/1088 Wu Hao (2): fpga: dfl: fme: add thermal management support fpga: dfl: fme: add power management support Xu Yilun (1): Documentation: fpga: dfl: add descriptions for thermal/power management interfaces Documentation/ABI/testing/sysfs-platform-dfl-fme | 132 ++++++++ Documentation/fpga/dfl.rst | 10 + drivers/fpga/Kconfig | 2 +- drivers/fpga/dfl-fme-main.c | 403 +++++++++++++++++++++++ 4 files changed, 546 insertions(+), 1 deletion(-) -- 1.8.3.1