Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp779820pxb; Thu, 2 Sep 2021 15:12:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNp92Qkoy8ViAzPsICRpz2SW2IRwOMemOKD9rueNZAnI8r+w10NT3+N444qxZhbVUDdyVr X-Received: by 2002:a17:906:63ca:: with SMTP id u10mr390091ejk.411.1630620742435; Thu, 02 Sep 2021 15:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630620742; cv=none; d=google.com; s=arc-20160816; b=fSMPSrC/CFgVEvAhU2yl4FzCzaaGtlWtKaJVv9CAPY2HlyINkKqLtWS1JHLAHDwaXT guWx/eSbewUHeWuMBJR/YQndaQ1VqYmYSdoj41oNz5+rmD/i7Zdkkr2ZETD6uq42S+Zx /4hey2GpwCow7qpQyM0C9Me+uNftSP/h+ugqOSh23Ryvq5OVoXI7s1+vu3C9yj2ivPJp OiNTSu6SkH+ynk3fzX2AYZVJjt+tXICMcjDKKxIzdOl5y23c8r6Kih3DJAkf6lPtnCF9 a8VuaW43ihsjnRho//1Uj6BRbuFr5HmHcaOLmB9LsLDwuBsVE7AS6ULsdCmY3sEcjFq2 jB8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:cc:to:subject:dkim-signature:dkim-filter; bh=+cFvhzqtn0hctNTDhhm/VOiBMV5RGPNkUgUXiD3jIK0=; b=hW3bqhR108jG1Dc6vpgL5C60GEQ975FYcXHbRMCCuC5hW79LkrwV1AH1bz5zf680x+ 2qEgKoHnoQL+WGVFVo4ZcGJsgDdWmUabuk/F+nnMhNNF+EJ5jKbVkHxjdmT/3y+QktGD 99VCcNM+wh9smY+YnfmHrIDV0xALubybMwfYT5c894fWnBJPWxFwEpLFvPJb+Hc3Mui3 1BmUzzvdgjB9hVeKEQ2IC96GOux3mnSAWKPfZxjAro7Hnbw6cUMj5wBEJnhzDU8dfBu4 HHebvchf9hu0jp8Yj909J4T9Zo3x1R1pyNuyXYSn2gLAeKoabNEwb9oZ/qURr5KYuRF5 3HZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=o0FxlQXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t21si3068032ejy.151.2021.09.02.15.11.58; Thu, 02 Sep 2021 15:12:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=o0FxlQXi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231684AbhIBWLT (ORCPT + 99 others); Thu, 2 Sep 2021 18:11:19 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:40016 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236148AbhIBWLR (ORCPT ); Thu, 2 Sep 2021 18:11:17 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20210902221017euoutp0209c3c8904049e114953e31bb38f45438~hIM-bB99y1794317943euoutp02b for ; Thu, 2 Sep 2021 22:10:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20210902221017euoutp0209c3c8904049e114953e31bb38f45438~hIM-bB99y1794317943euoutp02b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1630620617; bh=+cFvhzqtn0hctNTDhhm/VOiBMV5RGPNkUgUXiD3jIK0=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=o0FxlQXixmRpphhR0faJ2ZK1gFlt9GZeVw2Cwl4YIgEIoQVYTu7AZXUoPY/zZSv0+ iMvCNNln7a8US9tSzPZqXDDJ5e2sVmLNj/8dDMavfwK1ketN0814IQImT/dd+hirPQ WtfOtayOfBkHTTFrqNoYg1NYlJH5B0FzvZfScaX8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20210902221016eucas1p146dd1b1577cef73d9ba4381e4bd14fa4~hIM_wvUet2964729647eucas1p1p; Thu, 2 Sep 2021 22:10:16 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 8B.EE.45756.8CB41316; Thu, 2 Sep 2021 23:10:16 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20210902221015eucas1p26fae8f6ba4c70087dc7b007a271dce4b~hIM9ditUN1154911549eucas1p26; Thu, 2 Sep 2021 22:10:15 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20210902221015eusmtrp20ae878e47dc423f33a52ecc70a1327aa~hIM9cpaEB1635516355eusmtrp2S; Thu, 2 Sep 2021 22:10:15 +0000 (GMT) X-AuditID: cbfec7f2-7bdff7000002b2bc-8a-61314bc8b16f Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id EA.C7.20981.6CB41316; Thu, 2 Sep 2021 23:10:14 +0100 (BST) Received: from [192.168.0.14] (unknown [106.210.131.79]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20210902221014eusmtip29eaf4ecb5d0517c13a0294299bd3d215~hIM8hETkp1495614956eusmtip2V; Thu, 2 Sep 2021 22:10:14 +0000 (GMT) Subject: Re: [PATCH v3 00/16] eDP: Support probing eDP panels dynamically instead of hardcoding To: Douglas Anderson , Thierry Reding , Rob Herring , Sam Ravnborg Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, Maxime Ripard , dri-devel@lists.freedesktop.org, NXP Linux Team , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-omap@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-tegra@vger.kernel.org, =?UTF-8?Q?=c5=81ukasz_Stelmach?= From: Andrzej Hajda Message-ID: Date: Fri, 3 Sep 2021 00:10:06 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210901201934.1084250-1-dianders@chromium.org> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNKsWRmVeSWpSXmKPExsWy7djPc7onvA0TDbrmiFrMP3KO1eLssoNs Fle+vmezuHloBaPFpsfXWC0m7j/LbtH1ayWzxeVdc9gsOjdtZbSYvaSfxWLry3dMFjPO72Oy mLJvF1Diyyw2i7bOZawWrXuPsFus+AlU93PXPBYHIY/ZDRdZPHbOusvusWlVJ5vH/e7jTB6b l9R7vNg8k9Fj47sdTB5Lpl1l8+jbsorR4/MmuQCuKC6blNSczLLUIn27BK6Ml5PusBY8FanY NFusgfG8QBcjB4eEgInEyb3BXYxcHEICKxglbtxbzgzhfGGUWHvtMiOE85lRYk/jf7YuRk6w jqMdi1ghEssZJY7PfAPV8pZRoufWMiaQKmGBRInZiyezgtgiAvMYJe48UAApYhZ4zSyx58sa sASb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gFcUXo2RfmlJakKGfnFJbZK0YYWRnqGlhZ6 RiaWeobG5rFWRqZK+nY2Kak5mWWpRfp2CXoZLyfdYS14KlKxabZYA+N5gS5GTg4JAROJox2L WLsYuTiEBJYySrSd6WCHSIhL7J7/lhnCFpb4c62LDaLoNaPEu8O9rCAJYYFEidmLJ4PZIgLz GCVOrHQHKWIWeM0ssezZLKBuDqAOG4kbW/VBatgENCX+br7JBmLzCthJ/Hi3hRGkhEVAReLo QmmQsKhApETTia1QJYISJ2c+YQGxOQVsJc4/W8wEYjMLmEnM2/yQGcIWl7j1ZD5UXF5i+9s5 zBMYhWYhaZ+FpGUWkpZZSFoWMLKsYhRJLS3OTc8tNtIrTswtLs1L10vOz93ECEwH24793LKD ceWrj3qHGJk4GA8xSnAwK4nw7nQzSBTiTUmsrEotyo8vKs1JLT7EaAr0zkRmKdHkfGBCyiuJ NzQzMDU0MbM0MLU0M1YS5zU5siZeSCA9sSQ1OzW1ILUIpo+Jg1OqgUljjRjr7+UX+yw2LSxJ 3JMUtIItWOkDV26vliLf5ZXeKqEZM4U9nzHcC1cvFjpfscAmym5C9Z5JN6+eWOg1mePuVFtl /ou/HzTPzY2vbS5hTelmOOp/VPOtx7bWeT/91P9t/6ByqIprwrGrPbpKlmpHjvx69TFpndfk 1I0fH99si3g2cUHS5lYhxojJ9Q8Ed+tIHXiltkAp3Dzfx+6vlqSrdotvyvLZ/YJp6WKXnp7Y zbZerPLMCVvVj00tLPGJNrJCG9V26N6xyvj0O2Km/T/ric+bZrLdz1uvM43rsIlHF9uKjvKv hTvnhLn98X5qwa8vfJ7J+1nL29ueG25cnR0wK7rgj2Pz3i7O6YaTniqxFGckGmoxFxUnAgCo in5UkAMAAA== X-CMS-MailID: 20210902221015eucas1p26fae8f6ba4c70087dc7b007a271dce4b X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20210902221015eucas1p26fae8f6ba4c70087dc7b007a271dce4b X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20210902221015eucas1p26fae8f6ba4c70087dc7b007a271dce4b References: <20210901201934.1084250-1-dianders@chromium.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Removed most CC: SMTP server protested. On 01.09.2021 22:19, Douglas Anderson wrote: > The goal of this patch series is to move away from hardcoding exact > eDP panels in device tree files. As discussed in the various patches > in this series (I'm not repeating everything here), most eDP panels > are 99% probable and we can get that last 1% by allowing two "power > up" delays to be specified in the device tree file and then using the > panel ID (found in the EDID) to look up additional power sequencing > delays for the panel. > > This patch series is the logical contiunation of a previous patch > series where I proposed solving this problem by adding a > board-specific compatible string [1]. In the discussion that followed > it sounded like people were open to something like the solution > proposed in this new series. > > In version 2 I got rid of the idea that we could have a "fallback" > compatible string that we'd use if we didn't recognize the ID in the > EDID. This simplifies the bindings a lot and the implementation > somewhat. As a result of not having a "fallback", though, I'm not > confident in transitioning any existing boards over to this since > we'll have to fallback to very conservative timings if we don't > recognize the ID from the EDID and I can't guarantee that I've seen > every panel that might have shipped on an existing product. The plan > is to use "edp-panel" only on new boards or new revisions of old > boards where we can guarantee that every EDID that ships out of the > factory has an ID in the table. > > Version 3 of this series now splits out all eDP panels to their own > driver and adds the generic eDP panel support to this new driver. I > believe this is what Sam was looking for [2]. > > [1] https://lore.kernel.org/r/YFKQaXOmOwYyeqvM@google.com/ > [2] https://lore.kernel.org/r/YRTsFNTn%2FT8fLxyB@ravnborg.org/ > I like the idea - if something can be configured dynamically lets do it. But I have few questions: 1. Have you read different real panels id's? In many cases (MIPI DSI, LVDS with EDID) manufacturers often forgot to set proper id fields. I do not know how EDID's ids are reliable in case of edp panels. 2. You are working with edp panels - beside EDID they have DPCD which contains things like IEEE_OUI and "Device Identification String", I guess they could be also used for detecting panels, have you considered it? I think DPCD Id should be assigned to EDP-Sink interface, and EDID Id to the actual panel behind it. With this assumption one could consider which timings should be property of which entity. Regards Andrzej