Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp320830pxb; Wed, 22 Sep 2021 03:01:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCAh2eWtdF/NmzrowcRK9A13FabbRWOBAtTvUmG068Rb0/4tND4wZt68EBTB9edxXerb5h X-Received: by 2002:a6b:dc05:: with SMTP id s5mr3699046ioc.109.1632304885089; Wed, 22 Sep 2021 03:01:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632304885; cv=none; d=google.com; s=arc-20160816; b=jDpYaCCkuu1X4XdxHrVHnGxfu1pQnYAqjdo1ozlrGSwXB7JusB8Oyje3yMbSjDe/mt KfXdpf/JtUEN1ANzcC1qhhQfjPT1vHynBpKWSRLaX2Oj1as9dJHn+ll9OZSpvOtEExQJ e6yD2tz7/9Fod/wJrHoyIEsmT8seQlw2deLy1V3U/3KfdYPL/ozD7U5J4X7rsYq8UCWR 3lya9PPMcXpValI5EggIRNkM30WKC+vY5AcnS1Fs2fUDqhkZTpEVr2OTkhlGCrwU0DCk lb8UvfOYTb0KLo93FV7Us7yH/AQClweutdKyZrZt4zk2Vl0IhNICsT6PKfjQcsSCDp4F wB9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:user-agent:date:message-id:to:subject:from :dkim-signature; bh=wVE4R8C/cgi96odywCvgg2C5/wXSs+GANvotR7N/uR8=; b=WQQ2REV4nYKH+m7EY/PtmoJsSMw+2N9mzh5ttJT/N1AeCbHjI6dFERkeITwyN+/K2u DscqiHhr3oLvWLbMMmZbcX3O0oISMmVvyqo0I3AEE3xcZCBTONuDq/anm5pi89lcrTWt b+NTxhJY6dIqEibZy3h7myo+0GovzOw82VnE+I/JgyFHx4fkx91duGATrsviLqfKGxht x5v0iypR4NlhN7xVV+lPZGdt50aFGKypsD8UaBBf8SqdaykJjbDrANmYN5516qruWveT zAiMMpIEPD0hZYbMw7D38+5jWucV5OwSfVM7Jxq1C69vCRGvuoHQF9vsRQOhvBDDWk8P g+wg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vIPxreyz; 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 a9si1896084ilt.69.2021.09.22.03.00.48; Wed, 22 Sep 2021 03:01:25 -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=vIPxreyz; 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 S234381AbhIVKBG (ORCPT + 99 others); Wed, 22 Sep 2021 06:01:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234233AbhIVKBF (ORCPT ); Wed, 22 Sep 2021 06:01:05 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 095E4C061574 for ; Wed, 22 Sep 2021 02:59:36 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id t8so5148608wri.1 for ; Wed, 22 Sep 2021 02:59:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:subject:to:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=wVE4R8C/cgi96odywCvgg2C5/wXSs+GANvotR7N/uR8=; b=vIPxreyzdq2HXWtttAy9AphQhkLfK4uZFOBtQWVuzCvfaQaGlSrWfzT6n9N5Pu1YSP Zd7a3y3A3IGxmjlzxIkCpCeIsw7Eq2kpQg0CM1Krp8AgDBTqUiw/OOZHxxjsfBXm45eD Z+8Rfo5CrZawF+BOlX+NfapdsAaLj0Oe1ia7qEIttA25RdJzWdG3KBcfsqExfqTlQwv4 iJ/MRD9a2Cydy0LF6BqUeb4De6ZYucwR8khVHCo2vaOpzSERlEr6499w836Fzxg9YV0v Z2P65RxpYuC5rQTq993ssJ0nu7MsFJde5XE4XUrQ7eo75Nhihh4ApWLz1DxRN3J1q2ko Nliw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:subject:to:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=wVE4R8C/cgi96odywCvgg2C5/wXSs+GANvotR7N/uR8=; b=kOAW7lIitjeypmfxSSSUtoAUI9mJZTFiInT0RQq+CQB0FYMNEIIujZgAFCUyxVOm54 2BHP3ZXDehoyAWNmR9nFdI7mwmUeywKcr5GhfmMK3SLvDVR9bOumpB3Z11bIyqwJpbn6 JMz8ddMfgDsAVx0UbwFRsSHr751qXC+LUkkUFEifM9j93bNxdphYL3eKDY0/tCQWYejv 0aO6F7J2Xg12fuxdzUR4q+bTxkXPtZ3jU2DlK724PQ4dOQJwwDBDUVauY5E7G9wZsRaa KR8G1y3L5LlZFnKlfsx+BWZaDiKi+Wbk9TqnF4jTuTpNpDu/LxXRlqzf5gaN2zxn2OvS +QMQ== X-Gm-Message-State: AOAM5306c+IGCv8K29yTd/5Ue7ViJoy/ey6m5Xugiis7G7V8gH+11NDm 9fUZwK5PklH9hyK8clTL3sl8hg== X-Received: by 2002:a05:600c:19cb:: with SMTP id u11mr7114787wmq.185.1632304774391; Wed, 22 Sep 2021 02:59:34 -0700 (PDT) Received: from ?IPv6:2a01:e34:ed2f:f020:4f54:2a4:2d47:4592? ([2a01:e34:ed2f:f020:4f54:2a4:2d47:4592]) by smtp.googlemail.com with ESMTPSA id s2sm1631915wrn.77.2021.09.22.02.59.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 Sep 2021 02:59:33 -0700 (PDT) From: Daniel Lezcano Subject: [RFD] Remove the userspace governor and the cooling device set state sysfs entry To: Zhang Rui , "Rafael J. Wysocki" , Linux Kernel Mailing List , Linux PM mailing list Message-ID: Date: Wed, 22 Sep 2021 11:59:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, the userspace governor is sending temperature when polling is active and trip point crossed events. Nothing else. In the other side, the cooling device have their cooling device set_cur_state read-writable all the time. The thermal framework is wrongly used by userspace as a power capping framework by acting on the cooling device opaque state. This one then competes with the in-kernel governor decision. As the new netlink thermal notification is able to provide the same information than the userspace governor. I propose to remove the userspace governor and the cur_state entry in the sysfs exported file. The DTPM framework is the right framework to do power capping and moreover it deals with the aggregation via the dev pm qos. Does it make sense ? -- Daniel -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog