Received: by 2002:a05:7412:518d:b0:e2:908c:2ebd with SMTP id fn13csp526063rdb; Thu, 5 Oct 2023 12:57:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGwNyJrWFtNNeRzBylA4LSbbkj49NGTCRMOv6jJngvCljNLkNIJIWmZw8lpllGOQxLmR956 X-Received: by 2002:a05:6808:bd4:b0:3a7:8e05:1699 with SMTP id o20-20020a0568080bd400b003a78e051699mr7935046oik.37.1696535876767; Thu, 05 Oct 2023 12:57:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696535876; cv=none; d=google.com; s=arc-20160816; b=k+xQ9RAYrVcodH0OtpfqR7Trc45n0GNdI66Nhl9UdcNKO7VmLqNafYXU5XtstwwXKq 3HD/MkyzEclqtpTev2fgXczEHvj+WyBWVuDCTJ5716+nbDP3ajn2RnOkMiYJR6poCLwB 9/Hh51CHZsWHPDUveHlYTpbgQeuHkxfxUvXD+WC99uHUDEocPLkIV/GAYoFh9kNL0cHa RZI+6n/K+udEo8rADi3EoJX5hUnFwn5Rzv0wqOITbjAJcNVUfdFNs/3bBnIpkZHbX2S6 ANK98cRwgTlD7ByP7T6p+Mx1s2mKoCMddO7nXV17nj3Dn4sxZ5oMXYspP9Eaw6ciyAnt PRng== 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=cIOhWmDhaGKnIOKqSallat4hBjPWg9wv14CRRkvBnO8=; fh=KG0K43u5GrbA5gWukX26v58sMQBLDTv4m8ergq3xpDA=; b=q4t/qZeZ7G7qzLtwh5UGqRa2rGE/v1odox67iB+LoVb487KQss2FHDrBmoDffjywGF sWY+dRnow1+nTNx316E+o63VUBwuX747+YmeFBmImL1E85C6p0S0iE158oG14UOVaUFf gKVjYlrQ0zDjVnUifR0ZC3mkGoJJgE5GsFrBLzsS5dMfJ/sFmzSXxVFCy3QSMm+ZuwJo UyFKph9d536QOPCXPafe00sXcXtM86KvCs+zzqQuM8RkAPU5ylheTcnPsu9eVAMt+8WC Zw2cDLzFcNBaszwripufX4M4vsMp1kxqhS2zYbeIM8RDyZhXF164/MZYaLdifwAW5+FR Gf+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@postmarketos.org header.s=donut header.b=gkP75ATk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id 17-20020a630111000000b00578d460cd7esi629926pgb.431.2023.10.05.12.57.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Oct 2023 12:57:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@postmarketos.org header.s=donut header.b=gkP75ATk; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id D7C998364D7A; Thu, 5 Oct 2023 12:57:52 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231922AbjJET4e (ORCPT + 99 others); Thu, 5 Oct 2023 15:56:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56166 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232102AbjJET4J (ORCPT ); Thu, 5 Oct 2023 15:56:09 -0400 X-Greylist: delayed 567 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 05 Oct 2023 12:56:03 PDT Received: from proxmox1.postmarketos.org (proxmox1.postmarketos.org [213.239.216.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 039DA193; Thu, 5 Oct 2023 12:56:02 -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 C3509140B01; Thu, 5 Oct 2023 19:46:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=postmarketos.org; s=donut; t=1696535193; 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=cIOhWmDhaGKnIOKqSallat4hBjPWg9wv14CRRkvBnO8=; b=gkP75ATkFuJkXErAW/PpJat6k5/Htnp9NLF6G0yL5FPd9zb3e7/4+WegrFXn/YJQD6dv0d wDuXLaeWdpjeOiVL+s7MmiUVDSub0JXNcdNWf290sEABUVFheVGLr10eIByPNP109dIJ7u WbIGNxc7cBE21VbaBcnx/e9oYMG/TFg= Message-ID: Date: Thu, 5 Oct 2023 22:46:32 +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=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,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 snail.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 (snail.vger.email [0.0.0.0]); Thu, 05 Oct 2023 12:57:53 -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... Hi. I'm the maintainer of chromebooks (including exynos 5 ones) in postmarketOS. We are indeed on 6.1.24 yet, but we will upgrade it to the latest LTS soon. > 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. The recommended way to build kernel is envkernel, see https://wiki.postmarketos.org/wiki/Compiling_kernels_with_envkernel.sh. This way you can build kernel, package it and sideload it to your device, so it will get installed including updating /lib/modules and flashing chrome os kernel partition. You would need to source envkernel.sh in your kernel tree, place kernel config at .output/.config, build it and perform: pmbootstrap build --envkernel linux-postmarketos-exynos5 pmbootstrap sideload --install-key --host linux-postmarketos-exynos5 We use lts branch of https://gitlab.com/exynos5-mainline/linux with this config: https://gitlab.com/postmarketOS/pmaports/-/blob/master/device/community/linux-postmarketos-exynos5/config-postmarketos-exynos5.armv7 > > 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