From patchwork Mon Jul 1 06:37:04 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wu, Hao" X-Patchwork-Id: 11025123 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5E366746 for ; Mon, 1 Jul 2019 06:55:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E47C284B3 for ; Mon, 1 Jul 2019 06:55:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E7B6284F5; Mon, 1 Jul 2019 06:55:28 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D45A4284B3 for ; Mon, 1 Jul 2019 06:55:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727437AbfGAGz1 (ORCPT ); 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-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-)