From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 090D3606A333 for ; Wed, 4 Nov 2026 18:38:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=m2Z1jy6P; dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=iav.lv header.i=@iav.lv header.a=rsa-sha256 header.s=zoho header.b=XwsE/OKh DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Unsubscribe-Post:List-Owner; bh=pTUMDOo6GSLUHp0rvgfoQGv/iPKp3kTOv0z7Kwh1Vjw=; b=m2Z1jy6PTrUDYHQeF8AC0GA8Pf h2ZiMnrF2afUmwJOLpH9vrC/2+33oQiOpvIJ15hg+EawdHQQYV/m3SUi2Lur2Tu/sLe5WRHQ6Dqtf ipjmSoAoLlu4z1Rp+5mjDgEPmTa9SfzdlYAZfHaHrCj5qooxjEWd7jYASz26Dt7rXhilgk/QLt2xf jMSpRS5ARuOdW8mkCpPicVT55h1KenLYXqFOVoBwVaoKAEe983uoHlNq71X0UBJIFB8lnPY/pCuVj xFv1cFcqyYEUOa1ffdlqqZshHJQY4+V4XSG4XTB8ahHJ24RGs+Ee1RDncMmHB30/sshHbbd3WxISz YJS5rrfQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.100.1 #2 (Red Hat Linux)) id 1xOfsG-00000006Q65-3N8m; Wed, 04 Nov 2026 18:38:16 +0000 Received: from sender-op-o15.zoho.eu ([136.143.169.15]) by bombadil.infradead.org with esmtps (Exim 4.100.1 #2 (Red Hat Linux)) id 1xOfsD-00000006Q3i-1kut; Wed, 04 Nov 2026 18:38:15 +0000 ARC-Seal: i=1; a=rsa-sha256; t=1793817483; cv=none; d=zohomail.eu; s=zohoarc; b=jOiOl+0CE+ACVKVx2qnxTLmr810zE/CRa3KOwEr2zNkoJc25NbMCCdee3UXcgi4SvHxIB9BtXeTa0IVCXrN70PWks0O6lrv3nUDrmsbs7zmRhW0uVtNFMd0VTFsWtSr8+/uuFcaXlBFobGvMea9hXuGXpJvGRq1hcefv3O2S7cE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.eu; s=zohoarc; t=1793817483; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:MIME-Version:Message-ID:Subject:Subject:To:To:Message-Id:Reply-To; bh=+G4rf1hzJmKdD7EoOaWqne7TUKWl699YR7p6ZHK04Pg=; b=KMm2Qa0cQcm1Y27OQJWy4TNMM30UFPAzO1jo5bniPHxWFY0Eda/ucpPhYTde4l6Pg2NFIbfnvQFVZX1Ll+NpPo+lgbZt1jPYyQdzP1mocMFucUS2ZDb6+KaOPLwNzr7Ds4lccHlD684uAul0XSMWEoK4teQbqi8DSwUGyg4TaIs= ARC-Authentication-Results: i=1; mx.zohomail.eu; dkim=pass header.i=iav.lv; spf=pass smtp.mailfrom=iav@iav.lv; dmarc=pass header.from= DKIM-Signature: a=rsa-sha256; b=XwsE/OKhgSV8BT27J+m5RtLTpGlmD2r5OAJQBoml3G3mJAKrH4UlhmUacSyvaKRjiVf6jv2WIYpVW3Zf1hnYQuMIP8iVKsbm/g6dLhyYNPkj9JoZW4z3McwqHJCweLV6luJLFyFNmNcj9d8s1sIjsmdVL0IaFCIvnJVaF1p0uAk=; c=relaxed/relaxed; s=zoho; d=iav.lv; v=1; bh=+G4rf1hzJmKdD7EoOaWqne7TUKWl699YR7p6ZHK04Pg=; h=Content-Description:Content-ID:Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Resent-Sender:Resent-Cc:Resent-Date:Resent-To:Reply-To:Resent-Message-ID:Resent-From:Sender:Subject:To:Date:From:Message-Id:Reply-To:Subject:To:Cc; Received: by smtp.zoho.eu with SMTPS id 1793817481738396.6696032790776; Wed, 4 Nov 2026 19:38:01 +0100 (CET) Date: Wed, 04 Nov 2026 20:38:00 +0200 From: Igor Velkov To: Neil Armstrong Cc: iav@iav.lv, John Stultz , Thomas Gleixner , Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Stephen Boyd , Miroslav Lichvar , Jerome Brunet , Martin Blumenstingl , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 0/3] alarmtimer: Choose the wakeup RTC per sleep state from the device tree Message-ID: <20261104-alarmtimer-rtc-neil-reply-1@iav.lv> In-Reply-To: <399668f0-e97a-438e-b761-1ea6c18d904b@linaro.org> References: <20261104-b4-alarmtimer-rtc-priority-v1-0-e996681b8086@iav.lv> <399668f0-e97a-438e-b761-1ea6c18d904b@linaro.org> X-Archived-By: MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20261104_103813_736143_2AFC9E9B X-CRM114-Status: UNSURE ( 9.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.1 (--) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 On 11/4/26, Neil Armstrong wrote: > This sounds bulky, perhaps it would be much simpler if we just added > all the available RTCs which has RTC_FEATURE_ALARM and can wakeup ? > > Just switch from 1 single to multiple RTCs in a linked list and you're > done, no DT & bindings changes. A list it is, and v2 drops linux,alarmtimer-priority. Arming every RTC makes the coarsest one fire first: pcf8563 has no alarm seconds, so its alarm comes up to 59 s early, and an RTC with alarm_offset_max wakes earlier still. The board wakes before the timer expires, and the next alarm may come seconds later: while it is still resuming, which takes seconds with disks and PCIe, or right after it is suspended again. Drivers then go through suspend and resume at short intervals. Arming one RTC per sleep state avoids that, and which RTC wakes from which state is board knowledge, so v2 keeps linux,wakeup-states. -- Igor Velkov _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic