Received: by 2002:a05:7412:e79e:b0:f3:1519:9f41 with SMTP id o30csp42039rdd; Wed, 22 Nov 2023 08:58:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7wxZXtbbZfg160LRjTRa71Ou+bHqWyXwb45I7KSWK0z+fqFjmvxBphcdcC4J6krk63MJm X-Received: by 2002:a17:902:d512:b0:1cc:5549:aabd with SMTP id b18-20020a170902d51200b001cc5549aabdmr3833371plg.8.1700672312729; Wed, 22 Nov 2023 08:58:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700672312; cv=none; d=google.com; s=arc-20160816; b=Ar5Sh4cPkt0XW/byHRgD+uIbmnefVNQGpv1ETIvcbLinsv3lJGvtpKzTPpLrjUKhyy XHyhpDV6J9MDxvZVLa5hJVlkvw1UQpS9M3e9sK3tlfWy+Rp1TdXvuccJXM72XEMtRq0U VhCblqjjW4nYSjXHFxDvN1HQI2dms28/d2yylTFIu12i5+DzRbnrGKMKo+wzJEW6tVDT yxb8jmVKdS8/KIHgzV+jahiyiH+zTHo4rAW3oQn2TshzINOKgdt0xaa3gTQQoFhTqDME MuuQo+fGJJQujdUL52NKBRqt28TqEX3nD1yXjvW9y90hDEDisp68LoczKzAEVaS3HJbX y1jQ== 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:content-language:references:cc:to:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=3TOkf60vDNUoEBZRHO4yuyf9OPyZ930AHngfO3FLpH0=; fh=lluIK1XVIJhUoa46ZVmEAYdchIqUe1qMfq8xwNZtDB0=; b=rHZutf1DB6dZKyMWyhhzNpkpyWjvVLtw9jWm0cyim2GNL05bovpGIcAU3A+9SclYRj +4TNf8U+25us+EnzlRd9Yp6AiEKk/lO1Gb8ufW+9WsmDtZGRtUtNwyQ1DUZF1aedEFiy +BjZamCmL9v3Gz5TpmUsSteCu9OuJe0ahZWPjajhcWsg0PeMYteQUV36qFdym6ZB7j0c BVHc+CWij/QQ9lQHIcqh8UIFcg5PBmbqr2n80qlOdgWqFMy6TRDWcPUMknYYApiP5k1g BgQH++WAy9Ud682tl8faQH2E8bX//YsC1cXUy5sdNt7uwrnUOIZuoCXTWIi/NOwwCXpL meJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=JErpZcdC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id q15-20020a170902eb8f00b001cc330e48e5si13640312plg.103.2023.11.22.08.58.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 08:58:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@o2.pl header.s=1024a header.b=JErpZcdC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id 7174B829F1D0; Wed, 22 Nov 2023 08:58:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231738AbjKVQ6V (ORCPT + 99 others); Wed, 22 Nov 2023 11:58:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbjKVQ6T (ORCPT ); Wed, 22 Nov 2023 11:58:19 -0500 Received: from mx-out.tlen.pl (mx-out.tlen.pl [193.222.135.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2BB9197 for ; Wed, 22 Nov 2023 08:58:14 -0800 (PST) Received: (wp-smtpd smtp.tlen.pl 14329 invoked from network); 22 Nov 2023 17:58:11 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=o2.pl; s=1024a; t=1700672291; bh=3TOkf60vDNUoEBZRHO4yuyf9OPyZ930AHngfO3FLpH0=; h=Subject:To:Cc:From; b=JErpZcdCBk31yHcAlTOW8FVRQErD97aOl12wRaxssGfbeRiAT4hgzStDNA8RCtLqH vmMaU44bYoFh08FNklIQJBY1tBWMDbMJtlRr/tUObxYnUrTGpCHKjHnClK1h3WiF58 wxBLsTzrN9nBF0byn8dnKE85wonemeHOlyoQaVPE= 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 17:58:10 +0100 Message-ID: Date: Wed, 22 Nov 2023 17:58:07 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 0/4] Extend time to wait for UIP for some callers 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> Content-Language: en-GB From: =?UTF-8?Q?Mateusz_Jo=C5=84czyk?= Autocrypt: addr=mat.jonczyk@o2.pl; keydata= xsFNBFqMDyQBEAC2VY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RI9Sm 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-1-mario.limonciello@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-WP-MailID: ccc602f34ade53ca99ecd5fad929bca1 X-WP-AV: skaner antywirusowy Poczty o2 X-WP-SPAM: NO 0000000 [sZPE] 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 fry.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 (fry.vger.email [0.0.0.0]); Wed, 22 Nov 2023 08:58:30 -0800 (PST) W dniu 20.11.2023 o 15:15, Mario Limonciello pisze: > A number of users have reported their system will have a failure reading > the RTC around s2idle entry or exit. > > This failure manifests as UIP clear taking longer than 10ms. > > By a debugging patch provided by Mateusz Jończyk it is shown that this > has taken upwards of 300ms in some cases. > > This series adjusts the UIP timeout to be configurable by the caller and > changes some callers which aren't called in an interrupt context to allow > longer timeouts. > > Mario Limonciello (4): > rtc: mc146818-lib: Adjust failure return code for mc146818_get_time() > rtc: Adjust failure return code for cmos_set_alarm() > rtc: Add support for configuring the UIP timeout for RTC reads > rtc: Extend timeout for waiting for UIP to clear to 1s Series tested on top of Linux 6.1.63, 6.6.2 and 6.7-rc2 (on a laptop that is not affected by the problems). No problems found, can be submitted to stable. Tested-by: Mateusz Jończyk Patches 1 and 2: Reviewed-by: Mateusz Jończyk Acked-by: Mateusz Jończyk Greetings, Mateusz