From patchwork Thu Feb 27 12:45:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 183945 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4468959ile; Thu, 27 Feb 2020 04:46:12 -0800 (PST) X-Received: by 2002:a2e:b78e:: with SMTP id n14mr2710663ljo.269.1582807572325; Thu, 27 Feb 2020 04:46:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582807572; cv=none; d=google.com; s=arc-20160816; b=PLLkn3qO+e1NcI2/ggGkxLJm5PxJpZto4MbmEguyb1WZzHuHF9qbz/XNKjHNjzEyFu TSLhG22rFqRa1IUcQja3d2/InBb3YjKxM0SdoY5arvjQtCNro8m9pdCyI78AbL5e3E8Z oQ0CksgbBkz8KPNMEJdKcFzKeKME5xD1pIVTh/IQ8j6jHBCA7Qn8AkiUzaoy1Jjz+htX tyaw1Tg8MHAUrU7402ZOlCb3s4pBbJB8D8c9WBzUzCcXVQYLHMj6saxf6oEUFjTMfaF7 nqU3PpOGAwyJG27YkF2rmrJozhg4+gr5CbE6D6Zkero5yZx/tb1BVkw0Q8v/MhTm7qPg VaCA== 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=hEHNqtZr84prvnGzPTSQM0fiaw+Go9OgL/MTasulZ2Y=; b=meUgElm9wcvslJF/h7PXPioGUDr7YWNTSQCH+sQhEIwiyGj4Y+e4yJbbGS3DbPFfO8 mlByW5oFmarq3egPQ0m3/59GpxDPWK368JRKF3Fb7ywle/h2l1IQ1RM/03Vzdp2vbcJW MQxo/6g7MvofiXCjLnCTOZneX6julRI5BlaJzaUOjxR2OQeiG37DFtDYz4/1PCNgz5SJ xBZWZJxne384mGtCKqp9DNvpljaRAmNApy4T6b3BLPPJ6TYHvLbI0+2difT3Qv1WFTpT 9dOn3RchMxYypjqeU6GVzbKdoXALS5rsNlJ7qo2uk7q+U6CCZpCkYGQuhx/piZf8VAaN lUVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WDhilDJ/"; 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 c11sor1893849ljd.25.2020.02.27.04.46.12 for (Google Transport Security); Thu, 27 Feb 2020 04:46:12 -0800 (PST) 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="WDhilDJ/"; 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=hEHNqtZr84prvnGzPTSQM0fiaw+Go9OgL/MTasulZ2Y=; b=WDhilDJ/typ2BlzCcai6/yKM8rKBFjmzv/89fuWAqwLgzVG9CyfSB5jCS4iKBnhXPA UYx2q22HanCoBiu6uQWZHkTgy8H0eCi4Y+eHb0oR5CjhltvlIKiTUNt9fcq6WeIFEsv/ iF9pOXg/hoSWdO8gse0z5/Gw24hawWMMFbz54QpiD7ZtG22k9swkMQEsZePf2vF8lGir 1TQ0mMpzXOvu6mQPTwmx9TF6vzegax6N57+2HSsLEcSetlxuje5rpcRFS6szZ6OWQl7m vu2OqprK3KMDJZwfJv0jjt9HoGVpLk0FfWG+hY46k3woVXg2u6cUEcN6zDU8JDLZKXhK n8lA== 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=hEHNqtZr84prvnGzPTSQM0fiaw+Go9OgL/MTasulZ2Y=; b=W1mC/7DQ8hGer3QliYQZEy14ToJmVFlz0sEVgtqLo0P6j6ovZcv1q2B+YKdIt9yfK/ K/9zsW/e31KUQC5CDNzD+flw5kLitD+qOldSRoijbMaSGsjvewcnq26i4zXQ3H4H3JFR H+89jGrEsymJC1Eud59MFyQCB/N75c3+nhEJuqdFaepxCJfnnllphYIBGeKjIET+pUYN +N99M5/SvopfW+8SdonSZ5yti5w0r8o5OtTjAF3EJT5kNGyCxiLC3iEYmxAP3yo8jYPv rMJcXhgHJytL4VUx4zjZLE6DAJ8QHnl70w3zCLsJrUne+5GaIK5ejvzadyY57WZAz6ZF DAEQ== X-Gm-Message-State: ANhLgQ3rwLuI19TJch14vRUa6biAxAHeKnSjQFeZTKjqlqoqx2MoE3lJ SqyQWeXs08CxXHlKcd5ERovKh4rs X-Google-Smtp-Source: ADFU+vu7Ql4hYXMx5DHndFRCmO9xHiwjSi9zx0MKy0UsYpX2RBb22uIL9lTDVCtDCFwFTFuBxw4Eqg== X-Received: by 2002:a2e:6815:: with SMTP id c21mr2538037lja.10.1582807571400; Thu, 27 Feb 2020 04:46:11 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-158-174-22-210.NA.cust.bahnhof.se. [158.174.22.210]) by smtp.gmail.com with ESMTPSA id l16sm2669334lfh.74.2020.02.27.04.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 04:46:08 -0800 (PST) From: Ulf Hansson To: Sudeep Holla , Lorenzo Pieralisi , 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/4] cpuidle: psci: Some fixes when using the hierarchical layout Date: Thu, 27 Feb 2020 13:45:47 +0100 Message-Id: <20200227124551.31860-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 While collaborating with Benjamin Gaignard to deploy the hierarchical layout for an ST SoC, it has turned that I have clearly missed to test a couple of corner cases in recently added support to the cpuidle-psci driver. This series are fixing the issues we have found. Ulf Hansson (4): PM / Domains: Allow no domain-idle-states DT property in genpd when parsing cpuidle: psci: Fixup support for domain idle states being zero cpuidle: psci: Split psci_dt_cpu_init_idle() cpuidle: psci: Allow WFI to be the only state for the hierarchical topology drivers/base/power/domain.c | 2 +- drivers/cpuidle/cpuidle-psci-domain.c | 6 ++ drivers/cpuidle/cpuidle-psci.c | 96 +++++++++++++++++---------- 3 files changed, 67 insertions(+), 37 deletions(-) -- 2.20.1