Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp196523pxh; Wed, 10 Nov 2021 00:03:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/TS3s4KRIJYnH2P5xa3GF/kWukV7HdwYWG3WdptmVS1HUIrPWAMsviv+5JUEqjcVIrawv X-Received: by 2002:a17:906:144c:: with SMTP id q12mr17855793ejc.72.1636531416817; Wed, 10 Nov 2021 00:03:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636531416; cv=none; d=google.com; s=arc-20160816; b=LNv5G3lwckvVnRMmgBOjiOJo2hHXxue5DBSM0IRWiMQPJ+WsoAyvlMj9r2ZPu6mFcd v2WsSkBh5jbewO+iuT6EExDeswsTMCQjXeuHXGaYL0ReXFyD2GM0ejik2Ci4ejTCuUIN Pcs0IMWxrnUI/ejh/E5TpqaPWPQTQpwBxdmCrrkgOQvnYvHSwRcVyJrW/40hVJR3lMCU zc6unW7d+IZb/447FWlYANOxNKT4kTbY6s4FcGiRsALwPOWR8JPjY1wlngP0R/OO++aL ZAY2pKdpbGnEvVEzHccoaoZ2W+MH37mC8r0ekV8XF5tc5ccq6NkJ2DdZnOv9oR77+96k oURw== 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:to:from; bh=zGmUFDZdWfmkRzDOvPfVXO118x6C257IduKhJTprtCs=; b=kfyHPCDIdXBDN6E16AYUOY+PPga0QsIt5Pj+j7Fvmi9Cqm2eEp9YG9FHkn91R3OmSV XXeENdhul2G1cGLvNjv8Qs9yYtu6p6cmcgEVvoXqxDfFA3xIMcepF1cOutlbKx+onSEi 5R5UVzRS8kfrulc+wQPXA1YKIi8YnAPJB563HRQZPCBF+WuqF6nTolUX8hgQq64TTLRD 1qJa1xTWkIbgmZBEPYzXJUCXYaTTXZivi57ZCNBHcLi1OY23ltV/TKvY18+FH+56FHhF TzdZaIZd6E3Jah3+vSVJZ2Y1KEHLh7ludXOGaPtrXSurKE4jv2GFWN/kHLTulK/2iEgL xMiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sb8si48945422ejc.626.2021.11.10.00.02.49; Wed, 10 Nov 2021 00:03:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbhKJIDF (ORCPT + 99 others); Wed, 10 Nov 2021 03:03:05 -0500 Received: from twspam01.aspeedtech.com ([211.20.114.71]:40578 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229930AbhKJIDF (ORCPT ); Wed, 10 Nov 2021 03:03:05 -0500 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 1AA7amEY018229; Wed, 10 Nov 2021 15:36:48 +0800 (GMT-8) (envelope-from jammy_huang@aspeedtech.com) Received: from JammyHuang-PC.aspeed.com (192.168.2.115) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 10 Nov 2021 16:00:06 +0800 From: Jammy Huang To: , , , , , , , , Subject: [PATCH v2 2/2] media: aspeed: Fix incorrect resolution detected Date: Wed, 10 Nov 2021 16:00:12 +0800 Message-ID: <20211110080012.20759-3-jammy_huang@aspeedtech.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211110080012.20759-1-jammy_huang@aspeedtech.com> References: <20211110080012.20759-1-jammy_huang@aspeedtech.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [192.168.2.115] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 1AA7amEY018229 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org During successive timing-change, resolution detected could be incorrect, for example. Using remote KVM to do Centos-8.2 installation, the timing detected could be only 1920x471 for 1920x1200. Increase min-required-count of stable signal to fix the problem. Fixes: d2b4387f3bdf ("media: platform: Add Aspeed Video Engine driver") Signed-off-by: Jammy Huang --- drivers/media/platform/aspeed-video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/platform/aspeed-video.c b/drivers/media/platform/aspeed-video.c index 996afbb87ee9..625a77ddb479 100644 --- a/drivers/media/platform/aspeed-video.c +++ b/drivers/media/platform/aspeed-video.c @@ -1208,8 +1208,8 @@ static void aspeed_video_init_regs(struct aspeed_video *video) aspeed_video_write(video, VE_MODE_DETECT, FIELD_PREP(VE_MODE_DT_HOR_TOLER, 2) | FIELD_PREP(VE_MODE_DT_VER_TOLER, 2) | - FIELD_PREP(VE_MODE_DT_HOR_STABLE, 6) | - FIELD_PREP(VE_MODE_DT_VER_STABLE, 6) | + FIELD_PREP(VE_MODE_DT_HOR_STABLE, 10) | + FIELD_PREP(VE_MODE_DT_VER_STABLE, 10) | FIELD_PREP(VE_MODE_DT_EDG_THROD, 0x65)); aspeed_video_write(video, VE_BCD_CTRL, 0); -- 2.25.1