Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1644302rbb; Mon, 26 Feb 2024 17:11:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXe7Mh/U1EbYZb77CbzsJ/6QEfio3vHqytfD0m5rzhpQ1Cc2TfQ5qKxImdU29HoX9D3WE9Lw2Q3onvhhpwQ2ORWKZo9QT1KyN7qkMMKGg== X-Google-Smtp-Source: AGHT+IEqLW14Ttb39hEAOXyVdo55xo5Idvv+SS8h3KRd4FsuBdvMONqqd6Wr/YUQb/C+Iuu+tixu X-Received: by 2002:a9d:7552:0:b0:6e4:702c:46b3 with SMTP id b18-20020a9d7552000000b006e4702c46b3mr9281458otl.18.1708996303692; Mon, 26 Feb 2024 17:11:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708996303; cv=pass; d=google.com; s=arc-20160816; b=rw6XY90MUjo9ox9bHoOF8pwz/c5GTGrhFYNmK84N2CwTKgrnec4L+pl0M1Dwa52hqB osuhGK0KSYI2D79qnWQUNKV7tjz+4wxQ/hNTERD/ocoQrO9qc+0xZezdtapAilHGeCiq HItD8CaTFDquk2H4tGuJF+UOCjRr/MXzLkNL3+efNYsPels1cFnTBcs54ivS87N+f4ls D+Yv2TWx30QLQq9BfSM31aRB+kIZiYrcnXk1MuGyAaRElGOjS11OmHeGEAhRKQQ4YGD9 0P6eo1geSW1+cUadMajidoQsRdbWLC+m8JYd79htIk6YXd6qqsp6PntQnHH7ay+hQ08+ LEkw== 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=2nONMEgiFSJu48ujRsgQ7k5P30oEYUyNKo29jK5bJDE=; fh=fEA4T6P2kscXY0JHIsVa3I6YrLBfJPqW8xNA8NyGJuw=; b=cZ3yS7dG7eF70xzsTHXdw820CPKtonrcPK7HDx/2q5rj1XfmYGF2ad8yztC6ibdbks dWN4g3epCuk/0IRwrGmK8TgmkX9omcmhjgw8im1JIB3rNCXOfTtwLSm/dWeB2CRnZwn6 hMZD+aLXwXCX84PhUMlRd76FO48AHuzV1YSwjr9cdp8TOk3PsMQ2H+zGabToFZqknHz3 Ix9T+998Ws9N7oWL6xcYjVtjomIhzkWdx+DJWFI4t4EuNWICczUkM+zB1niAorndoiPP CTpF+TKVcQ2OSxLG4zFndBB++IvtZrsepP/7l5PXfktmA3X4aIzNfxxdAF0+nCmO3uzQ zExA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jiMpAJF5; 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-82511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82511-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. [139.178.88.99]) by mx.google.com with ESMTPS id b33-20020a631b61000000b005dc81eca355si4495028pgm.487.2024.02.26.17.11.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 17:11:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=jiMpAJF5; 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-82511-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82511-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 5E9DB2872A7 for ; Tue, 27 Feb 2024 01:10:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D1C2E4A2D; Tue, 27 Feb 2024 01:10:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="jiMpAJF5" Received: from mail-ot1-f47.google.com (mail-ot1-f47.google.com [209.85.210.47]) (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 55E7C46AF for ; Tue, 27 Feb 2024 01:10:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708996223; cv=none; b=Hbii4OEiJQucmitVAZrXC+1NiH+Q/d+NZg3rHSMFEFr8Fy9IbkXCxOAer7TckJ8Vh1ycPgKv3DV7AGLSZcMaQODobF9xr18eoYBs/IJkseqnk7OvUrLkkrkLhwntO3W2zxdAFESuGQZQrRspCvX7ysXYKHndJh4Vl/v7RJbOWz8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708996223; c=relaxed/simple; bh=Ytyl4TVZNmNqQ43ehwWTlsuZ6vB1tt0Eh7x5v7/DaBE=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=nATz5LOf835qTZIXpSaqlvpjDBpnSQiHK2StFL9087fgfpWeQec1wJbVmyoBAwr+EIfOGGAcbn64MHc5uMFcjXG3C07eFALGAUm2b5lmCrQWudOmGdqN2PzZwqcyqLFy9LfOk2WSvTLWp0Ta+1KloiK32CVxunqanedynXjhdtM= 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=jiMpAJF5; arc=none smtp.client-ip=209.85.210.47 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-ot1-f47.google.com with SMTP id 46e09a7af769-6e432514155so1853007a34.1 for ; Mon, 26 Feb 2024 17:10:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708996221; x=1709601021; 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=2nONMEgiFSJu48ujRsgQ7k5P30oEYUyNKo29jK5bJDE=; b=jiMpAJF5w3TG+sa2o8ZDGtJayg7f3xq13iwKIS44hO7F+SQbmyoKjLAGpIEW7YAtXz lGEnDXoULkF52IezwuzMmX0yoN/86rl68dW3ymelCiqs1+0c3A4+9VWPnpK7a54JlwYh glI34MzWvLbBClOeMuSTfHRd3Zwh2V/y4L6o0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708996221; x=1709601021; 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=2nONMEgiFSJu48ujRsgQ7k5P30oEYUyNKo29jK5bJDE=; b=exaWioayMM2wBk6AQJDpHMBNXD/AYVIHQfZkQnwbFllFJkmDEjLha+kYZSXBb3w0fp WmMjaZZaWBysWcJeLMGAGQG4SmyWlEkFLv0i4gQnPG706wCsrHhU0AcgPuVl7EyHT4hv jIpli4UnTv4ZkJ9kdsDem7sDHYELbgxPrq03OM4z3LgmGG+RKqWjbgLKXjw4Xhd4XGU9 MAVN+4Eo6mY4WLl68acVWpT5Bt5l9+D97Xe75Co/8lxOPKpFP5dFG+Q4zg0yekvEPyhk OZoA853WptXAUrj2TmnvQlAx3jshPWTg2N3ytWLlsnpV1qDuSGCMtn0LvWOU9v/LgCMB l7iQ== X-Forwarded-Encrypted: i=1; AJvYcCVDuLlmwHStFhuOVvE+3g+fXyHCshEBfGSubrQBNM9gNkEOC7r4Og+/2IyCEcmHczVkHmJ8/ppnKKorUTsnVB328lwMR285DzCBKvJn X-Gm-Message-State: AOJu0Yx6SxK922+G+S0J1UnLjxRrxdhN2QtJqOv+XNdmJ6PPFoiarZLG /GrahQ2lJaqyxny2w/DxeDAcKhzTkSMvXjHVDfahx/kYg9hBUkuoYifzvbUcEXrrSY/Jt3byKYt ERCnqnHJtn6Fa9HBxt9nXbjIXrZN89v1qEHJs X-Received: by 2002:a9d:6c43:0:b0:6e4:8086:571 with SMTP id g3-20020a9d6c43000000b006e480860571mr8748620otq.26.1708996221486; Mon, 26 Feb 2024 17:10:21 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240223223958.3887423-1-hsinyi@chromium.org> In-Reply-To: From: Hsin-Yi Wang Date: Mon, 26 Feb 2024 17:09:55 -0800 Message-ID: Subject: Re: [PATCH 0/2] Match panel hash for overridden mode To: Dmitry Baryshkov Cc: Douglas Anderson , 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 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Feb 26, 2024 at 4:37=E2=80=AFPM Dmitry Baryshkov wrote: > > On Sat, 24 Feb 2024 at 00:40, Hsin-Yi Wang wrote: > > > > This series is a follow up for 1a5e81de180e ("Revert "drm/panel-edp: Ad= d > > auo_b116xa3_mode""). It's found that 2 different AUO panels use the sam= e > > product id. One of them requires an overridden mode, while the other sh= ould > > use the mode directly from edid. > > > > Since product id match is no longer sufficient, EDP_PANEL_ENTRY2 is ext= ended > > to check the crc hash of the entire edid base block. > > Do you have these EDIDs posted somewhere? Can we use something less > cryptic than hash for matching the panel, e.g. strings from Monitor > Descriptors? > Panel 1: 00 ff ff ff ff ff ff 00 06 af 5c 40 00 00 00 00 00 1a 01 04 95 1a 0e 78 02 99 85 95 55 56 92 28 22 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 12 1b 56 5a 50 00 19 30 30 20 46 00 00 90 10 00 00 18 00 00 00 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 fe 00 41 55 4f 0a 20 20 20 20 20 20 20 20 20 00 00 00 fe 00 42 31 31 36 58 41 4b 30 31 2e 30 20 0a 00 cc ---------------- Block 0, Base EDID: EDID Structure Version & Revision: 1.4 Vendor & Product Identification: Manufacturer: AUO Model: 16476 Made in: 2016 Basic Display Parameters & Features: Digital display Bits per primary color channel: 6 DisplayPort interface Maximum image size: 26 cm x 14 cm Gamma: 2.20 Supported color formats: RGB 4:4:4 First detailed timing includes the native pixel format and preferred refresh rate Color Characteristics: Red : 0.5839, 0.3330 Green: 0.3378, 0.5712 Blue : 0.1582, 0.1328 White: 0.3134, 0.3291 Established Timings I & II: none Standard Timings: none Detailed Timing Descriptors: DTD 1: 1366x768 60.020 Hz 683:384 47.596 kHz 69.300 MHz (256 mm x 144 mm) Hfront 48 Hsync 32 Hback 10 Hpol N Vfront 4 Vsync 6 Vback 15 Vpol N Manufacturer-Specified Display Descriptor (0x0f): 00 0f 00 00 00 00 00 00 00 00 00 00 00 00 00 20 '............... ' Alphanumeric Data String: 'AUO' Alphanumeric Data String: 'B116XAK01.0 ' Checksum: 0xcc Panel 2: 00 ff ff ff ff ff ff 00 06 af 5c 40 00 00 00 00 00 19 01 04 95 1a 0e 78 02 99 85 95 55 56 92 28 22 50 54 00 00 00 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 01 ce 1d 56 ea 50 00 1a 30 30 20 46 00 00 90 10 00 00 18 d4 17 56 ea 50 00 1a 30 30 20 46 00 00 90 10 00 00 18 00 00 00 fe 00 41 55 4f 0a 20 20 20 20 20 20 20 20 20 00 00 00 fe 00 42 31 31 36 58 41 4e 30 34 2e 30 20 0a 00 94 ---------------- Block 0, Base EDID: EDID Structure Version & Revision: 1.4 Vendor & Product Identification: Manufacturer: AUO Model: 16476 Made in: 2015 Basic Display Parameters & Features: Digital display Bits per primary color channel: 6 DisplayPort interface Maximum image size: 26 cm x 14 cm Gamma: 2.20 Supported color formats: RGB 4:4:4 First detailed timing includes the native pixel format and preferred refresh rate Color Characteristics: Red : 0.5839, 0.3330 Green: 0.3378, 0.5712 Blue : 0.1582, 0.1328 White: 0.3134, 0.3291 Established Timings I & II: none Standard Timings: none Detailed Timing Descriptors: DTD 1: 1366x768 60.059824 Hz 683:384 47.688 kHz 76.300000 MHz (256 mm x 144 mm) Hfront 48 Hsync 32 Hback 154 Hpol N Vfront 4 Vsync 6 Vback 16 Vpol N DTD 2: 1366x768 48.016373 Hz 683:384 38.125 kHz 61.000000 MHz (256 mm x 144 mm) Hfront 48 Hsync 32 Hback 154 Hpol N Vfront 4 Vsync 6 Vback 16 Vpol N Alphanumeric Data String: 'AUO' Alphanumeric Data String: 'B116XAN04.0 ' Checksum: 0x94 In this example, Descriptors can also be used to distinguish. But it's possible that the name field is also reused by mistake, for the same reason as model id is reused. > > > > Hsin-Yi Wang (2): > > drm_edid: Add a function to get EDID base block > > drm/panel: panel-edp: Match with panel hash for overridden modes > > > > drivers/gpu/drm/drm_edid.c | 55 +++++++++++++++------------- > > drivers/gpu/drm/panel/panel-edp.c | 60 ++++++++++++++++++++++++++----- > > include/drm/drm_edid.h | 3 +- > > 3 files changed, 84 insertions(+), 34 deletions(-) > > > > -- > > 2.44.0.rc0.258.g7320e95886-goog > > > > > -- > With best wishes > Dmitry