Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37225124rwd; Tue, 11 Jul 2023 11:06:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlGsJxfgrGDC5N0EIn+5B0h/S+BNSv2eciUkvNJ0R7g5uHQy9LAebHIuevMem53D+7c82o4x X-Received: by 2002:a17:903:2581:b0:1b9:de3e:7a59 with SMTP id jb1-20020a170903258100b001b9de3e7a59mr6017620plb.10.1689098789073; Tue, 11 Jul 2023 11:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689098789; cv=none; d=google.com; s=arc-20160816; b=z8qkQOxftg1TDC4r8AhPQ0l6ddLd33ROaPBdt5Q1efCFsOnygIxcWS0NPAmQ5es630 AUdey8ORDKveZg7dvY4Nw6jqMi339P5BEeEMzhNCzx2RGCBZFokV9kwcc1hr3JFNlX/9 pJrNDehZMY3jryayt2Gw5uiVLzz/zYDGrVT19fXqaMq/qq3TC/u+Kbh7hUa+FER3svni RaQOr5cpVU0R4Tobg/krKf/qnEhNOhqC9G+93MhB0uY0Cgd5uM9luBXwQFSk28Tl+VxL gkWYXKXykBZYzFE8Wl5+P8rR0/9tsz7hKti1du368Fi95hsZuKMzoVWRDw1jOrwy4mWY RzqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=LvFfIXBcAumUgCH+FBiAWPqH4QwT7Dro7Xo/nm10bR0=; fh=6fpYT2qPXNsTKp/uZWxaQvbIu5rUG3orUvwA/CHabEo=; b=NqKe8HMgE4aiUXaHKkG8/bRp64RDZi8uwXcWkFDxWRf9GFTr7NjZMMn5lVXEof9IUx SkLncGeqArR/HWQEB3gamW1Fs6uSE2fv9gj6lmdyBeK0PsXrYE0GpM/IQiAYQ2ANgeOS srsGRjDRx8LKAzKnaxDWZADWuYwXL+PXD5KNCgds3E+75oTYlfu3Vn3x3AfrqC1dM5wy 0ntXb+lWrZecQfhroUsFQKCtr3p1XcG+LQzQJVNsaVE9OCMTcvW6D04ntZShH6h5vjDr aADcPsq2GfuG5HE3GhaAo5z0K5uFwHTRNvxMdci6n5p+xJr8ibu/YBONoGBEnj2zzYmf KHlw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kx14-20020a170902f94e00b001b8b48a5e81si1808875plb.314.2023.07.11.11.06.16; Tue, 11 Jul 2023 11:06:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230313AbjGKR4D convert rfc822-to-8bit (ORCPT + 99 others); Tue, 11 Jul 2023 13:56:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229963AbjGKR4A (ORCPT ); Tue, 11 Jul 2023 13:56:00 -0400 Received: from mail-ej1-f44.google.com (mail-ej1-f44.google.com [209.85.218.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDB75E6F; Tue, 11 Jul 2023 10:55:59 -0700 (PDT) Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-991f9148334so136085466b.1; Tue, 11 Jul 2023 10:55:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689098158; x=1689702958; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=mgzkTpou4QHWe/2pRU5/Ualjk4fqFrZ7g3GXd8Lq7w0=; b=Aael6yJrk4vFb+kkrEpRltvxqep9zR7L7HZTRlYPA6BzyJXCVbz7BVk3n5FQBUeEkN ibrDCaWhv/f/7MOk2Jwna+8A+msomxduohnKYn0MmIOlY270r5iThwzoHi9WTJVYBD8s M5a8oVeQAMSSq1j5iaHwfgdjnjRVgqGW4vNuxZE3vIMAGDExrjPiqbDXCJE5Q/Zxp7Y6 Y+7LJqX7nT/xdo1MQFTyZDrZafkm0QDlUqaLiDHANXFeV0sMf/XdMWS54QneITy98RoY 5LxUTRSI2ciU2Zt249lnz9qg2NK4qotqCXx2q4LIGb0kjMuvCEEzwIzOplydYDUGMpvk M8fQ== X-Gm-Message-State: ABy/qLbQO2+a5xGDnrtTqHL0w+qsO7Ptlif48w15p92ia5CzX/9WsDjV aZ30L7YR1GkKHnhvPRtANGHL0D4Ru/yBsWfB970= X-Received: by 2002:a17:906:739a:b0:993:f349:c989 with SMTP id f26-20020a170906739a00b00993f349c989mr9105584ejl.7.1689098157990; Tue, 11 Jul 2023 10:55:57 -0700 (PDT) MIME-Version: 1.0 References: <20230711-cpuidle-v1-0-f391224b3140@gmail.com> <20230711-cpuidle-v1-2-f391224b3140@gmail.com> In-Reply-To: <20230711-cpuidle-v1-2-f391224b3140@gmail.com> From: "Rafael J. Wysocki" Date: Tue, 11 Jul 2023 19:55:46 +0200 Message-ID: Subject: Re: [PATCH 2/2] PM: s2idle: Fully prevent the system from entering s2idle when cpuidle isn't supported To: Kazuki Hashimoto Cc: "Rafael J. Wysocki" , Daniel Lezcano , Ingo Molnar , Peter Zijlstra , Len Brown , Pavel Machek , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Hector Martin Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 11, 2023 at 7:54 AM Kazuki Hashimoto wrote: > > In order for systems to properly enter s2idle, we need functions both in > the idle subsystem (such as call_cpuidle_s2idle()) and the suspend subsystem > to be executed. > > s2idle got blocked in the idle subsystem on platforms without cpuidle after > commit ef2b22ac540c ("cpuidle / sleep: Use broadcast timer for states that stop > local timer"). What do you mean by "blocked in the idle subsystem"? > However, the suspend subsystem doesn't have this, which can cause > the suspend subsystem to begin entering s2idle behind the idle subsystem's back, What do you mean by this? > which in turn can cause the system to enter s2idle even though all the functions > necessary for s2idle hasn't been executed, breaking the system > (e.g. ClOCK_MONOTONIC keeps ticking during suspend even though it's not supposed > to). Why is this a problem? > Prevent the system from entering s2idle when cpuidle isn't supported in the > suspend subsystem as well. I'm sure that there's a real problem you're trying to address, but I cannot help you without understanding what the problem is. So please explain what exactly is going on, what is expected to happen and what happens instead and why this is problematic. Till then, the patches are not going anywhere. Thanks!