From patchwork Tue Jul 7 12:57:59 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 11648539 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 8C0E713B4 for ; Tue, 7 Jul 2020 12:59:52 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 643F020773 for ; Tue, 7 Jul 2020 12:59:52 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="xkVYmZ3h"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Ys5Fb/Wa" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 643F020773 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=8f1Vn5Uojf1XkUUKeDQ7FUY2QBLgvaWY0fsC6GFOk/0=; b=xkVYmZ3hFklMU/5cpkrlck4nus pC+a0vk7gKoXuwIy54vYawuwonn9m5Kgz5uAki1+hBKVz1YRRIRGmUIg1tuaDZ8cIDzwdR4b/K8vO RZxgp9uQPpvTnV3cx0miL0y8eRPJteb+f+WPrSDuagyDbka9KXeowuZfYwXtKq3eMqVvG5F6mIgC8 Nxk5H1fHjQhfokgAJcGbjDW+UH3198IkMMD4F/963Qh4GvsoulXXVwQGIB1l57zdyANteDca6uUfD Lgw6xaRtOJ53VIziVduERmHE6R8IQ6sAdT8rFmapMSnDox1Wqsa+IXeCWPL6sVsod5yMH0JYYg27A s+iWa7aQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsnB3-0006X5-Sq; Tue, 07 Jul 2020 12:58:25 +0000 Received: from mail-lf1-x144.google.com ([2a00:1450:4864:20::144]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsnAy-0006Uq-HL for linux-arm-kernel@lists.infradead.org; Tue, 07 Jul 2020 12:58:23 +0000 Received: by mail-lf1-x144.google.com with SMTP id y13so24638660lfe.9 for ; Tue, 07 Jul 2020 05:58:20 -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:mime-version :content-transfer-encoding; bh=5QPCeXu6BWoF2sfrIOTCH52uavZZh/rGlBAHnTqsaz4=; b=Ys5Fb/WaS8vr4UorsC8qhs5CHXu/8HPGctmAymK7MD+Ml8caOqMDbDVxnlp8Mpc8ov u01apMYHmzuWiFAPnQlk4vT34z/mTv7e5XPkVrid6ozPF8pKyVP9gGsId9SNe0ktexTq w1H3gXqc9FWjwu0INVZpswlmTWb0mcDIv20mli68wMrF6NIFHcz/6g/b5Aj5ZYBpYeJR tMlPZvMff3+UWJi8PQi4P48iwCz/iCZIHKNQ7EepFWka7zh5slKAViQUs6glEY4T+n2M u2wOTAjx/RCN8Su7L5in76xf4MjkAHjoYSxNXCVyk8rWPk9fSpZ+09SZXBHLscvmdatx IWCw== 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=5QPCeXu6BWoF2sfrIOTCH52uavZZh/rGlBAHnTqsaz4=; b=Z1f89VEvYzyCFLeKF1Wbn3zMTLNO3ujiboOViulLYJVJJavbcatjEJ5P/ueCgvVIkX cqQjyz55uXej33Q7XhEBEoa4VKubFVi/XCsMsDag38DAvOL/bykj2Q3aAazFxGC3LcRZ 1X5wxnlt86OWCTfo3Prk2GH5gj2JPv8oh3Dgj6nkf4KtZixS/wUC84Lo1OIUoEu8Rpqa kwMjOhnN78f6q+3txSRVj7hc1rr5ca8d3+tbrxODGaOBwLqQD60VS9Y8t7kXcTaSoGPI b2IgFmIbDUxRdSA3thE8DNeyC7USUZGsX8E5yXMDxtZnay2jJk5ZWot49EYNxEhueVbO i2oA== X-Gm-Message-State: AOAM5310E1dStFrbI1TErTulhzNmJV1HIENyR/Dj+jmoTP2uXsL0MJdG vyn42Zd9GdtVdLnsX29P21u90g== X-Google-Smtp-Source: ABdhPJwvZp/vEWWuRsY3Dn6udiBMekr0CNBH1Hn4mVH3JFB2UJhhamlayZQ6suVRhfRPbR6zWbqJ8Q== X-Received: by 2002:ac2:5296:: with SMTP id q22mr32640404lfm.106.1594126698144; Tue, 07 Jul 2020 05:58:18 -0700 (PDT) Received: from localhost.localdomain (h-98-128-181-7.NA.cust.bahnhof.se. [98.128.181.7]) by smtp.gmail.com with ESMTPSA id 11sm9554395lfz.78.2020.07.07.05.58.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 05:58:16 -0700 (PDT) From: Ulf Hansson To: Sudeep Holla , Lorenzo Pieralisi , linux-pm@vger.kernel.org Subject: [PATCH v2 0/5] cpuidle: psci: Various improvements for PSCI PM domains Date: Tue, 7 Jul 2020 14:57:59 +0200 Message-Id: <20200707125804.13030-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_085820_692884_3E23F3E0 X-CRM114-Status: GOOD ( 11.06 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:144 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ulf Hansson , Vincent Guittot , Benjamin Gaignard , Saravana Kannan , Stephen Boyd , Daniel Lezcano , "Rafael J . Wysocki" , Lina Iyer , Bjorn Andersson , linux-arm-kernel@lists.infradead.org, Lukasz Luba Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org Changes in v2: - Put patch 3 as patch 1 and rebased accordingly. No other changes have been made. - Added reviewed-by and acked-by tags. The main change in this series is done in patch 5/5, which implements support to prevent domain idlestates until all PSCI PM domain consumers are ready for it. To reach that point the corresponding code for cpuidle-psci and cpuidle-psci-domain, needed to be converted into platform drivers, which is done by the earlier changes in the series. Additionally, some improvements have been made to the error path, which becomes easier when the code gets converted to platform drivers. Deployment for a Qcom SoC, which actually takes full benefit of these changes are also in the pipe, but deferring then a bit until $subject series have been discussed. Kind regards Ulf Hansson Ulf Hansson (5): cpuidle: psci: Split into two separate build objects cpuidle: psci: Fail cpuidle registration if set OSI mode failed cpuidle: psci: Fix error path via converting to a platform driver cpuidle: psci: Convert PM domain to platform driver cpuidle: psci: Prevent domain idlestates until consumers are ready drivers/cpuidle/Kconfig.arm | 10 ++ drivers/cpuidle/Makefile | 5 +- drivers/cpuidle/cpuidle-psci-domain.c | 74 +++++++++----- drivers/cpuidle/cpuidle-psci.c | 141 +++++++++++++++----------- drivers/cpuidle/cpuidle-psci.h | 11 +- 5 files changed, 150 insertions(+), 91 deletions(-)