From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 989CBC433F5 for ; Wed, 29 Sep 2021 14:46:47 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 647AE611C8 for ; Wed, 29 Sep 2021 14:46:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 647AE611C8 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9um8oWlBh8UDjYXqQtLRcf06O0GNIZkiGjE2H0dEsYU=; b=ovjLWTIkUnO0Cl MD+/ljw+D/nu1ktXNLw6nYb5L+muIXcXRYAKFz2Piw+7q51xBy5Sc9bbyc035jiqEqJ/Kaicuz9UZ u7D4mDO0DfMuYQWqQh7iBxG5WlDRyrebtPbyi5O9yPHIsRyYB6dthC0J1kUy6EbtCukd6oRp6zMAz SrVpLVnn2xEMmohbuz1DlPUTpnWKb1xo5ULEW09v53aK5SjYQcxWCppyuMDSElbUKfOJpPUPzLATW r5C2A0D5sPZCaXCxM9XSxbDlul6WAL4dPlLPIViicTUS2+wWN47zNpdPLi6zA1N3DW9qrt0XkC3vf 3H8KtitQ5PoYNbpzhP9Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVapQ-00BLth-MN; Wed, 29 Sep 2021 14:45:00 +0000 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mVapM-00BLqo-7v for linux-arm-kernel@lists.infradead.org; Wed, 29 Sep 2021 14:44:57 +0000 Received: by mail-lf1-x134.google.com with SMTP id z24so11657622lfu.13 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=C2ZntaPiPmVFZkX6kBQJHpf9auoUPLpr9XePPKTHcutFdj7E2ZfbohsKdlb5aQIoZS /x/mLOJWP0U3cHdN5Cr9yX32IDRRmt/r5yJm327KEuRWP3NhBV0AZLkVcOTYx/XYB+ho QpXJmaAeTG2KwrClpmcmjVfqapVr9IvWHnaxEGF/4faS2fKUDWOuo122b8Xx+MmSRg5x 5L9qAou8ARHtx1moGE/PzYMy5AZ145w/Dx6Axcq+Aw+Ak8h34dMpq3ueW53enF4P2OFk +oGn7edde/QJS5WxKx6U87UOGXvXYXiv7QuJLaWHoCP6lwtwT3GYTc942iuDehpIyz4v n78w== X-Gm-Message-State: AOAM530V5fC6/BGICd5WjMBTibW/33eCVs1PYBjUiHip6JgXPOlZyNvc V9pk9J9/lkbovHwIB7D//xD7sw== X-Google-Smtp-Source: ABdhPJwZhrATzdfeTww9AAP3rRlwJsNaFFlYmAtnf+adqoXn44vYQElWo1YizMdPPsmTDNLUooDT0g== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210929_074456_337229_99744881 X-CRM114-Status: GOOD ( 10.50 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel