From patchwork Tue Mar 3 20:35:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 184149 Delivered-To: patches@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp4079611ile; Tue, 3 Mar 2020 12:36:18 -0800 (PST) X-Received: by 2002:a2e:7d0b:: with SMTP id y11mr3422727ljc.95.1583267778111; Tue, 03 Mar 2020 12:36:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583267778; cv=none; d=google.com; s=arc-20160816; b=fHIXRyus1KkTOUcPG+7LbhhqPRh/yyvJHITcnAqg/yQKm2k30hqPPmh8BxBblvQNOj RM3IHzBTIc5p15b5eDw4K8e5FmX6Wj31lHKiDtFA+kk/m69HCzOIT9wXJGWEmio0nNta 7cz9y6qYA2dxkaMP1600HslfEjRvo6slErHp/SCMoM3HZkh8idqZWAWDY/90Y7e1xWUk EPibUBPN/ex9O4hPPDJtaEGLEBXpHoeJrqeuWGbI2uMIvxtC9PE8M6/VwuslLJbjJRWV BP22RNcmscEmvTIZtAeL9W6ksNJHQBf5XVx3jXFQS/l1cqhiOr2AVHOHsJF2lRXsUxfl r9pA== 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=5+bbZY+UsNnL04aTIiRpPmDrPXRA/0XmSjw+FgKbksk=; b=gvLlbd8Vk2tnEX34vQUjyd5MMIirepHwjNPj0bPr6G/AgVXwdhS2pavcCBXa8FPY2s YxWB/H35sFeCPYJJaFnjRT9BCrq0Mr8DGJWxMLKOvxFBTa7AzO6h34sLL8Db4ZUnqpri OPQSkjZGt9AOSp9wQKmrku/AKpjiwMG2q82Fj0fEASj7OhVZVEgfKPzuT5sE/rjwpRGZ WsOT7q8iZcBEXvrDDpp5EW38NPH/54hHAfU4xXwX7HQu2Cn451yOyXRu4AOS+dUEC4SW 77KFa1344/8iKLwd4O/edeKtGewtiKwx65Fa0DzbUi6EoolpxwN/xli9geePTxNe73ZR u/ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MYdizgqu; 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 q64sor4819678ljq.13.2020.03.03.12.36.17 for (Google Transport Security); Tue, 03 Mar 2020 12:36:18 -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=MYdizgqu; 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=5+bbZY+UsNnL04aTIiRpPmDrPXRA/0XmSjw+FgKbksk=; b=MYdizgquonWpZBpfTQ0jzerK3kK9LeudcWxqxJ710OmJ3xPJXuGTJy9PMARessYarQ RJCnp9pKXBCsDDk5QJC+LDix5HGrmNOlG4159dEsvuoIMVofyHybb5PZoQ3VJHjEW2O4 uZGu7eeWv/4kJ+f0W+umTqAHZ+s6Cst+KhrgYUN5srxUgzM53QS8yORqxHWzb24ebYBs 86ZuCfk2d6ZQ/XeDwgvM/ax4OTWoyWyNsvF9djVefusgQEmGRXAGHPo0pjzraimis4VL LZDq1l6640NeHHEIsHh+0dut90Z4ONsCGjBrmOxyjgarr6dGyn8YSIW/odBez8wylQSy QMBg== 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=5+bbZY+UsNnL04aTIiRpPmDrPXRA/0XmSjw+FgKbksk=; b=G3DwYkCY/ROLyg9h/KBSuXjNGBiV/YqhEBqvW93EjfTtKDtDhlGhox/2CYi/UvbFR0 jEg3MtQ86o+PzQrA9sZ7sHxGjw2ky6LEjEPLpwlOK66fpuKziShPCHda7tpJfnURcgvo dtLFGSijkVnvo9CGR2HgvsEQx30CD4ErJY/TujEf8P0zPJkeUmOZzvAquPuDq3FiNMeT qS2dvrpB8c8cRT2iLRZcoEzrB27w73lW7Y1ztV1Mfe5h0BzMVPAcxtLI5bchlp8TUZo1 8FDthCtvZOKhRj26ZKAFd4dHeLe6WcygMnn1o+bJB/eOZQnN+tQsPlkKF08D15CsQqYN fxjQ== X-Gm-Message-State: ANhLgQ2yfXGU6AjJu2NweIrytMW+jZDUPXGuVT7G0t92TCH835xwSIWw RxS+WBjLP7FDkfpOHmCMAvdF/olD X-Google-Smtp-Source: ADFU+vs3C98soMOJnxS970oeUUzODjBIS+POFjrHM2XmE9VThLMxFSqHh+D6NIBRdP/2VoBr1tq/QA== X-Received: by 2002:a2e:80c3:: with SMTP id r3mr3439399ljg.105.1583267777636; Tue, 03 Mar 2020 12:36:17 -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 t195sm1339532lff.0.2020.03.03.12.36.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2020 12:36:16 -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 v2 0/4] cpuidle: psci: Some fixes when using the hierarchical layout Date: Tue, 3 Mar 2020 21:35:55 +0100 Message-Id: <20200303203559.23995-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Changes in v2: - Small changes to patch 3 and 4, see their changelogs. 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. Kind regards Ulf Hansson 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 | 92 ++++++++++++++++----------- 3 files changed, 63 insertions(+), 37 deletions(-) -- 2.20.1