From patchwork Mon Nov 5 06:36:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 150138 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp2242309ljp; Sun, 4 Nov 2018 22:37:17 -0800 (PST) X-Google-Smtp-Source: AJdET5eUi3CNsFCKqJ5EMXasbLttgyX/kWF8xjXiHwQ+jeh+MlTvVt9Gw2HESNt3EVwI96mRn+lG X-Received: by 2002:a17:902:9b83:: with SMTP id y3-v6mr2365516plp.113.1541399837824; Sun, 04 Nov 2018 22:37:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541399837; cv=none; d=google.com; s=arc-20160816; b=KQyv+8QqmX3iALo/Tpyh8w4afhGgOTYCFc4lEk6vdKH7AhV/uxVPsQvEZ1VOsDmJFp Qf2p5hFkg8DpQStR8INh8dIbM533tYdENIIleS7avJFG3+pd60EklQpwM9r93M4wmbQk 4ERBP/BljBItQ9c5BvF9Jw9/b+sN+CTFPXYD2waNKNvNcVT0VQ3QSoK1IpVQkOGFJy5l ORMs4jpVPFJ515OBVda2OUGmKHoj1bdvJyNp6odGECQPIlt6jbAAkiZM8a5aSD5JSVnq dcETUUWJuvRv9QtnC3lh49bX9M8fjXrX/N5p9zM/VczB3ke+F+3h8rfrVOQCNXq7nwjR Wc/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=LQ/X2djNrbiIHn07t8baiw4Km3mReqIl8q8AgofJG+E=; b=T2wvZ+T+iy15VYaFAoB1BZWv7HjA5yuaSfIKabQwtWzkvnq/fFfNZA5OGUBvGZrGJh xOEHuDFfLNJc0AR0vzM55H+WIo7sfWFsr92za9RLqDcriSuocs6MmuUwNG/7vwAoZsTy P5NkOeYoE48sfewFFRLECzKHqFomsezdUU1kDf8jnUtAMBZwfOiHxz/1LOF6sMWm6Zrm /H5OTGGt7Aar5NKNdBvk8+wPx5TxaZU5k2bXvFNi7xzQ2r0HkV0DWdilPIL5cAqUfkL1 tE3p9f+caMLLrSpySFL1EBOdFXhzv/+154m5LEbVvU7DVzTiHAyOlgoz/zeKRv50/PtU EXCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iaGBk5FJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g70-v6si40999838pfd.86.2018.11.04.22.37.17; Sun, 04 Nov 2018 22:37:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-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=iaGBk5FJ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 S1729397AbeKEPzR (ORCPT + 32 others); Mon, 5 Nov 2018 10:55:17 -0500 Received: from mail-pf1-f193.google.com ([209.85.210.193]:41438 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728955AbeKEPzR (ORCPT ); Mon, 5 Nov 2018 10:55:17 -0500 Received: by mail-pf1-f193.google.com with SMTP id e22-v6so3912607pfn.8 for ; Sun, 04 Nov 2018 22:37:10 -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:mime-version :content-transfer-encoding; bh=LQ/X2djNrbiIHn07t8baiw4Km3mReqIl8q8AgofJG+E=; b=iaGBk5FJOt9he+e8iCataIfHpPyu/xL3CNVsZZ40tSz2rxk0Ei9OAU+9jTsGylVv0h 26EAz98/a70sTe1kxsh8kvYFppVsTkG1CXCKuR+wbpyjltXbm3ZPYR2Z9O0h+qmq3QY/ kQvNJjZ/M2vZfhFbJfRyr9lxiM6SaTzzBI1HA= 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:mime-version :content-transfer-encoding; bh=LQ/X2djNrbiIHn07t8baiw4Km3mReqIl8q8AgofJG+E=; b=lmfTTrBdo6Y4TLXfawhalBuLclqtiptaZQRAkCrneQOMKTPqXUWHvI2jyBLJhHgisZ UzVgmqf5PCIx72IYZz4O5t+tMbekDRrWU9VMhvYFWy2gisAp8JiGQDZxiLR0fJnolyXY cv+EwBCP/8tEcQ2drNrUnXd9x3yDHmC3hJTkDiA9hupHqNFzxfbYtiFL32TnLlqxEJK1 gwz0r23Kdf/dLFDaEXtoWkb9oy7w3KNieiiLbXqpV0Cnq7sfi+X19jLCxoHGZrzPZ9aX XiTMk0bixyvUtWIpLMhAkl8Irv5WBMQF9YZGR8Hp0BF5kGr/u9LnS0EX7xpN1g15fodK 2fTw== X-Gm-Message-State: AGRZ1gLM8JP+/VPG8qtkmX2q+TLhdBShqNc0Pz/hEkc4vK0KeyEsaF52 PzMzhtYeYfFLzLzsXVTc26ye3A== X-Received: by 2002:a63:b16:: with SMTP id 22mr18973859pgl.306.1541399830072; Sun, 04 Nov 2018 22:37:10 -0800 (PST) Received: from localhost ([171.61.116.174]) by smtp.gmail.com with ESMTPSA id s4-v6sm25493592pfh.168.2018.11.04.22.37.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Nov 2018 22:37:08 -0800 (PST) From: Viresh Kumar To: ulf.hansson@linaro.org, Kevin Hilman , Len Brown , Nishanth Menon , Pavel Machek , "Rafael J. Wysocki" , Stephen Boyd , Viresh Kumar Cc: Viresh Kumar , linux-pm@vger.kernel.org, Vincent Guittot , niklas.cassel@linaro.org, rnayak@codeaurora.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/4] PM / Domains: Allow performance state propagation Date: Mon, 5 Nov 2018 12:06:42 +0530 Message-Id: X-Mailer: git-send-email 2.19.1.568.g152ad8e3369a MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This series adds performance state propagation support in genpd core. The propagation happens from the sub-domains to their masters. More details can be found in the individual commit logs. This is tested on hikey960 by faking power domains in such a way that the CPU devices have two power domains and both of them have the same master domain. The CPU device, as well as its power domains have "required-opps" property set and the performance requirement from the CPU eventually configures all the domains (2 sub-domains and 1 master). @Rajendra: Will it be possible for you to run some tests and tell me if some stuff is still missing as per Qcom requirements ? Based on opp/linux-next branch (which is 4.20-rc1 + multiple-power-domain-support-in-opp-core). -- viresh Viresh Kumar (4): OPP: Add dev_pm_opp_xlate_performance_state() helper PM / Domains: Save OPP table pointer in genpd PM / Domains: Factorize dev_pm_genpd_set_performance_state() PM / Domains: Propagate performance state updates drivers/base/power/domain.c | 204 +++++++++++++++++++++++++++--------- drivers/opp/core.c | 49 +++++++++ include/linux/pm_domain.h | 6 ++ include/linux/pm_opp.h | 7 ++ 4 files changed, 217 insertions(+), 49 deletions(-) -- 2.19.1.568.g152ad8e3369a