Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp376679pxu; Tue, 6 Oct 2020 08:30:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw3NAaiC9uG/kPWn8AoOtYJ0IMqbNM85iSihQ9gAu/d+xh6wMKa/M1LItpvw5KNVMHrzAe3 X-Received: by 2002:a17:906:28db:: with SMTP id p27mr42282ejd.424.1601998206981; Tue, 06 Oct 2020 08:30:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601998206; cv=none; d=google.com; s=arc-20160816; b=DOc7kgZo07s+XAqY2IO23VDYsyRw9lYj+/HeM7UWFnLOPU72g+kwHK7AQT+q9VNvUW MdKlGhuR7w1Shu5hr9xmOFZ8H43FddxBk4whU2HJqumEPysr1UjmzVpd0+UYBSHANknV 2irSpPlgLEdpyA1bffQVHQtJODEujiNo8JrPClKA0HTwFMguyhWU9sfVdZxwX6CgKy1J pNyZWFhtQM8Oj5huxRJHqppw7Unv67wUhxHLm8135WHUt4r3qTExzt/0G6ZrViwnb/qB +EqKI70VjiSysLa0Jbt+I2nKMVwJmDOQ3QNUcaFmQaTYJR0sjLmzrrpVafolqoUObLVR npVg== 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 :dkim-signature; bh=XVvl+TcUjqRrvpH+Af1XcXoFBtYBObBimd5gmwU57Mw=; b=icq+FsyRoGUlQ3G3iFxSFsTcfrhTaQewXHC/Hkbjiz+sh8nLVTDJQxQ/yOQXT/4+eg wc+iIH6YcUbEh3GupHovXqmZSOKQisme91zYf5nr+0Ucx6YW1+6BGlUMuEkD2JXjWtEp VWQfR2mnRuLURegebEuBLaHbErLX6bHtkNmZSDEDTD1hLdFhcBilwlLYACbDlBSR2t1H c7jJvuchvfw8p5/5+y6NhENHoP5tzzY4X3h3+94ZJdyuw39llLD92/NSRoxDFaLIQv5O jzrs8MtIqcOwtuQXiLmWqplW48fSQ3/U6vYDSNtH0Uive+OL7smK9FBWcTtf5TwsqA2H SJaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=A6a59ePB; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=o0nzk1wz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt10si2258492ejb.461.2020.10.06.08.29.43; Tue, 06 Oct 2020 08:30:06 -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; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=A6a59ePB; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=o0nzk1wz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726128AbgJFP0a (ORCPT + 99 others); Tue, 6 Oct 2020 11:26:30 -0400 Received: from wnew4-smtp.messagingengine.com ([64.147.123.18]:54315 "EHLO wnew4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725906AbgJFP03 (ORCPT ); Tue, 6 Oct 2020 11:26:29 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 8DF8FB4A; Tue, 6 Oct 2020 11:26:27 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 06 Oct 2020 11:26:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h= date:from:to:cc:subject:message-id:references:mime-version :content-type:in-reply-to; s=fm1; bh=XVvl+TcUjqRrvpH+Af1XcXoFBtY BObBimd5gmwU57Mw=; b=A6a59ePBVWis3JnCMLKaoEu4oiB/c7FqU16aXuN+a5U ByIlUcyZIubF3xEDmtZtO7VTivlUrIWx6x+lXhVBIu7GB2jygM/4IdnD3RoJb175 gq6NsATT8cmmecH+JTu7nQNmK5X6T+wO+ooEZ8FRpqpDuumnbsQ3N3Og3JWGAWjl 7L27z3I7JeubaR0F46itiboMEzrQ6ZHRh9bXghut9jrONtc0lDsAFPMobvE8Opfx n5lwo0Fc21YcK26Dz8bdZIRU9I0gn7weywCm9KZN8FDO1Z4VepPS5blLSOS+Ravp Uzkb8g82FFIpDuuVjHCtkSveDbvBFr+7ucdCdFsI6Ag== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=XVvl+T cUjqRrvpH+Af1XcXoFBtYBObBimd5gmwU57Mw=; b=o0nzk1wz4WX3tcF2/7nutH XMS26VsqE4V8B+bt4zdCs0aG3D8UH7Y5w28EFUfnZbri4ruMPPOZhU17cQ0V8t0H ssO4xQlwG4NYr/UUicrGn2Jylg2N4xT7hEyrAiKCYQp/ALBNl+PsNXR4N7VMZ4iQ T9j83OT/ObTIIUx8+KXAvNTenD5DJ1pFzqgKT13FxxmX2ubHEGa4yw0nEeCNyamI /ictGq4RWmyvVeNOXF7ZAi19Sr/M6diWRDk3pqherYmCPYR+XX+qzPPl81Y0npjX 8Ny3UasbvM1Vghxus21gzqPkYDyJM5AM4unghxYMuGzYoY81GiMw7TrPMlwHYRyA == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrgeeggdekjecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesghdtreertddtvdenucfhrhhomhepofgrgihimhgv ucftihhprghrugcuoehmrgigihhmvgestggvrhhnohdrthgvtghhqeenucggtffrrghtth gvrhhnpeelkeeghefhuddtleejgfeljeffheffgfeijefhgfeufefhtdevteegheeiheeg udenucfkphepledtrdekledrieekrdejieenucevlhhushhtvghrufhiiigvpedtnecurf grrhgrmhepmhgrihhlfhhrohhmpehmrgigihhmvgestggvrhhnohdrthgvtghh X-ME-Proxy: Received: from localhost (lfbn-tou-1-1502-76.w90-89.abo.wanadoo.fr [90.89.68.76]) by mail.messagingengine.com (Postfix) with ESMTPA id A19393280064; Tue, 6 Oct 2020 11:26:25 -0400 (EDT) Date: Tue, 6 Oct 2020 17:26:23 +0200 From: Maxime Ripard To: Dave Stevenson Cc: Tim Gover , Stefan Wahren , Nathan Chancellor , Nicolas Saenz Julienne , Eric Anholt , LKML , DRI Development , Hoegeun Kwon , Chanwoo Choi , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, Phil Elwell , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 80/80] ARM: dts: bcm2711: Enable the display pipeline Message-ID: <20201006152623.sjc3jxagj4wh7g5f@gilmour.lan> References: <20200929221526.GA1370981@ubuntu-m3-large-x86> <20200930140758.gummt3umouva3wyu@gilmour.lan> <20200930163823.GA237050@ubuntu-m3-large-x86> <20201001064843.dlewcu3b7dvqanyy@gilmour.lan> <20201001085402.t6mzzwzplviunhoc@gilmour.lan> <20201002151954.wazqc5riesdomlpx@gilmour.lan> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="2vhbw75wrhkhefhs" Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --2vhbw75wrhkhefhs Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Dave, On Fri, Oct 02, 2020 at 04:57:05PM +0100, Dave Stevenson wrote: > Hi Maxime >=20 > On Fri, 2 Oct 2020 at 16:19, Maxime Ripard wrote: > > > > Hi Tim, > > > > On Thu, Oct 01, 2020 at 11:15:46AM +0100, Tim Gover wrote: > > > hdmi_enable_4k60=3D1 causes the firmware to select 3.3 GHz for the PL= LC > > > VCO to support a core-frequency of 550 MHz which is the minimum > > > frequency required by the HVS at 4Kp60. The side effect is that if the > > > display clock requirements are lower than 4Kp60 then you will see > > > different core frequencies selected by DVFS. > > > > > > If enable_uart=3D1 and the mini-uart is selected (default unless > > > bluetooth is disabled) then the firmware will pin the core-frequency > > > to either core_freq max (500 or 550). Although, I think there is a way > > > of pinning it to a lower fixed frequency. > > > > > > The table in overclocking.md defines options for setting the maximum > > > core frequency but unless core_freq_min is specified DVFS will > > > automatically pick the lowest idle frequency required by the display > > > resolution. > > > > I'm wondering if there's some way to detect this from Linux? I guess it > > would be nice to be able to at least detect a broken config to warn / > > prevent an user that their situation is not going to be reliable / work > > really well (like if they have a 4k display without hdmi_enable_4kp60 > > set, or the issue we're discussing here) >=20 > The main filter in the firmware is the parameter > hdmi_pixel_freq_limit. That can either be set manually from > config.txt, or defaults appropriately based on hdmi_enable_4kp60. > Under firmware_kms [1] I read back those values to use as a filter > within crtc_mode_valid[2]. > I can't think of a nice way of exposing that without the vc4 driver > gaining a DT link to the firmware, and that starts to get ugly. I had in mind something like if the clock driver can infer that somehow through some the boundaries reported by the firmware maybe? IIRC, hdmi_enable_4kp60 will already change the max frequency reported to 550MHz instead of 500MHz Maxime --2vhbw75wrhkhefhs Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCX3yMnwAKCRDj7w1vZxhR xR/iAQD6pwgr2GpbJCVGim38pNOLxZo5Rqj2JwUV2k0DX+7aogD7BRzKIBKaqme7 8XvNoJP3M2U/v4jVWse/ISyU9jMM/Ao= =Bl+M -----END PGP SIGNATURE----- --2vhbw75wrhkhefhs--