Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp483649rdb; Thu, 5 Oct 2023 11:28:35 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHnJxt27dY2JzLMDcciobLFBvQtx4p46EIw1yns5wZo1ML0RntZ7QF3DJkVAz5jkVBzgynM X-Received: by 2002:a05:6a21:3397:b0:15d:c86d:27a6 with SMTP id yy23-20020a056a21339700b0015dc86d27a6mr6359249pzb.55.1696530514652; Thu, 05 Oct 2023 11:28:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696530514; cv=none; d=google.com; s=arc-20160816; b=mke07uJEqHJUcHPUv90vkspfPfLv4e2AqOsATe/8vZI0JLCVT61mgOXW6/c6T6UN8l EPChL47uCOT6MsNR5VAD+TS+pG4LCuMr24bUwdv4jTac1taLraBkHHquNjXDcOumPVWm YjE4AOtxz+S7jq9h+aW6cgev6eUzUiwPy1IYfPQL9MzywjQkoO5eefdaKfDbN42gLnEe D0DRPb0xu9Cd/Fgj3l5peWZy1wX9H8oQRYpFE8qlDDlgnPNWfDXF6IEwyurBYZ2RYtiD K+VZgMZXPIymhMho2xMEb9POa/N2RldUya3WP0oRDBkoXj/ZWpo16qGehfvkzDcfUDVO 6Dmw== 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=OMcqqa1LovqwpJcoFuXPlVZW2k01ePyUDHDlcXz2dos=; fh=3SfAle0A47hypvk8JOuBFU1pZY7ecw6G5Mrz6gMJ6x0=; b=cAfjMe29vTS9SzfsO37mXVgZ3U6iFNRjKHC6iIgDSfcS61w6wNlqXETBuOpfuDHIyb OK9K5TzAHLLLB8lqoymu69zAgw9xBFVTrOCXV22TFoINTtu336G81G6acfIwdRogGC7x olioTTMjcQyHoDmXXciKe25Zqa6v1r0ssUGtffCAziyeHgIKU7O2AAbhN/XDOkSmUXb8 K4L/QSzwIIlA+QyUplbR5xkSPayk3HhcGEVdVxPLkdkGhB9uqAbJPA1mufafVDTXP0Tr iZ+e4IeO1sCaXIO97KcYi9Xbr35Tzd1dG70b6OS7kUfDeXCQBEjcIymLqDYLAJWC4gMO wIQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OzSvd+wJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id jw8-20020a170903278800b001c0953d0055si1870423plb.262.2023.10.05.11.28.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 11:28:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=OzSvd+wJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id 5E07A807C6EC; Thu, 5 Oct 2023 11:28:32 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231224AbjJES2Z (ORCPT + 99 others); Thu, 5 Oct 2023 14:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229826AbjJES2Y (ORCPT ); Thu, 5 Oct 2023 14:28:24 -0400 Received: from mail-ot1-x336.google.com (mail-ot1-x336.google.com [IPv6:2607:f8b0:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8278D90 for ; Thu, 5 Oct 2023 11:28:23 -0700 (PDT) Received: by mail-ot1-x336.google.com with SMTP id 46e09a7af769-6c4f1f0774dso852601a34.2 for ; Thu, 05 Oct 2023 11:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1696530503; x=1697135303; 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=OMcqqa1LovqwpJcoFuXPlVZW2k01ePyUDHDlcXz2dos=; b=OzSvd+wJp9+/+sFsxMN2fO+mXmeKWLbsBCDX5x/Tl0LxQfoDmrNZh+YlHO1dhQJyay wNOTTC+ZUj9/s6L6shzRsPLZEXlYYCRcwLkOXrImw6aR1W0sqahsJjboz2n0f5BGTxIF IuyNrt+/JTKGyvSGevc5HEtQ7jPL6nqhs3rIw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696530503; x=1697135303; 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=OMcqqa1LovqwpJcoFuXPlVZW2k01ePyUDHDlcXz2dos=; b=J19aRMDxwVOk9ktC6d7Vqk3cL93rcFXkEOhK8oavp1bhgM+jRSrQPdG4/f+udB/6xN IMs2fQ1GmSNr9ibkJSwArt+WK2u7134hv0h7NBSkbXoJCjy9/9VKWyQcFN3et7hg+utB QAdp+julnAhW2pkwEBGWv40Li+nHG0Y5bh+WMDkPeSUVOxg6m3evW0CylkhqVhzSTWar /eyDyGFvsN7ZXWjBfsw5+xUZvxY/GozVYMXTPn9mb5KPnCmimzegDY1gzeelhyga0sxm ddWDgEPRADIrOsnPm716TcLKfXYtdoYKH9ou2SZAmhRFTnd12O+EVk8ClQsABKdjjNa3 i09Q== X-Gm-Message-State: AOJu0YzU6jAqJB+D7ZrRGp7p5uPD9qn+E0fHzZuA0ehOv6K9lMd7n4Vl uPyBnrc7T0/PDZPpkd2zYuXU3ZH5HJF+PtypjyFEHg== X-Received: by 2002:a9d:6e09:0:b0:6b9:ed64:1423 with SMTP id e9-20020a9d6e09000000b006b9ed641423mr5935370otr.2.1696530502812; Thu, 05 Oct 2023 11:28:22 -0700 (PDT) MIME-Version: 1.0 References: <20230925150010.1.Iff672233861bcc4cf25a7ad0a81308adc3bda8a4@changeid> In-Reply-To: From: Hsin-Yi Wang Date: Thu, 5 Oct 2023 11:27:57 -0700 Message-ID: Subject: Re: [PATCH] drm/panel: Move AUX B116XW03 out of panel-edp back to panel-simple To: Doug Anderson Cc: AngeloGioacchino Del Regno , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, 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.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 autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.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 (morse.vger.email [0.0.0.0]); Thu, 05 Oct 2023 11:28:32 -0700 (PDT) On Thu, Oct 5, 2023 at 11:11=E2=80=AFAM Doug Anderson wrote: > > 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, howev= er, > > > > 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") Jita= o > > > > Shi added "DRM_MODE_CONNECTOR_eDP". That seems wrong. Looking at th= e > > > > downstream ChromeOS trees, it seems like some Mediatek boards are > > > > using a panel that they call "auo,b116xw03" that's an eDP panel. Th= e > > > > 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" de= lay > > > > 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 fi= xes > > > > them. > > > > > > We could avoid backport breakages by avoiding to backport this to any= kernel > > > that doesn't contain commit 474c162878ba ("arm64: dts: mt8183: jacuzz= i: Move > > > panel under aux-bus")... because creating a dummy panel to get two wr= ongs > > > 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? > Acked-by: Hsin-Yi Wang > -Doug