From patchwork Wed Dec 20 11:03:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 13499981 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 24263C3DA6E for ; Wed, 20 Dec 2023 11:03:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=ewPa/aBx/akLYfqDxlpfwVSZ2l8WVzKvtVnw1H1jPcM=; b=1fNnhPk0FyC5JC dA6+NASrPapEBh1OGTefi0/NUzMl8cqSMsMYgTUD5HGRRul3ynB+8GJygquVUkWwV/Kw0DoFSG/ij QeXCf6kqUQB4+h7mupvw1/HESec0VdbiHFr1tPK5muFj/Eq/1uEd1hc866SVUXPed8LOgYD0SY2NA GC47n/bgcxRwWk2UqMjYi6aG48EYzOfpRKb8NzJycA4+EwBZlXBvMUznDbXtTPdMOvTVcK3mz9F7q h7VPh5W26hTSlhIN4Yt5AiwR4D5ofOLCRGWw26JSXW02Olo5EguPc8aV/ZOpQ5wvPWsSUKva4FTZw sU9XxXaZDRGmQFdC43bQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFuLu-00H12t-0K; Wed, 20 Dec 2023 11:03:02 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rFuLr-00H10c-0f for linux-arm-kernel@lists.infradead.org; Wed, 20 Dec 2023 11:03:00 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 919B71FB; Wed, 20 Dec 2023 03:03:40 -0800 (PST) Received: from e129166.arm.com (unknown [10.57.82.217]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id CC9DC3F5A1; Wed, 20 Dec 2023 03:02:52 -0800 (PST) From: Lukasz Luba To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: lukasz.luba@arm.com, dietmar.eggemann@arm.com, linux-arm-kernel@lists.infradead.org, sboyd@kernel.org, nm@ti.com, linux-samsung-soc@vger.kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org, viresh.kumar@linaro.org, krzysztof.kozlowski@linaro.org, alim.akhtar@samsung.com, m.szyprowski@samsung.com, xuewen.yan94@gmail.com, mhiramat@kernel.org, qyousef@layalina.io, wvw@google.com Subject: [RFC PATCH 0/2] Introduce runtime modifiable Energy Model Date: Wed, 20 Dec 2023 11:03:37 +0000 Message-Id: <20231220110339.1065505-1-lukasz.luba@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231220_030259_309214_5E64A7CB X-CRM114-Status: GOOD ( 10.26 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hi all, This is a follow-up patch aiming to show the users of the proposed runtime modifiable Energy Model framework. The patches and discussion is available here [1]. I didn't wanted to add more complexity in that already big EM patch set and planned to add more users later. This patch set is one of the first user. I have talked about the chip binning in a few conferences and the need to update the EM after boot. This Exynos is one of the platforms which adjust voltage after the EM is registered. This is perfectly fine and alloed in the kernel, even from a module so very late. The EM framework should just allow to modify the power values after that. This patch set will have to wait for merging of the dependet main EM change. Regards, Lukasz Luba [1] https://lore.kernel.org/lkml/20231129110853.94344-1-lukasz.luba@arm.com/ Lukasz Luba (2): OPP: Add API to update EM after adjustment of voltage for OPPs soc: samsung: exynos-asv: Update Energy Model after adjusting voltage drivers/opp/of.c | 69 ++++++++++++++++++++++++++++++++ drivers/soc/samsung/exynos-asv.c | 10 ++++- include/linux/pm_opp.h | 6 +++ 3 files changed, 84 insertions(+), 1 deletion(-)