Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp57626rdd; Wed, 22 Nov 2023 09:17:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IE3g0/TPF8IvY8neVXk1zoWtStqZ20cL0w1LNH4jAtbF7IKa2s/G7TiXeO8zUWD1Enw4bDn X-Received: by 2002:a05:6a20:54a4:b0:18b:4632:af0b with SMTP id i36-20020a056a2054a400b0018b4632af0bmr2697092pzk.17.1700673438962; Wed, 22 Nov 2023 09:17:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700673438; cv=none; d=google.com; s=arc-20160816; b=ejpPPcexR9noLYsokGLEtB2xAYmxlaKr8ZiH3/j803fod8qZv4K9ELV025Mav/N8bE PdVYKY43E/D03yzTqRo/zACAPsX7zb9upDPaO5A9nxLqreU78UtCUHAptm17I+npKV2R 21CRrJQtyqnpbdowY7vucxgUtBDKjRT4oOYtWnv//zhRjziSelM+Iw2fU6Q9mi3EbVpp m7xWitmf/OYPdFFU2H8WxI2IY+miB9sl/rJaZMHrkyuViHr1GBUSlMzhqiuXTqQyyx/k PFei/blmS2sVeFi/aJV65QnmKxwGBH+esSbSVL+FZY366Ajd5WEqRoFTmZ/bBJnh4djk la3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=tb9uWjBsYkuddaju8FnfaBIITnr7XlEu3AzBqfbpLRM=; fh=lluIK1XVIJhUoa46ZVmEAYdchIqUe1qMfq8xwNZtDB0=; b=S9QKVp+gTSkQfVvFtc4YvsRiB6cODYMf+XruRtiVl66N8jOhEZrEhNR0IprLKv/ICm soFsy9FCoFp97RJ+L6Iw2gEzSxHqOKgWFAuaI2I8u4H8P6iIFgM1JkbmHUDQG4+b0Ed4 ku8Wtv8vxltXSubo33KKDQbCojuPkJ/lTxpez9tPBqm+0qEfFfJOKINcyTnPEp4q9G1y CAjxf998qtNpW9wjhqiSaWTG0hLGsbS25Hj410Dh0gdkt8xJCSX8xcrn8Wzis8m2c1BS 6VpdrmuUy53RssVkfa5A/d6w/nT7TN1QUeQevks76jMx1ad05SjuOn/7DqHWFdVEgPdG z0wQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=jNAlXodE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=o2.pl Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id o13-20020a634e4d000000b005c212ebb55csi11091876pgl.691.2023.11.22.09.17.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 09:17:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=jNAlXodE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=o2.pl Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 278E182663E0; Wed, 22 Nov 2023 09:17:12 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232615AbjKVRQt (ORCPT + 99 others); Wed, 22 Nov 2023 12:16:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57896 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231708AbjKVRQs (ORCPT ); Wed, 22 Nov 2023 12:16:48 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.145]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A063197 for ; Wed, 22 Nov 2023 09:16:43 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 6764 invoked from network); 22 Nov 2023 18:16:40 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1700673400; bh=tb9uWjBsYkuddaju8FnfaBIITnr7XlEu3AzBqfbpLRM=; h=Subject:To:Cc:From; b=jNAlXodEEp5Ev6on/1OXSRlMUJoP+4PIWBjZaQ8Iw9JFmSlu/sVcQ+tIywkUVQUpC ptt5FhPPyfwvRL8hJU7uBL7Cc/c5PnnZQ1Z9022gxuTtUCfbbkx590VdKC9JsaGdc5 CtQCXCO/sctbUa0W/W2erGd9cGzbV2Cde5LijTKs= Received: from aafl106.neoplus.adsl.tpnet.pl (HELO [192.168.1.22]) (mat.jonczyk@o2.pl@[83.4.141.106]) (envelope-sender ) by smtp.tlen.pl (WP-SMTPD) with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP for ; 22 Nov 2023 18:16:40 +0100 Message-ID: <828b9911-c172-4f9a-9c1f-ec9dc956bb8f@o2.pl> Date: Wed, 22 Nov 2023 18:16:39 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 4/4] rtc: Extend timeout for waiting for UIP to clear to 1s Content-Language: en-GB To: Mario Limonciello , Alessandro Zummo , Alexandre Belloni Cc: "open list:REAL TIME CLOCK (RTC) SUBSYSTEM" , open list , linux-pm@vger.kernel.org, tobrohl@gmail.com, aalsing@gmail.com, Dhaval.Giani@amd.com, xmb8dsv4@gmail.com, x86@kernel.org, dhaval.giani@gmail.com References: <20231120141555.458-1-mario.limonciello@amd.com> <20231120141555.458-5-mario.limonciello@amd.com>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EKkZKgibBbs4qT35oXf kgWJtW+JziZf6LYx4WvRa80VDIIYCcQM6TrpsXIJI+su5qpzON1XJQG2iswY8PJ40pkRI9Sm kfTFrHOgiTpwZnI9saWqJh2ABavtnKZ1CtAY2VA8gmEqQeqs2hjdiNHAmRxR2wARAQABwsFl BBgBAgAPBQJajA8kAhsMBQkSzAMAAAoJEPvWWrhhCv7GhpYP/1tH/Kc35OgWu2lsgJxR9Z49 4q+yYAuu11p0aQidL5utMFiemYHvxh/sJ4vMq65uPQXoQ3vo8lu9YR/p8kEt8jbljJusw6xQ iKA1Cc68xtseiKcUrjmN/rk3csbT+Qj2rZwkgod8v9GlKo6BJXMcKGbHb1GJtLF5HyI1q4j/ zfeu7G1gVjGTx8e2OLyuBJp0HlFXWs2vWSMesmZQIBVNyyL9mmDLEwO4ULK2quF6RYtbvg+2 PMyomNAaQB4s1UbXAO87s75hM79iszIzak2am4dEjTx+uYCWpvcw3rRDz7aMs401CphrlMKr WndS5qYcdiS9fvAfu/Jp5KIawpM0tVrojnKWCKHG4UnJIn+RF26+E7bjzE/Q5/NpkMblKD/Y 6LHzJWsnLnL1o7MUARU++ztOl2Upofyuj7BSath0N632+XCTXk9m5yeDCl/UzPbP9brIChuw gF7DbkdscM7fkYzkUVRJM45rKOupy5Z03EtAzuT5Z/If3qJPU0txAJsquDohppFsGHrzn/X2 0nI2LedLnIMUWwLRT4EvdYzsbP6im/7FXps15jaBOreobCaWTWtKtwD2LNI0l9LU9/RF+4Ac gwYu1CerMmdFbSo8ZdnaXlbEHinySUPqKmLHmPgDfxKNhfRDm1jJcGATkHCP80Fww8Ihl8aS TANkZ3QqXNX2 In-Reply-To: <20231120141555.458-5-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-WP-MailID: d26295b416ab48a2949df0bacf555cb3 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [cVMB] X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 22 Nov 2023 09:17:12 -0800 (PST) W dniu 20.11.2023 o 15:15, Mario Limonciello pisze: > Specs don't say anything about UIP being cleared within 10ms. They > only say that UIP won't occur for another 244uS. If a long NMI occurs > while UIP is still updating it might not be possible to get valid > data in 10ms. > > This has been observed in the wild that around s2idle some calls can > take up to 480ms before UIP is clear. > > Adjust callers from outside an interrupt context to wait for up to a > 1s instead of 10ms. > > Cc: stable@vger.kernel.org # 6.1.y: commit d2a632a8a117 ("rtc: mc146818-lib: reduce RTC_UIP polling period") Same as for patch 3/4. > Fixes: ec5895c0f2d8 ("rtc: mc146818-lib: extract mc146818_avoid_UIP") > Reported-by: xmb8dsv4@gmail.com Maybe nitpick, but consider providing the full name of Carsten Hatger, not just an email address. Otherwise, Reviewed-by: Mateusz Jończyk Acked-by: Mateusz Jończyk > Closes: https://bugzilla.kernel.org/show_bug.cgi?id=217626 > Signed-off-by: Mario Limonciello > --- > v1->v2: > * Add tags > --- > arch/x86/kernel/rtc.c | 2 +- > drivers/base/power/trace.c | 2 +- > drivers/rtc/rtc-cmos.c | 2 +- > drivers/rtc/rtc-mc146818-lib.c | 2 +- > 4 files changed, 4 insertions(+), 4 deletions(-) > Greetings, Mateusz