Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp477830rdb; Tue, 19 Sep 2023 00:42:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEF6Cf3spwWINTqKpITF4XBo7rPaZRpsN9YXWBtWurE47MnAOOVh5zKI2nIXggcw6o0sGzb X-Received: by 2002:a05:6a00:230c:b0:68e:3616:604a with SMTP id h12-20020a056a00230c00b0068e3616604amr2549836pfh.8.1695109362845; Tue, 19 Sep 2023 00:42:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695109362; cv=none; d=google.com; s=arc-20160816; b=0J/E05IejwsCPOL/ZtPSLNso2chy4IpEUAmJS1fGBOCjKricD3NKgxYcXjTLtBSVNV QzMAa4ADNEmeTwpKtLxHYF5Pdo93M1oyTNu4XtnVHUMSGPXd2k14QUFCJ38xE9dze5i+ 6TUI3BObMqiAn/OqxKZNtGQ+Xsy9zgh/HW3WRrKfWeajHWyoO18oHgpUf4lMbQeyW/Dh W6vHGmgZsyI9afR9neYM9MfIICaDDrJkL+kStYm6vJxwH4O/cU7xjh4+syzzxtgzssJF ScGrHUggjpgQc0s6KTWTTyw9VBp+U0ZwWjvalZRy/OcK8luZmIymWqadTAMiw/vtX14h qyAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=K/CCEQLfGgec2HfKP4kI3szqGJXJsj/NkOCSY7wCACM=; fh=ulqyHeNtl5yiw4vfej8lLXp1T5vuisA62lO8LobZOfc=; b=Go+Zz6Wez3b8aTfrEUESAYKRh01z0iXpa/KBqMd3yk3DifJkULt9sfPUleWLykqVXh u9NTM4bsmqQtfJjgsd8wFDrQiFMnxH/dYS0ClpldsauKZ77473g3nNTZHpjtPkBVoCU2 mNIFkSwJuv60wIYLv9xu7Ak9Ex2Sqcwbw5okMhIRk544Rik1NcQ3w20IBkJbTOeWSh8L PLtiHh7pybExX3mR6tdmO2EeSHaR7Q0KyqkBlSn/TcSlnGskR1KvwZZiVm6NlYmP1K69 W8AKuUVwJ6HNbCJN+AWsUNetzCrSHgl7H9riMgcHL+Xt4e9wDgFk4IwFrfolYIaFue++ LprA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FIWCsBhc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id g7-20020a056a0023c700b006902507d409si9698138pfc.174.2023.09.19.00.42.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Sep 2023 00:42:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=FIWCsBhc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 2A51780CC238; Tue, 19 Sep 2023 00:40:08 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231817AbjISHkI (ORCPT + 99 others); Tue, 19 Sep 2023 03:40:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231779AbjISHkH (ORCPT ); Tue, 19 Sep 2023 03:40:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EE9E10F; Tue, 19 Sep 2023 00:40:01 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 84182C433C8; Tue, 19 Sep 2023 07:40:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695109201; bh=K/CCEQLfGgec2HfKP4kI3szqGJXJsj/NkOCSY7wCACM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=FIWCsBhc7S6fqc6ADy3uTx3eaAdpdcYTDmt4/1DV/E4ACTcJ7tj8JzAoAFE/wH4jw GKpjxyhTUeUHrKIxynBEbDemlIddXqOs1i+sR4BY0pNEYaqrx4TAdnElujazcOdXnk Ffd7zDNRf/M34tzX0ZXMYWhCExs4DqhV+b2nDYEjaA65wh377k07HVdJcAzuvyySnO VpFIWU0Q6ZSgJQrAzsFDql1FfQncAO5n4whiMcYOmfZf6dBcujtBXoDh7wAgllqasr MJqNYkAGrMRWPr3xTcCQTnrr2117okVg9aoUXPooayvkJXkbdMG2NjVSUtWadwfC5e TtKo0pMJ3Snyg== Date: Tue, 19 Sep 2023 09:39:58 +0200 From: Maxime Ripard To: Benjamin Bara Cc: Frank Oltmanns , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Michael Turquette , Stephen Boyd , Russell King , Abel Vesa , Peng Fan , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Benjamin Bara , Adam Ford , Lucas Stach Subject: Re: [PATCH 00/13] imx8mp: first clock propagation attempt (for LVDS) Message-ID: References: <20230918-imx8mp-dtsi-v1-0-1d008b3237c0@skidata.com> <87fs3bbdjb.fsf@oltmanns.dev> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="24bhmfbcnblmpqxn" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Tue, 19 Sep 2023 00:40:08 -0700 (PDT) --24bhmfbcnblmpqxn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 18, 2023 at 08:05:48PM +0200, Benjamin Bara wrote: > Hi Frank! >=20 > On Mon, 18 Sept 2023 at 19:24, Frank Oltmanns wrote: > > On 2023-09-18 at 00:39:56 +0200, Benjamin Bara wrot= e: > > Thank you very much for including me in the discussion. If I understood > > Maxime correctly, your proposal is close to what he was suggesting in > > the discussion you referenced. Unfortunately, it doesn't cover the > > rounding aspect (which you also mentioned in your cover letter and the > > description for clk_detect_unintended_rate_changes in patch 7. I've been > > pondering the last three weeks how to find a good solution to this > > problem, but so far haven't found any. >=20 > I think if we stick to the idea of always enforcing the exact "typical > rate", we cannot avoid physically impossible cases. IMHO, it might make > sense to add a set_rate() function with a "timing_entry" (e.g. used by > display_timing.h[1]) to the clock API, which gives a suggestion but also > defines the "real" boundaries. This would provide a shared parent PLL > more freedom to provide a satisfying rate for all its children. It's definitely something we should do, and I've wanted to do that for a while. The clock rate is not the only thing we can change though. The usual trick is to modify the blanking areas to come up with a rate that matches what the hardware can provide without modifying the framerate. It belongs more in a KMS helper Maxime --24bhmfbcnblmpqxn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCZQlQTgAKCRDj7w1vZxhR xSZrAQCXDBYBR1qegeYM/FX3JRolA9OAusZu69+JCObLx9va1wEAvh7wvzcpJ5z7 D8FLajZsctnmmyoJ2o/3IGxHtUP/ows= =D/La -----END PGP SIGNATURE----- --24bhmfbcnblmpqxn--