From patchwork Thu Jan 2 16:08:20 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 11315947 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id C7213138C for ; Thu, 2 Jan 2020 16:08:26 +0000 (UTC) Received: from web01.groups.io (web01.groups.io [66.175.222.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7D45A21D7D for ; Thu, 2 Jan 2020 16:08:26 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linux.kernel.org header.i=@linux.kernel.org header.b="pMPRqZVo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7D45A21D7D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=bounce+26986+1061+1554929+3438807@linux.kernel.org X-Received: by 127.0.0.2 with SMTP id cJmZYY1556264x2n3KdvqNZn; Thu, 02 Jan 2020 08:08:26 -0800 X-Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by mx.groups.io with SMTP id smtpd.web12.13478.1577981305624957433 for ; Thu, 02 Jan 2020 08:08:25 -0800 X-Received: by mail.kernel.org (Postfix) id 1CBD1206E6; Thu, 2 Jan 2020 16:08:25 +0000 (UTC) X-Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B8D4222314 for ; Thu, 2 Jan 2020 16:08:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B8D4222314 X-Received: by mail-lj1-f194.google.com with SMTP id a13so41176782ljm.10 for ; Thu, 02 Jan 2020 08:08:24 -0800 (PST) X-Gm-Message-State: URrsazfDlCqKwI2dGcLTBbTrx1554929AA= X-Google-Smtp-Source: APXvYqxpuLmLhv6JkG6FkQ02uFQLUMKN0SFHEatYF5ZKIOBYVhHCVtmDGprRi3auVS1xmWEmpcBpZA== X-Received: by 2002:a2e:3608:: with SMTP id d8mr48249090lja.152.1577981302762; Thu, 02 Jan 2020 08:08:22 -0800 (PST) X-Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id u13sm23198924lfq.19.2020.01.02.08.08.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jan 2020 08:08:21 -0800 (PST) From: Ulf Hansson To: Linuxkernel+Patchwork-Soc via Email Integration Cc: Olof Johansson , Arnd Bergmann , Kevin Hilman , "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , Rob Herring , Andy Gross , Bjorn Andersson , Ulf Hansson , linux-arm-msm@vger.kernel.org Subject: [GIT PULL] cpuidle/psci updates for v5.6 Date: Thu, 2 Jan 2020 17:08:20 +0100 Message-Id: <20200102160820.3572-1-ulf.hansson@linaro.org> Precedence: Bulk List-Unsubscribe: Sender: patchwork-soc@linux.kernel.org List-Id: Mailing-List: list patchwork-soc@linux.kernel.org; contact patchwork-soc+owner@linux.kernel.org Delivered-To: mailing list patchwork-soc@linux.kernel.org Reply-To: patchwork-soc+owner@linux.kernel.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux.kernel.org; q=dns/txt; s=20140610; t=1577981306; bh=6h/Td5TBoFuEsTdQ9qLyNACkhBGl6iFEpmSurK2Xs74=; h=Cc:Date:From:Reply-To:Subject:To; b=pMPRqZVosBy2SR907NIYzw1KgXXHezaAxrdMBzxDEFkF2yPiSSO8ezFD0P9vnOcAkej kY/ydJdRs/+xwnjuOd44xcZHSnhA9tFex6dDSo9ki93Ih+8JsFJ/Q3dF1fFpGZrvMbFr/ j3kl8F7Om5yNifFZsuAj9XrzALbpoALbWNU= Hi SoC maintainers, Here's a PR with updates for v5.6 for cpuidle/psci for ARM/ARM64. The changes are somewhat sprinkled over a couple of different directories and there is also dts update for MSM8916. The main changes are in drivers/cpuidle/, which have been acked-by Rafael [1] and Sudeep. If you have any further questions, please just tell. Please pull this in! Kind regards Ulf Hansson [1] https://lore.kernel.org/linux-arm-msm/CAJZ5v0gSY_Zg+sbBEfTaeBCiOf_L6JP4_-4tdpeFU0iCGJu3Nw@mail.gmail.com/ The following changes since commit fd6988496e79a6a4bdb514a4655d2920209eb85d: Linux 5.5-rc4 (2019-12-29 15:29:16 -0800) are available in the Git repository at: git://git.linaro.org/people/ulf.hansson/linux-pm.git tags/cpuidle_psci-v5.5-rc4 for you to fetch changes up to e37131556801dd76880914f0930fe0cbd1fd3223: arm64: dts: Convert to the hierarchical CPU topology layout for MSM8916 (2020-01-02 16:53:10 +0100) ---------------------------------------------------------------- Initial support for hierarchical CPU arrangement, managed by PSCI and its corresponding cpuidle driver. This support is based upon using the generic PM domain, which already supports devices belonging to CPUs. Finally, these is a DTS patch that enables the hierarchical topology to be used for the Qcom 410c Dragonboard, which supports the PSCI OS-initiated mode. ---------------------------------------------------------------- Lina Iyer (1): cpuidle: dt: Support hierarchical CPU idle states Sudeep Holla (1): cpuidle: psci: Align psci_power_state count with idle state count Ulf Hansson (13): dt: psci: Update DT bindings to support hierarchical PSCI states firmware: psci: Export functions to manage the OSI mode of: base: Add of_get_cpu_state_node() to get idle states for a CPU node cpuidle: psci: Simplify OF parsing of CPU idle state nodes cpuidle: psci: Support hierarchical CPU idle states cpuidle: psci: Add a helper to attach a CPU to its PM domain cpuidle: psci: Attach CPU devices to their PM domains cpuidle: psci: Prepare to use OS initiated suspend mode via PM domains cpuidle: psci: Manage runtime PM in the idle path cpuidle: psci: Support CPU hotplug for the hierarchical model PM / Domains: Introduce a genpd OF helper that removes a subdomain cpuidle: psci: Add support for PM domains by using genpd arm64: dts: Convert to the hierarchical CPU topology layout for MSM8916 Documentation/devicetree/bindings/arm/cpus.yaml | 15 ++ Documentation/devicetree/bindings/arm/psci.yaml | 104 ++++++++ arch/arm64/boot/dts/qcom/msm8916.dtsi | 57 ++++- drivers/base/power/domain.c | 38 +++ drivers/cpuidle/Makefile | 4 +- drivers/cpuidle/cpuidle-psci-domain.c | 308 ++++++++++++++++++++++++ drivers/cpuidle/cpuidle-psci.c | 161 +++++++++++-- drivers/cpuidle/cpuidle-psci.h | 17 ++ drivers/cpuidle/dt_idle_states.c | 5 +- drivers/firmware/psci/psci.c | 18 +- drivers/of/base.c | 36 +++ include/linux/cpuhotplug.h | 1 + include/linux/of.h | 8 + include/linux/pm_domain.h | 8 + include/linux/psci.h | 2 + 15 files changed, 747 insertions(+), 35 deletions(-) create mode 100644 drivers/cpuidle/cpuidle-psci-domain.c create mode 100644 drivers/cpuidle/cpuidle-psci.h -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#1061): https://linux.kernel.org/g/patchwork-soc/message/1061 Mute This Topic: https://linux.kernel.org/mt/69382185/1554929 Group Owner: patchwork-soc+owner@linux.kernel.org Unsubscribe: https://linux.kernel.org/g/patchwork-soc/unsub [patchwork-linux-kernel-org@patchwork.kernel.org] -=-=-=-=-=-=-=-=-=-=-=-