Received: by 2002:a05:7412:8d08:b0:f9:2d0a:d759 with SMTP id bj8csp249776rdb; Sun, 17 Dec 2023 10:03:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IHC/TWbl4qOToiV7Fn0ZnzhCl9PKPBi9EBFDvz8A6NI57DZLwsvAq75lUb3H7EdYmYCuZOw X-Received: by 2002:a05:6e02:318f:b0:35f:a33f:a175 with SMTP id cb15-20020a056e02318f00b0035fa33fa175mr5170057ilb.0.1702836208977; Sun, 17 Dec 2023 10:03:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702836208; cv=none; d=google.com; s=arc-20160816; b=dUnLwlIDvSUafsA4XrYzhWtscu6zN+syUFphkcvQKHAx+DcXE14nCNPwHNsqMfrSEa TULjjCW0dQeL4Qg6oDx50qfX8jcYid3pebwZ8OvgiMGbOk9BVkrxT0VqthcKCPtuS5uq HEd4/ec67BPflbZM3nxXVBeD2Eu7jgtW+Nmfb2go1hhdBghmUrfnprYftHGZ7CVErE1y 3w76G3AwBrwt6F836JXA2C3tuqCSuoHV+lWdRhwy9IhlswXDJ/9JDwLiu/andaqRCTwK Zgo0V4Y4Dx/xeQaEyTAslc6K/QmAPw6Uli0gdh/Ci62Uqdy1509RK3JEXr5XN61w8ItF SEPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yty6ELNePRoN9Iur2hux3uKbK99AIBOkzbbd5Y9B9LY=; fh=CwGueld1NgE3wagTwtW9s1/NEr4ia2kWYh4NZTsiGOs=; b=DfUgeFOxmKgvDqC/415k4Iq4DgyGDIGKDJX8y1KnxhxYUFg7g4QcouDSJqN2/cDDMj ZY43x78K+rF3WquoKyt11Lby7gu8Jy1a2ijyuxjmkrnYHVxBEYaB5SHMvS9NrgVTk9V5 ZtKv2IY1nXpA36b8vxkWBJyMy7iSZu82kI26IeGroPBW9qyjnbxP1v2G+X3gsmYPm5q1 tPZ96hbwDCZApH7oGlRP+7vq3PmeHRwkd8lPp3uLT3UnUEPBbLEvQzN8AOgxgPgKCw6s bYSgQkH6siQwixYmDgie9vTrNiYC97F1pS/K50q/Wv5tq++JT3aAlrJWESGZQpeyLps7 edwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=xa1Tewpr; spf=pass (google.com: domain of linux-kernel+bounces-2768-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2768-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id v4-20020a655684000000b005b7160263efsi16290493pgs.489.2023.12.17.10.03.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 10:03:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2768-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=xa1Tewpr; spf=pass (google.com: domain of linux-kernel+bounces-2768-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2768-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 986FA282B6D for ; Sun, 17 Dec 2023 18:03:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 22BB547A60; Sun, 17 Dec 2023 18:03:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b="xa1Tewpr" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 05DB347F4A for ; Sun, 17 Dec 2023 18:03:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=layalina.io Received: by mail-wm1-f52.google.com with SMTP id 5b1f17b1804b1-40d12b56a38so11338575e9.2 for ; Sun, 17 Dec 2023 10:03:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1702836198; x=1703440998; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=yty6ELNePRoN9Iur2hux3uKbK99AIBOkzbbd5Y9B9LY=; b=xa1TewprNo+rUheXDQDVVUkaz9EK7jeJ44gHxrVaBvFXGh6DpJlhWZxhkp4Qqrcaea 9Tk40ueFLuDdOyzgQn3NJpsXo6VQosf5a6vtLgb8CKXSUpRm6DJAjGiZA+lW1ViTQc+N yP4UCMMLnLDhyMkg8uS5mCGTB9NvptE0aGCXRfjZYbiP9LzCY0lCIO0QMo+YyVDhXjzy cfr1gQciAki85Nkatn/6ITMdaonO3vA46eN4ntTGus0rbeThWmiotWVW9se4DwctvMW1 N58vp3AgKaabJaKhbj4SJxru4QKbzkRs6XUyqarByKXkdztoXqcyZndb2pBdjmXH7P/H CA/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702836198; x=1703440998; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=yty6ELNePRoN9Iur2hux3uKbK99AIBOkzbbd5Y9B9LY=; b=l+jMBWB29YEt4H3gSjp1PARimxHFmH1avQlvQ6W/ZILVztVabXXKR+9jSQxxYYJLoP N4LpPCb1F7Ao0LvjMrgiJw9CrgDDoLWQKWK9VPJA9URNKEdaHAYQ6hoddECSdEmw4ci0 TUsF+f1rcAp3vZ9vxlSBIRHoY/WBW1kVaNsbTVFO0+u7m3tV/GMSrUVtqFc8V3A8ZPgZ a3JxKWytoxBlBAjrAfqbzT0VxX7dgtHnT6VQQtvtBIFPc9BwFsXhtaBHYOAmdeNKZAJO k6Y+q8cUejUmMLDnULzUewQJmNoCy3ursS582nnqWPOwmMVyU/rZHR8y5udTP/eFUwn4 KELg== X-Gm-Message-State: AOJu0YyAi9hMcvuDloJLLr9xChgHyFbTCXIicIOK4lt64WSQHdCzSOR+ 0I6oVEi7Sfd9iJngZvNnqNi4DA== X-Received: by 2002:a05:600c:3510:b0:40c:5112:a0a with SMTP id h16-20020a05600c351000b0040c51120a0amr2600010wmq.309.1702836198337; Sun, 17 Dec 2023 10:03:18 -0800 (PST) Received: from airbuntu (host86-135-101-43.range86-135.btcentralplus.com. [86.135.101.43]) by smtp.gmail.com with ESMTPSA id fm21-20020a05600c0c1500b0040c03c3289bsm39056087wmb.37.2023.12.17.10.03.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 10:03:18 -0800 (PST) Date: Sun, 17 Dec 2023 18:03:16 +0000 From: Qais Yousef To: Dietmar Eggemann Cc: Lukasz Luba , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, rafael@kernel.org, rui.zhang@intel.com, amit.kucheria@verdurent.com, amit.kachhap@gmail.com, daniel.lezcano@linaro.org, viresh.kumar@linaro.org, len.brown@intel.com, pavel@ucw.cz, mhiramat@kernel.org, wvw@google.com Subject: Re: [PATCH v5 22/23] PM: EM: Add em_dev_compute_costs() as API for device drivers Message-ID: <20231217180316.rblvtqaxjvu5xedf@airbuntu> References: <20231129110853.94344-1-lukasz.luba@arm.com> <20231129110853.94344-23-lukasz.luba@arm.com> <8fc499cf-fca1-4465-bff7-a93dfd36f3c8@arm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <8fc499cf-fca1-4465-bff7-a93dfd36f3c8@arm.com> On 12/12/23 19:50, Dietmar Eggemann wrote: > On 29/11/2023 12:08, Lukasz Luba wrote: > > The device drivers can modify EM at runtime by providing a new EM table. > > The EM is used by the EAS and the em_perf_state::cost stores > > pre-calculated value to avoid overhead. This patch provides the API for > > device drivers to calculate the cost values properly (and not duplicate > > the same code). > > New interface w/o any users? Can we not remove this from this patch-set > and introduce it with the first user(s)? It's a chicken and egg problem. No interface, will not enable the new users to appear too. So assuming the interface makes sense, I vote to keep it. I lost brain power half way through the series and didn't review this properly yet; but will continue looking later during the week. Cheers -- Qais Yousef