From patchwork Fri Nov 17 21:46:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsin-Yi Wang X-Patchwork-Id: 166404 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9910:0:b0:403:3b70:6f57 with SMTP id i16csp834655vqn; Fri, 17 Nov 2023 13:51:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IHopnbFKn2qlSXvVFanVy4cBumR4CB4MOhG3kOlfdtA8vmlGfiMBMG5MoTg9Ixv0iuK0yQD X-Received: by 2002:a05:6870:c1cc:b0:1c0:f8a7:ec14 with SMTP id i12-20020a056870c1cc00b001c0f8a7ec14mr506808oad.57.1700257918324; Fri, 17 Nov 2023 13:51:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700257918; cv=none; d=google.com; s=arc-20160816; b=dDQ+QeQbWY0MG1+Gkd8Tq5r8+4kjTHOpfYgysk8bgHVyPq4b7jCML9VPm5NWtrBHAU OmPK5o4mu/mRg4S5e2o4jaSiB32qOXsNWZtPOrf4NX+5QRoKKVg+rIcxiFMt8DWr8LRD Vzd/j3oL713vr92KiQNDewrFpXV61m0GQf9nwiqzYrDSws8udGAp+OEr4KPxoFVPKmMP KRiOk97FMX8Kn9CGIpdUanOkt4LI9cy+MU2kcbaa7rS+OM2ap+AOSAuHKEf4BCwYqdaD VF4df7bcb5cYQ1A0TZgCzG6m8eD6Wtce9pFvzGDvduwzcIoDTXxVPWUwXJ1qsvP2PJ42 zkJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=MDebfVAoPELKTEL528lJwzdi4eZAa8eNlalDXzxQ6JQ=; fh=QSF6wZwxRRIGJ9Ybx1nP+GUhkXoPhy52zPZ6csROsqc=; b=e7QGjE6h8OQBJFxaCbx7ciJ8VCdqYxcU19mTlK1KG2jY1T+3b+Ryd49JcsT6L42tWI HI1Y1zvbwzmVj6mmzp6QW4oWZl5k86GoAfLVpjFNqKtNyIyYxkY/u3Xp1wuNZnGlp0Ga kL5c/aYlLsA8iJtN9o0uMemAb+IlEUdb62LChMZSq8lQ8y7eSfV7yW7LsrbjEHszWMd7 amyriMmEhkujtChBv/ja/JrLPAnx37asfi6LGjjkkqfIxiIOYlX/QVgKwYtOqvFsjY3l OT3d/CdsdVfyBuNt9xV8VH3F3B/At2SD8j85PJNLlKiqUiY7XqtW2wP4p9Ui/NRAMRSb lxAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M+D1eLbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id h14-20020a63c00e000000b005b95f5f8976si2822242pgg.634.2023.11.17.13.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 13:51:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=M+D1eLbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E446083271EA; Fri, 17 Nov 2023 13:51:55 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233351AbjKQVvN (ORCPT + 29 others); Fri, 17 Nov 2023 16:51:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231947AbjKQVvH (ORCPT ); Fri, 17 Nov 2023 16:51:07 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08E90D68 for ; Fri, 17 Nov 2023 13:51:04 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-280109daaaaso1954439a91.3 for ; Fri, 17 Nov 2023 13:51:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1700257863; x=1700862663; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MDebfVAoPELKTEL528lJwzdi4eZAa8eNlalDXzxQ6JQ=; b=M+D1eLbEzpNzwx/DifKMhq7xbCdmSl9iBOydYDCcei+7VtTuBKvIk0C9BbJ7FtinH/ HiuOgufWFg3YyQPZTCPCu25cR3GKg1IdhtujifAJ77Ge8In93sT84dFVMcHmUs7wEcsV FO/JF2xFoMqHz+98dUoIrb59UU7gXzeoJXG04= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700257863; x=1700862663; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MDebfVAoPELKTEL528lJwzdi4eZAa8eNlalDXzxQ6JQ=; b=f9+r0K53/BRzP1lx8ha//2+Pj3R3h14Cw1Ox0QheEMG1T3qBGUEUa2fapsoOfJxPDX EQL4/zgfp2x9UJCUT+gE8w7khSHjBZdHEu47Goc6gTlToVUcEt8OUFMZNKJOh+/fWWnb EJ/RnLmL0RyAj7kFMsrGuQ3SICESBNzhlzTsgy/kZgHntOINgeDtuHauz38DQ/5YojOO TctBDw3TF5g8Kih1TukhGHjEE2QtJ55jHXSDmyUvVETDANipNfo3MdnyhMeAqYpbdYkg OvWlzScAYcvFj+KBghkpdzZYnDvkVd6S+G1EBqSTRco1ATKYIHTZBSfl5sntFYr06XpT XCKw== X-Gm-Message-State: AOJu0Yzg5+q+N7pVrJEqCa9lluovGCfjwyB36fxACQj2TWK29MYd3dDt nurKa6tLymL8bgr1JXA6AEP5Og== X-Received: by 2002:a17:90b:1e0f:b0:281:691:e58c with SMTP id pg15-20020a17090b1e0f00b002810691e58cmr831673pjb.37.1700257863532; Fri, 17 Nov 2023 13:51:03 -0800 (PST) Received: from hsinyi.sjc.corp.google.com ([2620:15c:9d:2:7ed:b095:f0ba:5801]) by smtp.gmail.com with ESMTPSA id x7-20020a17090aca0700b00256b67208b1sm3639587pjt.56.2023.11.17.13.51.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Nov 2023 13:51:03 -0800 (PST) From: Hsin-Yi Wang To: Douglas Anderson Cc: 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, stable@vger.kernel.org Subject: [PATCH v7 2/3] drm/panel-edp: Add auo_b116xa3_mode Date: Fri, 17 Nov 2023 13:46:33 -0800 Message-ID: <20231117215056.1883314-3-hsinyi@chromium.org> X-Mailer: git-send-email 2.43.0.rc0.421.g78406f8d94-goog In-Reply-To: <20231117215056.1883314-1-hsinyi@chromium.org> References: <20231117215056.1883314-1-hsinyi@chromium.org> MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 17 Nov 2023 13:51:56 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782849646740229242 X-GMAIL-MSGID: 1782849646740229242 Add auo_b116xa3_mode to override the original modes parsed from edid of the panels 0x405c B116XAK01.0 and 0x615c B116XAN06.1 which result in glitches on panel. Signed-off-by: Hsin-Yi Wang Reviewed-by: Douglas Anderson --- v6->v7: split usecase to another patch. --- drivers/gpu/drm/panel/panel-edp.c | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/panel-edp.c index 33535f6de343..3e144145a6bd 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -983,6 +983,19 @@ static const struct panel_desc auo_b101ean01 = { }, }; +static const struct drm_display_mode auo_b116xa3_mode = { + .clock = 70589, + .hdisplay = 1366, + .hsync_start = 1366 + 40, + .hsync_end = 1366 + 40 + 40, + .htotal = 1366 + 40 + 40 + 32, + .vdisplay = 768, + .vsync_start = 768 + 10, + .vsync_end = 768 + 10 + 12, + .vtotal = 768 + 10 + 12 + 6, + .flags = DRM_MODE_FLAG_NVSYNC | DRM_MODE_FLAG_NHSYNC, +}; + static const struct drm_display_mode auo_b116xak01_mode = { .clock = 69300, .hdisplay = 1366, @@ -1908,9 +1921,11 @@ static const struct edp_panel_entry edp_panels[] = { 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_ENTRY2('A', 'U', 'O', 0x405c, &auo_b116xak01.delay, "B116XAK01.0", + &auo_b116xa3_mode), EDP_PANEL_ENTRY('A', 'U', 'O', 0x582d, &delay_200_500_e50, "B133UAN01.0"), - EDP_PANEL_ENTRY('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1"), + EDP_PANEL_ENTRY2('A', 'U', 'O', 0x615c, &delay_200_500_e50, "B116XAN06.1", + &auo_b116xa3_mode), EDP_PANEL_ENTRY('A', 'U', 'O', 0x635c, &delay_200_500_e50, "B116XAN06.3"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x639c, &delay_200_500_e50, "B140HAK02.7"), EDP_PANEL_ENTRY('A', 'U', 'O', 0x8594, &delay_200_500_e50, "B133UAN01.0"),