Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 81FCDC6FD1D for ; Tue, 21 Mar 2023 14:56:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231513AbjCUO46 (ORCPT ); Tue, 21 Mar 2023 10:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229944AbjCUO4z (ORCPT ); Tue, 21 Mar 2023 10:56:55 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CEF853B86F for ; Tue, 21 Mar 2023 07:56:51 -0700 (PDT) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 6A7185C00FD; Tue, 21 Mar 2023 10:56:49 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Tue, 21 Mar 2023 10:56:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm3; t=1679410609; x=1679497009; bh=Kr zg0wsgi3e1+bN2uZEn+LdbVtw9+KSDVRGMqDt0WbY=; b=rOFJfN0ZWr4AOuVBov h67qAC7OEWFK6+Lcmoxr4zy9jam8b5UPcV4rttDgUYhblJwTiNkoPAZ8S2f4QXqI khWQvUhOMUEXRA5Tnh3pnwhqy2vYe6cUxkaI8XKypB/U3jv5bWB4Gml3l2M0vqRI 8mJa7sS91lwUUOuEiTaCZduzUxOZFgbgLsj5Q6hKNQV6TS7MUWHp2lqfLTR9w6/n wvZ3/6VplK1vWi4bxTNvF2DJzRBFZuFpLluihrbUXyRbWuZzCLxjldNoxRCDnsIh YDK98MSyNUuENuemqGZkDWxgnuS1pz1N9motRBRTE1SifM2zDEmsDjkPoL7Wh7W3 8gPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1679410609; x=1679497009; bh=Krzg0wsgi3e1+ bN2uZEn+LdbVtw9+KSDVRGMqDt0WbY=; b=HyLtwTHXPYjFq/3VilH0N4YsaxI0U CEVCkcQlv5EwGi/cmTpvzouxVUQuETIwpkz+XgS6rlxpVg52+XbaPvXlUdLCoEPu AQvzDhp84NU/D85de731dJQcXhKYsKOgUGNHvoRJntDpBN74Jj4m3vuOGhBOl8By 6fijWW30/KVCyv7WzBJscCRUvjulbNSCpJfZZrudFjKXijsxQPuGAglSLDxEtw4p OPLG56lSNeXsyN7rffp/TVlZADqDIlHO8bVrrpx7C5ghZtlnnt3w3pjQxodFl0cG GeI19nlM6sIQuSxgfTk+N3MeMbugxnLsuiQ5013S/CAV/uVWXsUdr9C3g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdegtddgieelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvfevuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihi mhgvucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrg htthgvrhhnpeeuvdejfefhueeukeegffekieejtdefkeejuedtueegleeijefgjeeigfej hedtteenucffohhmrghinhepghhithhhuhgsrdgtohhmpdhkvghrnhgvlhdrohhrghenuc evlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehmrgigihhm vgestggvrhhnohdrthgvtghh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 21 Mar 2023 10:56:47 -0400 (EDT) Date: Tue, 21 Mar 2023 15:56:46 +0100 From: Maxime Ripard To: Roman Beranek Cc: Chen-Yu Tsai , David Airlie , Daniel Vetter , Jernej Skrabec , Samuel Holland , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/sun4i: uncouple DSI dotclock divider from TCON0_DCLK_REG Message-ID: <20230321145646.w6kr7ddurfxpg5rt@houat> References: <20230320161636.24411-1-romanberanek@icloud.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zucvqkk7astyp3jt" Content-Disposition: inline In-Reply-To: <20230320161636.24411-1-romanberanek@icloud.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zucvqkk7astyp3jt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Mar 20, 2023 at 05:16:36PM +0100, Roman Beranek wrote: > In the case of DSI output, the value of SUN4I_TCON0_DCLK_DIV (4) does > not represent the actual dotclock divider, PLL_MIPI instead runs at > (bpp / lanes )-multiple [1] of the dotclock. [2] Setting 4 as dotclock > divder thus leads to reduced frame rate, specifically by 1/3 on 4-lane > panels, and by 2/3 on 2-lane panels respectively. >=20 > As sun4i_dotclock driver stores its calculated divider directly in > the register, conditional handling of the DSI output scenario is needed. > Instead of reading the divider from SUN4I_TCON0_DCLK_REG, retrieve > the value from tcon->dclk_min_div. >=20 > [1] bits per pixel / number of DSI lanes > [2] https://github.com/BPI-SINOVOIP/BPI-M64-bsp-4.4/blob/66bef0f2f30b367e= b93b1cbad21ce85e0361f7ae/linux-sunxi/drivers/video/fbdev/sunxi/disp2/disp/d= e/lowlevel_sun50iw1/disp_al.c#L322 >=20 > Signed-off-by: Roman Beranek This is similar to https://lore.kernel.org/all/20230319160704.9858-2-frank@oltmanns.dev/ What's the story there? Also, how was it tested/confirmed? Maxime --zucvqkk7astyp3jt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZBnFrgAKCRDj7w1vZxhR xW1uAP9976ZsRECK0eQpWRQZgu8XVlengWG8ooPy6U2I7N47ZgEA6brbh4HoKGtV lwnpwiadCnsprq26idTI18GGtM6lrAY= =giCa -----END PGP SIGNATURE----- --zucvqkk7astyp3jt--