From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BFA05C4361B for ; Tue, 8 Dec 2020 07:55:24 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B54F23A5B for ; Tue, 8 Dec 2020 07:55:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B54F23A5B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:Date:Message-ID:From:References:To:Subject:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=g0xXpSFPxLxZ/eDpOO61QqvRZKq6V3fDFl4N2XvoCKg=; b=GVTS9Dvome1LPk+pk0/t7fZ19 XQLky94c40E+1QIS0vX7oKqgcU8JDPKFM/Yohh2n3RBJEVcH0J+5RLc1Q54F7hjq86lq4Yq2JwKx/ NMqoquqzUDTCdgM8Ye/+5/T5S7iUwdsni6hhCpnJnHGMuJ0Tq/a2nKcM6PihwTtgDewAKEGgj7U/B et+ApK2vUfSCL2mtvleg4CdJR+3bfE36dmHgqESK9FTFUuzh+0z6AVZmApRK5adoW3mRDIi2ioKxs qNKeSyvkS8OFHKEJxy6OEZbjGT6aySjR2w0Cc4arcjgj+WdtClkGoG+kgMMZ0Fevxgkfewkxrf8Z0 ixc/1bpbA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmXp8-000255-1x; Tue, 08 Dec 2020 07:54:14 +0000 Received: from mx2.suse.de ([195.135.220.15]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmXp4-00023p-HS; Tue, 08 Dec 2020 07:54:11 +0000 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 97AB7AC9A; Tue, 8 Dec 2020 07:54:08 +0000 (UTC) Subject: Re: [PATCH v5 3/9] drm/vc4: hdmi: Take into account the clock doubling flag in atomic_check To: Maxime Ripard , Daniel Vetter , David Airlie , Eric Anholt , Maarten Lankhorst References: <20201207155719.17149-1-maxime@cerno.tech> <20201207155719.17149-4-maxime@cerno.tech> From: Thomas Zimmermann Message-ID: <3142865d-e3c0-686e-5bb0-865d722b770e@suse.de> Date: Tue, 8 Dec 2020 08:54:07 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <20201207155719.17149-4-maxime@cerno.tech> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201208_025410_807413_0B2125A0 X-CRM114-Status: GOOD ( 21.21 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, dri-devel@lists.freedesktop.org, Dave Stevenson Content-Type: multipart/mixed; boundary="===============7871892475166664862==" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============7871892475166664862== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="e2iJc3jLZ3Pvn7SYbmATfcXNjAF26pTtX" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --e2iJc3jLZ3Pvn7SYbmATfcXNjAF26pTtX Content-Type: multipart/mixed; boundary="YZPhFobXpsc2amL0yTpwq2G1083ckYe6Z"; protected-headers="v1" From: Thomas Zimmermann To: Maxime Ripard , Daniel Vetter , David Airlie , Eric Anholt , Maarten Lankhorst Cc: Dave Stevenson , bcm-kernel-feedback-list@broadcom.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-rpi-kernel@lists.infradead.org Message-ID: <3142865d-e3c0-686e-5bb0-865d722b770e@suse.de> Subject: Re: [PATCH v5 3/9] drm/vc4: hdmi: Take into account the clock doubling flag in atomic_check References: <20201207155719.17149-1-maxime@cerno.tech> <20201207155719.17149-4-maxime@cerno.tech> In-Reply-To: <20201207155719.17149-4-maxime@cerno.tech> --YZPhFobXpsc2amL0yTpwq2G1083ckYe6Z Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: quoted-printable Am 07.12.20 um 16:57 schrieb Maxime Ripard: > Reported-by: Thomas Zimmermann > Fixes: 63495f6b4aed ("drm/vc4: hdmi: Make sure our clock rate is within= limits") > Signed-off-by: Maxime Ripard Acked-by: Thomas Zimmermann > --- > drivers/gpu/drm/vc4/vc4_hdmi.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_h= dmi.c > index 5a608ed1d75e..a88aa20beeb6 100644 > --- a/drivers/gpu/drm/vc4/vc4_hdmi.c > +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c > @@ -796,6 +796,9 @@ static int vc4_hdmi_encoder_atomic_check(struct drm= _encoder *encoder, > pixel_rate =3D mode->clock * 1000; > } > =20 > + if (mode->flags & DRM_MODE_FLAG_DBLCLK) > + pixel_rate =3D pixel_rate * 2; > + > if (pixel_rate > vc4_hdmi->variant->max_pixel_clock) > return -EINVAL; > =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 --YZPhFobXpsc2amL0yTpwq2G1083ckYe6Z-- --e2iJc3jLZ3Pvn7SYbmATfcXNjAF26pTtX 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+AFAl/PMR8FAwAAAAAACgkQlh/E3EQov+Ao VxAAvMZkXw4wiqgYEOqFTHz5HdQmbhBRoAXPWdxoVorJ9ilXYae8vTQ6sX8xJvHuxNXJv7I0P+zi bmcCyy3olQQ5byPOjZHDI3JJw2rs8xm4eLyYSaFpfG6sbnFvDI6wUv7Stc/XXS/+Uo3Y/Bkd9kfg LRFaYOavS48jgVF9VJyB3gyK8xLvMz/9zMQ7X/V3usix2BJw64H5upksJf4KNir+XeaUr52215tA xlrGjDMxIdibzhHiJPf6FTL02TkP64oF6x93PlXhXA9j61ROaFt2c99r0s8rY18PG4w3pr6VFoA7 lLHGjx4cwM1l7R7xogYyjEkGjGZKqjbgO5dHyPM5Y4d5HeDWQgS54VU9O7CHRAgGnFSVfcyx2hTS JsCvKMpHjlgyznGJDs4LXow4AKfz5WTbAdmZAp+QcGQH5hnC/iXcK5EhxK7cXdW+IOAtGC4PhJQv TeRX27uqe5SX+WnLWTLn1oObKg0HGyG8cz1s5pDe6OnU4ZQE+pVqUaLNnejrhZfB1ua6ZbgLG9fi 1l1ugtFKwbHRcsy1DvzJc21142rbFZjdNkIH0pU0TTwAL5Xu5GwmG+o01v4aNohUHBW+nBuDz7Yy pxi0T9IAJzeJ3rvUwo/BmttcOQ5WJH4kleHS4tZGlOjRDmFbWVB9pen6do604oBduMhnr9u2KNvJ aEY= =8zSR -----END PGP SIGNATURE----- --e2iJc3jLZ3Pvn7SYbmATfcXNjAF26pTtX-- --===============7871892475166664862== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel --===============7871892475166664862==--