Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp690543pxb; Wed, 29 Sep 2021 07:46:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNgLXFCt35YE7IkmHB9+tGV+O2nVC+VP3hfz+qK4Fo/Bde1SvV1KzmFe5jOQ2YIYL5QRVD X-Received: by 2002:a17:90a:ead1:: with SMTP id ev17mr7024236pjb.158.1632926763582; Wed, 29 Sep 2021 07:46:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632926763; cv=none; d=google.com; s=arc-20160816; b=qfJW9HVvPYvyp+G9dM7YVLRqrToEGoztXvNJ9tdn6UdkT1d1S9u/wJ85qBN7/gh2gS x79riHa7E6A9hmLV+qHNALDUTJ/yDINXszoGe9ClNn/tAOznNLDRT1RjbxWgziD5hkyd r+Ew/Qfb9ZkucQh+Zunn/ZD9CL52+m6Lz8uk6ZNdod7YhMkaUaWlU8dsKyI3VYqbxvE/ mQHS2h1T1vltUSnQFq8PsYtYHtMu4OKxC+YDlSA3r8pkWAo4b0Hz4iLKJgPubtcBB48w /DqZkYUfmN4Vw8NSy2PkKkTY/EKGSFFtXLF0Bmh3bWR8IVgRucvbEQhJmrzWNZw1n6jT QhzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=kTJI15TCa8PAJGREAVnlDqsgyEszgn+j2lBqSs/nVF0=; b=gE3Dzv443pDWFxa/Uo7i5t+4i9GaYbnzuqF5W5RSSGZC8U7Pve1WxPyiavQn1l7L3t TuyyUZ7aNpmyPmxPE53oNpV+/mZCMmxfR1Oa6vu4oLDB8KWqmGuVyu8ukLzr0TZ/ehsS dR1OP50bpJ+u5eCrqr4e+Dc2+UtRC6CdyZGT85wxzjeBIzNvd/IKTPmJL8+7ZXuckt5/ TzLDTWOnqAXPPeXVhNboT6ga4rgJKFoHZSHJABRR+BHjq8KGXUjBKY+a6EoJVnH4AyLp FtXxGdh4+outPPa8sFvs/qL1T9tKE7Qw0CXbP7/dh+LK5zPNdsmlHCIbkSZ6a2IFWkdV PjEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xjHGKhxm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t6si99180plj.76.2021.09.29.07.45.46; Wed, 29 Sep 2021 07:46:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xjHGKhxm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245431AbhI2Oqh (ORCPT + 99 others); Wed, 29 Sep 2021 10:46:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46930 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244878AbhI2Oqg (ORCPT ); Wed, 29 Sep 2021 10:46:36 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57CDCC06161C for ; Wed, 29 Sep 2021 07:44:55 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id b15so11623696lfe.7 for ; Wed, 29 Sep 2021 07:44:55 -0700 (PDT) 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=kTJI15TCa8PAJGREAVnlDqsgyEszgn+j2lBqSs/nVF0=; b=xjHGKhxmbOSwTYwP271sLTO9oAiUoZ1W9eRARmkGYniBQ9Iode2KysP8Y+R1/qrENH D4GcddGAx0EMpPJZS1yVFuPI9UfThPUJ+oTtadU/RVB1xTtdtFwuAV4/YrqwaRRasOyR cQtVpV7VHJGWTJ/3J3uq5I6jSGoPiEW2ZsV3Zi8rHtcvpt9GriIa8ru2R7VPwBub9e5B Xa5DKbNNtdUoKsfYJzx5mxopxO2ptvGkEx1qo4NV/8cG5RVhsEoLtaRbwavs3XoqIh6q 8A5JSVl53OfMF8hdzjcxS62cO/mbuD/5Y+AjI04QdDEm77epsia0HhfOs6tPAjrTzE8X AKYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=kTJI15TCa8PAJGREAVnlDqsgyEszgn+j2lBqSs/nVF0=; b=DC1E/rZOx8XxIRh/jDfM93xx1OifWmvG7fWzp91W5fPlmmOFiZxNIc0sYBE5krTidc KY2Z43sfrjq63tTuX7DJEfsblXdGu6nOXK9PZurKWVrvph/XqqT4asrXBNz+tr3pUt+h auDhzh3nrFnerx1yNgFzeyR6/T/E2ee4Sk8/sEfOcKfsjK1u3/HZv7l14IC47JRMg4I6 miLcyYqDVh4Dxbkv2Wq7fjmSft+XpAkLMi/4tGTos9IBt/sw6RU6wPjJLUgIj3lIQ3xq lj0n85dGGBezud94dTTHnEm57TuwnuOlVSC6KTskmKZHAd/HiQ3SA7vba4H7QfGqx36u aDLg== X-Gm-Message-State: AOAM533ASFmKQd8axrrfc5w5/+RF8ZXDSk5aK9U3AOu5XSWFB4WgReM9 G076IvD5xFG5HVgk6A4c6tin7g== X-Received: by 2002:a2e:8881:: with SMTP id k1mr262703lji.443.1632926693693; Wed, 29 Sep 2021 07:44:53 -0700 (PDT) Received: from localhost.localdomain (h-155-4-129-146.NA.cust.bahnhof.se. [155.4.129.146]) by smtp.gmail.com with ESMTPSA id g4sm9863ljk.64.2021.09.29.07.44.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Sep 2021 07:44:53 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Daniel Lezcano , linux-pm@vger.kernel.org Cc: Maulik Shah , Peter Zijlstra , Vincent Guittot , Len Brown , Bjorn Andersson , Ulf Hansson , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] cpuidle: Fix runtime PM based cpuidle for s2idle Date: Wed, 29 Sep 2021 16:44:49 +0200 Message-Id: <20210929144451.113334-1-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Maulik Shah reported problems to me around the s2idle support in the cpuidle-psci driver. More precisely, calls to pm_runtime_get|put fails during system wide suspend, because runtime PM gets disabled by the PM core. This small series intends to fix the problem. More details in the commit messages. Kind regards Ulf Hansson Ulf Hansson (2): cpuidle: Avoid calls to cpuidle_resume|pause() for s2idle PM: sleep: Fix runtime PM based cpuidle support drivers/base/power/main.c | 6 ++---- drivers/cpuidle/cpuidle.c | 7 ++++++- include/linux/cpuidle.h | 2 ++ kernel/power/suspend.c | 2 -- kernel/sched/idle.c | 40 ++++++++++++++++++++++----------------- 5 files changed, 33 insertions(+), 24 deletions(-) -- 2.25.1