Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2714770rwd; Fri, 19 May 2023 09:12:46 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6LiYUmtDMZ2Y/J+ypNXepDQzf8+dwMcpEadRKGKwtqLCP7HNW7kjDyCoYf1g5sj4AhE/HJ X-Received: by 2002:a05:6a00:2310:b0:63b:859f:f094 with SMTP id h16-20020a056a00231000b0063b859ff094mr4201268pfh.20.1684512766565; Fri, 19 May 2023 09:12:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684512766; cv=none; d=google.com; s=arc-20160816; b=ioQXgThqRSj05oFot5b94/WNF1qiJfwZudzc7GQDRBN+0hNlCSJYu8D90xjq0Fb3za JUGX79aLkMh8CWnB80cTx4BXd+OBRQBE7ZmdhMMkzoPznU5ab3SPfbFyH5Qa5Te37u8d TzYNeCUSdVaCILsGy38oKC9KeFNdhVWUAI37iLqMSxkF+8x97Bej0zw66i1Sc7hIQrN/ ZiY3S0sEpRrRxm4QziKp7aOp78YLKnEjGN4O69AVkm7y0K/5Jf9Ix26WBuQOWVpdk8HD aLa7hu2yOCUOt6z/tT9TZgLTUeOSGFICyCY6BItG8XF8Nf4jQ8x+82rSGngYAs0ypmPR Sd8w== 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=Kxy+rwK3enUPv3xL2BXOn58zbTbgfauUuJX0uZ3fQ6Q=; b=znaPmU0fDqPL71L+1rCx836XqCthMvQ04S8Q1WrbnadXLEOoCFHRwm7xqQUeYlCjOP RPntB1GJjFRmwCVYzbmJIJbzYsvRdy4isxBfuyb23I8td322fGgu2HklWAHY+sJYbOsP tqrVTtxfFfJ8lZN1qYOC/9RrxBKFXg14m+2WXb+UYqQGU85uLT05v+04jibk1UVe3Txd x0zps4icv+9nReoW8xLDU/WeMPG6SqS5Xgl1LvE1FjVir76RO+BfS5LgJaKJBQ3PZ0Ud zVMsQdUsWz107lrHaQuOfhw5yzR4xmGCDrSfLJFYWPPtoy4p0UdnykqXysvd7/f/6A5Q uv4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=mym6MEH6; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 126-20020a620684000000b0063b88f52220si4080737pfg.144.2023.05.19.09.12.32; Fri, 19 May 2023 09:12: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=@chromium.org header.s=google header.b=mym6MEH6; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232071AbjESPdF (ORCPT + 99 others); Fri, 19 May 2023 11:33:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230461AbjESPdE (ORCPT ); Fri, 19 May 2023 11:33:04 -0400 Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2BB11A4 for ; Fri, 19 May 2023 08:33:02 -0700 (PDT) Received: by mail-qt1-x831.google.com with SMTP id d75a77b69052e-3f529239e4aso34237591cf.0 for ; Fri, 19 May 2023 08:33:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1684510382; x=1687102382; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Kxy+rwK3enUPv3xL2BXOn58zbTbgfauUuJX0uZ3fQ6Q=; b=mym6MEH6W1MyKl99fdoCqm1n9Yj6eOg4ue991079wWcQZiTubCmnUf2QwbNveAsQ7I rtmG70t6mug7qYSTmuLGy6Ob+Ix0zrhQNr5gRNG3qd5FBBf0PKZeCoP70R2ptdvifnZi HAPtUInBrHu4Ig4lzJTzQUu+0/nLbVaxRvP5E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684510382; x=1687102382; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Kxy+rwK3enUPv3xL2BXOn58zbTbgfauUuJX0uZ3fQ6Q=; b=MCSf0FGqNWqqGKlz8L4TTv3IxGnDfU3T0UdJSm3Hr2uFsCkemYl3nGrBRTWpOmGN04 My1qh+vKESmvSPgRCeSGPqDnY1eDQkIrXgxwGBjb19FsZffZI+qKH0rNBk1Z6rB1EtXQ snGHhgDijo6x6ZtWt6BOhgk7kIzgqHYxsgtg3qaBcRDuqRi34GOtOyor0s2MhLnwCohO Hdg5G5nTQRibBvFL/5xnRm9c4P3a2GkfapcF4fT/stYFHgrHWpwtzi8VDDJTHWeIhDZp +Jx4notaW3ebP8vyYJ0NUOmwenw7v3K7kBN8ObUCavlVGd4iLsZUD9JUFo86VxL9gEhi Zb0g== X-Gm-Message-State: AC+VfDwCFHlzLbg6fDi+PipD5FYRf0rSnpn7u+CY6hzojzEOZAEP+VWk YX1rE9r1/n9UDpRQF1wpT1wL/FAKeXkVuvL2Pxz5buN2ixBZy5x+aeg= X-Received: by 2002:a05:622a:1183:b0:3f5:491e:946d with SMTP id m3-20020a05622a118300b003f5491e946dmr4850090qtk.51.1684510381993; Fri, 19 May 2023 08:33:01 -0700 (PDT) MIME-Version: 1.0 References: <20230515142552.1.I17cae37888be3a8683911991602f18e482e7a621@changeid> In-Reply-To: From: Tim Van Patten Date: Fri, 19 May 2023 09:32:51 -0600 Message-ID: Subject: Re: [PATCH] [v9] platform/chrome: cros_ec_lpc: Move host command to prepare/complete To: Tzung-Bi Shih Cc: LKML , robbarnes@google.com, lalithkraj@google.com, rrangel@chromium.org, Benson Leung , Guenter Roeck , chrome-platform@lists.linux.dev, Garrick Evans Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 7:55=E2=80=AFPM Tzung-Bi Shih = wrote: > > On Thu, May 18, 2023 at 10:47:23AM -0600, Tim Van Patten wrote: > > On Wed, May 17, 2023 at 7:38=E2=80=AFPM 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 proce= ss > > > > 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 dat= a > > > > 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 t= he > suspend-resume takes more/less time than expected. I'm trying to underst= and > what does "error recovery" mean. What recovery it could take? Currently, for AMD, the EC will trigger data collection and either reset the AP or send a host event to attempt to trigger the AP into it's own recovery. Intel is looking into adding error recovery as well. > > > > > 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 thos= e > > > > ECs want this change, they can pick it up as well, but we don't hav= e > > > > 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 th= e > > > 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-functio= ns > regarding to the measurement is not that accurate? No, we don't see any issues with the current or new timings of sending these commands. > Also, we wouldn't want it to be LPC-specialized. Please consider other > interfaces. I'm intentionally excluding those interfaces because we don't have any way to test/validate this change on those devices. Additionally, we don't have any devices that use this suspend/resume tracking logic using those interfaces, so there's no reason to introduce any risk by changing devices that don't need it.