Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp560436ybg; Fri, 12 Jun 2020 08:38:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycytcQhHcTclh3rU2ABNOQBKBYjtyfH8OdLqhBv5HOPYh2guZtnWVQ3ID6UsLqG0eUpgf9 X-Received: by 2002:a05:6402:1216:: with SMTP id c22mr12622848edw.208.1591976300626; Fri, 12 Jun 2020 08:38:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591976300; cv=none; d=google.com; s=arc-20160816; b=nu2eiqqk/86SWYkYE4Oo6XHUhZBYi+QeMK7V9c5OjP7TGFZBa3qwE+zfhJ7IzASKSN jLUIeHHjwGwFnOkDDuQoFLiAZ+H3O7SvurU0Vt/86U9N9/w3PiwdCol251oU1LivQsxF On3V7Gjhrf/wWKANIyA1XdJozkNGnAwGb4UnXa+1puaCYWD5sWGxc6e7HCsNrtf0Wm44 tfigUjNoOVlZWnEUMYULRoEcr3wn1iA5CxDQHkMvxi0IAG/LQUF+QtdKfSqiuLhH/R+H KOYEB+zyiitm566D+V+3IiYVErC84kGo7fmbu1pYTGx8PCLxdo4FZqw/9c8oAiPwJicq ZEtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:dkim-signature; bh=i46wPfrcUIR0bEAZlAykfvGtcc21AKB8ziEcZQaaqkw=; b=OGr245GQpua0cmHqz7K/cvlrbl7+ztJ+0HDJO473eGyPWkIvrjSw261ja99arhZyjD SzyspbG76tA6VnzpZ1qpnvjnQhJlzJT8TNAAXfGfxlnErvo+oVkKHZInYgvV1PjLiR3t fh6NL9XQMcsEfc7wAM3NCf46r9glUNMFrgpqP1QEhHlcXLvzYLiNdRFZJLZWl6bsvJFi PI3PxVtWcFwycksXSbYBeArIDEVwkATcQyxvdycDE7B3U0iucUBSvYfJF3XQw/OoNTep DTyNv6ZENXr8+1Fi4CmtdYrlL/hdk1EUegommnpPgtqfkkgDwAVr4zj6HAztL7qv7y2F m5zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm3 header.b=BnwR7wP2; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=X5b6o91S; 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 k13si4046802edh.53.2020.06.12.08.37.57; Fri, 12 Jun 2020 08:38:20 -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=fm3 header.b=BnwR7wP2; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=X5b6o91S; 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 S1726329AbgFLPgD (ORCPT + 99 others); Fri, 12 Jun 2020 11:36:03 -0400 Received: from out4-smtp.messagingengine.com ([66.111.4.28]:57511 "EHLO out4-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726085AbgFLPgC (ORCPT ); Fri, 12 Jun 2020 11:36:02 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 938105C01A5; Fri, 12 Jun 2020 11:36:00 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 12 Jun 2020 11:36:00 -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=fm3; bh=i46wPfrcUIR0bEAZlAykfvGtcc2 1AKB8ziEcZQaaqkw=; b=BnwR7wP2lY41wkLEtaL3I1g01xCASKpwAAI7z2XF24F rNBvnzNRsYm2jdjA32TOQelLkZd9bPZ2PHiC5tU/o4VqgpnjIytRWO1aKF4gK2y8 UZuY9GiJEfq041OS0ipEUk8lRFc8yNBEPbwRY/SNZlWvxPtCY38pcojsDRiX1Bio uiNxXDU0e5KPmslLxHvGhKr6mAuqCNm/JR0gGm8PHzV3IDMHKrs1xNJYppql9XRw NlpZ/zNQhojPrcwRsWkuaKbpHw2sXnZ1PIBCnIEgqz1RAIly95UXujl5xPquwj26 unquYGFtTijdtxd/vw/sOU81LST4Cl190fxQVyxrSbA== 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=fm3; bh=i46wPf rcUIR0bEAZlAykfvGtcc21AKB8ziEcZQaaqkw=; b=X5b6o91SO/aDmqT6iWePhe lDkgjaJJ59dVQoB8qP/jnAvNqt4nMhengMrO1EPhIDRmaMRDz28TslaqLtbvJyKL bD02iLd6HyakJTRgqTQJIn2yVeXWGgg/8vOlqgP4oXL/Em4oRT4E4p6LZ2DUrEQP I6b8+fvFWqEIgTuf3nMgUOujxY8RsRSAGNdwvQYTtj6mdNuDoyYzwGpQmnTLGehY n0f4O4EMaVgFOql3ddH4OWcJj5a1X1q0N+OfSMx7o3orjB+UijQqLAF0gl+Fabkd P1ttHEs3RJFFqgdkkY8mX51LkXJSmviMOOmm8XZaBKXBi2TWJbnEczTgwGsQk3kQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduhedrudeiuddgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehgtderredttddvnecuhfhrohhmpeforgigihhm vgcutfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrth htvghrnhepleekgeehhfdutdeljefgleejffehfffgieejhffgueefhfdtveetgeehieeh gedunecukfhppeeltddrkeelrdeikedrjeeinecuvehluhhsthgvrhfuihiivgeptdenuc frrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggthh 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 C39BA30614FA; Fri, 12 Jun 2020 11:35:59 -0400 (EDT) Date: Fri, 12 Jun 2020 17:35:58 +0200 From: Maxime Ripard To: Eric Anholt Cc: Dave Stevenson , Nicolas Saenz Julienne , DRI Development , linux-rpi-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, LKML , Tim Gover , Phil Elwell Subject: Re: [PATCH v3 032/105] drm/vc4: crtc: Enable and disable the PV in atomic_enable / disable Message-ID: <20200612153558.3ekadlu3e2qctvf6@gilmour.lan> References: <20200602141228.7zbkob7bw3owajsq@gilmour> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kjenvng7r4phiuyn" Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --kjenvng7r4phiuyn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Eric, On Tue, Jun 02, 2020 at 12:31:37PM -0700, Eric Anholt wrote: > On Tue, Jun 2, 2020 at 8:02 AM Dave Stevenson > wrote: > > > > Hi Maxime and Eric > > > > On Tue, 2 Jun 2020 at 15:12, Maxime Ripard wrote: > > > > > > Hi Eric > > > > > > On Wed, May 27, 2020 at 09:54:44AM -0700, Eric Anholt wrote: > > > > On Wed, May 27, 2020 at 8:50 AM Maxime Ripard w= rote: > > > > > > > > > > The VIDEN bit in the pixelvalve currently being used to enable or= disable > > > > > the pixelvalve seems to not be enough in some situations, which w= hill end > > > > > up with the pixelvalve stalling. > > > > > > > > > > In such a case, even re-enabling VIDEN doesn't bring it back and = we need to > > > > > clear the FIFO. This can only be done if the pixelvalve is disabl= ed though. > > > > > > > > > > In order to overcome this, we can configure the pixelvalve during > > > > > mode_set_no_fb, but only enable it in atomic_enable and flush the= FIFO > > > > > there, and in atomic_disable disable the pixelvalve again. > > > > > > > > What displays has this been tested with? Getting this sequencing > > > > right is so painful, and things like DSI are tricky to get to light > > > > up. > > > > > > That FIFO is between the HVS and the HDMI PVs, so this was obviously > > > tested against that. Dave also tested the DSI output IIRC, so we shou= ld > > > be covered here. > > > > DSI wasn't working on the first patch set that Maxime sent - I haven't > > tested this one as yet but will do so. > > DPI was working early on to both an Adafruit 800x480 DPI panel, and > > via a VGA666 as VGA. > > HDMI is obviously working. > > VEC is being ignored now. The clock structure is more restricted than > > earlier chips, so to get the required clocks for the VEC without using > > fractional divides it compromises the clock that other parts of the > > system can run at (IIRC including the ARM). That's why the VEC has to > > be explicitly enabled for the firmware to enable it as the only > > output. It's annoying, but that's just a restriction of the chip. >=20 > I'm more concerned with "make sure we don't regress pre-pi4 with this > series" than "pi4 displays all work from the beginning" I tested the DSI today on an RPI3, and I had to fix an issue with the HVS-PV muxing, but otherwise it works with this series. Otherwise, the HDMI and TXP work on the Pi3 too, I'll give a try to the VGA adapter on it next week to test DPI too. As a side note, my DSI display without my patches gives DSI transfer timeouts at boot, since at least (mainline) 5.4, I haven't tested further back. It just stalls the modeset for a while, but the display works fine after that. Does that ring any bell? Maxime --kjenvng7r4phiuyn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXuOg3gAKCRDj7w1vZxhR xRIVAQCQ9i9hYXPvUtEka4284eq9v67Twhyjfiex//nc2r4PIAD7BvQEVc4JW4id g0nVDJpdj1tkhinSfTe+fu1vNaG1fgU= =qQpW -----END PGP SIGNATURE----- --kjenvng7r4phiuyn--