From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C6382C433F5 for ; Wed, 22 Sep 2021 09:59:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AAFD961107 for ; Wed, 22 Sep 2021 09:59:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234662AbhIVKBH (ORCPT ); Wed, 22 Sep 2021 06:01:07 -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-Google-Smtp-Source: ABdhPJz19tnF6GcYxfblJoxm65IbrNZux22yI1JyMaQb0d5aKNU5H+vy7Ql/aGtLMcNCedy86Mv2Ig== 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