Received: by 2002:a89:2c3:0:b0:1ed:23cc:44d1 with SMTP id d3csp629292lqs; Tue, 5 Mar 2024 11:25:52 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWKR6fu2je0L5iWzStYzMkdS6CCJhS4k1+SdoGh/l5gPYIWX4kpFgprxrVEOovGyr89B3HmlnvjWlwPkMhnxbpUIjuSN8y9BU7Stc/Hag== X-Google-Smtp-Source: AGHT+IEBWtaSiP1I8rWAnoAfqkqlE74bTofbmFXI9AZ5VYfcHg1SVE7CaqN+5uSxLAka2T1sRK1R X-Received: by 2002:a17:902:cf0c:b0:1dc:cba3:f909 with SMTP id i12-20020a170902cf0c00b001dccba3f909mr3220191plg.54.1709666751687; Tue, 05 Mar 2024 11:25:51 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709666751; cv=pass; d=google.com; s=arc-20160816; b=xu/wqphwy4iMHCWOf6gy2RNFVJJjF5Sl9YOMLhm4tiPdeaPnnOAgoDgrWfKXIAhI7Q Zohxx8S2FOJCa6Jh2T6X0BlK+8ggal4Czm/z86FVRNgz/p6Jxva6EwZJKLF1na3EG6rM iU5Z8YKQbn9SZgQL76bctkva0ugZ7AeZUfWwUXZ+6FwOkUntLe/BanUrBpWwxvMa3dRj Q8HzIu4nBpYcp+bzi59EVFkR5VcX1cUE5LBVot8mE9XqoBzUmL/S48+WXbpnNGBr9bIw QewdKUKScansdKLnqlWk66xYMHqkNvJRbBue4m5z8G6vfpRzS1GIq8oK43zLe7MSlRqr h7HQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=PI3ziWecqb71x1qdwv3LFcK01YCTBUMC8i/sCtMexTo=; fh=3BZf/UPImXY4UYMOAlzHXCrqNrZWch+jiX9fv+oTOC8=; b=bGxZ+TOi5aUE48iE3EoPCIpNB1sJ1T2kan5mS8MWYThY18xT14iCLvQxHOir9pGDlO nVd9p56mj27vJPa21a8myTAZK27KYFlEiZa9MopDYW0RjyjFBOiYSuQinKyqm69JRV4c QSpHEjAOsCHo+2oFcsiDdmXaj7pmHF7MVOUA/M+zvwkhUbhL/wDtbkWIyG10qj0pGF39 JgT4DLxVtKIypxHDMOC0akkr+vr4iiOvRj+Q6ey+qShM6cNBLo+ZyLPwI3fuuLPIDGYi VmNcGUSvX5TtU846pjuVwaiGR2i5kWZqKjYQfP0u9uk5T9rG/f+xI153Wcnn67IAwFVT Q56w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="a/S6N4L4"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-92883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id m14-20020a170902db0e00b001dc1df6489dsi8609033plx.26.2024.03.05.11.25.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Mar 2024 11:25:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-92883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="a/S6N4L4"; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-92883-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-92883-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 5B2AF2825DC for ; Tue, 5 Mar 2024 19:25:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 016CE3BB3F; Tue, 5 Mar 2024 19:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="a/S6N4L4" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5DF251AADC for ; Tue, 5 Mar 2024 19:25:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709666743; cv=none; b=IDi1ZC69LPYoDoAbstPxw5SppeaJXplYYgqyQJIKPrxaKI/cNlQoxrJtcWe9siclPt3oLk6c2Cum3jlCOv/lCy1o78BL1W03g6O6Mwt3lCmoLR8pd1UueAM24XjvFmRezu4OtrUlr6NrCR7iNQv4mWr+HNk2mq2JXa9h4klasxM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709666743; c=relaxed/simple; bh=lH9upXPo8fAqoa2VSZfcmS1U9Z4D2hFBTDPU4cgRW0c=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GeqxbOWrjEzvBbzakeLD7lGK31i+ruHBU2jBwR2/aurb2oZ5Dlwb4CV8oP/I1hNyRVthSG11MJqacawXY7gGiQWDZGcPzWUvfbS/O6E4u3C4HHRljO2PggO0nBx49xcE8kO5bLU3MiLq3k+1u7M9Rabo/nOdn8W8IW1nO7nwLsY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=a/S6N4L4; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a44d084bfe1so459999066b.1 for ; Tue, 05 Mar 2024 11:25:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709666739; x=1710271539; 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=PI3ziWecqb71x1qdwv3LFcK01YCTBUMC8i/sCtMexTo=; b=a/S6N4L4Mu5sim05OY1B/YOUUT5hSlvJ4jdHP+eXSSqrzYVEtZT+7Eiem69FNEmoMe lZv5w2ruWRpo1cKy4EA7EoseWvcfZek1XfrjkYoLGKko1bn7FnQ1vxmsFyJtpF00NUNq 3O9L+Vn15uXH4JsZXJVFCm1V9Bi0VqqU4DgFM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709666739; x=1710271539; 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=PI3ziWecqb71x1qdwv3LFcK01YCTBUMC8i/sCtMexTo=; b=somcRniQdFEIxP6fSyNfFb0tAOrtQ/qWcloQWyenCKuhpqgxwbMskqawOyStbGEhss zLoUBW1yG2Q61TDPo+CvLBmT38odM265//NfZzrifbBoz7NhoVnBWpS+T/cxQwD2Q/V/ HpSeff5t/17XwpG+EqlzvYuqZfv3ZItCoqe+fJTnLtQO0HlCCbJFmXIrgBqg/hnsCk8M MU8u3P+ew+T3VzGW0/sHFaGWZd2CsaonYmqd7h1Ts30QlQGiB3eYWSvEGMcED1aX4PCW 7uqJBZEdbkEeOD6znx8aIcsIF9697BsnlTuRg4MdVkpBoZgW49Djefeqjprf6g/bd5LA rvQA== X-Forwarded-Encrypted: i=1; AJvYcCW6yr5Ldy1CfZeqVvZyrgyOBDssQl1LDtjQyOXxvzyohHGr/h0ze3nOIamMKreOkVMzjGsi/3y9JV+tT4DPZlZik5l9Z13GkbmVsTL+ X-Gm-Message-State: AOJu0YyOBwUZAxAGnHRXprFmNdkD6rYtl3TZfSG7xQpjwYLVpQyCR6y0 ZL4OD81zoayA6P6J01R5vWSRivZ526c15qt5fibRUzsxrU/Hku+Qfyr0dNq4UyyOWafqxnLiKLU 5DA== X-Received: by 2002:a17:906:4a10:b0:a43:2c94:9420 with SMTP id w16-20020a1709064a1000b00a432c949420mr9342625eju.60.1709666738915; Tue, 05 Mar 2024 11:25:38 -0800 (PST) Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com. [209.85.128.41]) by smtp.gmail.com with ESMTPSA id mp4-20020a1709071b0400b00a3d11feb32esm6364555ejc.186.2024.03.05.11.25.37 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 11:25:37 -0800 (PST) Received: by mail-wm1-f41.google.com with SMTP id 5b1f17b1804b1-412d84ffbfaso12875e9.0 for ; Tue, 05 Mar 2024 11:25:37 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCWHTMRofFqXv3qruUwMUt0UzX7q5zyMR/Wuu5mDxoebQuSZtxfOuJuOda0II6gDmbSmsFrHk6V6WAyD3bymg8hbyiS52Sf1Sia7jbR9 X-Received: by 2002:a7b:ce91:0:b0:412:d6be:a32b with SMTP id q17-20020a7bce91000000b00412d6bea32bmr209479wmj.6.1709666737510; Tue, 05 Mar 2024 11:25:37 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240304195214.14563-1-hsinyi@chromium.org> <20240304195214.14563-3-hsinyi@chromium.org> <87a5nd4tsg.fsf@intel.com> <874jdl4k01.fsf@intel.com> <87y1ax2iu1.fsf@intel.com> In-Reply-To: <87y1ax2iu1.fsf@intel.com> From: Doug Anderson Date: Tue, 5 Mar 2024 11:25:20 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v3 2/4] drm/edid: Add a function to check monitor string To: Jani Nikula Cc: Hsin-Yi Wang , Neil Armstrong , Jessica Zhang , Sam Ravnborg , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Dmitry Baryshkov Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Tue, Mar 5, 2024 at 12:17=E2=80=AFAM Jani Nikula wrote: > > On Mon, 04 Mar 2024, Doug Anderson wrote: > > Hi, > > > > On Mon, Mar 4, 2024 at 4:19=E2=80=AFPM Hsin-Yi Wang wrote: > >> > >> > > Probably change to u32 drm_edid_get_panel_id(const struct drm_edid > >> > > *);? Given that we still need to parse id from > >> > > drm_edid_read_base_block(). > >> > > >> > No, we no longer need to parse the id outside of drm_edid.c. You'll = have > >> > the id's in panel code in the form of struct drm_edid_ident (or > >> > whatever), and use the match function to see if the opaque drm_edid > >> > matches. > >> > > >> drm_panel prints the panel_id info on whether the panel is detected or= not. > >> https://elixir.bootlin.com/linux/v6.8-rc7/source/drivers/gpu/drm/panel= /panel-edp.c#L792 > >> > >> Is it okay to remove this information? > > > > Hmmm, I guess it also is exported via debugfs, actually. See > > detected_panel_show() in panel-edp.c. We probably don't want to remove > > that... > > You currently print the information via panel->detected_panel, which is > a struct edp_panel_entry *. That doesn't change. It'll be slightly > restructured to contain a struct drm_edid_ident, which will not be an > opaque type. Hmm. As Hsin-Yi pointed out to me offline. Somehow we'll need to get the actual panel ID out. Right now in panel-edp.c we have: dev_warn(dev, "Unknown panel %s %#06x, using conservative timings\n", vend, product_id); Where "vend" and "product_id" come from the panel ID of a panel that we didn't recognize. For instance: Unknown panel BOE 0x0731, using conservative timings We need to still be able to print this message for unrecognized panels. Then when we see field reports including this message we know that somehow we ended up shipping an unrecognized panel. Any suggestions on what abstraction you'd like to see to enable us to print that message if everything is opaque? -Doug