From patchwork Fri Mar 3 20:41:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 94864 Delivered-To: patch@linaro.org Received: by 10.140.82.71 with SMTP id g65csp418672qgd; Fri, 3 Mar 2017 12:48:59 -0800 (PST) X-Received: by 10.98.56.2 with SMTP id f2mr5834924pfa.130.1488574139730; Fri, 03 Mar 2017 12:48:59 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p22si2934772pli.166.2017.03.03.12.48.59; Fri, 03 Mar 2017 12:48:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752180AbdCCUs6 (ORCPT + 13 others); Fri, 3 Mar 2017 15:48:58 -0500 Received: from mail-pg0-f50.google.com ([74.125.83.50]:34972 "EHLO mail-pg0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752037AbdCCUs6 (ORCPT ); Fri, 3 Mar 2017 15:48:58 -0500 Received: by mail-pg0-f50.google.com with SMTP id b129so47502975pgc.2 for ; Fri, 03 Mar 2017 12:48:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=TNx6aZhXWcsqsACoA60STdohoArbC3xqRgfz2d41z+k=; b=jJXS4uYWCfp2OibYM9DYi/WgSN3qGPBlBFg9NukORRCZ6fdZWvtZMFaOP6J/FIouXR 3lvhM8GOYp5aYzxYQlKxk3cICFb6jlHEIJ3v/+gvaD7zB2U2vp2lU9Ii3+2dQjtf2IHJ NRgN92B4Zh7MDLk34gLNaOOQ2BJ89EYc3Zg84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TNx6aZhXWcsqsACoA60STdohoArbC3xqRgfz2d41z+k=; b=WbTFftiDuOMhjYmuKos4gw1GqAly0m80QA9ugBKd3RmS4tGugQPsEeuC9VSsjl8Lnd kWUhe4RRlAdQbnZxnaVBV9QuO7RJIuY7PcwocdHI3/B8wzhgXl5D0fMbeBguVdDrtOF5 quDwlKd/XT+7PBMSyimO2aLH5kgaLxq0u+SmgN/YQLvPUwWiuPTt+pj4TCxvldYFWnWQ XOK7kKAVmWGX0mekhOQs94oLhOWYTKiZf0OO6AWfaoa4HHQiOB22iCQNgcZZvc0nrkdO 54J9Ru7KfJrwUJWGgahN49W6YwDp7hpPgj77KH659JOAaLvYdTzNUEZKuoQClUebJ4TZ V6Vw== X-Gm-Message-State: AMke39lNmniyVeryn0sGITT/mGe1DqFZtNw7woszmnkcS9vXghak/1nEDlkFHjwMmKOo3FEX X-Received: by 10.98.213.130 with SMTP id d124mr5723046pfg.172.1488573700613; Fri, 03 Mar 2017 12:41:40 -0800 (PST) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id o189sm25207003pga.12.2017.03.03.12.41.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Mar 2017 12:41:39 -0800 (PST) From: Lina Iyer To: ulf.hansson@linaro.org, khilman@kernel.org, rjw@rjwysocki.net, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: andy.gross@linaro.org, sboyd@codeaurora.org, linux-arm-msm@vger.kernel.org, brendan.jackman@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, Juri.Lelli@arm.com, Lina Iyer Subject: [PATCH V5 0/9] CPU PM domains Date: Fri, 3 Mar 2017 12:41:26 -0800 Message-Id: <1488573695-106680-1-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi all, This is the revised patchset after good discussions at Plumbers' conference. So far, the design fashioned a PM domain around a cluster of CPUs. After discussions, it was agreed that each CPU will be considered a PM domain, for it can be powered on/off individually. This series implements that change. This set adds support for CPU PM domains. One of users of CPU PM Domains is PSCI on ARM architectures. A following patchset will add that support. Changes since V4[1]: - CPU PM domains re-organized - Update patchset to use hotplug mechanism - Rebase on top of rwy/linux-next The patches do the following - #1: Allows CPU's idle states be presented using domain-idle-states property #2,#3: Add runtime PM support for CPU devices #4: Create PM domains for CPUs #5: Export timer for CPU wakeup #6: Determine CPU cluster wakeup #7,#8: Data and DT support for CPU PM domains #9: Add Documentation Thanks, Lina [1]. http://lists.infradead.org/pipermail/linux-arm-kernel/2016-October/463419.html Lina Iyer (9): PM / Domains: Ignore domain-idle-states that are not compatible drivers: cpu: Setup CPU devices to do runtime PM kernel/cpu_pm: Add runtime PM support for CPUs PM / cpu_domains: Setup PM domains for CPUs/clusters timer: Export next wake up of a CPU PM / cpu_domains: Add PM Domain governor for CPUs PM / Domains: allow platform specific data for genpd states PM / cpu_domains: Initialize CPU PM domains from DT doc / cpu_domains: Describe CPU PM domains setup and governor .../devicetree/bindings/power/power_domain.txt | 4 +- Documentation/power/cpu_domains.txt | 109 +++++ drivers/base/cpu.c | 15 + drivers/base/power/Makefile | 2 +- drivers/base/power/cpu_domains.c | 480 +++++++++++++++++++++ drivers/base/power/domain.c | 16 +- include/linux/cpu_domains.h | 68 +++ include/linux/cpuhotplug.h | 1 + include/linux/pm_domain.h | 1 + include/linux/tick.h | 10 + kernel/cpu_pm.c | 47 ++ kernel/time/tick-sched.c | 11 + 12 files changed, 755 insertions(+), 9 deletions(-) create mode 100644 Documentation/power/cpu_domains.txt create mode 100644 drivers/base/power/cpu_domains.c create mode 100644 include/linux/cpu_domains.h -- 2.7.4