Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3855028iob; Tue, 17 May 2022 08:31:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJ1cA+w/XxUZAwa2ta7McqB8XAGIrvcl2/eYa40R3+HTQmSgHVSyXHKJxa20cuzdIIIg0a X-Received: by 2002:a05:6a00:2484:b0:50e:68e:d5a5 with SMTP id c4-20020a056a00248400b0050e068ed5a5mr22997079pfv.47.1652801517314; Tue, 17 May 2022 08:31:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652801517; cv=none; d=google.com; s=arc-20160816; b=xPDnoQsXAQ+RECyQDL/A96rHGyIi/QS76C9yRjTqkdiJ1EIaisOroKhPbVKzoO2hGs R2bK50d6TqwNIScZrIFq8ohGzjozd0QbyYyvgWJi8koUUN0JR5s2wPQ7s4gmPZafEbGL tKXIWSUoQ7UHPfZuCnWkj+OYRVqTFTS47Gyr4nn740FtrfXIPOf4cKAhyQlNAayUssZZ IJGrFF4EjZ/XyKVE/dw9nXyCmTlnKQ2NqWBP/YGBe7jsJza54Nk8G6QkuQV1AH2jyzcE e99sZAhASsyrQIOXiaH1+g0mkHrwGYdt6IOwQGYGQVojK3ddju7dIqv6EbxWTN33/pWB 5Pjg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=mbFG0j0OOb8L9zhN2w48Y4xmkuGMCVJKy6dA52/T7lY=; b=bWCcvTrIt7He1/weNxKLxGLp7Ihkt5soKSg+M6SUTC/itBUiQ7ZUHfasCFWjD9orK7 CE3NIR3cgCayXT8D8RMoJtg3kuB7nT6ILo15LZFYHZW6DgvHSbXtAVTzkJLaQ4BJK8U4 A8Kti2ECjH8bP3M4sGyrzNWbiKK3xeA20DU4RPqVcfsCHHaIsr/FU2blQeTQyeDTcqd5 aqHU3XFC5U6iNoSoxVscPukriLfdCnUbUWnC1vskh6DIGQP1KZmd5rBOHl5LOg9zxT8b AiMPCkYOzKMk0ZXiNR9CswKQh0OwyCqDyJfXFQrNlB958+2GIrzvjl/YTv4UPDlZpuh0 Q9Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hk5-20020a17090b224500b001df3d491cb1si3579590pjb.161.2022.05.17.08.31.36; Tue, 17 May 2022 08:31:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349775AbiEQPOj (ORCPT + 70 others); Tue, 17 May 2022 11:14:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243212AbiEQPOg (ORCPT ); Tue, 17 May 2022 11:14:36 -0400 Received: from mail-io1-f46.google.com (mail-io1-f46.google.com [209.85.166.46]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 363704BB93; Tue, 17 May 2022 08:14:34 -0700 (PDT) Received: by mail-io1-f46.google.com with SMTP id s23so19505665iog.13; Tue, 17 May 2022 08:14:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mbFG0j0OOb8L9zhN2w48Y4xmkuGMCVJKy6dA52/T7lY=; b=Oe2oZ4fRNldQ2RrA3y4TuzVMwHgFBnJJFsDcII6BiLBtCcecpKJkYEtaYUVNX1jRxp RqOJ6pPxt+Rhc6xgGHxQaQSo8EOV8lUc4wtJbYXmAEsIOcV7RwcZSGjWOAK00lhvUTan eW43CY5IGdWWCuldiSwSXkWHHFm+Ew2vYIcY0LiAit/Y7wrGBq6gOcxU51BWchULamXO bdaiWk2D4/xFIXEPgy4CJdEICEtXfNcFBAaeps7P8s4gPx0hnLA2Bna1CQRfvkNv4Ga+ ShbYa5smC7CHTmV2T+EXjsmu5xWUpIxXT8QstKF9rWC+Fa6MKnC/cUy3pVyCtcrcamgp 1Y4g== X-Gm-Message-State: AOAM533zT/fbiJZu/oRqguWHfT+J+alEDblKxXSINUtinWtu03KTAoAF iO/zQY0GhzIO4pJ+SngNCu2CYV3Zy+v15JuqAVk= X-Received: by 2002:a05:6638:3289:b0:32e:2c45:93b5 with SMTP id f9-20020a056638328900b0032e2c4593b5mr6150196jav.96.1652800473303; Tue, 17 May 2022 08:14:33 -0700 (PDT) MIME-Version: 1.0 References: <20220505015814.3727692-1-rui.zhang@intel.com> <20220505015814.3727692-8-rui.zhang@intel.com> In-Reply-To: <20220505015814.3727692-8-rui.zhang@intel.com> From: "Rafael J. Wysocki" Date: Tue, 17 May 2022 17:14:22 +0200 Message-ID: Subject: Re: [PATCH 7/7] rtc: cmos: Add suspend/resume endurance testing hook To: Zhang Rui Cc: "Rafael J. Wysocki" , kvalo@kernel.org, Alexandre Belloni , Linux PM , ACPI Devel Maling List , linux-rtc@vger.kernel.org, "open list:NETWORKING DRIVERS (WIRELESS)" , Daniel Lezcano , merez@codeaurora.org, mat.jonczyk@o2.pl, Sumeet Pawnikar , Len Brown Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=no 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-wireless@vger.kernel.org On Thu, May 5, 2022 at 3:58 AM Zhang Rui wrote: > > Automated suspend/resume testing uses the RTC for wakeup. > A short rtcwake period is desirable, so that more suspend/resume > cycles can be completed, while the machine is available for testing. > > But if too short a wake interval is specified, the event can occur, > while still suspending, and then no event wakes the suspended system > until the user notices that testing has stalled, and manually intervenes. If the wakeup event occurs while still suspending, it should abort the suspend in progress, shouldn't it? But the above implies that it doesn't do that. If this is fixed, wouldn't it address the issue at hand?