Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp3153999rdb; Tue, 29 Aug 2023 07:02:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGqDmi1g7mt1z2CfSb1BouuG41N7cZyPY5KVqx/gNmzhYBrrFkkpJe2sq9l+oXaOcV/aM5C X-Received: by 2002:a05:6a20:4426:b0:138:1c5b:2653 with SMTP id ce38-20020a056a20442600b001381c5b2653mr31271431pzb.41.1693317739978; Tue, 29 Aug 2023 07:02:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693317739; cv=none; d=google.com; s=arc-20160816; b=nODcyYMBVJxp/C6WZbO9mjnuY1q5YFqpRLUkFytkKdmyHy/+jIQk9otkayh5g5AHRG yV9oHiBInKblTf8J9pwRnSyq+AKfyQ6FyqYuDHe/D1PSfnkg4UaehUQHVZklVeF60it/ 6kZTQM5qkkiaJ0eSa51w4dsdreWAbhHW+lGqlyGJkT4stc2UIuFzM8dYs5w+g/RsUEIV qN7IWsAZaCf4yiqX/ANgYl6y4JyT/YTu7ebOE5vB3mqN35qv2pV0EaK8aCfh2gEffGtV Rl4S6ALColhgsgL9IC7S1EDx2OcugRfa8zayvY2dDEgvB1dWNSonYZXvWeBU+ekWn9aa OIyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qiDB9NM7W+4m1roc5oSsVxM1M7DlVAeDS4xH7ZpekX8=; fh=28lt29J4Pwvh9DzeDlV8P1lI5pbVjLpL5kiMmztrjvU=; b=qo2jcX8yewCsfN8/yJ58HKFJ4e+nJtcZvMsEfyNYCPihYo3vWRJjRyObCCzsaEUJio e+beRoKXla1s+/Xp5wjL0zQ8+/WNimhfiWM5ggtQZS4L60YWt0vEhwMskxUiycq5bP10 szDd0d/szXzcfw14zi9TXRr7BXh11MeacnX9m/qJ6M2mwwDeg9zEh6ymuEJj8DYos3cp L2luwk9AOmWu89iVBrqS/Yr09U2A6bxosJJvUQowSddnrDuh2BmDIoL2vY3I4hEI/g5B Y6Nud22MhIDnadw3uWiTGHsf3mMEGTiBqFOiWm0z68lk+n5cmHZZTh6m+/3px+L9L+km /sag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b800/ojV"; 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 v135-20020a63618d000000b005644829012fsi9517393pgb.701.2023.08.29.07.01.25; Tue, 29 Aug 2023 07:02:19 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="b800/ojV"; 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 S235835AbjH2NFd (ORCPT + 99 others); Tue, 29 Aug 2023 09:05:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42394 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231152AbjH2NE7 (ORCPT ); Tue, 29 Aug 2023 09:04:59 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7DF699 for ; Tue, 29 Aug 2023 06:04:56 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6D48C62059 for ; Tue, 29 Aug 2023 13:04:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7C54BC433C7; Tue, 29 Aug 2023 13:04:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1693314295; bh=zU4/7GSvfNmFXABhQ59KUyf/rZM5DOBimhtP9OKd4zg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=b800/ojVPZAdqcUE6aEx7exghdNZHbZAkuOXp384cw/Y+CoxW9sEfRmVYThfBTAcF wlNHLePa8NtUFkx46evviB8kmdI8/TJ+N/xwHAsi5sEnPrO+Ua8TkCkD4cDWbpdzMT NxCkKOTHquV2H2Zc4ncSTdDMnabtQ0pdh/1KxQdyoNsiwVN9qY1XswjO9D57Fbeugh tnJLwWzjVrJi+7mYncKz51RZ/DAXkOulLzXYuwv2lWCZEPpCTrJqJuEZbCZkvrYUqW rtEjUOy8MSSLVzRNhWMkILczrtRzt7VsAPTVO7cMgBXuRgDt+gCWqUsQtaQzMIjXds q55QoTKyd/caw== Date: Tue, 29 Aug 2023 15:04:52 +0200 From: Frederic Weisbecker To: "Rafael J. Wysocki" Cc: LKML , Peter Zijlstra , Daniel Lezcano , Thomas Gleixner , Anna-Maria Behnsen Subject: Re: [PATCH 03/10] cpuidle: Report illegal tick stopped while polling Message-ID: References: <20230811170049.308866-1-frederic@kernel.org> <20230811170049.308866-4-frederic@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Fri, Aug 11, 2023 at 07:37:55PM +0200, Rafael J. Wysocki wrote: > On Fri, Aug 11, 2023 at 7:01 PM Frederic Weisbecker wrote: > > > > poll_idle() can't be called while the tick is stopped because it enables > > interrupts and only polls on TIF_NEED_RESCHED, which doesn't tell if an > > interrupt queues a timer that would require a tick re-programming. > > > > There is no point anyway to poll with the tick stopped so add a check > > to make sure it never happens. > > I'd rather update governors so they never use polling states when the > tick has been stopped and then add the WARN_ON(). Sounds good, let's put this one aside. In the meantime feel free to pick up those you acked and see fit in your queue. Thanks!