Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1883432rdb; Thu, 7 Dec 2023 11:15:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IF7G5hgpr6GX3GNbB4TPh5CnUUpJ2pwszZlh+30ecbqcV5CSIFvV8863WB/7fUJ7p217PoN X-Received: by 2002:a05:6a20:1454:b0:18a:d791:6629 with SMTP id a20-20020a056a20145400b0018ad7916629mr4626462pzi.11.1701976535953; Thu, 07 Dec 2023 11:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701976535; cv=none; d=google.com; s=arc-20160816; b=0eg8cIXMt0QNy5pqjLPY6B/tNCsfMDEuegCWYVbEbnjts5pFdg+J4LPjWrza4V2v9b kMtliOiEf3yU43hGYzNePUb8TonKb3EN+tUMWie/hbWloV23BFosQlnXQLpRgXWKnbnc 9ZXZabpbrvYXcl3ucljNChJHvEzuRn1xupqMNxlz2Sj88SdAzGsVpBKxxxe/kt1FC5Yu dESsyQDt5Tg2Q99KHRWIXRV2p4OueUg9KvmT2iQ1AzWuNIMst1AAv5I8SuPug84VKGCo CmIdTB5mDxolppuMN2PepDSNm1GLsoLWAshUP4N9mmcZVdzVRGntQ4TlxQ1ePDxt/SfU vDEA== 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=Ge3Rk2B21QhsOmEMG5m3LjdIZh1PEMQWoh/W4fwv0Lg=; fh=6uOzzfkrIuPENhHwQLnsHrTwNYZy9ys+e8en9qPfKSU=; b=flbPPwAXWrICgDLFNpdICnEieEgExzv3kgNR24I35msoA+mMbAh3fj+oG7pvcniEjg 8tyGEE0sGy8uSm09sdVN05MhpdfMO18p8OgfeMhT0R5aVxuR4yCrs16DL9tOxBVgH/6u PaarJSGLu3ASXuLfUe7Ta1l0k+h/as3rA8SCRXFgqSyZ+bm0pjhv+kI3wWKQyeTDLuXt XuVZWDSYHkF9jMvP0Pz745gAulKzd/WNS2WKut/m0WGbJ11roOI9o6llzlG6gNR25gnf 2Tv7NfMVb2uas8akhrclQTKW9m6MYcXdQfGkDI9xE/AxLrzozv+M61pkP6QCJwJeZKCa QlwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Q1CMkJ5g; 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=chromium.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id o64-20020a634143000000b005c66c22569csi172301pga.17.2023.12.07.11.15.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 11:15:35 -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=@chromium.org header.s=google header.b=Q1CMkJ5g; 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=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 2C370808726A; Thu, 7 Dec 2023 11:15:09 -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 S230257AbjLGTOy (ORCPT + 99 others); Thu, 7 Dec 2023 14:14:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229852AbjLGTOx (ORCPT ); Thu, 7 Dec 2023 14:14:53 -0500 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C4E11703 for ; Thu, 7 Dec 2023 11:14:58 -0800 (PST) Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-50bf1e32571so1283365e87.2 for ; Thu, 07 Dec 2023 11:14:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1701976494; x=1702581294; darn=vger.kernel.org; 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=Ge3Rk2B21QhsOmEMG5m3LjdIZh1PEMQWoh/W4fwv0Lg=; b=Q1CMkJ5g+RL6PTVwgb5QQufZqdsWNmzQRQiazGtIlHHlgdoSK6C5GRPqG1XK7lXfLA b6Cu0ZT8BtZLHtRfrL+hJeixp8zNopGohdt+5gB8L0yisP0DIeW1WTZ7WoXe94LTmBem Lnq+W+BwpqQpwhok2gGNlW/xXEKmsO/SGCsHc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701976494; x=1702581294; 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=Ge3Rk2B21QhsOmEMG5m3LjdIZh1PEMQWoh/W4fwv0Lg=; b=twQlmX563Tb0DBKHn70BLOFiykwcPtHyn8neLPZZpxq9VPuo3heujm8sJlZO0P8iz1 215WcLBtN2gL9mCPeSsqTYBsv1TE/+w5lwcWuisqCQ0vVQ5VB4CH4hvL/VYCQsQaiOJA 2gB138ZLC0BsQNZiUN3gNZTcoTkQaetzgrNOgNlJbISXGWfOnwPn3JuYnRdi7N5rqHhb vZEnR+z+s+SfxC/xRVlEtOl5Tgmn1CmxX9J7c9JUIIc1P6XP0tQYo14inpomM0hvlTAb HYKohohlI4pmlNQW+YyLke8bCzTjTTPWOOCo1RsUlCUnU+R56Wp2dFxEHhM1SFLOcM5e ugWQ== X-Gm-Message-State: AOJu0YxWCPbDdUzrSBXAwiuIkCACklRLB6vrZ0i/VOaGfJ9JQjLwj+ZH dxtnibfE5MmG5csi3nh5x80cG5/KBN+s3JIhcFOrSQ== X-Received: by 2002:ac2:4428:0:b0:50b:efd4:1475 with SMTP id w8-20020ac24428000000b0050befd41475mr1724314lfl.9.1701976493719; Thu, 07 Dec 2023 11:14:53 -0800 (PST) Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com. [209.85.128.53]) by smtp.gmail.com with ESMTPSA id cw15-20020a170907160f00b00a1937153bddsm103764ejd.20.2023.12.07.11.14.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 07 Dec 2023 11:14:53 -0800 (PST) Received: by mail-wm1-f53.google.com with SMTP id 5b1f17b1804b1-40c2db0ca48so8935e9.1 for ; Thu, 07 Dec 2023 11:14:53 -0800 (PST) X-Received: by 2002:a05:600c:364b:b0:40c:1e46:508e with SMTP id y11-20020a05600c364b00b0040c1e46508emr8036wmq.0.1701976492706; Thu, 07 Dec 2023 11:14:52 -0800 (PST) MIME-Version: 1.0 References: <20231207081801.4049075-1-treapking@chromium.org> <20231207081801.4049075-5-treapking@chromium.org> In-Reply-To: From: Doug Anderson Date: Thu, 7 Dec 2023 11:14:34 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 4/4] drm/panel-edp: Add some panels with conservative timings To: Maxime Ripard 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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]); Thu, 07 Dec 2023 11:15:09 -0800 (PST) Hi, 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 fin= d > > > 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 timing= s, > > > update them with less-conservative timings from other panels of the s= ame > > > 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. It's probably not clear enough from the commit message, but this isn't just a dump from downstream 4.19. What happened was: 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. 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. 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. 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. So basically we're stuck. Options: 1. Leave customers who have these panels stuck with the hardware behaving worse than it used to. This is not acceptable to me. 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. 3. Land a patch like this one that at least gets us into not such a bad sha= pe. 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 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. > Also, the fact that the 4.19 kernel mentionned in the commit log is > actually a downstream tree needs to be made much clearer. Yeah, that would help too.