Received: by 10.223.185.116 with SMTP id b49csp7228769wrg; Thu, 1 Mar 2018 01:57:43 -0800 (PST) X-Google-Smtp-Source: AG47ELsoKxanffEq0DvgedURvjS2ducoOEIlxzX4+w2+9pOD0gunW9ZELRokUg7APKqfZ9rd8luj X-Received: by 10.98.103.136 with SMTP id t8mr1336318pfj.177.1519898263347; Thu, 01 Mar 2018 01:57:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519898263; cv=none; d=google.com; s=arc-20160816; b=a2Ld/7H63B+Pu8dLrSOlTfcKI/FpIhByeEHYhrCj+Sfo0FySYVTM9Ez4v39Ep6WFhh bMZoRNtKQob7NygqyP2oxQ9KwHUjY38V47XBcHEWAhnayM60/lvEVcMHU4gsXYxutp+r b8HQb/x1aM8T+9eETgri5Q70+DcPgqIuBRd4fam6vnBBO/67T6PolBsXL20STF97k6aI O2+H38LGytEC8cq60rEI6mbXKOKqWydGjCWJnmDwsK5IHW6U/ns9TomfTt8nvdAZfCJf hDJOAgfixJaYMNdE5qRYzPWmDwYe0Z7n43jFPQkd8v/9yRAMDlpxoZlZibFzIJ1pkBr+ X50A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=ismpV7U5LM4m4lXw+0ympk944c/xd7DbV/lveepAeUw=; b=G14PebBo3Ya8kgqGXLtjWUiUBHJO/CyLswLXJ1m3KH1QyRJMucoy+kz4er2lazkIu4 4AJoD998IIFcYBB4uOSyP+G1UpQCpvgl+qFyRkoCv2V7Slubhd3vx1931EdOL027eS9a 6Jv0/2Nr9odAqqDvkg/F9L3Sh+i1bi0Wmmq5YqPPM8t33gsUQoqLAfbHML7qm1XhYe1z rg8o2P9JimI9Jf7CaiPVolSiXIwKPKXbtJ6npGFPgoFyHdAl1uzkHRzkFGswiLID+HvR KUbmRR41Nk68nbhClbWTUmalWLACawHqF62el3vNgX6k5MYcJfHPRalsFlXsJObThiCw 3VDw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h32-v6si2821329pld.217.2018.03.01.01.57.28; Thu, 01 Mar 2018 01:57:43 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967195AbeCAJ4o (ORCPT + 99 others); Thu, 1 Mar 2018 04:56:44 -0500 Received: from mail.bootlin.com ([62.4.15.54]:36240 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S967092AbeCAJ4m (ORCPT ); Thu, 1 Mar 2018 04:56:42 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 1449C2037A; Thu, 1 Mar 2018 10:56:40 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (unknown [185.94.189.189]) by mail.bootlin.com (Postfix) with ESMTPSA id 4EEE82092C; Thu, 1 Mar 2018 10:56:29 +0100 (CET) Date: Thu, 1 Mar 2018 10:56:28 +0100 From: Maxime Ripard To: Giulio Benetti Cc: David Airlie , Chen-Yu Tsai , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] drm/sun4i: increase lvds dclk max divisor Message-ID: <20180301095628.7wmzahyxwlffptmx@flea> References: <1519840432-61489-1-git-send-email-giulio.benetti@micronovasrl.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ph5qljsbgxqclj7o" Content-Disposition: inline In-Reply-To: <1519840432-61489-1-git-send-email-giulio.benetti@micronovasrl.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ph5qljsbgxqclj7o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 28, 2018 at 06:53:51PM +0100, Giulio Benetti wrote: > At the moment both min and max dclk div are set to 7. > This doesn't allow to have lower frequencies. >=20 > Increase dclk_max_div to 18 to achieve 30Mhz. >=20 > Signed-off-by: Giulio Benetti > --- > drivers/gpu/drm/sun4i/sun4i_tcon.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/gpu/drm/sun4i/sun4i_tcon.c b/drivers/gpu/drm/sun4i/s= un4i_tcon.c > index 029d2ce..bb35f41 100644 > --- a/drivers/gpu/drm/sun4i/sun4i_tcon.c > +++ b/drivers/gpu/drm/sun4i/sun4i_tcon.c > @@ -278,7 +278,7 @@ static void sun4i_tcon0_mode_set_lvds(struct sun4i_tc= on *tcon, > u32 reg, val =3D 0; > =20 > tcon->dclk_min_div =3D 7; > - tcon->dclk_max_div =3D 7; > + tcon->dclk_max_div =3D 18; This needs much more justification. What panel did you test it on? Why aren't we able to reach 30MHz already? Why do you care about 30MHz and not any other frequency? https://github.com/linux-sunxi/linux-sunxi/blob/sunxi-3.4/drivers/video/sun= xi/disp/disp_clk.c#L686 Why Allwinner is always using 7, just like U-Boot is, and we should use something different? Why 18 would be a better choice? All that should be in your commit log. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --ph5qljsbgxqclj7o Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlqXzksACgkQ0rTAlCFN r3TOHA/9Gge9Xej0P/efGV4jFS+jozOS0R0zgT/DhE+iXpeAD7XG2gHJGD/1NIqU m5oQDOQYG/+Bv+w6PJsLZYGi6KvagabN9YTT9wUxJalRybhMY+v5c5/29XgJ+A3V H6zry2eO0jjAL489RER0wjS7pqSk7+TkCCKHhx6xBlZFUEh/lcC1qU4nb2zPIyDl ZCt9VnAALlY7GbF1wJ/0yhyDUkBbsQWB2/a8Q0lo4kz6S9RDBE/C2d/kS3/8EfZY TlOMPmAMoO9LW0pqXS++9GSuPBxMsf/1InSZiWKe7660vz+l6IQHva2hVLauuUya fD21z0PZRO0ac/y1MOAaS8cbIp7oZy1VTYkQ32CnuUPsX8Id4bl76rYIQOIoQk4H hYu2XTV9QZECs57p1ZEOPJhLkuICGFm5/l2xq0lcTRgKbcZ6iR1OCXlsYViWivry wSKnCkFV3c8wFh+v4oiTO80hJeHzeKHNFtwyvuDKT2jPJmu2lfj25Qun1G2SHerB fiMAnU9JO5UXfJothZ5DAW0gDdR6Wmr3/4cfmxckA9TA9KM1hGd+zETFvtCWwyzn E7DcK2LgKi04gM1f6FMD1pIGPJSgH8Aadaxjebu0o4Vkr5A/U7Wny/nAWu9hJVSr qZ8anFUmxTD36K1dyb0SlONfVHHZAhWfUKQT7cGjig6PBka+SW0= =Bvo0 -----END PGP SIGNATURE----- --ph5qljsbgxqclj7o--