Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp475639rdb; Thu, 5 Oct 2023 11:13:01 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHk3fC2fpgP0Rmn5vyF5WaLUzlAW4g+AFbQyuUEIoaOfSQpt2lzwlgWEYBRkulNElxs6uam X-Received: by 2002:a17:903:25ce:b0:1c6:2acc:62ec with SMTP id jc14-20020a17090325ce00b001c62acc62ecmr5022229plb.13.1696529581511; Thu, 05 Oct 2023 11:13:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696529581; cv=none; d=google.com; s=arc-20160816; b=bCnoHD8pct9Zufn5+lRW3ihVVAtCYfVhIm9L24SqxgVGuGZ4UUOExkPq1U7FZtrJU+ 9DgGxIRsD+XB7tsCYjBXLjVXODrtE6NXLz2bx7wjb6BUy3Ix+HjgZ+PnQgcDxCZ7C4k2 wq4vQxsk9I35CJaFGi3VHAMrmo4+Ukbvtn+hu+UURiA96iZuQ0CaETJOLYOKixstgU30 N4yQUPLvvTJE/Bhd1W8mnOp2NxHSkjxXYRJiYJK+EUNm/rCJQLSumQIUY1vB2/sAA1gE j8nDGHhiK1abaeHnp7BfPS/rrdjKUS74mY5Gikla4/aG9FWjrZlE7t9MJ+xBJTz2XWn+ 6NYQ== 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=1eAmFswOZzw3jH3oWLXVAcDuqGgICG6iPkOHsm6WtUk=; fh=xvVDboT9VX4Eo4G2XWGznwyRTGAkTNaizqGLgOPH/z4=; b=XXCwMLeOtOGrwhoHEXTERy/sS7MgFJLKnJzOIEjd6bzzGsS01owzpPcSs5aeIpqE+i FnaNwesExih22PjMLJ7DRjKsdZbZPeBENxkbFnQs5fgIwgvMBv33IwbA6Q/xpNvEsJAL p+Da6Q1yaVFnV3SJu1LFoICPl4A/h5e47oJ0Kr/EOfEUWau3IOsrEhiJdJmSsUMl0i+y zPAPc/WGD1BS2E2mGsnWIurx70ypKJ+cbej2FT8BfGUJW2Hem85hullAGsazxVFRnCBI 7Hw80nwv6ZiFsId7pGbIKnvQGyLU/lL6RWt3F8CXceXYcPKOQ4eT4B+ebPBf3GjB+jDo NLYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nQEuUKf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id c6-20020a170902c1c600b001c7374da019si1908723plc.13.2023.10.05.11.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=nQEuUKf4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (Postfix) with ESMTP id 5CB5683DD6AB; Thu, 5 Oct 2023 11:12:54 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231848AbjJESMK (ORCPT + 99 others); Thu, 5 Oct 2023 14:12:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231833AbjJESLW (ORCPT ); Thu, 5 Oct 2023 14:11:22 -0400 Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 615331A3 for ; Thu, 5 Oct 2023 11:11:19 -0700 (PDT) Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-9936b3d0286so242151666b.0 for ; Thu, 05 Oct 2023 11:11:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696529475; x=1697134275; 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=1eAmFswOZzw3jH3oWLXVAcDuqGgICG6iPkOHsm6WtUk=; b=nQEuUKf49LJCS/U8P9SeaGkuUPWON4esVwLhUFKG/3OOwu7/7kwOPe/0xq0TaFsp/5 6BJMkRdtlkSafdmYVjw2jKvQehzkz+RIwuIndz8/xMrhgm9o0/twtg8Yi6WgWYL4qfVz 3nmkoVt0PumfUJOdEzrnGlIDD7EUCkEu95FC8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696529475; x=1697134275; 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=1eAmFswOZzw3jH3oWLXVAcDuqGgICG6iPkOHsm6WtUk=; b=umHIgYgNNeApMjW8EtFzCjFmExs2EQ9ub+txG8BTqtXjUgmLKhUkG/4HM1/dUnOhCi rMiBCZOSGwREWIuju6g+Gq72dOcWsCSjxkB2iU9c5/w4YMpaEWctC2Piksy+tuyTeDV4 8ePIbesEHWP6g5B4V8Kc4mhOxf3lLh295SsQo+tDcLITaNVJrLjNS/S+2h0/yWg8PwgV zCCRd3gkgtHKrz6RZUrmvgl4jRETnzTDPhuOXX+sOEw/vLv9OnBpbRSoiq4+lG2m+AU4 p+5VqtjUu9sHBSCxAABMP+KN7DEhGMoCgjVqXQBKzthSIBYwrhGxtaWLDlwxxvHvXdU8 kobg== X-Gm-Message-State: AOJu0Yxhdc/ucY4VZiGUAC3zIBK4zqD6RXRsnmP2nVH2a4AqfpTgwQES ZPE7t+axI9IEozXIZAAT7sTHFx7ls+EtpsBeDhJzfyjR X-Received: by 2002:a17:907:2cf6:b0:9b2:ccd8:2d3d with SMTP id hz22-20020a1709072cf600b009b2ccd82d3dmr5065912ejc.26.1696529475198; Thu, 05 Oct 2023 11:11:15 -0700 (PDT) Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com. [209.85.128.45]) by smtp.gmail.com with ESMTPSA id la8-20020a170906ad8800b0099cce6f7d50sm1553261ejb.64.2023.10.05.11.11.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Oct 2023 11:11:14 -0700 (PDT) Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-4063bfc6c03so13455e9.0 for ; Thu, 05 Oct 2023 11:11:14 -0700 (PDT) X-Received: by 2002:a1c:4b18:0:b0:405:320a:44f9 with SMTP id y24-20020a1c4b18000000b00405320a44f9mr82899wma.5.1696529473685; Thu, 05 Oct 2023 11:11:13 -0700 (PDT) MIME-Version: 1.0 References: <20230925150010.1.Iff672233861bcc4cf25a7ad0a81308adc3bda8a4@changeid> In-Reply-To: From: Doug Anderson Date: Thu, 5 Oct 2023 11:10:57 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/panel: Move AUX B116XW03 out of panel-edp back to panel-simple To: AngeloGioacchino Del Regno Cc: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, Hsin-Yi Wang , matthias.bgg@gmail.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-mediatek@lists.infradead.org, Marek Szyprowski , airlied@gmail.com, daniel@ffwll.ch, jitao.shi@mediatek.com, linus.walleij@linaro.org, linux-kernel@vger.kernel.org, neil.armstrong@linaro.org, quic_jesszhan@quicinc.com, sam@ravnborg.org, Anton Bambura Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 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,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.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 (groat.vger.email [0.0.0.0]); Thu, 05 Oct 2023 11:12:54 -0700 (PDT) Hi, On Tue, Sep 26, 2023 at 7:01=E2=80=AFAM Doug Anderson wrote: > > Hi, > > On Tue, Sep 26, 2023 at 1:06=E2=80=AFAM AngeloGioacchino Del Regno > wrote: > > > > Il 26/09/23 00:00, Douglas Anderson ha scritto: > > > In commit 5f04e7ce392d ("drm/panel-edp: Split eDP panels out of > > > panel-simple") I moved a pile of panels out of panel-simple driver > > > into the newly created panel-edp driver. One of those panels, however= , > > > shouldn't have been moved. > > > > > > As is clear from commit e35e305eff0f ("drm/panel: simple: Add AUO > > > B116XW03 panel support"), AUX B116XW03 is an LVDS panel. It's used in > > > exynos5250-snow and exynos5420-peach-pit where it's clear that the > > > panel is hooked up with LVDS. Furthermore, searching for datasheets I > > > found one that makes it clear that this panel is LVDS. > > > > > > As far as I can tell, I got confused because in commit 88d3457ceb82 > > > ("drm/panel: auo,b116xw03: fix flash backlight when power on") Jitao > > > Shi added "DRM_MODE_CONNECTOR_eDP". That seems wrong. Looking at the > > > downstream ChromeOS trees, it seems like some Mediatek boards are > > > using a panel that they call "auo,b116xw03" that's an eDP panel. The > > > best I can guess is that they actually have a different panel that ha= s > > > similar timing. If so then the proper panel should be used or they > > > should switch to the generic "edp-panel" compatible. > > > > > > When moving this back to panel-edp, I wasn't sure what to use for > > > .bus_flags and .bus_format and whether to add the extra "enable" dela= y > > > from commit 88d3457ceb82 ("drm/panel: auo,b116xw03: fix flash > > > backlight when power on"). I've added formats/flags/delays based on m= y > > > (inexpert) analysis of the datasheet. These are untested. > > > > > > NOTE: if/when this is backported to stable, we might run into some > > > trouble. Specifically, before 474c162878ba ("arm64: dts: mt8183: > > > jacuzzi: Move panel under aux-bus") this panel was used by > > > "mt8183-kukui-jacuzzi", which assumed it was an eDP panel. I don't > > > know what to suggest for that other than someone making up a bogus > > > panel for jacuzzi that's just for the stable channel. > > > > > > Fixes: 88d3457ceb82 ("drm/panel: auo,b116xw03: fix flash backlight wh= en power on") > > > Fixes: 5f04e7ce392d ("drm/panel-edp: Split eDP panels out of panel-si= mple") > > > Signed-off-by: Douglas Anderson > > > --- > > > I haven't had a snow or peach-pit hooked up for debugging / testing > > > for years. I presume that they must be broken and hope that this fixe= s > > > them. > > > > We could avoid backport breakages by avoiding to backport this to any k= ernel > > that doesn't contain commit 474c162878ba ("arm64: dts: mt8183: jacuzzi:= Move > > panel under aux-bus")... because creating a dummy panel to get two wron= gs > > right is definitely not ok. > > Sure, except that leaves us with ... a breakage. :-P > > Although I haven't tested it, I have a hard time believing that > exynos5250-snow and exynos5420-peach-pit will work properly with the > panel defined as an eDP panel. That means that they will be broken. If > someone cared to get those fixed in a stable backport then we'd be > stuck deciding who to break. If you have any brilliant ideas then I'm > all ears. > > ...then again, I presume this has been broken since commit > 88d3457ceb82 ("drm/panel: auo,b116xw03: fix flash backlight when power > on"). That was a little over 3 years ago. Maybe I'm wrong and somehow > things still limp along and sorta work even though the panel is > defined incorrectly? I dug out a exynos5250-snow out of my pile and booted postmarket OS on it, which was shockingly easy/pleasant (kudos to those involved!). I found that it was booting a kernel based on 6.1.24. Digging into sysfs, I found that indeed it appeared to be using the "panel-edp" driver, so I guess it is limping along with the wrong driver and wrong flags... It wasn't totally clear for me how to build a new kernel and deploy it for postmarket OS, so I wasn't able to confirm this change. I've CCed the person listed on the postmarket OS wiki though to see if they have any insight. In any case, it sounds as if things are working well enough on older OSes, so maybe we can just skip trying to do any stable backport on this. It still seems like we should land it, though, since the current state of the world seems pretty broken. Anyone willing to give a Reviewed-by or Acked-by tag? -Doug