Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp1673871rbb; Mon, 26 Feb 2024 18:42:36 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWc+dJ9nG/AQVatX/dvjrZDhnn0MXIu+2F9m5OiB8x+gchoH+JK5se5uPzfEM2SQDFhZ/h0sUWMYEu6gVAK6tQVOZWgrxE49C2FTMBaTg== X-Google-Smtp-Source: AGHT+IEogYsfGkfjEZnd+bVherGUe7lR0ItBfw/SijyRN9e4N8cEqx9JcSpVdtv0Bm35412qy9R/ X-Received: by 2002:a05:6830:4cc:b0:6e4:8c3c:63fb with SMTP id s12-20020a05683004cc00b006e48c3c63fbmr10294175otd.22.1709001756448; Mon, 26 Feb 2024 18:42:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709001756; cv=pass; d=google.com; s=arc-20160816; b=S6EZxVCLV3iLPop4FWYY15+UewH1TydWEP2XfRhQgrAZCc/pCOLWABp9gHuACbKUVO XOHllNooiLRzJouzDafHzCfVl1yB4ct+3bpoceIVOPJLg5mhnbjXIGz055DxYaRDo0nt 5Z7KRL9CI8BEAhCeLT9earBzIziYoI0jaCM4oD4DrZ75VbNJu/tLawnBsxXYkTMRMeoQ b8Z+i+Y7beIcpD1Dj9x2+qhKO4aFyCiEkQWGx2b30xK7YavcPXvtFl4HrwJNE/y0P6cD vruUTrKuYq1JYj+Olg21jrxIG3bu7t7D+CtXbl+RogcUkvuRh+jE5wWYZQ051BC3cV5K iQEQ== 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=FCEqoEe8h2ncNZO/H1zt/NRD5p1KyWoUZuyGGRZfeIQ=; fh=v6Gd4RYRrZSof2FXjykneewF8xjtfMRRZtzA0JiQrHM=; b=BuPs1Au0Pq/hpkgU/CiejyNybcdRMYE980t6QsxSZJfLmYGULPLk0obV7WQ5yqYYCb GojBH2W3oSgIK/ay29hrm1BD5QFQza9RcR5HhddsTOS7eZT5odE8kjl6zH2wC1sMreYn uMk+0eLg1ugmtpTFCK6EfOzjfuQ37GauT1ScDmSrUVOpZd8gXLJMFXDZIt/3Jy/Wg6eB yNn27zxg0DgU0/zwG6rYd9a6lLnfPviWgwJren2T1LyAXBjv0AH91D/+tQWr9MWj+Bxw rPO7b45BvRSA8uDFxZ6pQ0eUGFXT2R8fsdbsI4pubo2hD2hcmKEqp2JxfDtpUDS3j/Db G8lQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ibpIwTiF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id z1-20020a630a41000000b005dc4bdd113fsi4566909pgk.168.2024.02.26.18.42.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Feb 2024 18:42:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-82607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ibpIwTiF; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-82607-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-82607-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 sy.mirrors.kernel.org (Postfix) with ESMTPS id DCAE7B26208 for ; Tue, 27 Feb 2024 02:26:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6183110A0D; Tue, 27 Feb 2024 02:26:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="ibpIwTiF" Received: from mail-yb1-f169.google.com (mail-yb1-f169.google.com [209.85.219.169]) (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 99A9CF4FC for ; Tue, 27 Feb 2024 02:26:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.169 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709000780; cv=none; b=FL5/G2PQ8Q9PbQFRqf9ptfleRcLl7Y419gWLoC6LJgdaihbmlOIVnqDWn8f4eq/dyB2jhoAqXiSQSC58WCpRPQUF5zPTpk7Jp1swU5LmBpIpr1ejsWVyn9PljKwVqoP10SmMEdTG//MlsjFfy/M24898o/P7tfilPbFpVWkUzy4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709000780; c=relaxed/simple; bh=sgugdwOJThAT2iUguafr87yBlE89jkRo7TRpZkpBen0=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=Y8MNvI+wNttD3UWvOwpMFFsPk/FKjLvPTf0TZZIUHwH1ZvQht+ICTbWehE1t51phA/whtu/gzazRM0HmT3bWjS1gpUu5t5la71FkT+/U6rpcXwOyiIIuzxG8TuyKalCLdaA4fwQNeh/OcZxPGZIt2XAmxGT2690hUfyeCaducss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=ibpIwTiF; arc=none smtp.client-ip=209.85.219.169 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f169.google.com with SMTP id 3f1490d57ef6-dc6d9a8815fso3570895276.3 for ; Mon, 26 Feb 2024 18:26:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1709000777; x=1709605577; 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=FCEqoEe8h2ncNZO/H1zt/NRD5p1KyWoUZuyGGRZfeIQ=; b=ibpIwTiFrbnIRDx0QLwWHTZFSLUqAYk8KDwfOIskN5IstGHV3qrYt5KSNK+WILtpBI q5ft/u+570bGsmUIJTJ0JZCuwJBgjPvtY2VeWs1ewrLpgIpLKWsWvj2noMY2/COqb9NG eG5gWSKTe6Pz2j3zX9jgjTQL/eIW4exosdG2M3af3cN3y98kuPBX+mfwsZ0Bo4bdXdnO /3E96sStNHs/oB00xUdSI/9T9OU1RwXeADfiT1j+N03lnQnRZpJXaJaKaF5Jj1+AMoxx syCxXwgA+5FrnPBa7rsk8pmiwgWEduS/ceNHTiDixehU7Z9jKbSLpsX7o+ppbNyzy322 PLUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709000777; x=1709605577; 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=FCEqoEe8h2ncNZO/H1zt/NRD5p1KyWoUZuyGGRZfeIQ=; b=p/74WwpLZeSrVxNwDxuHdxfEDQ/F0NLJ9S+Nl5BN46Zt5rKd12/9Pu1cGG08+OLOI2 DU5WOKSyYKQ6K0aA4p1uXx4I1rFfajSzJsOfczvobrhi6IfyKBp2Ak8at+d7C1xM1B7P nnZza14tdrV7UB4PT4EHb23lBy/gWkrwS5SwuARCcZoZvPsx6DvFXiNB21qs4KbA5P1+ yZU/hD6IFHBfu3L+7vlhxZYfq8fcsEWzU413wxUTxxRCwMZHIM9/Ogi9GyaQ3v7LwNmG elNQbfry3sJZa6jNkw4AKRRMfJTuhaMnA/WC2dRsS4KuUJsdocCQpAGSPU+Bd0F1Q0/b MjzA== X-Forwarded-Encrypted: i=1; AJvYcCX1MEULEDGRDgsLVxlNvfbrciNkyBxez1zm/k1Iz80HnII5MCo0uXImWZ00p3I7eE3S42gTnJN/Rzvj/Ppm4dVmBjwWDcjbf59RJOv0 X-Gm-Message-State: AOJu0YxYQV8rwyMbENU9Ws8Snw5/o5yX84F2m/KHff0CcpZfEhN0rB3q XVIerPt1G35hInmmPFDqfcAS7R91fbUChwfytYRbcDogiom+uVz77uGdWEiTpn9qWXhSqZrxKtp 68RzqLLM9yAGN/SeuSiUeIo/P3A7rAYPJsvcggg== X-Received: by 2002:a25:9d8a:0:b0:dcc:35ca:aac4 with SMTP id v10-20020a259d8a000000b00dcc35caaac4mr965543ybp.51.1709000777563; Mon, 26 Feb 2024 18:26:17 -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: Dmitry Baryshkov Date: Tue, 27 Feb 2024 04:26:06 +0200 Message-ID: Subject: Re: [PATCH 0/2] Match panel hash for overridden mode To: Hsin-Yi Wang 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 Tue, 27 Feb 2024 at 03:10, Hsin-Yi Wang wrote: > > 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: = Add > > > auo_b116xa3_mode""). It's found that 2 different AUO panels use the s= ame > > > product id. One of them requires an overridden mode, while the other = should > > > use the mode directly from edid. > > > > > > Since product id match is no longer sufficient, EDP_PANEL_ENTRY2 is e= xtended > > > 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. Thank you! Let's settle the discussion at the cover letter. > > > > > > > > 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 --=20 With best wishes Dmitry