From patchwork Fri Jun 29 06:19:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 140497 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp450593ljj; Thu, 28 Jun 2018 23:19:59 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLcmeCu9u/u8pY6Nq5D6SrgMZmI2Z+BqJbtGU1vhBUbSp7jdztXrt/y2v8vGSOwO3SbypSD X-Received: by 2002:a17:902:20ca:: with SMTP id v10-v6mr13312570plg.255.1530253199434; Thu, 28 Jun 2018 23:19:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530253199; cv=none; d=google.com; s=arc-20160816; b=TjlNQZ7e7kOIyeKdxhNcNLAtu+7UuPkN7s2G3lBdCKBhPwWbTOUoBeGZh1fgxGGHWC b4VdAHGaV58dkLe61MIXW0B4kGVHGNG6GyMHzl7/VxiDEsYhnMWj0NCJDD9JKEfbkzhi 7QtiNDqoRitZ6ly67dHb2GmbCVOYrO/07NYBMj4AGQrJnWHMf+uS4E/MgT+W34A4gSQH yH5tqSNMl3Z3Bo6hupdvJQtr3h36/4fCTW6/2i+R3McOgCEK5GPeY26b8TaHD9fPn8Z2 TUOGjYt1DlgNkaVX0URMKNKdxiremmVdkaMmDMpcGtqxOb6vQTLX7RweeN+tPFL0ewcI L10Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=NNDon416OtIiKvYg/i1JeW0jt8Q5PbvuSKtWQPBLHSU=; b=yhm75ZDaFIVSd87DxeMQypTGLO6DmFb1Ko4T6zTz51XU3uVEM/MLV4XIBVbRHjgmr1 DEDuvyt5rat60i7ioVF4rabZMDgd8LfzNk/QtF4nXIkPay6H4IU0H9kjKU7FRbBMuQ2N KIKi2xwwY0hKc8yJg8y1UeePHukBjiioTR0WCfWMTCkFp66G+cIgXkj8OyRlJU7Njs5Y T0h35EOElO7cEe3C76eVin38vr0Z5xbuUUu7G91T/70ppSx8sMCdnhDliM3g0UYeI+Sh ep30ZGArG8MWUU4nI3GW4G5tbsZnMtqbl+Zm6TcLHBTDe5BnQPuvbEFpXFzTq42wW8hW Iqtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="V1BG4kY/"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8-v6si8161213pfh.249.2018.06.28.23.19.58; Thu, 28 Jun 2018 23:19:59 -0700 (PDT) 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 header.s=google header.b="V1BG4kY/"; 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 S1753417AbeF2GT5 (ORCPT + 10 others); Fri, 29 Jun 2018 02:19:57 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:40567 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752491AbeF2GT4 (ORCPT ); Fri, 29 Jun 2018 02:19:56 -0400 Received: by mail-pg0-f68.google.com with SMTP id w8-v6so3541668pgp.7 for ; Thu, 28 Jun 2018 23:19:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=NNDon416OtIiKvYg/i1JeW0jt8Q5PbvuSKtWQPBLHSU=; b=V1BG4kY/ItLk59bgrICaqmsJS7mtBEbqvn0TqK+YB5SuklEM1ppF8F9TCcEufUg2fT 7u3M2EKZQqFgnotAuEEn7lU46Mam/r+FbPAafY/ZVYM1fzfMgsEc+80chhnCTHpqRRpm VGOkeZ0mq1JAr995oNN3kLqlXN5/rBynwolDQ= 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=NNDon416OtIiKvYg/i1JeW0jt8Q5PbvuSKtWQPBLHSU=; b=pUbachmfKEXwAqxy+JQ9nAipNuA6BwVbSJ4o1f7O2MJGnwvtSsMvx0z0Dea+vopl9V Qhey/+vKhifwUZlnBJxWA7HOHH6XcmftoeDyoTwW8SsZyWm+aDU4LSp/NJMP/aQjr6Wi glFV+zJ6QoOR9LNSSh0TXmAOKwJlhJa+kuoz1IdfbDuL9zSK55e1t/vbcs2YI6I8vxzb +WhiVWheB7OS1f66KJv8nnIRaX6PtmcMFx6rEc7+vw/CCJfAovcqMB2SKqq/+Gq3WugL 6P7cZkbc1QR6SnpVz4pzpAzF8oYbLN4rnBTE6yIi7B+xVS0vEVeim4/1+ELmBJolt4TN Wx9g== X-Gm-Message-State: APt69E0fVQGoqCE/sYhI7Q4olXaws7UAvk7dVuScHQUdftwYR118tara QkXdKqXyHOM0DrRfeqnip4gJ/w== X-Received: by 2002:a62:190d:: with SMTP id 13-v6mr949715pfz.103.1530253196148; Thu, 28 Jun 2018 23:19:56 -0700 (PDT) Received: from localhost ([122.172.117.17]) by smtp.gmail.com with ESMTPSA id 74-v6sm18141596pfj.127.2018.06.28.23.19.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jun 2018 23:19:54 -0700 (PDT) From: Viresh Kumar To: Rafael Wysocki , ulf.hansson@linaro.org, Kevin Hilman , Len Brown , Nishanth Menon , Pavel Machek , Stephen Boyd , Viresh Kumar Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , Rajendra Nayak , linux-kernel@vger.kernel.org Subject: [PATCH 00/10] OPP: Support multiple power-domains per device Date: Fri, 29 Jun 2018 11:49:30 +0530 Message-Id: X-Mailer: git-send-email 2.18.0.rc1.242.g61856ae69a2c Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Hi, This series improves the OPP core (and a bit of genpd core as well) to support multiple phandles in the "required-opps" property, which are only used for multiple power-domains per device for now. We still don't propagate the changes to master domains for the sub-domains, but this patchset is an important stepping stone for that to happen. Tested on Hikey960 after faking some power domains for CPUs. -- viresh Viresh Kumar (10): OPP: Parse OPP table's DT properties from _of_init_opp_table() OPP: Identify and mark genpd OPP tables OPP: Separate out custom OPP handler specific code OPP: Populate required opp tables from "required-opps" property OPP: Populate OPPs from "required-opps" property OPP: Add dev_pm_opp_{set|put}_required_device() helper PM / Domains: Add genpd_opp_to_performance_state() OPP: Configure all required OPPs OPP: Rename and relocate of_genpd_opp_to_performance_state() OPP: Remove of_dev_pm_opp_find_required_opp() drivers/base/power/domain.c | 82 ++++---- drivers/opp/core.c | 228 ++++++++++++++------- drivers/opp/of.c | 382 ++++++++++++++++++++++++++++++------ drivers/opp/opp.h | 18 ++ include/linux/pm_domain.h | 7 +- include/linux/pm_opp.h | 16 +- 6 files changed, 557 insertions(+), 176 deletions(-) -- 2.18.0.rc1.242.g61856ae69a2c