Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5440524ybe; Tue, 10 Sep 2019 03:50:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqzVrW/n4GfgQX/RnQQIc5ZurhA++slxDkqga/U2LV0LDdIViKhkyPJ0lbf/C8OUzIlmF7SX X-Received: by 2002:a50:ee98:: with SMTP id f24mr21022958edr.52.1568112600256; Tue, 10 Sep 2019 03:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568112600; cv=none; d=google.com; s=arc-20160816; b=Dq53xQSgHPnFH+U0l//b6izTRJnBbD0TQTtGJBBMscWZFOq09y/FqMNZPoxUSwbVdD Iq0aaMpIPQdkibd1vCz5OFGYKuLjSAMoSMkxgdkOiZx+W6XpbvXWeQ70jyDoMtb37TJ1 Z43J001sVYN8OSfLZbcVUOB8ixSth+MKYAYC2cegtc4eLZ1s6o+EGmyj6OvrYK/YqZY6 JHQwJ/09Wal2tzFlDOFBZ7MdIfyVBgXor6RT8zQNiIRbITAGqcTW+0IDnNalkd5U8+z0 TlIzqq1Xrt3ROurhLxQ1RodxupalR1S4cjSn3NhDmdCjXg1LZYISFR5FcVYcsNjoiQ4x VrQg== 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=3FrAF89VkFayQboz4eg8KO58O7Q+x7mTk3DTdKUfdeQ=; b=YKrXQmWWvkYwc73G8nH2RsQVCu1v/veCgtjihyCTkLPekG/RQ8/oGKCzIFAGUxrQSZ evuSVOZcqXyphENif5PdTWDoVqeoDajB+eslyQZi4kuIYy9XACrMW6fvlpQPVhhe/AnA M1cp0/N2LMWds6Lwyr8/UkmQEMTauR4FUVN7T+tR3/QW5lsOYzIXME94byf9TWp7rKDk 8k7BlPWxs1k5RpUAGkAcKU0FuZOxbKtlRYU4qJkt+IyA4x07AvVXBGGnzQbAkt9DhkP9 vjSwIv/GaKdym/xmN2qlni1i/Ew9ugOrAidZL9P6VPVVdub6c0t5ddncJ0jOfHVDZSBa Jdiw== 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 w20si6314079edq.264.2019.09.10.03.49.36; Tue, 10 Sep 2019 03:50:00 -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 S2393259AbfIJGJi (ORCPT + 99 others); Tue, 10 Sep 2019 02:09:38 -0400 Received: from mga02.intel.com ([134.134.136.20]:9595 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730334AbfIJGJh (ORCPT ); Tue, 10 Sep 2019 02:09:37 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Sep 2019 23:09:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,487,1559545200"; d="scan'208";a="175206824" Received: from hao-dev.bj.intel.com ([10.238.157.65]) by orsmga007.jf.intel.com with ESMTP; 09 Sep 2019 23:09:04 -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, linux@roeck-us.net, jdelvare@suse.com, gregkh@linuxfoundation.org, Wu Hao Subject: [PATCH v6 0/3] add thermal/power management features for FPGA DFL drivers Date: Tue, 10 Sep 2019 13:50:37 +0800 Message-Id: <1568094640-4920-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 Hi Mortiz and all, This patchset adds thermal and power management features for FPGA DFL drivers. Both patches are using hwmon as userspace interfaces. As previous dfl patches have been merged, so I resubmit this one after rebase and clean up, as dependency is resolved now. (This patchset is generated against char-misc-next). Please help with review to see if any comments, thank you very much! Main changes from v5: - rebase and clean up (remove empty uinit function) per changes in recent merged dfl patches. - update date in sysfs doc. 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 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 | 134 ++++++++ Documentation/fpga/dfl.rst | 10 + drivers/fpga/Kconfig | 2 +- drivers/fpga/dfl-fme-main.c | 385 +++++++++++++++++++++++ 4 files changed, 530 insertions(+), 1 deletion(-) -- 1.8.3.1