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 A6C0EC43217 for ; Thu, 25 Nov 2021 17:25:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348622AbhKYR2l (ORCPT ); Thu, 25 Nov 2021 12:28:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348743AbhKYR0j (ORCPT ); Thu, 25 Nov 2021 12:26:39 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E282EC061763 for ; Thu, 25 Nov 2021 09:16:27 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id p18-20020a17090ad31200b001a78bb52876so8182077pju.3 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=k7oWnE0ivJ7SW/mSoLsQRfx7JxDNHrrpp85EUzUIZp2WxRIcueb9ON9vEstndCJ96S F7jbh2nYhoGzK75uGJTAMaSs7tmSmKLgvRyNeZ48LN7z4TTi0Z94pIOqeMy/R+Ie7je/ o+bbUDvXHaPkNS0ThVADaCZztaBxNC6JAEHwuycrDodyFp2xWEFucIClzbXjkn9sA6zW Ta7zn0kcl1hHs8Woy1sQJGXxokX4mLaeB7rCRIyxWKRjy86JPWBhQkANUJ6o6B+53Fxq MIDDDBLeCYzTiRD+kW/iO+sfDvzm05E097iOXeZVYRVpdbEl8XnTy3C5twmgUdPbGHGx a2Vg== X-Gm-Message-State: AOAM531x7ijsf4SinoAcedPffZB+tREO4LbSYQ3DdZmLuOrTot3N8inf CMkDuV/swZBTjYT72LSWmB4rhg== 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-kernel@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