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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D6D5C71153 for ; Tue, 29 Aug 2023 13:06:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235855AbjH2NFe (ORCPT ); Tue, 29 Aug 2023 09:05:34 -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: 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!