Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4282546rdb; Thu, 14 Sep 2023 18:46:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEnMWqoXE/CwoQdzDIRX6gII6Lvng+Gjsdqi2IMf2SRac9e+Dy7mzCbx8a6a7WS8eKPJ/MP X-Received: by 2002:a17:90b:b14:b0:271:c207:b285 with SMTP id bf20-20020a17090b0b1400b00271c207b285mr239722pjb.9.1694742417397; Thu, 14 Sep 2023 18:46:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694742417; cv=none; d=google.com; s=arc-20160816; b=poOjA0J9rgje/HvfIaoBHrrCF5O4WfXzbxd5Ye3rQZesYFMqa7MWLG7ppNUKT7nQjd JdoSNV0vQjaHQnKIn6r0IQkxXiRAWykmk2MXql7QIL9kjk4DuD8VkJg1HPvQDnPt0bdn FfftJ0F2h+fRBRWpV+cOjWjpm/EOSbNH+fbYDRxcamuMIUYT91AuWFUNsUTviF+jmykw An+Yffr9s0awkgcJpnCfTKlLn6OuHTvcc83m42dD/1MbwV/CImXkHP/dcanILkWdGdMj vhWObbTJZfzRBpcuKjegVyQXR4HjX2Td7YbHHVFkic5whn+f2Ndgo5K4fEQiKtbBeBoT dyTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=A5vZJNq08TeNOWQ034lbMsaCbZ2JIeyPBNL9fz/Gkc4=; fh=Bh5HfG5hsRb8Fngrlkw6lxHlhh6J+9pRYXxsXndhcdU=; b=GaTiTheIxWGpuMyQE+84Ua0o05w8wvmetieO5NjTIcDe4dL82yqpikxlxulgCzekjh X+Y98yoXwLfdDqovoetqCAd4uzgjOf76xNeorq7917EHBZbibGi9pcFX3oWbfqtKyYrL MEVUHeamp3wfVtJsEmxidwqVy8D1NLvSkZs1a/0FGDMUi4TGThAaDCFLf+x4jCovrWzZ EwW1bIwsidT45ClXJIDNda6XdCF4VEGYtimUj+++U/c+BUuviQkmLHWq1pU1XGF3iZl0 zr5RcukNTSkYI6PGxRxYzpTgOM4WHcAA5cS3gQsl9vW1ZRCVeNYsHvLl4RTjlOaNmH5u 0jdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DLYbSu9S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id pg9-20020a17090b1e0900b0026f3e1e9639si5001717pjb.40.2023.09.14.18.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 18:46:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DLYbSu9S; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id C5E1280FCBD1; Thu, 14 Sep 2023 15:45:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229499AbjINWpn (ORCPT + 99 others); Thu, 14 Sep 2023 18:45:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229702AbjINWpn (ORCPT ); Thu, 14 Sep 2023 18:45:43 -0400 Received: from mail-yb1-xb33.google.com (mail-yb1-xb33.google.com [IPv6:2607:f8b0:4864:20::b33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC9A81FD6 for ; Thu, 14 Sep 2023 15:45:38 -0700 (PDT) Received: by mail-yb1-xb33.google.com with SMTP id 3f1490d57ef6-d7b79a4899bso1511003276.2 for ; Thu, 14 Sep 2023 15:45:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1694731538; x=1695336338; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=A5vZJNq08TeNOWQ034lbMsaCbZ2JIeyPBNL9fz/Gkc4=; b=DLYbSu9SAMpArJVnnKtemuBH4UG2pc2baYzf+ISWDdtsmQF3CFpBD/HERwEWZOxUgW LbtyBAdTEh2bPaRDeOAt+dJZ+6YFT2VqK4jJerYJOcw6phi1ngQIndLLgL4w2HoEU11h rrwvxJIYoY04y2rR1FE8RvHoQPxw8bJREFZO41u8/NJQMyvDtHazY6c/fzEzCKGQzfex DTJDpn8GEYRDg13CvDv+gYfpZckXJ62WpuWSOzm9SvxgTKBTmPRKC/h6WzpJRMVN1Qbv NKFe7oli+D0DI2C3pMiz3cduP3DpGcrBN5hCuG+jtC9kkirvKVaOTU2Uh15DxUg8bndy pmhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694731538; x=1695336338; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=A5vZJNq08TeNOWQ034lbMsaCbZ2JIeyPBNL9fz/Gkc4=; b=OjY50CUsJ5kNJL0re6mWAEnRTsxlHCCbzqs69h3Cwsqea40KvdM7fjtjDWJik8wICt WEiLteuongO14NChDOMJEaU4I2RbaKuxT6KPiN+74UhggrLXUua08KHYCGtE6oOVt3XA km6MMniXGe+v4aXT3KnCkg9pvtnnsAoYTCGw4JpMvNUXohQvJ1y/M2DsqyC/kxjeJ9bk i3Kd+z09RzEoE3ARoZC4B4/FKOHmbwiHoQXSyHfkCMdc48PVJl86UerYQYIkugLORwqv olWWVghCVUor4gWv72382QUE6ytjNziwCRIJvC3ruP7HMzdEQ8z4MpKarVHJZKqj/Dz8 koUg== X-Gm-Message-State: AOJu0YzKk5PLHh+T7T6TBEtMDVssQHOzorO1Ku2sISS/PWYHMuh3P6Wx 08J8KEVNXvDWG6L37EII7Rw0zOmGesCzxrHjFJJ8tA== X-Received: by 2002:a25:4d0:0:b0:d7f:374b:638f with SMTP id 199-20020a2504d0000000b00d7f374b638fmr6486200ybe.23.1694731537714; Thu, 14 Sep 2023 15:45:37 -0700 (PDT) MIME-Version: 1.0 References: <20230825112633.236607-1-ulf.hansson@linaro.org> In-Reply-To: <20230825112633.236607-1-ulf.hansson@linaro.org> From: Ulf Hansson Date: Fri, 15 Sep 2023 00:45:02 +0200 Message-ID: Subject: Re: [PATCH v3 00/13] arm_scmi/cpufreq: Add generic performance scaling support To: Sudeep Holla , Cristian Marussi Cc: Nikunj Kela , Prasad Sodagudi , Alexandre Torgue , linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Viresh Kumar , Nishanth Menon , Stephen Boyd Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Thu, 14 Sep 2023 15:45:50 -0700 (PDT) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Sudeep, Christian, On Fri, 25 Aug 2023 at 13:26, Ulf Hansson wrote: > > Changes in v3: > - Re-based upon the for-next/scmi/updates branch. > - Re-ordered some of the patches in the series, to eas review. > - Added some new DT doc patches in the series, according to comments. > - Fixed other comments, see version history for each patch. > > Changes in v2: > - Split up the series, to get the basic support in place as the first > step. The part that remains is the integration with the OPP library, to > allow consumer drivers to change performance level using the OPP lib. > - Re-based on top v6.5-rc1. > - Other changes will be described for each patch. > > The current SCMI performance scaling support is limited to cpufreq. This series > extends the support, so it can be used for all kind of devices and not only for > CPUs. > > The changes are spread over a couple of different subsystems, although the > changes that affects the other subsystems than the arm_scmi directory are > mostly smaller, except for last patch which is in the new genpd directory. > > The series is based upon the for-next/scmi/updates branch, but to enable the > genpd provider in patch 13 (the actual scmi performance domain driver) to be > placed in the new genpd directory, I have also merged an immutable branch [1], > which is queued for v6.6. > > Note that, I am runing this on the Qemu virt platform with Optee running an SCMI > server. If you want some more details about my test setup, I can share this with > you, just let me know. > > Looking forward to your feedback! > > Kind regards > Ulf Hansson > > [1] > git.kernel.org/pub/scm/linux/kernel/git/people/ulf.hansson/linux-pm.git genpd_create_dir > > > Ulf Hansson (13): > firmware: arm_scmi: Extend perf protocol ops to get number of domains > firmware: arm_scmi: Extend perf protocol ops to get information of a > domain > cpufreq: scmi: Prepare to move OF parsing of domain-id to cpufreq > firmware: arm_scmi: Align perf ops to use domain-id as in-parameter > firmware: arm_scmi: Drop redundant ->device_domain_id() from perf ops > cpufreq: scmi: Avoid one OF parsing in scmi_get_sharing_cpus() > cpufreq: scmi: Drop redundant ifdef in scmi_cpufreq_probe() > dt-bindings: arm: cpus: Add a power-domain-name for a > performance-domain > dt-bindings: firmware: arm,scmi: Extend bindings for protocol@13 > dt-bindings: power: Clarify performance capabilities of power-domains > cpufreq: scmi: Add support to parse domain-id using > #power-domain-cells > PM: domains: Allow genpd providers to manage OPP tables directly by > its FW > genpd: arm: Add the SCMI performance domain > > .../devicetree/bindings/arm/cpus.yaml | 4 +- > .../bindings/firmware/arm,scmi.yaml | 11 +- > .../bindings/power/power-domain.yaml | 17 +- > MAINTAINERS | 1 + > drivers/base/power/domain.c | 11 +- > drivers/cpufreq/scmi-cpufreq.c | 55 +++++-- > drivers/firmware/arm_scmi/Kconfig | 12 ++ > drivers/firmware/arm_scmi/perf.c | 90 +++++------ > drivers/genpd/Makefile | 1 + > drivers/genpd/arm/Makefile | 3 + > drivers/genpd/arm/scmi_perf_domain.c | 150 ++++++++++++++++++ > include/linux/pm_domain.h | 5 + > include/linux/scmi_protocol.h | 18 ++- > 13 files changed, 293 insertions(+), 85 deletions(-) > create mode 100644 drivers/genpd/arm/Makefile > create mode 100644 drivers/genpd/arm/scmi_perf_domain.c > Unless you have some additional comments, I think patch 1 -> 12 should be ready to be applied to your scmi tree, as is. I tried to apply it today and did not encounter any problem. Patch 13 needs a rebase so I will submit a new version of it. For you to apply it to your tree, you need to move your scmi branch to v6.6-rc2 (on Monday), would that be okay for you to manage? Kind regards Uffe