Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1230751pxb; Tue, 1 Feb 2022 23:17:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJzaKQf+fa8o2x7Gdh46zZt9GNslygwTnb7MCI7m8vf8rxhDigAyR9IyFYCiiuMFyGJ4CYCp X-Received: by 2002:a17:902:d486:: with SMTP id c6mr28744562plg.133.1643786253506; Tue, 01 Feb 2022 23:17:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643786253; cv=none; d=google.com; s=arc-20160816; b=aUuYZd4HmPWsqJ1bzsFSouLNZqg6G88xBURGBJhhMn4obc3UinbW1+8viGpcWgWPw6 b1xjZDOm3/Y9rQbdOhNoLVoUprQQL4T4w5qiBQJCBtFroXhbTC5F/FR4BT/Nwp7nrgQ6 dyaX5wl/Eq+2nIijabOhMPWGO1rf0+SAwxvPxxorL8ztJOknZY5OwFgEUgBfNN5lGfKF wkq2IdHnykMq6FCg0SiVpB7loVqvxsMJhP104fRc2UBbhzNkcOKAXFobVtOCwxE1y8Dz OvS24URJWqn6h/MJRbvsKBNoq2Ul6Mum0VQKdotKvqan2TTF0sg7Qi2XueGe1tGsFnDU T2Qg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=NwpNAO3jsQ2s8tfKumaXN6R+gbFuZ2OaHhV6LbyW8bo=; b=gW1tkNzq79Q5c8FKUUcGFLKfBF7dg1CN/fs//BDtJBsRtY1S6/a6aUkITNzBGhmu88 oIvuuEKYOgWlKNRG7kuCW1FjG9gEorqBFd6rkino1wWULPmM179PisPD7VXtTq9UnqnH UQIQYgm2PeIlfhAtz2uLnws1zi8s4Ov5/mlsbrWcQGNfbhwSwJnXi72WcgO6mC7cG2v7 KpQF4/WZdKlr2zVA9fm4SW852sH9SXWqVYmLm4fxmWA9ilWevEOO8kQmzGMBMyHumNtS W96ZVhNWQpvU2aZk0ypc8xLbDf12Yn4STT3YfD5Pfcmu5V5q83SJdica153Bvpj9YP/6 c5ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alyssa.is header.s=fm2 header.b=QoprNxq1; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=A6CyP1T5; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id np10si5133416pjb.174.2022.02.01.23.17.21; Tue, 01 Feb 2022 23:17:33 -0800 (PST) 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=@alyssa.is header.s=fm2 header.b=QoprNxq1; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=A6CyP1T5; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236268AbiBAMRu (ORCPT + 99 others); Tue, 1 Feb 2022 07:17:50 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:49847 "EHLO wout2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237962AbiBAMRs (ORCPT ); Tue, 1 Feb 2022 07:17:48 -0500 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 8F65D32021A3; Tue, 1 Feb 2022 07:17:47 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Tue, 01 Feb 2022 07:17:48 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alyssa.is; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; bh=NwpNAO3jsQ2s8tfKumaXN6R+gbFuZ2OaHhV6Lb yW8bo=; b=QoprNxq1BWVwwPL7y3cxQvPRF3S5rNa6+9yTAo/Ks4f+AslOlgTU5N NEq33xioEvMUjTROWccysIodRzA2OF1BsqwGN3GC6b8IdnVpuZT3uD9I4EYqRy9+ 4yrEJDPI5j51SUO75D+xtoc+EIbVkw4b8c+N6u2VqClmdfK4PTTd8p+vIIvuq00J ADV0+MazXDa0EYpv3sn/p1s/ZffB8q+mubjuST2D5rZVweNeZpw42FK7Y+qsMScr m/3Z/xZX18et2tsNtAlxa//cyo9wikxXYFTjaIF2ukhaf/x4kBbpg8KMnpZbynP1 R0HVrST3zaLZP4Tz/kWmQynbmepsLmZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=NwpNAO3jsQ2s8tfKu maXN6R+gbFuZ2OaHhV6LbyW8bo=; b=A6CyP1T5B1gZepWRttvl/KBBp8GUGfyTu cCdtSW9d8vZ/7Db6i8essvdSk+1hwnOKvtGWbFevNXsDB1IuK2QmYKqhl2Ip2r/2 nfiAqxbZJQx2S/TDTkDuZsY8MlctZbNxLt2hwGejlyO1rEYcdJrroCdKuSoprn4f vLm3EY7gTLuhxmg1kQ+liYxJre+SN8/Hak9v1bygpi1N//I36ni6G9PNyHV+b90A MBo4ZTswu1HTqd2DvqWVxi3rSTO/03L9J2eRweuRpmzdpuyJsPjENXjyfSD9WDT9 OwSl28Yg5cXw917BM9Xo/j8qwGNy0rV6G4E5XsvuY7jM+xjtaSe/Q== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrgeefgdefkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtjeenucfhrhhomheptehlhihsshgr ucftohhsshcuoehhihesrghlhihsshgrrdhisheqnecuggftrfgrthhtvghrnhepgefgje fhudehhfevgfduledtuedtleefgeeutdehtddtgfeffedtjeehveduvedtnecuvehluhhs thgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepqhihlhhishhssegvvh gvrdhqhihlihhsshdrnhgvth X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Feb 2022 07:17:46 -0500 (EST) Received: by eve.qyliss.net (Postfix, from userid 1000) id 6596E8090; Tue, 1 Feb 2022 12:17:45 +0000 (UTC) Date: Tue, 1 Feb 2022 12:17:45 +0000 From: Alyssa Ross To: Prashant Malani Cc: linux-kernel@vger.kernel.org, Tzung-Bi Shih , Benson Leung , Enric Balletbo i Serra , Guenter Roeck , Heikki Krogerus , chrome-platform@lists.linux.dev Subject: Re: [PATCH v2] platform/chrome: cros_ec_typec: Check for EC device Message-ID: <20220201121745.r4dbilp3fpqhjuty@eve> References: <20220126190219.3095419-1-pmalani@chromium.org> <20220126230411.nn2illij4wbpdm4q@eve> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="gounvrkiin7nkkhy" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gounvrkiin7nkkhy Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Prashant, On Wed, Jan 26, 2022 at 11:08:14PM +0000, Prashant Malani wrote: > Hi Alyssa, > > On Jan 26 23:04, Alyssa Ross wrote: > > On Wed, Jan 26, 2022 at 07:02:20PM +0000, Prashant Malani wrote: > > > The Type C ACPI device on older Chromebooks is not generated correctly > > > (since their EC firmware doesn't support the new commands required). = In > > > such cases, the crafted ACPI device doesn't have an EC parent, and it= is > > > therefore not useful (it shouldn't be generated in the first place si= nce > > > the EC firmware doesn't support any of the Type C commands). > > > > > > To handle devices which use these older firmware revisions, check for > > > the parent EC device handle, and fail the probe if it's not found. > > > > > > Fixes: fdc6b21e2444 ("platform/chrome: Add Type C connector class dri= ver") > > > Reported-by: Alyssa Ross > > > Reviewed-by: Tzung-Bi Shih > > > Signed-off-by: Prashant Malani > > > --- > > > Hi Alyssa, could you kindly test this with your existing setup? Thank= s! > > > > Hi Prashant, I'm happy to test, but I'm on vacation until the end of the > > week so probably won't get a chance before Monday. > > No worries, whenever you get the chance is fine. > > > > > I'm guessing I should be testing with latest upstream coreboot (now that > > your fix there has been applied)? > > You should use the coreboot with which you discovered the crash, so the > one which *doesn't* contain the fix. I applied this patch to Linux 5.17-rc2 and tested with the coreboot_tiano-eve-mrchromebox-20210806.rom firmware. The Oops has been replaced with "cros-ec-typec: GOOG0014:00: couldn't find parent EC device". My laptop now reboots correctly =E2=80=94 the hang on reboot is gone. The cros_ec_typec driver ends up being loaded, but no devices are bound to it. This differs from the behaviour with upstream coreboot (cabf9e33a7), where cros_ec_typec does not end up being loaded. Assuming all that's the intended behaviour: Reviewed-by: Alyssa Ross Tested-by: Alyssa Ross BTW: if you need anything else tested on an eve running upstream Linux and Coreboot in future, I'm happy to be CCed. :) > Thanks again! > > -Prashant --gounvrkiin7nkkhy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEH9wgcxqlHM/ARR3h+dvtSFmyccAFAmH5JOIACgkQ+dvtSFmy ccBxVw//fEzb3zR8P3ov4Hhq21CxINWY7CYP/+iHTAMNIJaTQrU+1QgTnSXv2Lam 5wGg4OFaqVKOffT738eub9MSxdeTfueAno4gHd3FmhAAAbU2wjj2dPaju+lZdH08 teCmPmnGPyc5pkW+vctvjiafPuvr99sz5mkgZ51jywWGcoYBIjvtkiQVtDisMNoh aY80WujZRx7UIqw9cMjb3fcSEvLXL9yDQXYNmEULFI72uUiMFqf5DrzYW43hJCF6 pNZwnTE1w8rvs0cGKqp1RsqjCyS4sjcPMbq3JAbQfqwrB040x7SQqB6fMjEonPns E93ycWrEqWzOPTkM0d9kHtU69OuiX82aY/1LvZsmRmFGx/T3lq9iXswjstodAg9A eZJCaLauSbUEApyOuJ+VlX+YfYBAtGMrZ7tPOYukMAkR6PSrLfqz2ntrL1K3rtcH QHcCLd7/LAhGNEzwFBw4Ob85UCD3eti8X3KTCmbrklIZNNTAqTsuDtX4HgEeuuqU X0AQAvJ13FFQFWflR+yrtl6m1fJk2sjGYflGJkjCT615fW3x3SyTVDdwPX3Nbs5N VUWDJjbYzjubONyYitSoyrBRzKCihTOaTp06Zu0q/ubb0N5z6d8UZ0gWAu+N6XRE yBjWy4BObHcioQzipFTAHsA5wVbmUdFLXWF7d32P2lBIgRnNRfg= =Cjxi -----END PGP SIGNATURE----- --gounvrkiin7nkkhy--