Received: by 2002:a05:7208:13ce:b0:7f:395a:35b6 with SMTP id r14csp195358rbe; Wed, 28 Feb 2024 17:31:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWMYS0thqGQzlyPxMHPlj/Ffxc3DbFnJtqZk1M8anYQdoyYThckXcgf55gMoBFS1pcVXoch87pm7QGC87ZVZTkehW7tP1BalF/148ukXQ== X-Google-Smtp-Source: AGHT+IHGXsD7X9O6QoGiBYdd8s2Ag0x93DSUMBJEzI6JMoql8FeriG5X1zfH6OV/Ir8SmnzykStw X-Received: by 2002:a05:6a00:17a5:b0:6e4:5cf5:1b5b with SMTP id s37-20020a056a0017a500b006e45cf51b5bmr1492931pfg.30.1709170284116; Wed, 28 Feb 2024 17:31:24 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id gx25-20020a056a001e1900b006e31b9b4601si240838pfb.19.2024.02.28.17.31.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 17:31:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-85991-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=neutral (body hash did not verify) header.i=@chromium.org header.s=google header.b=M9aXcc3y; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-85991-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-85991-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 43A5CB21A48 for ; Thu, 29 Feb 2024 01:18:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01D852C85D; Thu, 29 Feb 2024 01:17:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="M9aXcc3y" Received: from mail-ot1-f46.google.com (mail-ot1-f46.google.com [209.85.210.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 808B823C6 for ; Thu, 29 Feb 2024 01:17:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709169478; cv=none; b=TT4HEdmYUeFiYYq7j+a1q2hRcuFrc0a6CM2+UqWhOJ0tE0j0zvYot6I4Y/tB7Ev7gmes8N1FOXx8jweEFXBDfSJt2Z0Jpip1VaM9ZF97e7KeYBM0H7sNKaEz9XLhKPRPLRzrnZrGW++XO18Qncl6NlaiVeAhRPsNuH9BeCyUlg4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709169478; c=relaxed/simple; bh=hzv0ubnBLl7J3/BPI8ijVjfVpgQESpW94vrQ982GiMs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=cg48ITfWoTq9VgBybYX3CYzWHrkwI9UatMEDWQx7mmQo8oQrWy3vVYbj0NRwhKH41CyjOlf4czrla61TVV1evrZbIFTFfB2X+UzThXRt9lJGkGp4zgd+W8uQXBt0F64t1zRVxoYEiN7pKYMbBogbHOLPr7XaYMzLuIjRdiueGbw= 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=M9aXcc3y; arc=none smtp.client-ip=209.85.210.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-ot1-f46.google.com with SMTP id 46e09a7af769-6e47498f4a2so169331a34.2 for ; Wed, 28 Feb 2024 17:17:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1709169475; x=1709774275; 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=HZQ76DkW7h4NA/X0r/CH+mLXIOYFICqmMAZUC0ZaMd0=; b=M9aXcc3y4EV5sr5Vosc9V3wC8kPgLLwDaXtP2dWYBJy7YU8ZBFvOz+rTzUJgu/iYSf 2F+hVC+saD62QxFngE/RsTG6XowROrj/o/BPJ4/iKp3qTu9d3Ne0pbLR2JRq1p3A+4oM EhIarMbyP7uF6jo8w6goohPth3wW5ZMXIkqMg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709169475; x=1709774275; 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=HZQ76DkW7h4NA/X0r/CH+mLXIOYFICqmMAZUC0ZaMd0=; b=sQxmtbgl+ZR9Q5VGh14jTuqTIoTMpEFsvmKS2+W+xEhgmcxp5HWdF8KFvekH5Y7rPf h60xhBvTr7oWUn4BFSUL5KchF4BYL5+Xbx/XyYfwOKmWF21e0jgygcK+vyezG4QPEk3q TNBKHt1wpBsBBj2DF1HRw3jmrb0bqjefS8NRrLbpdbixfOm7bqN9EzyipXD0U7aJil28 yttTBsb2L9blOVQ7KQ0tq+xsP9gj506chE0mhHUQilbCVEHTecdcqIxq+aLid/3odXI2 EboFdEVRwoXx/Iz7yLo+Ex/ZDa/Cs10bLx6v/nB/tdubI0Iz86Ex9KELewTVvioHQPMg sBeQ== X-Forwarded-Encrypted: i=1; AJvYcCU2ZFtzvfNRgDI630kOGNEcsc7YjdTGIi2k+caNmAOeK9mzAVmu56aBLSG156fR1e7EShhwqeHFMiKBy4UHWlyeW/bAJC3lc5bkieLj X-Gm-Message-State: AOJu0YxPVPQUTtIUTM4XdPwzCTAJbON1LJ3PIKNbXLIGXewhkrF4ULmH UsdTjZJ/UPcbVPEgv4yIWXYfCHRY64HnX0udPAyt87ziLYiWRVQdpe/1QYCo7uuNKokc+mJVGaK kCjWoZhYZ4uuX+8SUQ413ele1/Y3cT+VdjDHC X-Received: by 2002:a05:6830:4da:b0:6e4:7371:33c5 with SMTP id s26-20020a05683004da00b006e4737133c5mr668472otd.37.1709169475655; Wed, 28 Feb 2024 17:17:55 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240228011133.1238439-1-hsinyi@chromium.org> <20240228011133.1238439-4-hsinyi@chromium.org> In-Reply-To: From: Hsin-Yi Wang Date: Wed, 28 Feb 2024 17:17:29 -0800 Message-ID: Subject: Re: [PATCH v2 3/3] drm/panel: panel-edp: Fix AUO 0x405c panel naming and add a variant To: Dmitry Baryshkov Cc: Doug 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 Wed, Feb 28, 2024 at 5:13=E2=80=AFPM Dmitry Baryshkov wrote: > > On Thu, 29 Feb 2024 at 03:05, Hsin-Yi Wang wrote: > > > > On Wed, Feb 28, 2024 at 4:22=E2=80=AFPM Doug Anderson wrote: > > > > > > Hi, > > > > > > On Tue, Feb 27, 2024 at 5:11=E2=80=AFPM Hsin-Yi Wang wrote: > > > > > > > > There are 2 different AUO panels using the same panel id. One of th= e > > > > variants requires using overridden modes to resolve glitching issue= as > > > > described in commit 70e0d5550f5c ("drm/panel-edp: Add auo_b116xa3_m= ode"). > > > > Other variants should use the modes parsed from EDID. > > > > > > > > Signed-off-by: Hsin-Yi Wang > > > > --- > > > > v2: new > > > > --- > > > > drivers/gpu/drm/panel/panel-edp.c | 17 ++++++++++++++++- > > > > 1 file changed, 16 insertions(+), 1 deletion(-) > > > > > > The previous version of this patch that we reverted also had an > > > override for AUO 0x615c. Is that one no longer needed? > > > > > > > > > > @@ -1990,7 +2003,9 @@ static const struct edp_panel_entry edp_panel= s[] =3D { > > > > EDP_PANEL_ENTRY('A', 'U', 'O', 0x239b, &delay_200_500_e50, = "B116XAN06.1"), > > > > EDP_PANEL_ENTRY('A', 'U', 'O', 0x255c, &delay_200_500_e50, = "B116XTN02.5"), > > > > EDP_PANEL_ENTRY('A', 'U', 'O', 0x403d, &delay_200_500_e50, = "B140HAN04.0"), > > > > - EDP_PANEL_ENTRY('A', 'U', 'O', 0x405c, &auo_b116xak01.delay= , "B116XAK01.0"), > > > > + EDP_PANEL_ENTRY('A', 'U', 'O', 0x405c, &auo_b116xak01.delay= , "B116XAN04.0 "), > > > > + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x405c, &auo_b116xak01.dela= y, "B116XAK01.0 ", > > > > + &auo_b116xa3_mode), > > > > > > The name string now has a space at the end of it. I _guess_ that's OK= . > > > Hmmm, but I guess you should update the kernel doc for "struct > > > edp_panel_entry". The name field is described as "Name of this panel > > > (for printing to logs)". Now it should include that it's also used fo= r > > > matching EDIDs in some cases too. > > > > The space here is because in the EDID, there is space at the end, > > before 0x0a (\n). > > Okay I will update the kernel doc to mention that the same should be > > exactly the same as the panel name. > > Maybe it would be better to strip all the whitespace on the right? > Sounds good too. > -- > With best wishes > Dmitry