Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5397375rdb; Wed, 13 Dec 2023 07:35:51 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgVXEXCIA9rC2Y+uLH8sbLhSH3LPkDbR1oG1zuKk2xKdoHhSngYYFwGHpYJqWM0+fyJz4N X-Received: by 2002:a05:6a20:7d86:b0:18f:f86f:bcdb with SMTP id v6-20020a056a207d8600b0018ff86fbcdbmr10081585pzj.93.1702481750773; Wed, 13 Dec 2023 07:35:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702481750; cv=none; d=google.com; s=arc-20160816; b=A1+JLJ+qVBxrIwLF/1RYt8G2LO2LJ28bR96RMpDWOgy7AtvzehODARr2hws7mYbHZH QaMp2J4OUpIwx4Sn2bbsqqWsOEqV/IJXQ0bsSqB3soOAj9fESoCgCpq6jQvs+dDk2bpN U5Q5V8wSH68d107m14oKuUjOJGil3esduJUacHDf+fA6ExAwdhJjUXV7yCT8Eq0Ti5F1 UUO0bY7t10QBw27NLQ0s9SK/wKfkLBIrzIkgeiRMQ83VoS3QoLaQdF9wCD6MS6pmTtBr Em+t4yH3bfrNa49cSmlycCOBORhSuO1Nvz9Z/93ugInREEYAgVvN7o8TZeu4LAZEuJit cCgw== 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; bh=fF5IdJk2B/mATX000CLvwflpsNnt4yOA5FfQqcffH+M=; fh=Qg2v0GFNMntLl+mnk/41BqYi6KNdvLNH6shid/wNPj0=; b=rExDofPsLceW7HEroP1zP2W06Dr9YG/hsejRbKIdJmg/79walnsVrxLg43r3j7nm7i c9vKDIaDlnbCv8yxOLoxR6JCstujs4HbmibPoENZV7EuMDC5Oq5ceZQLbePtXVhPpyga sohliuBWR3XinCTI28df9a+A2LOTvrdu5zjMl6d1VtvczdExm37ElciK8r8IEsEIBnb+ pmvfzXUggMx8N2k1xcA+hYG1SYOubs8apYPPd2ruPblmOr0Dx5VKaouZfB4fexPhcM1u pmBmtbYM0UJ95mmlFY4p3GLBWwLFz7OKcybz7QDNx583XbYPMgi0gqoPbxqJl2OzGPQo LSFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hlAH3U92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id c5-20020aa78c05000000b006ce08cdaf39si9617452pfd.386.2023.12.13.07.35.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 07:35:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=hlAH3U92; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id B76C4822AE52; Wed, 13 Dec 2023 07:35:41 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442039AbjLMPfH (ORCPT + 99 others); Wed, 13 Dec 2023 10:35:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442370AbjLMPev (ORCPT ); Wed, 13 Dec 2023 10:34:51 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9B5DD73 for ; Wed, 13 Dec 2023 07:34:06 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2FC55C433C8; Wed, 13 Dec 2023 15:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1702481646; bh=PckYT1aDPXQPn2mW/WVFpuTgZ9ZzOx8rbTcZ5JEa3jE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hlAH3U92XvypnNJiLV+kSMGm+MXp9U0rQSRwkM3tSpPkTLUmjWCyGFI7/9b233xbG 1k65bzNsm9q6aEB5+4A5jNNdOyHUbzuHGYkXC6tnn4IZLw70QEIOLvcHiQ7ree63AA 4kdc+Xif40Vc7SCGRlhadzhUlcrinWiAwT09uPEx742kbDII+D4uo2sczNTJyCVk8F uMwiXrHlzLe9PGuPBpt1Vf/rDKa/YTgyT0kVRxp9BfSCw2Z0GnwjHCLOkFG4FmQMAF ifKE4PGZ4dPJSqdbgcQow1xILj9pZXDsnJiYAM8S+3Qjlo8qChPYxrX2uEjKySrx2m U28o55nIf4IuQ== Date: Wed, 13 Dec 2023 16:34:03 +0100 From: Maxime Ripard To: Doug Anderson Cc: Pin-yen Lin , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , linux-kernel@vger.kernel.org, Guenter Roeck , dri-devel@lists.freedesktop.org Subject: Re: [PATCH v2 4/4] drm/panel-edp: Add some panels with conservative timings Message-ID: References: <20231207081801.4049075-1-treapking@chromium.org> <20231207081801.4049075-5-treapking@chromium.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ow6beonslt3jr7qg" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 07:35:41 -0800 (PST) --ow6beonslt3jr7qg Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 07, 2023 at 11:14:34AM -0800, Doug Anderson wrote: > Hi, >=20 > On Thu, Dec 7, 2023 at 10:58=E2=80=AFAM Maxime Ripard wrote: > > > > On Thu, Dec 07, 2023 at 10:23:53AM -0800, Doug Anderson wrote: > > > Hi, > > > > > > On Thu, Dec 7, 2023 at 12:18=E2=80=AFAM Pin-yen Lin wrote: > > > > > > > > These panels are used by Mediatek MT8173 Chromebooks but we can't f= ind > > > > the corresponding data sheets, and these panels used to work on v4.= 19 > > > > kernel without any specified delays. > > > > > > > > Therefore, instead of having them use the default conservative timi= ngs, > > > > update them with less-conservative timings from other panels of the= same > > > > vendor. The panels should still work under those timings, and we can > > > > save some delays and suppress the warnings. > > > > > > > > Signed-off-by: Pin-yen Lin > > > > > > > > --- > > > > > > > > (no changes since v1) > > > > > > > > drivers/gpu/drm/panel/panel-edp.c | 31 +++++++++++++++++++++++++++= ++++ > > > > 1 file changed, 31 insertions(+) > > > > > > Reviewed-by: Douglas Anderson > > > > > > Repeating my comments from v1 here too, since I expect this patch to > > > sit on the lists for a little while: > > > > > > > > > This is OK w/ me, but it will need time on the mailing lists before > > > landing in case anyone else has opinions. > > > > Generally speaking, I'm not really a fan of big patches that dump > > whatever ChromeOS is doing ... > > > > > Specifical thoughts: > > > > > > * I at least feel fairly confident that this is OK since these panels > > > essentially booted without _any_ delays back on the old downstream > > > v4.19 kernel. Presumably the panels just had fairly robust timing > > > controllers and so worked OK, but it's better to get the timing more > > > correct. > > > > ... especially since you have to rely on the recollection of engineers > > involved at the time and you have no real way to test and make things > > clearer anymore, and we have to take patches in that are handwavy "trust > > us, it's doing the right thing". > > > > I'd really prefer to have these patches sent as they are found out. >=20 > It's probably not clear enough from the commit message, but this isn't > just a dump from downstream 4.19. What happened was: >=20 > 1. Downstream chromeos-4.19 used the "little white lie" approach. They > all claimed a specific panel's compatible string even though there > were a whole pile of panels out there actually being used. Personally, > this was not something I was ever a fan of (and I wasn't personally > involved in this project), but it was the "state of the art" before > the generic panel-edp. Getting out of the "little white lie" situation > was why I spent so much time on the generic edp-panel solution > upstream. >=20 > 2. These devices have now been uprevved to a newer kernel and I > believe that there were issues seen that necessitated a move to the > proper generic panel-edp code. >=20 > 3. We are now getting field reports from our warning collector about a > whole pile of panels that are falling back to the "conservative" > timings, which means that they turn on/off much more slowly than they > should. >=20 > Pin-yen made an attempt to search for panels data sheets that matched > up with the IDs that came in from the field reports but there were > some panels that he just couldn't find. >=20 > So basically we're stuck. Options: >=20 > 1. Leave customers who have these panels stuck with the hardware > behaving worse than it used to. This is not acceptable to me. >=20 > 2. Land Pin-yen's patch as a downstream-only patch in ChromeOS. This > would solve the problem, but it would make me sad. If anyone ever > wants to take these old laptops and run some other Linux distribution > on them (and there are several that target old Chromebooks) then > they'd be again stuck with old timings. >=20 > 3. Land a patch like this one that at least gets us into not such a bad s= hape. >=20 > While I don't love this patch (and that's why I made it clear that it > needs to spend time on the list), it seems better than the > alternatives. Do you have a proposal for something else? If not, can > you confirm you're OK with #3 given this explanation? ...and perhaps > more details in the commit message? I don't have a specific comment, it was more of a comment about the process itself, if you write down what's above in the commit message ... > I would also note that, hopefully, patches like this shouldn't be a > recurring pattern. Any new Chromebooks using panel-edp will get > flagged much earlier and we should be able to get real/proper timings > added. I believe that we've also added a factory test so that > (assuming it doesn't get ignored by someone) devices that aren't > supported don't even make it out of the factory. =2E.. and if we can expect it to be a one-off, then it's fine for me. Thanks! Maxime --ow6beonslt3jr7qg Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZXnO6wAKCRDj7w1vZxhR xTb3AP9WTeKpgbIAWXvk/Z+th8DCA619E9MtyXwGpCMRxsTlJAEAjMx5mNrYGiw2 AwHAnC8/wWcs2lDIpsIEK2XhQ6VJQgA= =9Edu -----END PGP SIGNATURE----- --ow6beonslt3jr7qg--