Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5153590ybi; Tue, 28 May 2019 08:24:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxrPOVmxXQbGUhaW22SyOjPLddO0yeh6r3FNMxp86/fXgrKVjYBN5Tmjbm0bPfjckJuewGB X-Received: by 2002:a17:902:5c6:: with SMTP id f64mr134679721plf.208.1559057055775; Tue, 28 May 2019 08:24:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559057055; cv=none; d=google.com; s=arc-20160816; b=T1NpyBw0asS8DUxltaolGR5J+LZLMU2Sh8nFJzrdA9yshmWTWusc3/zKxmln8oEIyk UaHbxnHx/QZk7PJsOK1tYjmVUHvWQP2F8zmGpFNWtu3c0xHjw1GtrYQ3BFBHuthJ1apN jBXNqbJDg8NyRCLmL4Oy1MqCGUuvGQVyBlRnt2O2aJ7h19v8USII1zejuc6mBeCtuLrv o2mBlKNiQKnu4HW5HfknjMGTojz1rFkmK1KUFSQhC5v/GwKLT91njZOEnfgsPUucyFZ8 XgBxtBliqzdq/wRuefPNpxFyP0x01njnkWFW6xg0dcNqcwb43+nz6ztO9hR82lkE6wId lihA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=8cpsJ8nr+iuDrYZCRIGj8tpmK2W44Px/2BuNPEXQiJk=; b=Zdq+zMEGY2CwphqLWjayP2u1QUWzxhdlNF4nBJ8vKPqg4XKG0EK85GXNwLX5SNebIf TrKXfxiPG7bKXi5WNPe+dRXnGuCVylgMHWK8U6CUVuWh/cvG3ROiQ3eMPVwrczx2w387 S+HiQ5jCwTl40Tdt5W/DKnNcQrVnAeTlLoaCClHEF/ZaIllUlHXcLSxa469loA/XGEId JfPtKMenGX42EOpIS9zpychiyXicl3e3vasVGMvw4OjgajLV75I/hahdPW3gUNltXh2p 5Oqdkg5H8n3vosbAIVLyA25okKf3ENZ2elTnpFIf68IsvoXUbqL+nKxjXEXZIFgqqNXm e0Fg== 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 65si9957157ple.240.2019.05.28.08.23.59; Tue, 28 May 2019 08:24:15 -0700 (PDT) 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 S1727741AbfE1PUz convert rfc822-to-8bit (ORCPT + 99 others); Tue, 28 May 2019 11:20:55 -0400 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.51]:35232 "EHLO mo4-p01-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726698AbfE1PUz (ORCPT ); Tue, 28 May 2019 11:20:55 -0400 X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NMGH/zvwDCv+Ds=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.18 DYNA|AUTH) with ESMTPSA id j04dc1v4SFKPrJe (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Tue, 28 May 2019 17:20:25 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH] drm/omap: Migrate minimum FCK/PCK ratio from Kconfig to dts From: "H. Nikolaus Schaller" In-Reply-To: Date: Tue, 28 May 2019 17:20:25 +0200 Cc: Tomi Valkeinen , Linux-OMAP , Adam Ford , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , =?utf-8?Q?Beno=C3=AEt_Cousson?= , Tony Lindgren , dri-devel@lists.freedesktop.org, devicetree , Linux Kernel Mailing List Content-Transfer-Encoding: 8BIT Message-Id: References: <20190510194229.20628-1-aford173@gmail.com> To: Adam Ford X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > Am 28.05.2019 um 17:09 schrieb Adam Ford : > > On Tue, May 28, 2019 at 4:11 AM Tomi Valkeinen wrote: >> >> Hi, >> >> On 10/05/2019 22:42, Adam Ford wrote: >>> Currently the source code is compiled using hard-coded values >>> from CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK. This patch allows this >>> clock divider value to be moved to the device tree and be changed >>> without having to recompile the kernel. >>> >>> Signed-off-by: Adam Ford >> >> I understand why you want to do this, but I'm not sure it's a good idea. >> It's really something the driver should figure out, and if we add it to >> the DT, it effectively becomes an ABI. >> >> That said... I'm not sure how good of a job the driver could ever do, as >> it can't know the future scaling needs of the userspace at the time it >> is configuring the clock. And so, I'm not nacking this patch, but I >> don't feel very good about this patch... >> >> The setting also affects all outputs (exluding venc), which may not be >> what the user wants. Then again, I think this setting is really only >> needed on OMAP2 & 3, which have only a single output. But that's the >> same with the current kconfig option, of course. >> >> So, the current CONFIG_OMAP2_DSS_MIN_FCK_PER_PCK is an ugly hack, in my >> opinion, and moving it to DT makes it a worse hack =). But I don't have >> any good suggestions either. > > As it stands the Logic PD OMAP35 and AM37/DM37 boards (SOM-LV and > Torpedo) require this to be hard coded to 4 or it hangs during start. > This is the case for all versions 4.2+. I haven't tested it with > older stuff. Tony has a DM3730 Torpedo kit and reported the hanging > issue to me. I told him to set that value to 4 to make it not hang. > He asked that I move it to the DT to avoid custom kernels. I agree > it's a hack, but if it's create a customized defconfig file for 4 > boards or modify the device tree, it seems like the device tree > approach is less intrusive. Well, if this boards needs a factor 4 to be defined, it is IMHO 100 % correct to describe this in the DTS and nowhere else. Like minimum and maximum voltage of a regulator which is also very board specific. Unless it can be figured out automatically. If it turns out later that it can, I would assume the drivers can simply ignore the hint in the DTS? Just my 2cts without knowing details and having tested anything on our DM37 boards. BR, Nikolaus