From patchwork Wed Jan 6 08:53:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 59227 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp6449756lbb; Wed, 6 Jan 2016 00:54:35 -0800 (PST) X-Received: by 10.98.2.2 with SMTP id 2mr139350278pfc.13.1452070475438; Wed, 06 Jan 2016 00:54:35 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pk7si315364pac.127.2016.01.06.00.54.35; Wed, 06 Jan 2016 00:54:35 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752531AbcAFIyc (ORCPT + 29 others); Wed, 6 Jan 2016 03:54:32 -0500 Received: from mail-pf0-f177.google.com ([209.85.192.177]:36061 "EHLO mail-pf0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752410AbcAFIy0 (ORCPT ); Wed, 6 Jan 2016 03:54:26 -0500 Received: by mail-pf0-f177.google.com with SMTP id 65so190449661pff.3 for ; Wed, 06 Jan 2016 00:54:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=S+L7ukzqAjdfg/0nJNeK17E/q5e9EgESBrN2/33XtA4=; b=RcXMmQMoRf/IKkitZu0m7fLSTprnLkiR1s50zug62gZL3lc9yTpCNKw6t9jJA+IIxd mDvBm/qfruwHzppIw0djnngNW6p4LOf1sagLDVhO9BE8+uiGxlSXV6A1/PJlziLW13ll 0wYK0aA77W0C73IeUtxA2KrWmuEzTOZrJyHMY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=S+L7ukzqAjdfg/0nJNeK17E/q5e9EgESBrN2/33XtA4=; b=Gi8edq2151Fage5NwdRtUbxd/nE6MrAsJoH3x75/T4yqfdzlcTgHq0fk5PD8HBJgdo 6h89nKaZcCbF96NZRE9MrtuU+C4J/2oHdhYfNeHrbCd/icz2KsR4Qn3MP62l/2pTe2u5 sedHdE07ZUdyyMmszQVRfP+y2jZZixVRFm5dc9FknK4V+A4kyQDHbymDix3Pws1cMnmV A9OhzJjINkRCEMmjkK1S1lNE4qVlkOFI5U8c9jg3uMcyfOuiENnfslNmlnOvxt+qY0cj DkTw5QrsKW8lKGIpa7zxXLcGKaE0SiJ+Ss7g2r2GArRvI+PYhPZ5CNIOpD9SH34wvGay vmrw== X-Gm-Message-State: ALoCoQlxdDqgWeFUva4pCutOr1Q0O6QIyocEUhS9o5dODQ4eYch8J/pZ63DdsaiJrU8nqZb5tDKCTckG0IM3uLOyYapmbgTp7g== X-Received: by 10.98.7.210 with SMTP id 79mr139481983pfh.98.1452070465935; Wed, 06 Jan 2016 00:54:25 -0800 (PST) Received: from localhost.localdomain (v17.blockcn.net. [192.241.236.26]) by smtp.gmail.com with ESMTPSA id ux2sm138843233pac.46.2016.01.06.00.54.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Jan 2016 00:54:24 -0800 (PST) From: Leo Yan To: Jonathan Corbet , Zhang Rui , Eduardo Valentin , Javi Merino , Punit Agrawal , Daniel Kurtz , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Daniel Thompson Cc: Leo Yan Subject: [PATCH v3 4/4] thermal: power_allocator: document k_pu_ratio/k_po_ratio Date: Wed, 6 Jan 2016 16:53:48 +0800 Message-Id: <1452070428-2567-5-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1452070428-2567-1-git-send-email-leo.yan@linaro.org> References: <1452070428-2567-1-git-send-email-leo.yan@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Document k_pu_ratio and k_po_ratio's purpose, and refine formula to demonstrate to use ratio to calculate k_pu/k_po. Signed-off-by: Leo Yan --- Documentation/thermal/power_allocator.txt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/Documentation/thermal/power_allocator.txt b/Documentation/thermal/power_allocator.txt index a1ce223..8958dab 100644 --- a/Documentation/thermal/power_allocator.txt +++ b/Documentation/thermal/power_allocator.txt @@ -114,13 +114,20 @@ whilst temperature is low, and may lead to temperature overshooting. The default value for `k_pu` is: - 2 * sustainable_power / (desired_temperature - switch_on_temp) + k_pu_ratio * sustainable_power / (desired_temperature - switch_on_temp) This means that at `switch_on_temp` the output of the controller's -proportional term will be 2 * `sustainable_power`. The default value -for `k_po` is: +proportional term will be k_pu_ratio * `sustainable_power`. - sustainable_power / (desired_temperature - switch_on_temp) +The default value for `k_po` is: + + k_po_ratio * sustainable_power / (desired_temperature - switch_on_temp) + +k_pu_ratio's default value is 2 and k_po_ratio's default value is 1. +These two vairants mean the ratio value compared against sustainable power, +so smaller ratio will result in thermal slower ramp. User can set these two +ratio value from sys filesystem nodes, finally k_pu and k_po will be +calculated by updated ratio value. Focusing on the proportional and feed forward values of the PID controller equation we have: