From patchwork Tue Nov 3 15:06:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 320418 Delivered-To: patches@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp4658076ilc; Tue, 3 Nov 2020 07:06:37 -0800 (PST) X-Received: by 2002:ac2:5ecc:: with SMTP id d12mr8281678lfq.487.1604415996880; Tue, 03 Nov 2020 07:06:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604415996; cv=none; d=google.com; s=arc-20160816; b=bqxkxSsezGL4WQP7mFEomFrFLYUKHOD2HL0jOjFX1cEdGp4OtioGeJDBQh4HgwjV0R /NTaJ60HvzyTaiFk8agxMfNkeHTG486gRGDgI+LBmLFyhi5wUhSSojonOVE20HLZmVMh dtlctoR6sUYpunG/UOUSXfxE6QeJSMWZAVyxSMooiNA8OxjoGEhhrv1jzt3jDVZ7E35s BXoRS7XbTt1Fd1Hra4P/WFyTGtWfUpx+CbQIYLtzUHOVkHRlPce2XbmtG7lybdrI7J1I jn9xND3if752untnk7PlIJ+spc/z5LIwHYUAdIcH8LySoL9U4FiyRZMnfdyseZAxYem1 mdDg== 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=BHDCMDlrohCTOGKYaepJhi6rvYrdThrY2212XNgPaeY=; b=oT4lSEqgNyHgBH2cHXRcYpm/SFg80Svx3G3KQIFFFUfXLtVLw/fyBvS52+LC/VZxsQ AtRQB5RD1wxYpFGUZ0Vyby+XG7SnndD8wkTEmeYhpRV2zgDaijuDjajsesJL8CKKddl5 yf4RszBJCMRiGjXJl42yzQbg+SlOIgZzop1UGTnq9W/njI+pqc6varzWMh7/tXAm/8LT wQZjEe5Un/2QUPladNIm95DllnPk+BOb8ORfWkowihSwqWEWS/IrQDhPHoopvq12Z8C6 +IM3BXdvGPaB65sjR7d3jQR/ztVd1L0lcyNnOfqN6bpkEcMIhg+rk33Cnnd/189Q4hFB /bsg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fxurON8U; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 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-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id x19sor7419288ljh.35.2020.11.03.07.06.36 for (Google Transport Security); Tue, 03 Nov 2020 07:06:36 -0800 (PST) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fxurON8U; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 209.85.220.41 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=BHDCMDlrohCTOGKYaepJhi6rvYrdThrY2212XNgPaeY=; b=fxurON8U1PBvzdJCjnx9ILqK1/xymSmnN35yPhW0CEKttBN9cJlXfQZg4AUkni8lR2 K2tXwEUMCsKjiKJ35eJ6DfFeCSM/iuwXx3j8AfQdRda6+1MnWFsX+b/fisUa/emw7xmb zZTCBdi7MVast91cJTk+LQwP0MI2vr/fYlov1xLWAWOet+eBBR+4rdteP5Z15Qu57YR7 7Eh0xNz5/8nriJHRBy7clB3j7gTYcYVpP8Di9IfXByXl3zjensM4BsA9iy1k2UQOzaHK ncki+98Yw+M9pvaUSJIcRruWPRceSFlLfjO30WUsBShPtF3ePrqDtxqyGGLfqliQdcIu 3jzQ== 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=BHDCMDlrohCTOGKYaepJhi6rvYrdThrY2212XNgPaeY=; b=nTP4O2G3KP6+UM+/GUDQGZKncChlcdrbA8GmWcFW08P6nft6IO+PGJs1x9/gX76wL8 gG/UMyKHveXi222+JvFPnMPnDqmOwaX6QtVKhJlqdAf+omWUsVjj8pYLuerbHYAyE7XV iW0wT3vKG2e7C55pZhmyct3tUaxS62bZ9APtobB7FpagmFdq861x+nZouMYiuwmU4S9P ujQBa3lMTq/Q/JijLoPfE0Hf3pWBs33mPSyAjIshtng4GWn9M0hty00X5sEVkvpT8SO2 0GiVe5oyCJ4JaHYA/N9wccnRkuTUVCd6cbrWFVPNEUGvPE2ToR/RPAJMKN6g6VlcXGDM C0pg== X-Gm-Message-State: AOAM533px6FqZAfn+/gvIz/cVCUZgH6UGqTESAuq4PGFRjp7z6kK8aAu x62hrWQuRG/qzFlVRcXs84CZTAOC X-Google-Smtp-Source: ABdhPJyAi7WkrEXPhC//lnMhPjRF9atgaYLSoQOGdckgfwbyqw9DkLp0Jcks3aAvvPIMRjC3GSa9zg== X-Received: by 2002:a2e:8787:: with SMTP id n7mr9228040lji.111.1604415995742; Tue, 03 Nov 2020 07:06:35 -0800 (PST) Return-Path: Received: from localhost.localdomain (h-155-4-131-134.NA.cust.bahnhof.se. [155.4.131.134]) by smtp.gmail.com with ESMTPSA id a25sm3522169lfo.141.2020.11.03.07.06.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 07:06:34 -0800 (PST) From: Ulf Hansson To: "Rafael J . Wysocki" , Sudeep Holla , Lorenzo Pieralisi , linux-pm@vger.kernel.org Cc: Daniel Lezcano , Lina Iyer , Lukasz Luba , Vincent Guittot , Stephen Boyd , Bjorn Andersson , Alexandre Torgue , Ulf Hansson , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/3] cpuidle: psci: Enable s2idle when using PSCI OSI Date: Tue, 3 Nov 2020 16:06:24 +0100 Message-Id: <20201103150627.233438-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Changes in v2: - See changelog for each patch. When using PSCI OSI together with the PM domain topology, the domain idle states becomes selected via calls to pm_runtime_put_sync_suspend(). This works fine for the regular idle path, but not for system wide suspend-to-idle. This problem is because runtime PM gets disabled by the PM core, during system wide suspend. In this small series, these issues are being fixed. Kind regards Ulf Hansson Ulf Hansson (3): PM: domains: Rename pm_genpd_syscore_poweroff|poweron() PM: domains: Enable dev_pm_genpd_suspend|resume() for suspend-to-idle cpuidle: psci: Enable suspend-to-idle for PSCI OSI mode drivers/base/power/domain.c | 51 ++++++++++++++++++--------- drivers/clocksource/sh_cmt.c | 8 ++--- drivers/clocksource/sh_mtu2.c | 4 +-- drivers/clocksource/sh_tmu.c | 8 ++--- drivers/cpuidle/cpuidle-psci-domain.c | 2 ++ drivers/cpuidle/cpuidle-psci.c | 34 +++++++++++++++--- include/linux/pm_domain.h | 8 ++--- 7 files changed, 81 insertions(+), 34 deletions(-) -- 2.25.1