Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp1632184ybd; Wed, 26 Jun 2019 22:11:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqz67/4L+vULIfYtAuc8KxZagUB9qvEKiv60x4/40aV/dXSbgaf+AA465yZ2rNf+DkL/G9Iv X-Received: by 2002:a17:902:d915:: with SMTP id c21mr2329823plz.335.1561612269713; Wed, 26 Jun 2019 22:11:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561612269; cv=none; d=google.com; s=arc-20160816; b=JsaN3RZD/7Ie/vw+7gH0uCAQ+FwT7azDivKF0qva0/4kmjNQOEeJZK8wLH9B1MmgnB HtCYawtP2j78iYa2aEyukTHsu8AutOk13+cH0IQTo6xFr3BKroxgHAeBKgBGi/HbPzXH I1nVePZM5CceEqUQn6P7lBNqYLKArv7sbFjGMgQUbsTabDthBYT97XgIvMsETg3lGq2i mBO3o3PN5i66S4MpTmvRI6CYYoY1mK+t39QYZ4fNz2sbXSy0BvNMoG89YDIru3bNXvJo JE/dmPjyl/i2mn0RpzlIac1QlMf6jPJwspZlvb2fzVrGvamStoRWjqz2upFWnZcnGy5J EUDQ== 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=rDN2PsBrts6xHQ/Hmyubr6IuCIYSStizXGbRe100I24=; b=ra3sTumpN8m1ayzQP6aa/F5CgZubsI1PQzLtn3tl8kstJp4lsDywmgWeHc98eLjMAj zoGxYZT6aEwXXiwEsUdza9BY5buWbE327sZ5UJvwBSRK/FrSzADAbpejv5cYq+vlF+fE QmNIh66x3m+304YGcQkxOkUMCnLMRXCPi28WXByolANnFC+cag5SvqeSPilvu7lyOQsg f0zFD27mERKCmIkl/8hc8pWOlJawxdNFCT9q9dgPaHky9yOlK/+VATTQJ1p3w4UnW4Nz FTWXzS8tEK9I65jwL7STmoUmjGYWLiBNkAY5tIbvQA7OKRCMSvvvwgRWxdjUimOWkj7r H79Q== 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 f9si1545896pfd.110.2019.06.26.22.10.41; Wed, 26 Jun 2019 22:11:09 -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 S1727195AbfF0FKg (ORCPT + 99 others); Thu, 27 Jun 2019 01:10:36 -0400 Received: from mga11.intel.com ([192.55.52.93]:23286 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbfF0FKf (ORCPT ); Thu, 27 Jun 2019 01:10:35 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jun 2019 22:10:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.63,422,1557212400"; d="scan'208";a="313672744" Received: from hao-dev.bj.intel.com ([10.238.157.65]) by orsmga004.jf.intel.com with ESMTP; 26 Jun 2019 22:10:32 -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 v4 0/3] add thermal/power management features for FPGA DFL drivers Date: Thu, 27 Jun 2019 12:53:35 +0800 Message-Id: <1561611218-5800-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 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 v4 00/15] add new features for FPGA DFL drivers - https://lkml.org/lkml/2019/6/27/29 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 | 131 ++++++++ Documentation/fpga/dfl.txt | 10 + drivers/fpga/Kconfig | 2 +- drivers/fpga/dfl-fme-main.c | 408 +++++++++++++++++++++++ 4 files changed, 550 insertions(+), 1 deletion(-) -- 1.8.3.1