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: 234991 Delivered-To: patches@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp889082ilg; Tue, 7 Jul 2020 05:58:19 -0700 (PDT) X-Received: by 2002:a2e:6f14:: with SMTP id k20mr31545436ljc.224.1594126699498; Tue, 07 Jul 2020 05:58:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594126699; cv=none; d=google.com; s=arc-20160816; b=uD2r9i1W66ZMFJXx/e+Od4OA9MWB6OdcTF9rvZAzqpBNTgNRGhikC/Vdth0jS4vMkU x5cRsHL/pu56VJGE4cK36wn8Z4Ex+ADe2tiDwJKXLYKdk5jEhbRMRiPLMM8WX5IhdZVX jp0ONu9qDwPC8Ir9B9KzWgvypArOtWTSQoCTTIzoykeJdJpyjWomWpHp6aDHgC83OWS9 2stlKPnEGAVjR3a62cMblpy/19xPO4LdDp5WXfyp4vQpWKBpal0/xgQPdWQ1uG8ebmzL d/tzjdYfO7zykZ0Ze8QKnjQD66Y81yoQUx5D8xjnm6SMXK7U1YfVQ3jC20hPr2dHA1KI s1Mw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=5QPCeXu6BWoF2sfrIOTCH52uavZZh/rGlBAHnTqsaz4=; b=Z3pYHa3DjLWXXYhYyyfU+xZuUyWiTpijzfGI3wJwfh129w9h4E49rFwqkRM0/e+X6W pr+se53zO8NvTmdnYmehQg+6uBCwAkNnMK86Sq+xg0coveIqEjWdQ5Yx76wkAPE2rSm9 IPy5K400gf+jZYK3JZ32ViFM7lUGWkQ0xjfJ159sbhoU+Rmzh/jBNw+v1710brtGEjB+ Oi2xCLCEPPSgwzEc4eXT+5/wKTuYaSkt1PVYaE3IE4VtpxY1j0cBU/8SWoQgbsyIv+cl DEJrh+jyDX6OS7FXksB3x72rSlC/u8ZRfvDf+83hQ2YpuzZ3dAI4/4GKpPv2N0JCRXe6 VsKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ys5Fb/Wa"; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id j14sor6493065lfp.50.2020.07.07.05.58.19 for (Google Transport Security); Tue, 07 Jul 2020 05:58:19 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="Ys5Fb/Wa"; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.65 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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=ZJlmSF3+g/QAaNzp5iTwfj0r4FdDD/0Qi7HKVQ7lwBIMkyjwLtNEM5OXBmy50pC6a5 5sGuvhdYHT3+mG0EfctDPW3EHSxRnXtbQMDqJRLOQukjDjVvClAIf+az1vRRS9b3lVZs k0m2sprBBhbre3kpZTEbdy7QEx0muRnbVF3s5GlcbYnXRPVnOytSXDlSiY9yIqtCy+Yx gD2CF8iQEBFtx0PjlyubQWxwA60LNsTDaRO2Mggq7QZbQJTX7JFRrtVWHPXr2U6V7tQC HKPBHrcDYzoZ2VtRCk1VXGHCEQ7owj0DVGr53mB2tu8Gom5/azqwjICbtB3GQ10oM8s8 wjqQ== X-Gm-Message-State: AOAM5338IGmyiVmk8ya+BYzpMcZJUP5V4SwN2t5iBFhN4oxbQ4qYBnd2 bSHTDDwKcmP93yZsnNbKJpWEASuk 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) Return-Path: 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 Cc: "Rafael J . Wysocki" , Daniel Lezcano , Lina Iyer , Lukasz Luba , Vincent Guittot , Stephen Boyd , Bjorn Andersson , Benjamin Gaignard , Saravana Kannan , Ulf Hansson , linux-arm-kernel@lists.infradead.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 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(-) -- 2.20.1