From patchwork Tue Sep 1 08:27:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 248838 Delivered-To: patches@linaro.org Received: by 2002:a92:5b9c:0:0:0:0:0 with SMTP id c28csp4017756ilg; Tue, 1 Sep 2020 01:27:15 -0700 (PDT) X-Received: by 2002:a2e:3c13:: with SMTP id j19mr12357lja.164.1598948835685; Tue, 01 Sep 2020 01:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598948835; cv=none; d=google.com; s=arc-20160816; b=ZaY7zcTOipASXu/j6teECFaPLHgoOdNty3fbFgJZqdeyqk/Fk0xPc+E7rX1uX05I2Y SpZ4A6q5ki5dr9P0XpEmFJL4fpH8SZbFn2lf8cDVM4XCrbJ3eHSZTa2/5CjErKJ6zoc5 EfHmeK7h2z1isolkiEAUvPY9ZxPZYvjIKdl8Ir5l0+cCrYWr8Y2BFCtWg5mKuLQSDD+N J3fsB+BFpWkyivprpKAGG743KXikNbPXtcX91x/7Jql5ieIIKcP88LENFo7oQG/nKG2m aLkSuhzBOYmcMerhXrBSI//67NM2HQ9VJL53fFxoDLI6QiXUfxBYnyZr4JQ1lb0vpdyw FGSA== 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=DyiOO2gbTzhegJyR3eptVxnGlyGt5L5+5gJciUVklg0=; b=xUrHlXPJ9sWTGi0oM7qm2FIpnpBf/aF9G8q4UdCzT/TLtMobAu+4zgIW8cfZJ2Nsaa Fc0Q9Tz8m6aPv6UmrYAq/2Cgw6ECzpZsAbxJC27HOCDpylztpRSck9VuQZmFP5brGMIj Yp7peFd/uO+cGjh/YNd56GP4CaQ6FPwKMUSI3mVWoPn4rV8qLwZEheN5OYcKpxjpbkfx S+o9VZZawt7xjwlm7Njfr1kZmQZhOYmo0DwrrFMbXzjnzTufqg5kPIleBHLJEmhT47U1 v+HYkhl0aCUadp+i0TaCFxEL5ItpKTnlyEngCLOR/9D8MKvnqyY9/VXur6k8N53kScFp QqUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b8KDdpxd; 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 g16sor214245ljj.43.2020.09.01.01.27.15 for (Google Transport Security); Tue, 01 Sep 2020 01:27:15 -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=b8KDdpxd; 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=DyiOO2gbTzhegJyR3eptVxnGlyGt5L5+5gJciUVklg0=; b=b8KDdpxd05PgoF9MHDaCNP0ApfE/tdGhbeERtfXhhQoMnHfrBxXx6nTCRQO3Fyfig4 uOlPir09j6feYspZvqwHBM7ZiuiDOiOgGJ0zoNAycftk3UfTsh8WkLz32LllUt89IRKM eiwZSF4upyDKFYalT2uJ/ScemNnB66gculNqFBg+0PkUDvtVUJbjM0wg/0BVvxFxDjmY qPr77Z2vDu6fwpman6NUPF34mXSVFVR6ugshExq11iszAeYyQBvYylCQUOMp6u1SvVvT +np6ByUyhx5swVLhVbc3Ulb5imlGcd8dp3sMu8ki+uTbzMbR3hqO3KyldMnb7SXpUvqk yfzA== 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=DyiOO2gbTzhegJyR3eptVxnGlyGt5L5+5gJciUVklg0=; b=FpJLO17svziQWqN+5UFqRBtiis7RdhxbS4OZeU7YbqKRKcOTB4yHWz/jO+VA1sEZr8 Tz/WN15bDgO222dzN2CMFPxaQHwqtVuS77S/8lInKmy1Db9bQ3wd7Le4hIPb9IK/Q0Cr bKcE6Z1ccmBsY6ynN1UTFyhaKTvL1d4s0/5jqCPxwD3n7iIZQqMUgjWZtJbB5rq6btj/ OM5BhgWSzWIE0yIXL+bMOYaJlm9uDKft1NL7ZJvC1fRe4KTeV8KakmTCYD/Qxau9NCm0 N+x4/VmYneZzKFI8hz7anzJ9/h9tpdo1GkH4+4xSOcGZGN8jZZL72t1NKxzCZOlh4ZUU ppzA== X-Gm-Message-State: AOAM532vwf2t5uxYTnr23h0ngGW75612Re7EUp+KqhWEmBP9UMHlRomU q+WbkY1wIZcsgIBAwCaqTMhCc7GQ X-Google-Smtp-Source: ABdhPJwUVxJuaHjXXhTGDUrbiL4sCIdcVh822bFUMtb8+IPh6zPjQMIRDXRRyKZvRak+dwcc5AWgHA== X-Received: by 2002:a2e:8648:: with SMTP id i8mr5046ljj.288.1598948835288; Tue, 01 Sep 2020 01:27:15 -0700 (PDT) Return-Path: Received: from localhost.localdomain (h-98-128-180-79.NA.cust.bahnhof.se. [98.128.180.79]) by smtp.gmail.com with ESMTPSA id c5sm111252lfb.24.2020.09.01.01.27.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Sep 2020 01:27:14 -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 , Ulf Hansson , linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/2] cpuidle: psci: Enable s2idle when using PSCI OSI Date: Tue, 1 Sep 2020 10:27:05 +0200 Message-Id: <20200901082707.106860-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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 (2): PM / Domains: Enable locking for syscore devices for IRQ safe genpds cpuidle: psci: Enable s2idle when using OSI with the PM domain topology drivers/base/power/domain.c | 13 ++++++++++-- drivers/cpuidle/cpuidle-psci-domain.c | 2 ++ drivers/cpuidle/cpuidle-psci.c | 30 +++++++++++++++++++++++---- 3 files changed, 39 insertions(+), 6 deletions(-) -- 2.25.1