Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2227443pxb; Fri, 5 Feb 2021 12:07:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwp8LteV0TXWqYMzb2LDIP9HPZvmKsXs4Wj2GFYeUzz289WTSBSBDt4vmRnZci5OxahFISK X-Received: by 2002:a05:6402:1153:: with SMTP id g19mr673501edw.292.1612555635615; Fri, 05 Feb 2021 12:07:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612555635; cv=none; d=google.com; s=arc-20160816; b=YvTmgdDJWK/iyE2HHhnl1Tk5uSaLXPfH0m35Cz4VUkXkQZ3+y4nOYv7gl/a+TyazkD PLmDlOPPWfGbOhTjDeJ911YR8ht7YwQS3THxsoVeHX2/kaCNDXR9s5OUnZ+gGTDdylz7 Lag9YM+Y++NqoMWnPKFfZJRV1T5I627VRqZD4psFYkEgdJSC6xWsK6HGWh6QocL2ljfb kc24FdrQQS5JxDpgJWup3mEpfYsH6UnvhdAaUzMhMTU65xrBjH7ZNg25FAXNCgk1nkTL IKOMvIDCTPTRCAo7Gd5UkE+BZLDeGh7N5smMrCyY8C5GdzE0cpORLB67R/6vDm5pkcdJ QNvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9LzQ0yzRIqea5+VCWiNb3AgYRyWhw05TrVlxXakHq9o=; b=JnvK2NxpIwCw5f+wJGqavnLncGnWr14SEM90ry07REKudDEFdcmv37BtSI4956Z0kL kBXnqLPRCg44FI0xcGoMULgjNt9Iz/viPIfGyemvvsjrCtZLlizjuKSQ6BqtmaVN5ujt 7yqPr+iuvYXH0e4dSQbLa5hE2gLKKZcZHtChx/gyo4f0suGS0ug8Zj3F3ZriqcrfDwCV rsnK/e++UpVNk7DA5PAi9UNbj3Qh1lxnx8STn8R7+O1u3vWrMtRjraICRFUjUxZUAjMo E4CMUcByQCmPmf0XyhWmqJFTsJIG8kxhAChqWPsuFw7Of2qKXHxAV4TvGpOndUZAbn1C xsDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BCn49+MA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x59si5477891edc.544.2021.02.05.12.06.50; Fri, 05 Feb 2021 12:07:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BCn49+MA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233346AbhBESX5 (ORCPT + 99 others); Fri, 5 Feb 2021 13:23:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233552AbhBESWJ (ORCPT ); Fri, 5 Feb 2021 13:22:09 -0500 Received: from mail-il1-x130.google.com (mail-il1-x130.google.com [IPv6:2607:f8b0:4864:20::130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 077EEC06174A for ; Fri, 5 Feb 2021 12:03:54 -0800 (PST) Received: by mail-il1-x130.google.com with SMTP id e7so6916616ile.7 for ; Fri, 05 Feb 2021 12:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9LzQ0yzRIqea5+VCWiNb3AgYRyWhw05TrVlxXakHq9o=; b=BCn49+MA9XNXAcZ+CwOimBFTRu77VcHwdstpfcWNbIcxxz2OiJHkU4Pnn4Zj7nqP0q 9edGlb/UJZeHxkCiN9THKdEZ6L3LFlbGRJHJ+aEGQ7Jq/nlYWI7zOd6cEwG5adLs+9k3 4y8TfFdN8bIa886Aons3eR4Slof/O67ATT7+ID1zBkJ80eejS5P8RliS7Rr9UyHLJjpj BNe3euFg9UKT5WDPqqYLH1YRzCS+nOLeIwPiaDAixvBF8uY9A2LMK9uzfgGuEOrkC02v BGk8N4JGhieyrYQyUprh+5mtzbOXJ4IP4x4ZWmQnqFGtvggzhBLJGFXkgwkNQSyEfDTI 9Wkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9LzQ0yzRIqea5+VCWiNb3AgYRyWhw05TrVlxXakHq9o=; b=EfcqPAUR5DSDgnlbUryOmGGxWRHyAXc+iHuq117YJma8YVaU7KY40dBVnWWx+7QxPi V95gg13MTLLr86AddpQFBAblUJ1tVghfI5OpzLpWMRgIdBazlItUKnaMIoeA+mAZgTHP oIRsiGtlDuHazexQ7P8SbMdpUeYqLvBAfEfgxSY7pzwW2kgVCXm/U9ivICmcd/vrBrL/ //sHr+JJ0JgHsn9RCjUiTJ1CVX+v4W1n4G1uKZ6zQyyKtkV//qjA3DfIFzawapVU5JkN LH/2siL7ADr2hIrCqdcJbB/Mdl4O89Pzmez1PZoGMqdMmgAJWgushjB10MNEnf3MtkQx cgMA== X-Gm-Message-State: AOAM532i/CbNEdQZghDr5exejGtlGIBL/9YolaWqlA28xw2cmtxDrBZm /6YCR7kAlSOiISody+MexyMSa9wN9cNQhPpIJdVJXtRPVe16hQ== X-Received: by 2002:a92:d485:: with SMTP id p5mr5019489ilg.114.1612555433554; Fri, 05 Feb 2021 12:03:53 -0800 (PST) MIME-Version: 1.0 References: <20210129082726.19406-1-ruifeng.zhang0110@gmail.com> In-Reply-To: From: Ruifeng Zhang Date: Sat, 6 Feb 2021 04:03:41 +0800 Message-ID: Subject: Re: [PATCH] RFC syscore: add suspend type to syscore To: "Rafael J. Wysocki" Cc: Greg KH , ruifeng.zhang1@unisoc.com, Linux Kernel Mailing List , Chunyan Zhang , ke.wang@unisoc.com, nianfu.bai@unisoc.com, orson.zhai@unisoc.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Rafael J. Wysocki =E4=BA=8E2021=E5=B9=B42=E6=9C=885=E6= =97=A5=E5=91=A8=E4=BA=94 =E4=B8=8B=E5=8D=887:39=E5=86=99=E9=81=93=EF=BC=9A > > On Fri, Feb 5, 2021 at 11:28 AM Ruifeng Zhang > wrote: > > > > Rafael J. Wysocki =E4=BA=8E2021=E5=B9=B42=E6=9C=884= =E6=97=A5=E5=91=A8=E5=9B=9B =E4=B8=8B=E5=8D=889:38=E5=86=99=E9=81=93=EF=BC= =9A > > > > > > On Thu, Feb 4, 2021 at 10:07 AM Ruifeng Zhang > > > wrote: > > > > > > > > Greg KH =E4=BA=8E2021=E5=B9=B41=E6=9C= =8829=E6=97=A5=E5=91=A8=E4=BA=94 =E4=B8=8B=E5=8D=884:53=E5=86=99=E9=81=93= =EF=BC=9A > > > > > > > > > > On Fri, Jan 29, 2021 at 04:27:26PM +0800, Ruifeng Zhang wrote: > > > > > > From: Ruifeng Zhang > > > > > > > > > > > > Suspend type contains s2ram and s2idle, but syscore is only > > > > > > available for S2RAM. > > > > > > > > > > Who else needs this? > > > > In the s2idle suspend and resume, some vendors want to do some > > > > things, for example the vendor implemented the watchdog driver. > > > > > > Do that in the platform operations then. > > > > > > Adding the syscore stuff to the suspend-to-idle flow is not an option= , sorry. > > Excause me, I really still want to know the reason. > > The conditions to run syscore operations are: with one CPU online and > with disabled interrupts on that CPU. They are not satisfied in the > suspend-to-idle flow. Moreover, none of the existing syscore > operations need to be executed for suspend-to-idle except for the > timekeeping suspend, but this is done for a special reason. > > > My requirement is that the watchdog need disable when the system s2idle= . > > If don't, the watchdog will bark when system resume. > > So disabled it from s2idle_ops->prepare() or > suspend_ops->prepare_late() if device suspend is too early for you. I will seriously consider your suggestions, thank you very much.