Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp346794ybl; Tue, 7 Jan 2020 07:09:20 -0800 (PST) X-Google-Smtp-Source: APXvYqyuA9MSMEMDgyYQYSMwYwWKU/nC1JoBZ8Xta3l8O/NUfi+ZUiumraVk80bGkFmKp+BZi/hr X-Received: by 2002:a05:6808:24e:: with SMTP id m14mr118069oie.168.1578409760628; Tue, 07 Jan 2020 07:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578409760; cv=none; d=google.com; s=arc-20160816; b=azpxcW6RudYor4ABcv/gu2OUibr0Ka4gNp+mwHeXhhVGHVNO9KTYAXE8YWGxHQwHWC oZMDi+xvjNUzfcxodcS8EyhQIIiy0WdVo5cu1GvG9uSInm0TvLvb+pArEtNeTsmFH9RV RNTMWNXeGAiSZxYL0cD77L6BU/QpK1LuuxCDyrzVZPaG5IpF3v8BPCspj3cUaexeeIjM K+lt00hzJ9CAo7S9BYDeN88Asc/nTUU6/GyDlvwtbJPtRTQyP2/aAF0i2YT8mV0iKCR1 gM8GCD3II1QPFMc9i0H9fi/MgNGKzEG5H9AbKeQuy73IBysyg05awWedf70Y0L0VEsNO qVhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+y+aWqsEqk2+D9Baxc1ravTEaKC6Hg6OrUKouQASJFI=; b=EnnSNWF2bQamJiHFmbqfsEifgiRwNRRFD9BRHaNw9ZTAfpG9QraRHDrf8/DdbLtQi0 dxXZBGJ8E0Ws+SfXuRYYLO8cRfh4+Px60/6sYjvKQXhO7eCUmgQNGdwZk3YH26kzoNBU pSSigq0sxDhMPqm945bzOYFX7U3KVChNuF0pVLMKS3clwcMlFTG74MUS9ha+EWLrnkf2 vHZKMO5R2066kLrMnc8XjgRqgGw6QYrshpMGH5IUegVMVutiCojvFg1ZpVeozAtE1TQ9 vxhc/y0Q+GfxskPJHITtZBMxQYZog+xtkwd6Zi1ywXUGnBP5G9pMT9Hm7R3VMLbqDgM3 m/rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aGcPyhZn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k131si2360oia.64.2020.01.07.07.08.59; Tue, 07 Jan 2020 07:09:20 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=aGcPyhZn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728115AbgAGPG2 (ORCPT + 99 others); Tue, 7 Jan 2020 10:06:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:48938 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727880AbgAGPG2 (ORCPT ); Tue, 7 Jan 2020 10:06:28 -0500 Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 83D012087F; Tue, 7 Jan 2020 15:06:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578409588; bh=+y+aWqsEqk2+D9Baxc1ravTEaKC6Hg6OrUKouQASJFI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=aGcPyhZnC7+FqmaURKzkdbH8gwRkbCGrcv15/QY0sFaTSSpSdUJzt3yF0mMK/Qg3E EwdVYzY5dcdj451Mrzm/4tIYZK4MZvAqdm2+nCKxgG7wJSry8pui+CAxbpdkd4mW2v T28gft04vtvzuNXQCXdxGba1rPmhNJy7/DbrV5YY= Date: Tue, 7 Jan 2020 16:06:25 +0100 From: Maxime Ripard To: Chen-Yu Tsai Cc: David Airlie , Daniel Vetter , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] drm/sun4i: tcon: Set RGB DCLK min. divider based on hardware model Message-ID: <20200107150625.sj6x4u67diac3v5p@gilmour> References: <20200107070113.28951-1-wens@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xezwhxxbc3anpsth" Content-Disposition: inline In-Reply-To: <20200107070113.28951-1-wens@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xezwhxxbc3anpsth Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 07, 2020 at 03:01:13PM +0800, Chen-Yu Tsai wrote: > From: Chen-Yu Tsai > > In commit 0b8e7bbde5e7 ("drm/sun4i: tcon: Set min division of TCON0_DCLK > to 1.") it was assumed that all TCON variants support a minimum divider > of 1 if only DCLK was used. > > However, the oldest generation of hardware only supports minimum divider > of 4 if only DCLK is used. If a divider of 1 was used on this old > hardware, some scrolling artifact would appear. A divider of 2 seemed > OK, but a divider of 3 had artifacts as well. > > Set the minimum divider when outputing to parallel RGB based on the > hardware model, with a minimum of 4 for the oldest (A10/A10s/A13/A20) > hardware, and a minimum of 1 for the rest. A value is not set for the > TCON variants lacking channel 0. > > This fixes the scrolling artifacts seen on my A13 tablet. > > Fixes: 0b8e7bbde5e7 ("drm/sun4i: tcon: Set min division of TCON0_DCLK to 1.") > Cc: # 5.4.x > Signed-off-by: Chen-Yu Tsai Applied, thanks Maxime --xezwhxxbc3anpsth Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXhSecQAKCRDj7w1vZxhR xQFaAP9wLF9udsuevqjGAE3LAn6TCRsCdWejtoRRsX5mYATyzgEA6SE+BSoFd/Ct dU/RYO3cR8I6jmK7T2SuD3yh1MdfgAE= =Ruky -----END PGP SIGNATURE----- --xezwhxxbc3anpsth--