Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp807294ybh; Wed, 15 Jul 2020 16:14:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaSxygALFbZ010kErPq6WsjIQmoCAQQepIFLoOlN9cL/wNVPG6MYntvSfvQGJQWAptsost X-Received: by 2002:a50:fc97:: with SMTP id f23mr1816094edq.255.1594854851316; Wed, 15 Jul 2020 16:14:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594854851; cv=none; d=google.com; s=arc-20160816; b=tJ/jo9vkNZrXtRE0yHBAwOQhw4KIlHEOln3MGaYj3nSWRfm/l1fudKyMogE9wrSW4C a/DAn3fNWDZ/TkpYodHlTwF+B+mdHzc1ngVf0Unx3XJRbk9pJhD9uo84s6zZZFjVaEeI 0Ztyn2P9TS1RZpvLTxSFuUsJbDysDJXFX+r+Ysoxi0By5UrrZkrO831Z0duHHvCSygnO 1t9oup48lDd8g66CMTDNTbKyHpBzBzmoYg+iBwbX/qd7xoj8XhZvU4lh8Mz1LRmWwIeH e+qP3BD5b7zEaXRk/8en4ykLQ1SUroNoHoT5YT7oFkAjNZkOGJHyz6uNyrOOcx+LU5Ux yQyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=vAehlSiMXOBCPl2Wze087kwOurzcuZOvn7IQRZzFikA=; b=Sj+HmIqhnq6w0qov+LAREy9V8dXkcfvuW+F1mmz5ufAagHduxjx0qOEgg/3aIBopKS joufXNRwMHwY22SPNs35HWFQP7q9mU6Yj99fdBuRjsEUOL4nQcjmQRgp/702XRp+vn4l OUwKgM/Ah9D+RWL4Yt8lRUrq7hlzRDhHcGq9le63tNX9buVq9mHBp8tyHm0gV8CPFTuh g4OAB1a18eL18IP/qq2T+7YcF7Yy/VZvIH3fiXlvzwm5m7UHXpVU8tutDY30PjDEGQcb jZcgkS0vaDx05TRnO1pPcBvLTMFluRZ8ecEGs82ywW9P6hqFmp9cTCzpUiB7yr6QoCeM upqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JiuD8YFq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id dh22si2080393edb.38.2020.07.15.16.13.48; Wed, 15 Jul 2020 16:14:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JiuD8YFq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726908AbgGOXNL (ORCPT + 99 others); Wed, 15 Jul 2020 19:13:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726776AbgGOXNL (ORCPT ); Wed, 15 Jul 2020 19:13:11 -0400 Received: from mail-qk1-x743.google.com (mail-qk1-x743.google.com [IPv6:2607:f8b0:4864:20::743]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27C48C08C5DB for ; Wed, 15 Jul 2020 16:13:11 -0700 (PDT) Received: by mail-qk1-x743.google.com with SMTP id 80so3681929qko.7 for ; Wed, 15 Jul 2020 16:13:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=vAehlSiMXOBCPl2Wze087kwOurzcuZOvn7IQRZzFikA=; b=JiuD8YFqFvnmHOANaz54QgP0xf5g9vCr6TrkO7SwhU4atcBVlXcC9PAv+zepmyi7io El06x5r7w14+Ax+DURpDvK4pIPmZPSrfc8xb0unaS3EpJl8p96f4tx5PVGgThhzrblfF QFyHm1DiRVQAgEGdBjWowRsR0lhPVCj1tueD3q82qLTWkgCJPro08Jp7Y2xc2vZPH9zN yJ0EDiSov7q0EwN6K81zJY9XwzdVpF4VkSt2nQ0z+fll5dBolw2RAKxL0Pqbk4YV2+5D Z3hve+BvRo9I1Rlwg53Xa92dBr/wLgAg5UN89r7LhHFK4oJAbWMHcAcUzdiv5N8xPlWJ FcQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=vAehlSiMXOBCPl2Wze087kwOurzcuZOvn7IQRZzFikA=; b=sZ7J8hbOu6jdOWJ0I5BTZlaX0D0ksEkZqvauBtFLvkkziKWl+99tNNOkg7kxGxNWqO cKpoe1IJd54jTBEt/FrCIhOXjNSlUoZ8kEnH6Ho83oVJLU8PDi7ndtVbIaDJ1MKzf7p9 auAEcdBcn4rmB7aGjK4yWlA9QLvR1zAp+EPdjcg7KzCyTG5tzKED0zN7w0ijnnbklzGb DJJtiXPym/y/BCUSXduYlUtP/tTsI7nFiwKynvCse9YTTud8E5w5ifWXx64e9dMqeCat LaHaPooeZR/XtrvlzCIFO/SbN2HjFZv0D4lus7gPKsbG4DJh/QuAh4ErIPohCywMzvLP pUJg== X-Gm-Message-State: AOAM533NjKpVHAqiZeg7DrTpReyaufv+i+rllO3l5YUDyesGvjFyxQ6n xWnoA4U13ecNYHuRkHUKujRsStys3Jw= X-Received: by 2002:a37:b58:: with SMTP id 85mr1435240qkl.26.1594854789870; Wed, 15 Jul 2020 16:13:09 -0700 (PDT) Received: from [192.168.1.92] (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.gmail.com with ESMTPSA id v28sm4059355qkv.31.2020.07.15.16.13.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 15 Jul 2020 16:13:08 -0700 (PDT) Subject: Re: [RFC PATCH 4/4] thermal: Modify thermal governors to do nothing for "cold" trip points To: Zhang Rui , daniel.lezcano@linaro.org, robh+dt@kernel.org Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200710135154.181454-1-thara.gopinath@linaro.org> <20200710135154.181454-5-thara.gopinath@linaro.org> From: Thara Gopinath Message-ID: <5c9eec96-79b6-3499-fe06-7312504ffc4a@linaro.org> Date: Wed, 15 Jul 2020 19:13:08 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/15/20 4:35 AM, Zhang Rui wrote: > On Fri, 2020-07-10 at 09:51 -0400, Thara Gopinath wrote: >> For now, thermal governors do not support monitoring of falling >> temperature. Hence, in case of calls to the governor for trip points >> marked >> as cold, return doing nothing. >> >> Signed-off-by: Thara Gopinath >> --- >> drivers/thermal/gov_bang_bang.c | 8 ++++++++ >> drivers/thermal/gov_fair_share.c | 8 ++++++++ >> drivers/thermal/gov_power_allocator.c | 8 ++++++++ >> drivers/thermal/gov_step_wise.c | 8 ++++++++ >> 4 files changed, 32 insertions(+) > > userspace governor does not support cold trip point neither. > > So how about adding the check in handle_non_critical_trips first, and > remove the check later, after all the governors support cold trip? Yeah, no governors support cold trip for now. Putting check in handle_non_critical_trips is another way to handle this. I can do it and come back to this solution when one or more governors start supporting cold trip points. -- Warm Regards Thara