Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp681765pxj; Fri, 14 May 2021 12:59:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJygbiPd6R6qwfJGDMurvu4DcrXcAz246ecU3gxuWs0nRpsFV8mawNf/q260woBA3WZO9zR7 X-Received: by 2002:a50:fe19:: with SMTP id f25mr58254199edt.341.1621022379849; Fri, 14 May 2021 12:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621022379; cv=none; d=google.com; s=arc-20160816; b=xwhUkTX5dCgzRSLx1EyQ51LmBDinDHilPhFsTnVb8Wa/WDcLhuFB0twU3P+5TLKjnF EEOh0MS2FzswQRsExOJpwmHTX2UN3HoYsRkDkmfpdBUcnYB7mDqydfz146qiOnwdiHLN nx0wJy4I4Or5L4+vJ0YQjzD7Xc4Flf2ObP43w1xzmqC4bCk4nXR476lK3wmYgZ2lcQJj h56xediceGTLuljEY/xqEy339bnCRuPcl6P5i+wIH7CqiXZ4jx3kydAJBCkguGoPPGUV wPsGQvCpDyBr73OMIWJ2S0MK0eVcDH//Un/CSBAC3+Zgk/AJQw6+yUeP4c8rELOKDUbE iPHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=g3FrAjKLGGTvh09HjxbmLv3IKGgc1Pc+HL+sX2ve0eQ=; b=vVySd/IrfBZ6l1xaU7RFsZ0CTikr5HBnfRKwTxvYQwZeDl55sHqPeNC7pUGsg+2g8S 0Ai2C9j8sfk2WSEKJXAcQansdgZhqAuAcasv0TEJ8n8yvsOWC4zooimSBlIKdZ8v1oLU K2nuzcSQDbu8SL8JKleA0ANBoHIihGM+m+/ml9veL4yU7skcOJJPrY3pPvw9uaLlxoJd keTmHkz5LRGPT3qJ0qtYuiBVBRBH2g5+h1HWPYjNzBCU704bjsz8vFTtUqwW6xzNXW4n g8pHC6vWwh/s5b0DOoh5ZclrEldIV0h89ZsWoE8gm/iNbAFe59k7x2awvY3jzmOPtRI7 4zLQ== 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 bx6si6817158edb.419.2021.05.14.12.59.16; Fri, 14 May 2021 12:59:39 -0700 (PDT) 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 S230478AbhENR1n (ORCPT + 99 others); Fri, 14 May 2021 13:27:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:50030 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230230AbhENR1m (ORCPT ); Fri, 14 May 2021 13:27:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id ADD97B05D; Fri, 14 May 2021 17:26:29 +0000 (UTC) Subject: Re: [PATCH] drm/ingenic: Fix pixclock rate for 24-bit serial panels To: Paul Cercueil , David Airlie , Daniel Vetter Cc: linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org, od@zcrc.me, dri-devel@lists.freedesktop.org, Sam Ravnborg References: <20210323144008.166248-1-paul@crapouillou.net> <6DP1TQ.W6B9JRRW1OY5@crapouillou.net> From: Thomas Zimmermann Message-ID: Date: Fri, 14 May 2021 19:26:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: <6DP1TQ.W6B9JRRW1OY5@crapouillou.net> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="G7VCp2Z0I1tFZjwjRdIoitLmgxDDw7plp" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --G7VCp2Z0I1tFZjwjRdIoitLmgxDDw7plp Content-Type: multipart/mixed; boundary="OhnXwSyToQ4awsPKWuJhB0YdMEH22aaoz"; protected-headers="v1" From: Thomas Zimmermann To: Paul Cercueil , David Airlie , Daniel Vetter Cc: linux-mips@vger.kernel.org, stable@vger.kernel.org, linux-kernel@vger.kernel.org, od@zcrc.me, dri-devel@lists.freedesktop.org, Sam Ravnborg Message-ID: Subject: Re: [PATCH] drm/ingenic: Fix pixclock rate for 24-bit serial panels References: <20210323144008.166248-1-paul@crapouillou.net> <6DP1TQ.W6B9JRRW1OY5@crapouillou.net> In-Reply-To: <6DP1TQ.W6B9JRRW1OY5@crapouillou.net> --OhnXwSyToQ4awsPKWuJhB0YdMEH22aaoz Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 13.05.21 um 14:29 schrieb Paul Cercueil: > Hi, >=20 > Almost two months later, >=20 >=20 > Le mar., mars 23 2021 at 14:40:08 +0000, Paul Cercueil=20 > a =C3=A9crit : >> When using a 24-bit panel on a 8-bit serial bus, the pixel clock >> requested by the panel has to be multiplied by 3, since the subpixels >> are shifted sequentially. >> >> The code (in ingenic_drm_encoder_atomic_check) already computed >> crtc_state->adjusted_mode->crtc_clock accordingly, but clk_set_rate() >> used crtc_state->adjusted_mode->clock instead. >> >> Fixes: 28ab7d35b6e0 ("drm/ingenic: Properly compute timings when using=20 >> a 3x8-bit panel") >> Cc: stable@vger.kernel.org # v5.10 >> Signed-off-by: Paul Cercueil >=20 > Can I get an ACK for my patch? Acked-by: Thomas Zimmermann >=20 > Thanks! > -Paul >=20 >> --- >> =C2=A0drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 2 +- >> =C2=A01 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c=20 >> b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c >> index d60e1eefc9d1..cba68bf52ec5 100644 >> --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c >> +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c >> @@ -342,7 +342,7 @@ static void ingenic_drm_crtc_atomic_flush(struct=20 >> drm_crtc *crtc, >> =C2=A0=C2=A0=C2=A0=C2=A0 if (priv->update_clk_rate) { >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mutex_lock(&priv->clk= _mutex); >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 clk_set_rate(priv->pi= x_clk, >> -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 crtc_state->adjusted_mode.clock * 1000); >> +=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 crtc_state->adjusted_mode.crtc_clock * 1000);= >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 priv->update_clk_rate=20 =3D false; >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mutex_unlock(&priv->c= lk_mutex); >> =C2=A0=C2=A0=C2=A0=C2=A0 } >> --=20 >> 2.30.2 >> >=20 >=20 --=20 Thomas Zimmermann Graphics Driver Developer SUSE Software Solutions Germany GmbH Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany (HRB 36809, AG N=C3=BCrnberg) Gesch=C3=A4ftsf=C3=BChrer: Felix Imend=C3=B6rffer --OhnXwSyToQ4awsPKWuJhB0YdMEH22aaoz-- --G7VCp2Z0I1tFZjwjRdIoitLmgxDDw7plp Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEExndm/fpuMUdwYFFolh/E3EQov+AFAmCessQFAwAAAAAACgkQlh/E3EQov+Di Gw/+PpBVTvAcF4ltDId9QyywkeJ/xdvRf41hqgazerZAWctCXWwOVIIAYn5lHcazl/dL4olLKNsO F3eD7Si7RWmXe4+b2NqaweIesaDafGK4vdcS4mHS4JVHMkd1DhCxdwpy3uBbW5ZNXOv5TJldB3Jt Ikm2sm6psm3h5D2li+j6ew6qcVxK+3Cp8uVvHp6RH4cEcOIwbWZp/B4H1P5tMDzq7lpvjGYUQH3H MEwy8RYfX+igmRI9rdVXV/hEfBNOq1gLBmZQgGQR1EnRgL/rRTJ2AFci1NddETnMwuiOdpY6A0DS XK+Iy+XtUozzkJ8TO2rjwo/NyQYB3tvpnJJ6kkxHpWaowztqqIjrOL5snrw+jhqu7+EwJikbrPm3 AXBEgwFz2/+Dk28We1onnRn6MIEC+0iy08yE+E67iCb0JXw+CiLadtqSVtzw9qNebMFn8vEjz2if 6vv6bCWk2ae4LKh5LENpWI07WvzOWnzuDn0jUFa6P1yyx2AMgKd9tot0/p6MxX3oD/LY/b9aIXSG LzGFncU3gh/e2h+vUwzkb1coE2cgF+j5HIj0ot0qNJIAyoqUCN3GYBvcKr3nSUZwAv9J3aRmCtmY uPetTQRJH4psx/+oI09jkt4/Wn/kxlLUoB7a/JJvyMWEC+9FkKhQntLEdJasGd6tVP1OySrrCQGv +zo= =JL3k -----END PGP SIGNATURE----- --G7VCp2Z0I1tFZjwjRdIoitLmgxDDw7plp--