Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7350925rwr; Wed, 10 May 2023 07:13:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5ePRqwKyfoHa6TRVoG5oxuWiYw7NYARCx3nw0P/PcchvnscT/XuAa1jJGsjr/+yUg8TCeD X-Received: by 2002:aca:1a05:0:b0:38e:7168:6910 with SMTP id a5-20020aca1a05000000b0038e71686910mr3016841oia.55.1683728022228; Wed, 10 May 2023 07:13:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683728022; cv=none; d=google.com; s=arc-20160816; b=Pw4vH10z0zJEGPbuk87rXaXFfG+8A5TstDt2fhNKEW9dUdrCir8Ax9O62ym7chayEh 8HzA7ptwjK9yOGNlkiyU+9XVEDcL9fbUdTolL/TwGHfiIx0H4v3D5RcsxGZb+1G/KAnX xmBw6tVEs1a+oi9gLhrglN+B4pLO5HAnLHVwl5SUB8lb6ZDscrGiLD6mEuuJKi3YbWbo 1Z92D0cC6VnrPnl9Xg8TVVHvSiDifoWz/R5DdZ+2giQ5rresGBiAqBE+9yqqXvdsMRMr AkCa/sjl1u8r+aFRvYmV+0FSjgNuLB+uBn2lGqEwni8+OV2hh9znFqGlMoQsvwrru1Nf iePw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=BdZ5AYdOL3hiZeP22cj7y6sMOqTLcEFohvUNaaYxf1o=; b=fqJt5ba8UifRdtSn7lp1U7jzg4wGidKqmD+8yOzH5Ve8cd2/XHfGY836h8CC4R76By 6clYBADmu3r9TPFLEvoN1ERqEGTJTM2KmE3SnqGpptWOCzhcFV6VUfw2BP7Yb1b/IsUj gnvLKwNhbPbK+MOGrZViqYVSz11CYlHMXakncYcaZUfLLsWN/TEsR0Xx3jq2Q/zDeU5r 1FF3znA9dpm7OG2PObjI/1G4DejTSXl1YcY4eMnTBBcPEl18KutL5qtDt+lXEbgRX+dy RvyQjsUfcMVXzOYLL9hsolLl5l9EsUbm8wf+xf2Vn46RXMUdIv6hB+ybeWtt3pGZgT7I 2SXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm3 header.b=iufmgR0L; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=BHa4FQpM; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i82-20020aca3b55000000b0039258a70269si2858768oia.321.2023.05.10.07.13.28; Wed, 10 May 2023 07:13:42 -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=@arndb.de header.s=fm3 header.b=iufmgR0L; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=BHa4FQpM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237146AbjEJN5o (ORCPT + 99 others); Wed, 10 May 2023 09:57:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237020AbjEJN5m (ORCPT ); Wed, 10 May 2023 09:57:42 -0400 Received: from new1-smtp.messagingengine.com (new1-smtp.messagingengine.com [66.111.4.221]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0E220DD8C; Wed, 10 May 2023 06:57:16 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailnew.nyi.internal (Postfix) with ESMTP id 0A03F58041D; Wed, 10 May 2023 09:57:06 -0400 (EDT) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Wed, 10 May 2023 09:57:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1683727025; x=1683734225; bh=Bd Z5AYdOL3hiZeP22cj7y6sMOqTLcEFohvUNaaYxf1o=; b=iufmgR0Lrc0QG7VcSv /uU2wMtCacOya8buTieXWP70gf2h5oskJ86emeal2ei+hdZPmBo4n8EUXgiOcZW/ zS5x4EbMe306IdJBcJJHwbQK3UcQdEsdpBi60IwKlfGS7bsJrYcvTF3nhQNFxNt2 YE0gCKxnAsXThTCsC/3eXmHiF27ECEjSTy4mFWOS6x5V7Gq+Dco2tHgFNtDfBCW5 IGkUfleFEe6nPsPoV2OYS/NAn8YHrtI3m6BUCByiQN+2aTW0r2nPwZsV0pGV9fXE hRzcDOq1hvztdqGAP9/dcS1HPVFR1gIB/PPAsK7/zKE5iDjU0acLfkFP/k4v0ac6 4YOA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; t=1683727025; x=1683734225; bh=BdZ5AYdOL3hiZ eP22cj7y6sMOqTLcEFohvUNaaYxf1o=; b=BHa4FQpMZSx5rMjKx3JZk+WdUVJsS 30GqRm6FknVvz4Fs66D65X4JMhqHKkQ/THbCAE/YmSZw/NqR1vWn9lOotY1mcziP mdna4xMtBLGSITtBwvtuEgO7rzPlaE/8+4VEPRDT2/SzotkzYdQERMKF3pxjJfuc Oe9lDZt1lBmpuQg4Cm23P6GC4IDQrIcqt2Vn7x7xUai6D0rKwSChIYQ4tf7GHDHm 3r7vT18Tof0fvQVMgewHzGFW6qiYUryRZ/SVabqfKWDCE4Y5vtj8dsajjT7ES6SK s0BW6+NtSaxKYrhjBzF6hUAE9rVASy0ogTDoGZJBudaji48yogros/7Hg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrfeegiedggeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepofgfggfkjghffffhvfevufgtsehttdertderredtnecuhfhrohhmpedftehr nhguuceuvghrghhmrghnnhdfuceorghrnhgusegrrhhnuggsrdguvgeqnecuggftrfgrth htvghrnhepffehueegteeihfegtefhjefgtdeugfegjeelheejueethfefgeeghfektdek teffnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hrnhgusegrrhhnuggsrdguvg X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9B933B60086; Wed, 10 May 2023 09:57:04 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-415-gf2b17fe6c3-fm-20230503.001-gf2b17fe6 Mime-Version: 1.0 Message-Id: In-Reply-To: References: <8db63020d18fc22e137e4a8f0aa15e6b9949a6f6.1683722688.git.geert+renesas@glider.be> <02ce0541-08cf-4e14-a9b1-c53efea85178@app.fastmail.com> Date: Wed, 10 May 2023 15:56:39 +0200 From: "Arnd Bergmann" To: "Geert Uytterhoeven" Cc: "Stephen Boyd" , "Tomasz Figa" , "Sylwester Nawrocki" , "Will Deacon" , "Wolfram Sang" , "Dejin Zheng" , "Kai-Heng Feng" , "Nicholas Piggin" , "Heiko Carstens" , "Peter Zijlstra" , "Russell King" , "John Stultz" , "Thomas Gleixner" , "Tony Lindgren" , "Krzysztof Kozlowski" , "Tero Kristo" , "Ulf Hansson" , "Rafael J. Wysocki" , "Vincent Guittot" , linux-arm-kernel@lists.infradead.org, Linux-Renesas , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/2] iopoll: Do not use timekeeping in read_poll_timeout_atomic() Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Wed, May 10, 2023, at 15:46, Geert Uytterhoeven wrote: > I first ran into it when converting open-coded loops to > read*_poll_timeout_atomic(). > Later, I also saw the issue with the existing > read*_poll_timeout_atomic() calls in the R-Car SYSC driver, but only > after applying additional patches from the BSP that impact the moment > PM Domains are powered during s2ram. Ok > The various pointers to existing mitigations in the cover letter should > give you other suggestions for how to reproduce... I see the cover letter now, I thought I had looked for it earlier but didn't notice it. Arnd