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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 90A49C61DA3 for ; Tue, 21 Feb 2023 15:41:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234423AbjBUPlE (ORCPT ); Tue, 21 Feb 2023 10:41:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35250 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234284AbjBUPk3 (ORCPT ); Tue, 21 Feb 2023 10:40:29 -0500 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 644AD83FC; Tue, 21 Feb 2023 07:40:17 -0800 (PST) Received: by mail-ed1-f43.google.com with SMTP id s26so18824683edw.11; Tue, 21 Feb 2023 07:40:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=o8paduNjL+ldLZO0YJ89Hf4jDM5pXtIHjMr0kBBXNfY=; b=CO/X77c++qxtn44hpXZZTf1UGCGxdTq1876Mttb2ubWbFGIJwhcleE2nwke+7TEFut aGRF1alltHKBF9S8xi3B9Lqw+sX7BTVDgDpZoqXPgf0/G8Tma8bKXRI8+ESU1ndxjaaC l374HUzdZblH9cEZRYPUxwCKnzzFsHkeGBxGJQRbdo4u0T0kfBs9AkKrQrOxkwKThbDO RkVFdSCYkSM5S13XcMaugD4sX1/eB5gd1GYGk2Aac4C0MXAKMW4kY1VsZJpFOKpS7pnE Gtl7f/ok3KklVyqvXjC6JFVdRfNf5WJJrLJGNfU/pj6QAoQiz37INiPYoi++/6D0+nJm rsJA== X-Gm-Message-State: AO0yUKXbYmRu8DPf2BsfVhFf5mXeAAo3X4JK8vt/ZOKiCICrA3AH/b4/ KI8cNjfh1heGcJFueqYWg6fi1ZLpOFuz+9g4GonDBnz1JJY= X-Google-Smtp-Source: AK7set9GvLdQSxTtvcxifThLRRQKFz89v5LJRELSCHXrm4w+SntDsNm4c2XOwtv1XX5GvSoz69MoowIgYoLn3JuhegA= X-Received: by 2002:a17:906:4ecb:b0:895:58be:964 with SMTP id i11-20020a1709064ecb00b0089558be0964mr6579488ejv.2.1676994012496; Tue, 21 Feb 2023 07:40:12 -0800 (PST) MIME-Version: 1.0 References: <20230214215003.70683-1-kazukih0205@gmail.com> In-Reply-To: <20230214215003.70683-1-kazukih0205@gmail.com> From: "Rafael J. Wysocki" Date: Tue, 21 Feb 2023 16:40:01 +0100 Message-ID: Subject: Re: [PATCH] PM: s2idle: Don't allow s2idle when cpuidle isn't supported To: Kazuki Hashimoto Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Sudeep Holla , "Rafael J. Wysocki" , Daniel Lezcano , Lorenzo Pieralisi , Hector Martin , Sven Peter , Len Brown , Pavel Machek Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 14, 2023 at 11:04 PM Kazuki Hashimoto wrote: > > s2idle isn't supported on platforms that don't support cpuidle as of > 31a3409065d1 ("cpuidle / sleep: Do sanity checks in cpuidle_enter_freeze() > too"), so update the suspend framework to reflect this in order to avoid > breakages. Hmm. Doesn't the cpuidle_not_available() check in cpuidle_idle_call() trigger then? The commit mentioned above hasn't changed that AFAICS.