Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp1561731rdb; Sun, 8 Oct 2023 13:53:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgH838O2O3vxa0ryh/HJkcb7brokzkeajlarOG2M+zBqI9EMXF8C0Atqt3NR1ClyWcMxpF X-Received: by 2002:a05:6a21:6d88:b0:162:d056:9f52 with SMTP id wl8-20020a056a216d8800b00162d0569f52mr16546547pzb.14.1696798402503; Sun, 08 Oct 2023 13:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696798402; cv=none; d=google.com; s=arc-20160816; b=lSn5MrrrGwX0SX/OXaDAUcwM4KN4bDd+6QwgTQaNomAGWfpT4L7DDWJvlNgJYMvJ2Z 3OrTY87TAZ1CZdSITlwak42ursh6RO4oy41ai1V0aBG28S1/8zI4zg78r/v+xfVQvf80 ZaLBXS224QptRS8whmpm3jlQsQSjE5TyhruA7mkMn2M/mIyuZZ+smYpNF8Pu8DlhNOP9 GIJgoLKpi5E9arrNg/8S6gpiKQPGsppuIUgVP9nCxdJjx3YwbgN6ksrmfhJP1SG8Q0Qv oL8DO4MNc5BqTDS5wpBQiBloyZS0s2HqK3BA6dfEx3Fmn91snYBSjB85/Y/xVAFpUXyc i7ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=UuxrTL7KvyJ7XN5A1fs9GWsRygHQUHM6anrrqyaRV1c=; fh=KG0K43u5GrbA5gWukX26v58sMQBLDTv4m8ergq3xpDA=; b=sUBiMxP/MXvjFNr5yAuXY99nB5iQ7l5++aiKPujYeZb3Wnky3slHEJSh9R5xZlpYEh KjZEulOVADJfl73Ik3UZHs/ak+TrSASEagfh+ObFgxXQV/V4S39ebK9u8VxnLUT3bL/d SpCO0NHIhjAfhPEAyFyDkyxreflN1osxUPb/GNp+o+MDvOm6vrBBKDI4qvv3nyiOZbLC ZqHftZ4cdGZHKjgMrClqkRvYbIHD8WSEcnbat59rVC+SMNcCs8ZWG9jzHr3mGZZ2Ty8b RNTQaC2Qf5GpwmpqQz6OmswkwZPmInMgjVDez4bolWLx2QWf+rFMneJl6v3bC+XuXSO5 p7ZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=donut header.b=mWrLpGfL; 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id s27-20020a63925b000000b00573fc592e9dsi5075073pgn.848.2023.10.08.13.53.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Oct 2023 13:53:22 -0700 (PDT) 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=@postmarketos.org header.s=donut header.b=mWrLpGfL; 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 Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 9421B8049168; Sun, 8 Oct 2023 13:53:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344613AbjJHUwV (ORCPT + 99 others); Sun, 8 Oct 2023 16:52:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344597AbjJHUwU (ORCPT ); Sun, 8 Oct 2023 16:52:20 -0400 Received: from proxmox1.postmarketos.org (proxmox1.postmarketos.org [213.239.216.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 429559F; Sun, 8 Oct 2023 13:52:17 -0700 (PDT) Received: from [192.168.1.177] (unknown [10.0.0.254]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by proxmox1.postmarketos.org (Postfix) with ESMTPSA id 4531E140495; Sun, 8 Oct 2023 20:52:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=donut; t=1696798334; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UuxrTL7KvyJ7XN5A1fs9GWsRygHQUHM6anrrqyaRV1c=; b=mWrLpGfLn2FuF/iVpmJZLpN8RDuXORQZCIAURsF4EvgNSQZlt1IaRv34qweKgmzYmly9LA QENYN7n5YqEfjn9ou2DP0UqZtp3jOzI3bb5j7an0LEMFuSxLQs7OxPopxrgupQlE1nGSOc GYuf/Nfea5aBrS+X0J/XxeZtDatbiaY= Message-ID: Date: Sun, 8 Oct 2023 23:52:13 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] drm/panel: Move AUX B116XW03 out of panel-edp back to panel-simple Content-Language: en-US To: Doug Anderson , 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 References: <20230925150010.1.Iff672233861bcc4cf25a7ad0a81308adc3bda8a4@changeid> From: Anton Bambura In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no 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]); Sun, 08 Oct 2023 13:53:19 -0700 (PDT) On 10/5/23 21:10, Doug Anderson wrote: > Hi, > > On Tue, Sep 26, 2023 at 7:01 AM Doug Anderson wrote: >> Hi, >> >> On Tue, Sep 26, 2023 at 1:06 AM 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 has >>>> 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" delay >>>> from commit 88d3457ceb82 ("drm/panel: auo,b116xw03: fix flash >>>> backlight when power on"). I've added formats/flags/delays based on my >>>> (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 when power on") >>>> Fixes: 5f04e7ce392d ("drm/panel-edp: Split eDP panels out of panel-simple") >>>> 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 fixes >>>> them. >>> We could avoid backport breakages by avoiding to backport this to any kernel >>> that doesn't contain commit 474c162878ba ("arm64: dts: mt8183: jacuzzi: Move >>> panel under aux-bus")... because creating a dummy panel to get two wrongs >>> 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. Tested it on peach-pit using linux-next with this patch applied. Panel still works and "dmesg | grep panel" returns panel_simple instead of panel_edp. Tested-by: Anton Bambura > > 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 > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel