Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1472802pxk; Fri, 2 Oct 2020 10:19:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0AaMprPk2/1Z0vjajOb6XwxWyNBvWrN4P2QnKG5tztrexVzaWfXWwcsT8PPhUR0RVKa0b X-Received: by 2002:a50:fc08:: with SMTP id i8mr3572562edr.257.1601659157430; Fri, 02 Oct 2020 10:19:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601659157; cv=none; d=google.com; s=arc-20160816; b=b+9OVHHkY6S9cOWtC/YjfO2Gt0UGNbsJPYzK0Ma9TDSqiYnvdBbKWAa2mYECuGFIha 9TNSlJ/akn7/Zpngsm32Lqco15JtECq0nHes7prJFntm+sSu+Ew1U/JJqJGxeN8JBQSx Mbt1yue8mjvj9BckH3iy/sPxtUUNcB3B9MUzNNsKuEl77Yk96EF8OYd/yuH+5HW10B7D i4H2d4z4LMij1O01QIdG/NK2wT1kqYrJJMidFUYHRwWhGUkkT2D/BJaw1FiafvmzBibu r/lvV0lKNvpDirvbITcxldfStVaYg+UPc3VRgAt545yTiye32IAQBJEkIU6SzOC0uGyI NlbA== 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; bh=fxhZhafBoUYpGMDO7DAvPnhoms7qKvjXarS56dh880Y=; b=FYygu91Q90E+3h9J7q34U555/z2aNnKhSwCi6IUcPfRBRqVGTA7YWkqfDycZ3Azwr8 JXA7F9AyYgdNjJD0tqk9SVizTdK52hJXCYa4dvGT+4Bwh8GGBSEerUmw2AV/7TIdH7zX 69q1WtKs1Al9toM8bSNgoxnmthksOg/AyQ3t/2R7zSRPCNo9TFxLQhcV4qCyqVj+APJu jqqCDvJ7ZddcqPvxFUcSDrvGiq+i02xsnuNILDGwZGeGm44uBc15ZKmG9aUwJeUJdHzM QXZXpK+DHk3sB4oTtqFADXTArVbukfust+386OqflGJ4g8XtYoGtAt9t3GAMl9MFj1yO 2eEg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jr10si1537963ejb.167.2020.10.02.10.18.53; Fri, 02 Oct 2020 10:19:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388008AbgJBRR4 (ORCPT + 99 others); Fri, 2 Oct 2020 13:17:56 -0400 Received: from mail-ot1-f66.google.com ([209.85.210.66]:41310 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726813AbgJBRR4 (ORCPT ); Fri, 2 Oct 2020 13:17:56 -0400 Received: by mail-ot1-f66.google.com with SMTP id q21so2067544ota.8; Fri, 02 Oct 2020 10:17:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=fxhZhafBoUYpGMDO7DAvPnhoms7qKvjXarS56dh880Y=; b=KI88S/vVgUGff1XF9sLo8m+hVQrvafP3O7MS4i+2VLdM+mnI8AICyFksQhnABPZ8bK GE1Qq5g0l5/aggD/+H1RIWjbXvAJGzKTgRE9FccTXgoMBmJq8S8yk09LUN3lzgBUZnHK IcCTwGsqG+RVo2bU9EJRX/JcvuGbl9wCE+IkVqu8aimEdj27uTK6a9ioo7pkbWs5IKcE 89poV8UuKjuxHEuDti/7DgGCFBPJz5jLPCIS5viAeMNQsHYI1ZUH5lCmGHOQiloLlYxw WuwQ2IVkp0Sv0Sh/nMLIUAzU/3pDZQFbbAcOXavwSAsVn+iFxgCI8ILDHgusPcpoGXYf 9NLQ== X-Gm-Message-State: AOAM531Q+Jwlw+nxGiDM/6G7Q6s0iO8Ap2vrWOHriJ8ohNLh2w6VR8P8 mcKOtnezwpX7bCLgsQgP0kbKfytNWzwkZqMRBPY= X-Received: by 2002:a05:6830:1f16:: with SMTP id u22mr2360199otg.118.1601659073683; Fri, 02 Oct 2020 10:17:53 -0700 (PDT) MIME-Version: 1.0 References: <20200924110449.329523-1-ulf.hansson@linaro.org> In-Reply-To: From: "Rafael J. Wysocki" Date: Fri, 2 Oct 2020 19:17:42 +0200 Message-ID: Subject: Re: [PATCH v2 0/3] PM / Domains: Add power on/off notifiers for genpd To: Ulf Hansson Cc: "Rafael J . Wysocki" , Kevin Hilman , Linux PM , Sudeep Holla , Lorenzo Pieralisi , Daniel Lezcano , Lina Iyer , Lukasz Luba , Vincent Guittot , Stephen Boyd , Bjorn Andersson , Linux ARM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 28, 2020 at 1:57 PM Ulf Hansson wrote: > > Rafael, > > On Thu, 24 Sep 2020 at 13:06, Ulf Hansson wrote: > > > > Changes in v2: > > - Improved error handling in patch3. > > > > A device may have specific HW constraints that must be obeyed to, before its > > corresponding PM domain (genpd) can be powered off - and vice verse at power > > on. These constraints can't be managed through the regular runtime PM based > > deployment for a device, because the access pattern for it, isn't always > > request based. In other words, using the runtime PM callbacks to deal with the > > constraints doesn't work for these cases. > > > > For these reasons, this series introduces a power on/off notification mechanism > > to genpd. To add/remove a notifier for a device, the device must already have > > been attached to the genpd, which also means that it needs to be a part of the > > PM domain topology. > > > > The intent is to allow these genpd power on/off notifiers to replace the need > > for the existing CPU_CLUSTER_PM_ENTER|EXIT notifiers. For example, those would > > otherwise be needed in psci_pd_power_off() in cpuidle-psci-domain.c, when > > powering off the CPU cluster. > > > > Another series that enables drivers/soc/qcom/rpmh-rsc.c to make use of the new > > genpd on/off notifiers, are soon to be posted. However, I would appreciate any > > feedback on the approach taken, even before that series hits LKML. > > > > Kind regards > > Ulf Hansson > > > > > > Ulf Hansson (3): > > PM / Domains: Rename power state enums for genpd > > PM / Domains: Allow to abort power off when no ->power_off() callback > > PM / Domains: Add support for PM domain on/off notifiers for genpd > > > > drivers/base/power/domain.c | 187 +++++++++++++++++++++++++++++------- > > include/linux/pm_domain.h | 19 +++- > > 2 files changed, 171 insertions(+), 35 deletions(-) > > > > -- > > 2.25.1 > > > > I will need to iterate patch 3, potentially even a couple of more times. > > As I expect patch 1 and patch2 to not get changed, may I suggest that > you pick up those so we can move focus to patch3? OK, [1-2/3] applied as 5.10 material with minor subject edits, thanks!