Received: by 10.192.165.148 with SMTP id m20csp3756936imm; Mon, 7 May 2018 19:06:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqh2JXBK3C5wWZS8eM1KUIFFLf5sxm75Nz/r5+psRbZlZJrMYyJnt8q9CCw2GbLxa+Tc6x1 X-Received: by 2002:a17:902:2924:: with SMTP id g33-v6mr39871291plb.26.1525745193792; Mon, 07 May 2018 19:06:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525745193; cv=none; d=google.com; s=arc-20160816; b=SnxzFYI3CZA1bo/ksbyL679fCkgNymfQLp28y0HZlJRhA5dM5ZBkEf0loxpP7mVXeQ FeRejII/x84Y3fTAGembg5j2zcjmthuntHbQ5FGGW+8jC5NFTLGqTGkIxjEe11ObQ+Xa 3a3VmwevxXIJiCo2skcv6CIIBSUPhWfjnCBsCQkB/yFnupBKhPXl6+JZYd1TbwBsh1q6 unaW5UPmXCq5UEmfaO6TTphngARl+Yb6ZB+xPfW3Ni5L6p43Hyj5Pps6SD+UxkqahpKs UfkUNxAFiPlZ92IrE6pLa7si9dTeig123I9p6jFqlPfowJ+b9SFVPKbJ74XLol0tBZwZ QNKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :arc-authentication-results; bh=+vJm2qTKWaFXUxHJ6E8Me4vZhg7UB87w/5TvPUHFPHk=; b=HH9VyaJNEr3hyMlS46Gw5XaA7zHSEye5/Y9ZjDyRcZkHZu7jDrnjCqAYEFNd3QaJ2P 9qqzTgBokxoTyNfb4SolIp+Tspd8mbWYtXoINPotCYFqiihcoHLXRyRhNZrpmqXtNvUP AIG+N2N63Ou0KcpX+uwC0z/dgw4vbaQF0uWcdhNFhRIsv0XJEpi4O5yBWM6Fe/BLFgMm eaprya0JZVgwTszWxb5OHnD3UvDrXDZD/tKtul6b1a8BzFwgBDziM3tsowtAk/BMF6PQ 2gZOlsapD4YSDYKhYygDWtefdQl6w/Tn7g5epjYvSH4kxZ/LaiyhJkjmqDGUnAt2+i21 gVog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BAYUJ+iF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l8-v6si4116112pgr.343.2018.05.07.19.06.19; Mon, 07 May 2018 19:06:33 -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; dkim=pass header.i=@linaro.org header.s=google header.b=BAYUJ+iF; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753897AbeEHCFA (ORCPT + 99 others); Mon, 7 May 2018 22:05:00 -0400 Received: from mail-wr0-f182.google.com ([209.85.128.182]:45278 "EHLO mail-wr0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751828AbeEHCE5 (ORCPT ); Mon, 7 May 2018 22:04:57 -0400 Received: by mail-wr0-f182.google.com with SMTP id p5-v6so30562052wre.12 for ; Mon, 07 May 2018 19:04:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=+vJm2qTKWaFXUxHJ6E8Me4vZhg7UB87w/5TvPUHFPHk=; b=BAYUJ+iFt51DWdQN10/qudFESBPlmWOeu2nKPGYtxrtghCraZ6NU1cF0DrXq/Ou/rX kU9405ggJd1bXkaKCTyGvMJr/vJi4gZXUoSA4uJmtHABuS0/9lVxGIXL97DRgMfbHRU0 phNy0CAdappmHVkdEyYpc7iu/tiMCz0xW1M9g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=+vJm2qTKWaFXUxHJ6E8Me4vZhg7UB87w/5TvPUHFPHk=; b=Kbm+DE15Gixk/haVKVSYpH2gMXz1PQe6563C5wZBJHjtQYmXEkrm8qBZYivLU5eCZs LDb8mTWnqqcx+5ruItRrHq7Tm6gQvTuDhJvzbD+7e202awEXUplJbsim9Do/+mOUfHQT oP5HqgFXMVy49MTamSbn9ECTsjgPJH2tg4vDNCA6qOHVhn2GPcZhKzOhuAInaKiWXvPj tnNQhrRbjkSFy289UxmCAwvOsGY6KwkE+mqUAEMDduA4TN9hKA3VKA0uFJ0rltgFL+HP BfgeoJMcTfLbAE9zM2l8VaiAB+zqaCBb7Rv8N/sAQlWbi1NsWa4SsWXTbq+61Gtdb5zy eNVQ== X-Gm-Message-State: ALQs6tCT0h8Hy3vAY3fOX9EoWejrT/RwppnBNo1HSKdj8ITNbUHKGNDx CdsWD103Ec8kSJv9bUBI11SGnQ== X-Received: by 2002:adf:968b:: with SMTP id u11-v6mr32608221wrb.184.1525745096463; Mon, 07 May 2018 19:04:56 -0700 (PDT) Received: from mai ([37.171.158.229]) by smtp.gmail.com with ESMTPSA id i10sm11083749wmf.24.2018.05.07.19.04.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 May 2018 19:04:55 -0700 (PDT) Date: Tue, 8 May 2018 04:04:53 +0200 From: Daniel Lezcano To: Lina Iyer Cc: edubezval@gmail.com, rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Ram Chandrasekar Subject: Re: [PATCH] drivers: thermal: step_wise: add support for hysteresis Message-ID: <20180508020453.GH19313@mai> References: <20180507175408.2154-1-ilina@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180507175408.2154-1-ilina@codeaurora.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 07, 2018 at 11:54:08AM -0600, Lina Iyer wrote: > From: Ram Chandrasekar > > From: Ram Chandrasekar > > Step wise governor increases the mitigation level when the temperature > goes above a threshold and will decrease the mitigation when the > temperature falls below the threshold. If it were a case, where the > temperature hovers around a threshold, the mitigation will be applied > and removed at every iteration. This reaction to the temperature is > inefficient for performance. > > The use of hysteresis temperature could avoid this ping-pong of > mitigation by relaxing the mitigation to happen only when the > temperature goes below this lower hysteresis value. I don't disagree with this but the ping-pong around a temperature is usually avoided with a P-I-D computation which is implemented with the IPA governor. Wouldn't be more interesting to add the power numbers like some other platforms, so the IPA could be used? You will probably have better results with the IPA than changing the step-wise governor behavior (which may potentially impact other users). -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog