Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1849667rwd; Thu, 18 May 2023 19:13:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ64yshD59yWWiS7A7i1Oxt6VX5aOMHzIBTNnCUHRqnuSOhD4J+wXEdwidZO45HywQoRjtoB X-Received: by 2002:a17:902:c944:b0:1ac:8cd4:7404 with SMTP id i4-20020a170902c94400b001ac8cd47404mr1407265pla.35.1684462426385; Thu, 18 May 2023 19:13:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684462426; cv=none; d=google.com; s=arc-20160816; b=y1u23mhCVStQuy+vPOKDfGMKwBsUVqRnz1N0EfYCEm3xqRlBYDQqtToHFJV8uUVr4/ hNLFFVoi/nUxhP6I201mvm2jQ1NpaCv0E08oZyIT2LAvlG9sL4sdAtpTJJXhalIae7Q2 cBY7d2DnDVC7vsK3WA0QXmY491jBP9iCwYCjFkCCyh/a5mUMxLEu+sS4ebISbE2l13bI LHs1A8tVDLYKSK+sYwWZeengAk54DcnUh71ID/Olr5TObdDBPcE/wbdn1/0FSvHkJPDr /UgBc/h9lGz/6hcZqlvBDJ/KVnGpbskvRGNOO6GyALz+h8odPCX9fUHzBV44WF1Suw7p zYfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=ANyU/f8p7lXqGWf0VxVSaw/GSbEGbJd/bX2dskbCHGE=; b=Jj53tklwDyL1Ri2zt5+at2Ym4hq3SKYSgxZfLs8SRmMRSnvE0GaiaQ3/DGonpDaGm7 uQjCDGoMYNsAZKdT4oEHuQDodMFxB0APgFF60vG1EDu60dzu5z4DBaGROB+YJnj7hfce f9AWo2TdmpQiyx9yo64vl/fjr+N15Y1ryWXuw2EFkC3Ak4uLsNAAmzDT3D/4pZYMOA00 7MZ32qtSCX3EzV+Z169/Gf1SRyUtot2QgAxytEskNruq1ATgMihkpoxEaPRHgffcEGkV UXCiUf+R25k6TKBHJYwR90hNXi9Tv4+glEthecilsvWXaGup1kGKnN2193rehBkLYdXs aekQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TJa2cc8H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 h3-20020a170902f7c300b001a4ee6ec8d3si2678013plw.65.2023.05.18.19.13.34; Thu, 18 May 2023 19:13:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=TJa2cc8H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S229566AbjESBzl (ORCPT + 99 others); Thu, 18 May 2023 21:55:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229497AbjESBzk (ORCPT ); Thu, 18 May 2023 21:55:40 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF0B10CE for ; Thu, 18 May 2023 18:55:39 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id B461265316 for ; Fri, 19 May 2023 01:55:38 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AB03CC433D2; Fri, 19 May 2023 01:55:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684461338; bh=wVIV4JUX6HfKfNi01tfd1YVz2GWTdgoR9UFjHLnx8FU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TJa2cc8HQU4tGJPfnLsdZFX/Ht+73XKkdYQwacfqXliHMbZXzOfXVdC9ZFNL9gufq O7HoksUMQPE5wLsw7GE/Ut0MuLPdWyndjpjBRDSI587iNkKRg7J4ZLHhWfv4ABuYDf t56AlBsf7i4OMV3T/ykdVVkMq20vH3zAEp3lnQDo3m9A5NhBJudx0chKSW0njXRXCs nd6W3KEqZhlQAboo636YljTB42Bd8V3/fGS6A71mvxgwCwNKTQMNu7zjouXq/rssVS zsLBk6w/ejozzFA19VfDNpHf9YdC15cOmXP226NV9jvXduN6xEm0/0h/y01pYruB1O MszdEkCRt2Zkg== Date: Fri, 19 May 2023 09:55:34 +0800 From: Tzung-Bi Shih To: Tim Van Patten Cc: LKML , robbarnes@google.com, lalithkraj@google.com, rrangel@chromium.org, Benson Leung , Guenter Roeck , chrome-platform@lists.linux.dev, Garrick Evans Subject: Re: [PATCH] [v9] platform/chrome: cros_ec_lpc: Move host command to prepare/complete Message-ID: References: <20230515142552.1.I17cae37888be3a8683911991602f18e482e7a621@changeid> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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-kernel@vger.kernel.org On Thu, May 18, 2023 at 10:47:23AM -0600, Tim Van Patten wrote: > On Wed, May 17, 2023 at 7:38 PM Tzung-Bi Shih wrote: > > On Wed, May 17, 2023 at 09:56:59AM -0600, Tim Van Patten wrote: > > > The issue is that we need the EC aware of the AP being in the process > > > of suspend/resume from start to finish, so we can accurately > > > determine: > > > - How long the process took to better gauge we're meeting ChromeOS requirements. > > > - When the AP failed to complete the process, so we can collect data > > > and perform error recovery. [...] > > How could the *error* recovery do? > > I don't understand what this is asking. Given that you said "we can collect data and perform error recovery" if the suspend-resume takes more/less time than expected. I'm trying to understand what does "error recovery" mean. What recovery it could take? > > > > What about other interfaces (i2c, spi, uart)? Do they also need to change > > > the callbacks? > > > > > > We aren't concerned about those devices, because they aren't being > > > used on the devices we're seeing issues with. If devices using those > > > ECs want this change, they can pick it up as well, but we don't have > > > any way to test changes on those devices (whatever they may be). > > > > This doesn't sound good. As I would suppose you are adding some new EC FW > > features regarding to EC_CMD_HOST_SLEEP_EVENT, you should consider the > > existing systems too. > > Again, why are you assuming there is new EC FW for this? This is only > changing when an already-existing host command is being sent. Nothing > is being added or removed. I see. There is no EC changes. Specifically, do you see any crashes, or premature events, or mal-functions regarding to the measurement is not that accurate? Also, we wouldn't want it to be LPC-specialized. Please consider other interfaces.