From patchwork Mon Jun 15 15:20:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 187943 Delivered-To: patches@linaro.org Received: by 2002:a54:30ca:0:0:0:0:0 with SMTP id e10csp2633374ecs; Mon, 15 Jun 2020 08:20:58 -0700 (PDT) X-Received: by 2002:a2e:9804:: with SMTP id a4mr13921013ljj.369.1592234458214; Mon, 15 Jun 2020 08:20:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592234458; cv=none; d=google.com; s=arc-20160816; b=m2INc5+svFJA3dG21WDzbEXkhtznb+rnxYSbc6F0oimOEF35xl9lYc7aX1run08DQ4 smHjczi78YE9B1PXtHifzFCo5HXjqSV19bBqmBXO55upRtz7vnm/3ygpt6Lbo6/aTQRZ aiGMCsB9CujFISyUYCxQlRXXilcxnZgbLDybAkaJ6kTrbQjOVYEQJDrkDiKNwfjimWBA N4W8hg2/WGBD5XgS8I1Mlx+asRJIdu2JM8dhSeiXyn/X0xZEyiKUW2nmwADv2d6imvha f6H2ru1t7rGeCVvmVfMT2ipae9ViXMdK8QY4f4GDaNGe851dKfkXO2TNIK7Ek6Duwg4O mvwA== 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=5YUAhbASJon5GxhmWno0UoRd7BXd3jntWstkJEM2o8s=; b=lEk0fjp9+rBRrht8F8xzCY5I0Rq/KJclKUkSiBF/0MgIE0B0GzqfO/6LnXMe+mDT4m 12T/UA8ku3sQUgBDJNkzdL1Nn7PBzcT1xrmby5JvTZWleoS8j8BUym3wsnRUVXEosGiJ ZGawVX4of15iNvAg0b09RBTgo5D+dzLgBbiG7/YiJhY8laoesrRfeXk8fHQIYmFP6fIU zPwozd+BFUL3CdPjtD6PGllJsS3IKT//SBZBKFiq4M0ZvCQ2xCreN0SICTp+MNMHojXD lz21YA9b9PSplFKWnHIPKwfqtA5r7tO2dZIGlBQJUi99k5W2Ppq7j3+v6tF3pxsRzGVw AbeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yNn2ctI1; 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 s27sor7242368ljm.44.2020.06.15.08.20.58 for (Google Transport Security); Mon, 15 Jun 2020 08:20:58 -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=yNn2ctI1; 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=5YUAhbASJon5GxhmWno0UoRd7BXd3jntWstkJEM2o8s=; b=yNn2ctI1SfK1LU9sjVUCAZM9mhj4YDZuAWmfynbvq85hPMfnCOhaC6oCQBS3Q4um9u mv1svS6NviJsqTxaZEffHLdtwWaeLQ3xfQnJgPM2jFVQ93fQ06n1B35N/Vnq4XVvNL+i pQSTGwfgG+Ewgxvnps2493sU126aJvkx55UYYaObKtYFBs2Pbm36wyapZiko4NGGs40c hJi46M5jehm/uTcc5wQOa2uaYjxg9upPkg5I4HWroA8iBTW/7i+oBk7HRNw7Mep0BYoL lPvEOj7HJlpEgxeuVQ2Lc936Wo65dMpvixTd60yjBJE97GplYXkCEebiQ7DLpbn4wu9S L0Og== 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=5YUAhbASJon5GxhmWno0UoRd7BXd3jntWstkJEM2o8s=; b=N5lj8lrE2PHs5cP0nGN5tqNfriglxudE7LjcbwTnZowC3uZQE8HwVs78gcJhWdjxlb NJ8yLL8HNN7T96MqsItOs02qCzZDz+WAbySDRgGfF0E01K0JWnTG2VL78s0pr85D9pkB 6dLTG2vOOL6KLq/yeropFxzcG6duq6HN3HNOpHWUK6IepqsHk4k3M3cXp5jUUI2jdo+K 6nuIfbB1KBF8sY5S8Wf1f5rQvShbjJj0+izMDRsw2g9VSv7SlvOp69Da0gLiaP6R1V3n CC7KtU1QrohTrVJs/zXxGQuxBpkf99PWol22WV8sjzoDIv23De059Nlo8tCA5d8HhMD/ eX5g== X-Gm-Message-State: AOAM533kFkNitzpTKeZgxiKKIRrCiOerGE8qw6usdLGdzTsDRyT8cVqM dWsyVLE2S2rcx+MC8urzG4S1EfVF X-Google-Smtp-Source: ABdhPJzFxU2e2MXPewL8AqJPAT1Mbo56PQXpiOZD7US0acJ+F2SxlwrrnbD5r4HvBYB8XfHD2pIMHw== X-Received: by 2002:a2e:8809:: with SMTP id x9mr11781735ljh.442.1592234457863; Mon, 15 Jun 2020 08:20:57 -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 r13sm507045lfp.80.2020.06.15.08.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2020 08:20:56 -0700 (PDT) From: Ulf Hansson To: Sudeep Holla , Lorenzo Pieralisi , Saravana Kannan , linux-pm@vger.kernel.org Cc: "Rafael J . Wysocki" , Daniel Lezcano , Lina Iyer , Vincent Guittot , Stephen Boyd , Bjorn Andersson , Benjamin Gaignard , Ulf Hansson , linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/5] cpuidle: psci: Various improvements for PSCI PM domains Date: Mon, 15 Jun 2020 17:20:49 +0200 Message-Id: <20200615152054.6819-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 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: Fail cpuidle registration if set OSI mode failed cpuidle: psci: Fix error path via converting to a platform driver cpuidle: psci: Split into two separate build objects 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