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 6E867C433EF for ; Fri, 26 Nov 2021 23:11:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245470AbhKZXOY (ORCPT ); Fri, 26 Nov 2021 18:14:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245617AbhKZXMX (ORCPT ); Fri, 26 Nov 2021 18:12:23 -0500 Received: from mail-wr1-x433.google.com (mail-wr1-x433.google.com [IPv6:2a00:1450:4864:20::433]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCABCC061757 for ; Fri, 26 Nov 2021 15:08:42 -0800 (PST) Received: by mail-wr1-x433.google.com with SMTP id a18so21648258wrn.6 for ; Fri, 26 Nov 2021 15:08:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=qbYoHvREwzpSnoVYou5OhDU3fgIZXVmb/TA1x9djirI=; b=p2cmLV5Hf8omBqtVLfW9fsGqyehzgadlSykYoS6akK8tBcF2/S3PLUNCcCBrYXJpTj Mx+ynN8Yi0NNxoGXqpsJs2l0wEpsBDbSIU8wPvjyVHvpJRnlVF0qI976pb5nGa5wPLgZ 4uB2VVuDenGRhT1gfOkT8Q53RDAEk6qR0kmmLyBKVCDf91WL5hV8Fc+gbvpMrx59u5iZ SvBpmTRTbP4TA1PIo8aEPYupZYAV7NNi5I7ybMZHej9EwQQsEhKfmMhv2XOrp8YluS/B Q3FG6ttxlCPNMZAWCxIZZRoEWxeKi/n7CK/G8X4i2SV2lm8b7AeRB/Bi/NecHyogC9z8 pYQw== 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:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=qbYoHvREwzpSnoVYou5OhDU3fgIZXVmb/TA1x9djirI=; b=hkoN+80NsfI9H+dww4ljpXPxWPsQgF8sjkDOaXD6+ML6eZXkPpwBcFUZagGN8gRL0l 8H8gZQ3WgHbs3XoGdowdBKb7n5khxqjZ07F1oPAdYrcpS/FB9zi00axbiItIqdhdFqaz 6798jwWW85JUGCejOkM4St5aTxl7KH6Y62Ty+u4teLJziwTfMg8ug72NeZJYrweYFae5 ZIveLfsyhVVCXZKgbgXR00mOzWFxDpnCxk3HfCBwPmlvceOvwWrUEeXp7uaQZLV+bMC2 kryJooZ2v3FvKZSjAjzu/RM1Gzs4mS27hi0mB0dWRUHnLRb6Bj1A/Tav9igj2to0YOeI GSeQ== X-Gm-Message-State: AOAM530+OkDO4jxT82Qf2Bx+DQKQjuUHIKgfRC05F8Lg6RV6mXlAYyVj xPLooMQ+T8jrin9qw47gwn850Q== X-Google-Smtp-Source: ABdhPJx8sNVncP+qBm3NvhgjazjMTKnFL3Izh/LDWmcpJwolE6cpUx6oJRCTPdkNMsbOBYmXzfyMZA== X-Received: by 2002:a5d:63ca:: with SMTP id c10mr17367315wrw.124.1637968121314; Fri, 26 Nov 2021 15:08:41 -0800 (PST) Received: from localhost.localdomain ([2a01:e34:ed2f:f020:70b:e5b5:f868:20cf]) by smtp.gmail.com with ESMTPSA id n32sm16234057wms.1.2021.11.26.15.08.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Nov 2021 15:08:40 -0800 (PST) From: Daniel Lezcano To: dsmythies@telus.net, rafael@kernel.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, lukasz.luba@arm.com, gregkh@linuxfoundation.org, Daniel Lezcano Subject: [PATCH] powercap/drivers/dtpm: Disable dtpm at boot time Date: Sat, 27 Nov 2021 00:08:20 +0100 Message-Id: <20211126230820.3441863-1-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <9821f60a-c562-12e8-bdd4-45dbfe88a117@linaro.org> References: <9821f60a-c562-12e8-bdd4-45dbfe88a117@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DTPM framework misses a mechanism to set it up. That is currently under review but will come after the next cycle. As the distro are enabling all the kernel options, the DTPM framework is enabled on platforms where the energy model is not implemented, thus making the framework inconsistent and disrupting the CPU frequency scaling service. Remove the initialization at boot time as a hot fix. Fixes: 7a89d7eacf8e ("powercap/drivers/dtpm: Simplify the dtpm table") Signed-off-by: Daniel Lezcano --- drivers/powercap/dtpm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/powercap/dtpm.c b/drivers/powercap/dtpm.c index b9fac786246a..fb35c5828bfb 100644 --- a/drivers/powercap/dtpm.c +++ b/drivers/powercap/dtpm.c @@ -471,9 +471,6 @@ static int __init init_dtpm(void) return PTR_ERR(pct); } - for_each_dtpm_table(dtpm_descr) - dtpm_descr->init(); - return 0; } late_initcall(init_dtpm); -- 2.25.1