Received: by 2002:a05:7412:361b:b0:f9:2edb:3e4d with SMTP id ie27csp44787rdb; Sun, 17 Dec 2023 13:39:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IG+O+wgokmukisdcLyJ53eHPKX17sWS4LDzKeqnVuJ2GLPz+WkPYgoZYCDmIhZ9erZd+CVN X-Received: by 2002:a17:907:ca03:b0:a23:5411:1c59 with SMTP id uk3-20020a170907ca0300b00a2354111c59mr336750ejc.35.1702849183409; Sun, 17 Dec 2023 13:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702849183; cv=none; d=google.com; s=arc-20160816; b=V0i5dZGBCiutDqBelWySJwcMaESkqHpw1ZYBBRljEQsl7RgupLBEQnyCsc1+1udwCA HrvhNjCXCKu2xsIBYAWUflcpbHFUT/xD7UPJCv/hVS6bGgMi91CYHc+uz4SYr+ZrOpKX b3j5/jcwWBv1SP+BYZ5OReJHqya+rEomgtGk0IA2LVWn46gkUpGU+rYvDdVN2EMUgc+J vQcYvK4ErJj/cCuHda1pgvr7fq9S6EylPF5LMML7XPgT4lZciWl12ZtVoQIzgiGaZLrd t+1wyI9NRz72to+7cbmCsLRwCj1eqUf3wWxviDlh4rIE6PukmeGaPyqAkfjJNr2emvtt AYgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=/O7tnrRXiqNnUS6mB8Em3vnSBAxRarOdTJFbfYRuCB8=; fh=HZfIsb4hSGPAVvSiUxAFvO2YC1PAnkFGi5lvE68djBs=; b=rOeqwZVX3HTbJn0mmVeJXBC0/435L1hbGiMumAEPvYOwUMlvE7gGDJISFTeX+iVTZC RA8OOdD2c3GzdhYpBw8zFSB8StvWetH+Gc+/PLdOJt2G7Dw0nU1S9sW2jd109zBrAmmO x7BT33eZZpsHZG2QnpL+pBFTShLXj50J6jtqBzj5nFDqEzl/piZf6TxNQpC23XvQuWV4 +I6TBWIzuj1i5BnM8hPAmvJL5ZoWRvlOx+EZqBRcw5sTLyuG67kGdBlbQipKfc5gadXQ /lQyV38lgoccRzkBdnNFcio/Ah3NWFntFQni0CgZV1dbUUyqkg2D6A43OfS5FDAKbTM2 JNqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AI1u+MRL; spf=pass (google.com: domain of linux-kernel+bounces-2825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2825-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id jp16-20020a170906f75000b00a2358cb3481si287142ejb.976.2023.12.17.13.39.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Dec 2023 13:39:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-2825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=AI1u+MRL; spf=pass (google.com: domain of linux-kernel+bounces-2825-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-2825-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 2D8C41F21B2C for ; Sun, 17 Dec 2023 21:39:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BFB4A48CC0; Sun, 17 Dec 2023 21:39:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="AI1u+MRL" X-Original-To: linux-kernel@vger.kernel.org Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6C81648CC3; Sun, 17 Dec 2023 21:39:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 4E807E0003; Sun, 17 Dec 2023 21:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1702849163; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/O7tnrRXiqNnUS6mB8Em3vnSBAxRarOdTJFbfYRuCB8=; b=AI1u+MRLUMEHXuabkyu74D8nNbH7zXPzRi0YtHOdhTuXfPoe8wK3Csr0bfMSJypkfpf3Gk NuquSwx4srQXHt6OFsA1K+NbTlLzStRyQmCcyfeUX0pcx9uGiFaUeo5n55I2sVcpCRiqUi Z+9jJSlYqBlOSPfrGRSSsg4EG/9rfB7NS4R4FoxK0cqAScnEsTgefMiEuLkd5fWEMlX10g 9jXnllhnOm7wd1ovkkwVsXjTA23uWx3JTMYh/QNAI63YeZH/bUlDVJ6VzqcH9F1xgcl/gM gApJCLDm9ZQOTguKSjzNwQXw7TCs9rC+jUtkvdoPa8roLGYviMRTsEVTVL/74A== Date: Sun, 17 Dec 2023 22:39:17 +0100 From: Alexandre Belloni To: Mateusz =?utf-8?Q?Jo=C5=84czyk?= , Alessandro Zummo , Mario Limonciello 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, Dave Hansen , Borislav Petkov , "H . Peter Anvin" , Thomas Gleixner , Ingo Molnar Subject: Re: [PATCH v4 0/4] Extend time to wait for UIP for some callers Message-ID: <170284892664.25661.2800776178102384405.b4-ty@bootlin.com> References: <20231128053653.101798-1-mario.limonciello@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20231128053653.101798-1-mario.limonciello@amd.com> X-GND-Sasl: alexandre.belloni@bootlin.com On Mon, 27 Nov 2023 23:36:49 -0600, Mario Limonciello wrote: > 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. > > [...] Applied, thanks! [1/4] rtc: mc146818-lib: Adjust failure return code for mc146818_get_time() commit: af838635a3eb9b1bc0d98599c101ebca98f31311 [2/4] rtc: Adjust failure return code for cmos_set_alarm() commit: 1311a8f0d4b23f58bbababa13623aa40b8ad4e0c [3/4] rtc: Add support for configuring the UIP timeout for RTC reads commit: 120931db07b49252aba2073096b595482d71857c [4/4] rtc: Extend timeout for waiting for UIP to clear to 1s commit: cef9ecc8e938dd48a560f7dd9be1246359248d20 -- Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com