Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1532803ybg; Tue, 2 Jun 2020 12:35:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwlJFBlRWixjpa+y0/4AEOQ1NDbz7OqUuyVXhW+dysVDYoy5yHJPHAltTxL5geFRRTnfqQo X-Received: by 2002:a05:6402:14d3:: with SMTP id f19mr26764799edx.135.1591126508298; Tue, 02 Jun 2020 12:35:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591126508; cv=none; d=google.com; s=arc-20160816; b=l4P1TILE3hL4gRDi5z8bQZ9YBvuLRUf8O3le7/eKpfMXRQqBDQNxgK+MlKq07EwEuk z76v1t5oGEleK2FfZP568KKZbWlzWam2rQgstYcXVzJ4WQJaeKBIDGEQPxocRN61lBqA m35Qx1Va2FBWFnKAkygQGiEuFPp1s35UX53oginV3TfXJE9go6UGCX4DYwaCHTYxOcH5 N4oHDZhq4k5IBGVU5PnVLR5aWCPOQ8RM+VqAo6annyPlAOtphUSXsFvU0q2LwzGy8y2V N40/23j18HMpkNUSa3d3VhBzXQ8PkqZYARfKIwSCBatV8kZFfK3JLTVvASF3wtsd3muN utrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=IQbEYa0oW0Il8mjfCzR4SoEfB7EUDs8d+32KPqK0uG4=; b=VHHUoGq7YUrkRak/Q8Y6nIO0QkPO5jBkVPZ4sd0UW+X+qDB3abHc9jRFK3pTnDqEv6 yNNBH7Su6sqT8vB7jAR5xAMP0DzF4zU6jPEjv33GEaoNLW5PveWwtEBXINtQR7YHA713 MDZ6B3UdTfBSJrBCKhllTBC1T6SIaU0F+66A8HCr7U/OAUicJS+bunz4aH2KketYD37h o1GRcYEH3fIi0G40R7hAzUfRxPT+X0XokRmwck5ALynbF1vFHD/TolGwcEx6gWnU8zvs CwbKXiduR5dI2ZeQ/ykGmNhgYF8VUaq6d87YxHu4XxW0SnPEyBT8jNdxPsdW2CUTDsHI 3JvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@anholt-net.20150623.gappssmtp.com header.s=20150623 header.b=VG2CJ5t+; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 36si2075859edp.290.2020.06.02.12.34.44; Tue, 02 Jun 2020 12:35:08 -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=@anholt-net.20150623.gappssmtp.com header.s=20150623 header.b=VG2CJ5t+; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728070AbgFBTbv (ORCPT + 99 others); Tue, 2 Jun 2020 15:31:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726320AbgFBTbu (ORCPT ); Tue, 2 Jun 2020 15:31:50 -0400 Received: from mail-lj1-x243.google.com (mail-lj1-x243.google.com [IPv6:2a00:1450:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D4E9C08C5C0 for ; Tue, 2 Jun 2020 12:31:50 -0700 (PDT) Received: by mail-lj1-x243.google.com with SMTP id z9so3380351ljh.13 for ; Tue, 02 Jun 2020 12:31:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anholt-net.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=IQbEYa0oW0Il8mjfCzR4SoEfB7EUDs8d+32KPqK0uG4=; b=VG2CJ5t+FQePnvjuONDwr6Dql0NvazBNVRqadOsYgGBHsWUl15Ct8FtXwYihJnDz4P roesHC2nlZ1W+rf0yu/PrUqwzwy9amDLGR8maWs7F7LOLxt51R6tgnYvEXzcAPzEY5/C A3syAi0TEP9TFKGEiO5g+0hlkjSzNyG6QQG+3cF+LfRsQdyWyzrXblFKTUdRm84VvTRM 90fejGTEfsQCFOcBHCCd2S/eQs0TKYCv7mMunvHHl4cPh9vJDYMGI2Qj6UNQZhNYyl4A 6YKeBUUuielCOD2+N2SFexpH6ft4bMjwWpo58iuHfwApd6/fnY69lPErh6E1cNhXyw4o 9R7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=IQbEYa0oW0Il8mjfCzR4SoEfB7EUDs8d+32KPqK0uG4=; b=TcnwGhroKHSzTibcxSmslVOxPNG19IH87akTDUKAxFwRUbZtOFbaDwXYjtX85Xy0// 596Kv8BjCSA6WXNCSw4XQvIfPVesydstNoKp76hkC0sBJ4ADbTQX/vo2TcEh7EEbguXO 7j37BUdOa+8DrpkYRR1pOP+6cIVagtRKyjk/5ynY4Ua/+32RBIdzxpD3CeLpIfGLrGgw UlMgCeFJLi3i8EZO2EZCuQCnqfa0ufkB2cntbdHSy0oNO3qnvAo4tnH7y+q7pIuQKz2w HPYpM0RgltcsRr/yPxMFq6Jgx2NGrhsQNBG83CkmebvCLOq4U1G6dt0BeWVOGzMrkE0j DLWw== X-Gm-Message-State: AOAM532vu0WJD+zt4yb7bGXJdvUehlXygr61IavJ8NIm5PCGitOlYtX8 KmGJ4FaAkvPcsPFx7VjdC5TA1V1xiFBATjD4F9Da0Q== X-Received: by 2002:a2e:9147:: with SMTP id q7mr326807ljg.430.1591126308681; Tue, 02 Jun 2020 12:31:48 -0700 (PDT) MIME-Version: 1.0 References: <20200602141228.7zbkob7bw3owajsq@gilmour> In-Reply-To: From: Eric Anholt Date: Tue, 2 Jun 2020 12:31:37 -0700 Message-ID: Subject: Re: [PATCH v3 032/105] drm/vc4: crtc: Enable and disable the PV in atomic_enable / disable To: Dave Stevenson Cc: Maxime Ripard , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 wrote: > > > > > > > > The VIDEN bit in the pixelvalve currently being used to enable or disable > > > > the pixelvalve seems to not be enough in some situations, which whill 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 disabled 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 should > > 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. I'm more concerned with "make sure we don't regress pre-pi4 with this series" than "pi4 displays all work from the beginning"