From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DE8DC433F5 for ; Tue, 15 Feb 2022 22:10:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244479AbiBOWKb (ORCPT ); Tue, 15 Feb 2022 17:10:31 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:49384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243913AbiBOWK1 (ORCPT ); Tue, 15 Feb 2022 17:10:27 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 765AB23BC4 for ; Tue, 15 Feb 2022 14:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1644963016; 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=/lpQF/1aozwPXUYPuIRUCyzJVUaZkY7i5LfgQfbgp/4=; b=Xw8m5WqnW3PFmVF1QbQu/dqc29BqE40TEK64PM6f/Hk7af1IhOc+vAp/4XykZ0nDuohgm7 V8fNDuKc8AR0JSSAsIzowwDDM/p1tepFmWjkJZ+4ez+UFll8Xleefn1HpKyC1/yPzhY39O MAy7wuCvz3eftGnkw61/exVJjBfLhpM= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-359-n9e2M8DvPcSeJgUY3_0kRg-1; Tue, 15 Feb 2022 17:10:15 -0500 X-MC-Unique: n9e2M8DvPcSeJgUY3_0kRg-1 Received: by mail-wr1-f72.google.com with SMTP id s5-20020adfbc05000000b001e7af4f2231so109757wrg.3 for ; Tue, 15 Feb 2022 14:10:15 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=/lpQF/1aozwPXUYPuIRUCyzJVUaZkY7i5LfgQfbgp/4=; b=cfAL4b7uQYgkd15aQkkSYu7CfJuox2StM6mShd7t7aW4VW94ziL2JWg6wTaO8da3fC CeXE8GofoIcAexnDR4ip/4QVBdf7aK2JF7xuZqPfWKEUaZcdumsqpZUgxSYwjp8xsqFy SWDG/dwLiJpy2Dl6K+Ea53+1wqB+0UEyH51TZ6RC3wQR7VePvHIfNYXITAXp9ZarpMSU 8RLaEq/LQ6iguuf6L4UCZZZwBl9F08kPFXaZM6fIGGozPrFeNSjWQozC3MOzkSfIXfff uuEfFhCThdp0jgnEyTbHCHRX2wV+9e6H0HLVyYX0lcCmYqh8NJIZsjx8SKJT0XiWOf4E cm8A== X-Gm-Message-State: AOAM533mKU+EUJ3T8umXay9hULt0+PiHB2l97WGwUV7TC3oIQhBMaC+S 0AC6x8u6JATow9homOZukLOUGvaJJp2zCAtqOqyB3/4A3upGWaqFH3UYo2nBGunZlJf3dEuIhl8 +NbrhK9Q/mF1Yq1CwDgvcUQcV X-Received: by 2002:a7b:ce84:0:b0:37c:52fe:a3ff with SMTP id q4-20020a7bce84000000b0037c52fea3ffmr2504362wmj.48.1644963014379; Tue, 15 Feb 2022 14:10:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJz5t5oT/WGZxlEhtAFFuNjdgRZmbAJp74nksVLboadzTM50qN6VJ2Ad4Sqri3UYJkxSujekWQ== X-Received: by 2002:a7b:ce84:0:b0:37c:52fe:a3ff with SMTP id q4-20020a7bce84000000b0037c52fea3ffmr2504351wmj.48.1644963014221; Tue, 15 Feb 2022 14:10:14 -0800 (PST) Received: from [192.168.1.102] ([92.176.231.205]) by smtp.gmail.com with ESMTPSA id 12sm8773502wry.111.2022.02.15.14.10.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Feb 2022 14:10:13 -0800 (PST) Message-ID: Date: Tue, 15 Feb 2022 23:10:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH v2 3/3] drm/panel-edp: Allow querying the detected panel via debugfs Content-Language: en-US To: Douglas Anderson , dri-devel@lists.freedesktop.org Cc: Daniel Vetter , robert.foss@linaro.org, lschyi@chromium.org, Sam Ravnborg , jjsu@chromium.org, David Airlie , Thierry Reding , linux-kernel@vger.kernel.org References: <20220205001342.3155839-1-dianders@chromium.org> <20220204161245.v2.3.I209d72bcc571e1d7d6b793db71bf15c9c0fc9292@changeid> From: Javier Martinez Canillas In-Reply-To: <20220204161245.v2.3.I209d72bcc571e1d7d6b793db71bf15c9c0fc9292@changeid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/5/22 01:13, Douglas Anderson wrote: > Recently we added generic "edp-panel"s probed by EDID. To support > panels in this way we look at the panel ID in the EDID and look up the > panel in a table that has power sequence timings. If we find a panel > that's not in the table we will still attempt to use it but we'll use > conservative timings. While it's likely that these conservative > timings will work for most nearly all panels, the performance of > turning the panel off and on suffers. > > We'd like to be able to reliably detect the case that we're using the > hardcoded timings without relying on parsing dmesg. This allows us to > implement tests that ensure that no devices get shipped that are > relying on the conservative timings. > > Let's add a new debugfs entry to panel devices. It will have one of: > * UNKNOWN - We tried to detect a panel but it wasn't in our table. > * HARDCODED - We're not using generic "edp-panel" probed by EDID. > * A panel name - This is the name of the panel from our table. > > Signed-off-by: Douglas Anderson > --- Reviewed-by: Javier Martinez Canillas Best regards, -- Javier Martinez Canillas Linux Engineering Red Hat