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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id D74D8C433FE for ; Thu, 25 Nov 2021 17:25:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348518AbhKYR2k (ORCPT ); Thu, 25 Nov 2021 12:28:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41236 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348823AbhKYR0j (ORCPT ); Thu, 25 Nov 2021 12:26:39 -0500 Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9D7CC0613D7 for ; Thu, 25 Nov 2021 09:16:27 -0800 (PST) Received: by mail-pj1-x1033.google.com with SMTP id cq22-20020a17090af99600b001a9550a17a5so8194586pjb.2 for ; Thu, 25 Nov 2021 09:16:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=google; h=from:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:content-language :thread-index; bh=ZcJ/rON8wGKNLK176u9S8NH6zRHqqLGaIZ+pfZTgUPw=; b=KYBujD2+qTiES1emT1f3fzJuzyE2lUUnM/LTtkjBnxBAUhT+zffA43ZqQYFgTgvW3Q VuZlDKrnoghBs6ucT88wfDb3XfbT5Fx7DqdICQcsHfUeok1e27YohMC4d+uc59ka8t7O yzcQomsiXRkIxYyVsjQlPSty7UqL/fXxj7qrd4WzWH44SOT8lr3RvAu1C8NhDm1aOv80 Hwu4eZ32bVxA6r1FqqF+7nKM+Mxfd923iJK3+UpmHMYLZURLl8OG5zbcshJT6cFsuTKA fn/7GJJzXx5GirjTMD0IeDST+KNBmCSs3PzRtcJziIedv27hNJ7EehzRd6Wg38Zzi/yW osLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:content-language :thread-index; bh=ZcJ/rON8wGKNLK176u9S8NH6zRHqqLGaIZ+pfZTgUPw=; b=Gxslr33+W2koUVzpN2r2Z33ob0/v+918JHBpHG/4StlaR/oRMdp4NhPQDDlRCVvuTa RMyj4xiCMmAccJfODdxV42/INKlUTKlXKHwtSF6VdYEAfPS1teJq9evZvFmenzPMY4ye HzG13bXLGH464/kUlUkV6nhWOJkwBo/DUVDyqpsAatBFBBqaLYws9vZRHZBRZWLpsVM6 r53eCyi2M4vHqxgdqqXft9hjt1oJ7V+WQKKSiTwV6qndub9wb9DOQPuSQNC70hoYu1wr bbXerEqq5pPZ821wwDMwo3yVIgQn8wRmtNkDwzlFpnYkVvCsfjm9k5hTMA/U/RdQQq9Y 4kSA== X-Gm-Message-State: AOAM530R8z0V0Sed0Z4hP2v05jBjZ40puFRseN3uztSOdzHNYEb2kZi/ R3QYl8y+f3IYnFrE3oWew+7zXg== X-Google-Smtp-Source: ABdhPJxwCha2L7wGusNFfYXQo9nPmyDSPKWcNCr9tjNDLTishpMt2VdlrMjkVW0M4ibOqj5ePn2+Lg== X-Received: by 2002:a17:902:b712:b0:143:72b7:4096 with SMTP id d18-20020a170902b71200b0014372b74096mr31733673pls.25.1637860587337; Thu, 25 Nov 2021 09:16:27 -0800 (PST) Received: from DougS18 ([173.180.45.4]) by smtp.gmail.com with ESMTPSA id b10sm4044140pfl.200.2021.11.25.09.16.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 25 Nov 2021 09:16:26 -0800 (PST) From: "Doug Smythies" To: "'Maulik Shah'" , , , Cc: , , , , , , "Doug Smythies" References: <1637830481-21709-1-git-send-email-quic_mkshah@quicinc.com> In-Reply-To: <1637830481-21709-1-git-send-email-quic_mkshah@quicinc.com> Subject: RE: [PATCH 0/4] Allow cpuidle governors to be compiled as modules Date: Thu, 25 Nov 2021 09:16:25 -0800 Message-ID: <000601d7e220$2dd78990$89869cb0$@telus.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 16.0 Content-Language: en-ca Thread-Index: AQGT+IG2EWhj5x7yn247xTDGojnxHKycPHaA Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hi All, I realize that previous replies render this one useless but sending anyhow. On 2021.11.25 00:55 Maulik Shah wrote: > This series makes changes to allow cpuidle governors > menu, ladder and teo to compiled as modules when > building with allmodconfig. One current issue with governors being available as modules is that they don't appear on the available governors list unless they are loaded. Example with this patch set, all done as modules: ~$ grep . /sys/devices/system/cpu/cpuidle/* /sys/devices/system/cpu/cpuidle/current_driver:none /sys/devices/system/cpu/cpuidle/current_governor:none /sys/devices/system/cpu/cpuidle/current_governor_ro:none However, and based on my systems power consumption, some sort of idle must be running. ~$ echo teo | sudo tee /sys/devices/system/cpu/cpuidle/current_governor teo tee: /sys/devices/system/cpu/cpuidle/current_governor: Invalid argument ~$ sudo modprobe teo ~$ grep . /sys/devices/system/cpu/cpuidle/* /sys/devices/system/cpu/cpuidle/available_governors:teo /sys/devices/system/cpu/cpuidle/current_driver:none /sys/devices/system/cpu/cpuidle/current_governor:teo /sys/devices/system/cpu/cpuidle/current_governor_ro:teo By the way, for the cpufreq stuff, while governors that are actually available, but are modules, changing to them without first force loading the module works: $ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:performance schedutil /sys/devices/system/cpu/cpu10/cpufreq/scaling_available_governors:performance schedutil ... $ echo ondemand | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ondemand $ grep . /sys/devices/system/cpu/cpu*/cpufreq/scaling_available_governors /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:ondemand performance schedutil /sys/devices/system/cpu/cpu10/cpufreq/scaling_available_governors:ondemand performance schedutil ... Doug