Received: by 2002:a05:7412:d002:b0:f9:9049:d2ea with SMTP id bd2csp28934rdb; Wed, 20 Dec 2023 03:03:23 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEvoJ84hsiz/m1LMcB4jvvWNOQXLmOiOyw4xUFQdI96DinXjIq412XUaTqk5ej4lJ9t0fj X-Received: by 2002:a17:906:29cd:b0:a23:6cb4:e627 with SMTP id y13-20020a17090629cd00b00a236cb4e627mr1896810eje.96.1703070203654; Wed, 20 Dec 2023 03:03:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703070203; cv=none; d=google.com; s=arc-20160816; b=nhi5lcN9/kO24miqa8rmRdrc4LvdCmuCMPksgKMKsAGqXhGYNTxK9+ZXNg/T+DrrYN jrqpDtW+dzfd/dx3xp9gLg9CeD9ZH9OUyKm0UacMAj9YfZZW7KvNsS5nxcNZ6UIAU9U2 J16duQkyR8CBlS+E4EDF8z2hyGEkCMPJWNSSj9Vf+50sf3cux2lIAo7Wls8rmiL/s+CV KfHFpos6um+gFjkoBz7XEpq1C03vGq6exP2Fb3aS7Kg4a1m2CVveMQkGVCpu01s3kbM2 ba81j+RD4Mg0o2qK1+GSiLPnEwHdQF3LNCMI0LZWtofEoz45DKRWfhmWjdvH3R3ic2p0 RCkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=iXJTtjSxucqGSoca0J4ylDX0ECzqerKLOkAepW7wSDY=; fh=nNnnlsJk6+zntqOwwMltstlYYCut7dlSc+oxeMTUkAc=; b=0HqMbPl4UC79DBfS2c/b/Z0087TYt9YZbb0hy7XLbxJ/BJR1PPMvW+6FoeqD8siFZm a6t954SVEA1ZzBILd2S8ITxi1T0Xe+W557d18L74NXExM8URM1BKPFQdAaLDyWqCbgHS gnPHMFdD36D4JgsJ3v0tn4RCazIJnezmJrO/0Ocwq2DAq41RWP5CgbSBeYe1+pahV+aq i6n3T7m1djVoRsZjZbrqnKktt2AEK0JuJe/p4qcloFU3N+vpRXfJ1yOv6EjVKBUJah52 UpdwYGlbPr6z9RJQZ+BVEX6gMbsAhXkrKXZ25AuA7JWcBSUu8XZEJOfYKvVAUqLXEyjD rApw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e5-20020a170906504500b00a2353a27a3fsi2840133ejk.910.2023.12.20.03.03.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 03:03:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel+bounces-6787-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6787-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 671821F23A02 for ; Wed, 20 Dec 2023 11:03:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AE9321110; Wed, 20 Dec 2023 11:02:59 +0000 (UTC) X-Original-To: linux-kernel@vger.kernel.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9B35D210EA; Wed, 20 Dec 2023 11:02:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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(-) -- 2.25.1