Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp231685ybg; Tue, 28 Jul 2020 04:43:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMS3VgvlxZUsQ5F0IJJ5RXOoohjyggmz8mgT08Z+epnp+Cgi8+uXIX7zrAMKOG3fMoeFWp X-Received: by 2002:a50:afa2:: with SMTP id h31mr25973772edd.303.1595936584096; Tue, 28 Jul 2020 04:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595936584; cv=none; d=google.com; s=arc-20160816; b=sGW5uXhQkYwxxmYFLdfG6phsyCmOhegOxjaCzY+IdQVSlKkGhlAK5H4HnOGdMiztGq +tLmLWxuKEhsSriEVd/FqUoZBUEt7ZkdYAvPOf07aZD4Phsi4i1ysFs9rnlojlI//045 XsG7X9cMG5qGQ8RZGcWtQY8vvzL8gUadi6XXxM7vRIyHTmCSTiPjqVHzylRiFbDCqB1b rXaKKnbb680wSHlX0TvsP+jd+D5g66xDKXWJ13Adi9gCJxobXvUs3Ohs8pfNLhb7wieM 0MMOU44VxFzDDNEYVfS8uC3tjvm4u3IAMItD6A18wUQ40pCqSEkeRUohrfgL6Sz6Tl7+ oq+Q== 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=TT24vZnC4xOCdUpOmIAerDESvJeTmO8+8fod85enhmw=; b=yfqsRDrjslL5A9Yo7A9hcmKbqADSV2PhiNoqFloOG0lDA5j8eEBxrgIWEowDuXWg37 ADELWVxvm22p4GgTcvOFhmWCPX2pKqbnxsT3vtHMQwG42lNSUmnBzRnby+9qy+082ggY mo/aN0t/hAZ+D53oR7dI6lqWPK96iLJvIaIYZrf+jDmX1SnESuIV1o0Jx3lOQ5sXaeKb 2jbnZ0vbk0LXz3wEzZ9Rl07fxUpyAJnn2HaprCOlC8xkBIvx4atiKnTbdYRLt+w7fUQq B/2gzdCuCvNPzuRaOTCVVMpQiZHSidT51imCi+qGJ+9JZJanUE044bsCODkPWJ3y4doE 556g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=df7cZt6I; 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=raspberrypi.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id fx3si179894ejb.193.2020.07.28.04.42.41; Tue, 28 Jul 2020 04:43:04 -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=@raspberrypi.com header.s=google header.b=df7cZt6I; 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=raspberrypi.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729089AbgG1LmT (ORCPT + 99 others); Tue, 28 Jul 2020 07:42:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38060 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729060AbgG1LmS (ORCPT ); Tue, 28 Jul 2020 07:42:18 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DCCFEC061794 for ; Tue, 28 Jul 2020 04:42:16 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f18so17875914wml.3 for ; Tue, 28 Jul 2020 04:42:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=TT24vZnC4xOCdUpOmIAerDESvJeTmO8+8fod85enhmw=; b=df7cZt6I8hQuIl1XU7ttHu4TN5PR1P69UXn6jcfq0mJeliTervs8ge8M8D2wbyi4+u f3u21AIP4rNKufXo9ROZqH8Lj8kVdEnlNLO8ve9kHB6JBq1uwujo0fUL4um3GqE/sYUQ 8NvDtgJwDEbbFZcceKLKEQA2bGi3QvT2WZYzU0t+Tzj4hFnYG5NFCt+w4hi8zqMccP5D CQln4XVfU+gkL44eP7GRwnvZmGGhz/E2HJTucxx4+1Y7sE0U9C8HJ/9KJV7DeRNQz10m XBb0/rgDKA+nA7fNo4M7DnBaWbBEooj+JLGxEuLc6cEyTFwvp89apJctgBuPRR85vBdP VcZg== 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=TT24vZnC4xOCdUpOmIAerDESvJeTmO8+8fod85enhmw=; b=Kf7V3rNN+dxFZs6vLmtAvKYZQFA59hUofYiWDerHAlgGVxvbtJRtZM7FJhv5AOBlCl YDwGIoz0puWvo4xJo53lN9J3VFDXBKjMJ9XpKFk60MdicoZTloyq5nJXSS9UQeQXE5oM tGkUIhXuhrCG4w5cxBlAxNv6tPTb8WfPxE5MiuVhGuQFgY4SFRZPwjXBMkiaLGPqVxyr D9Qkb/vuK/95WMpxJH++qmhnlXezo/a4inORbt3QLNd1vi5a/BYRuESzkkomfP/yYqk/ 1U5fHJGTOEKl3dHTTCBI5vKLJI3VDnkp921a/cP7B+fh25Nebi4Z0QLYKnCvkUD/oNAj IO5A== X-Gm-Message-State: AOAM533icX136z7gQl+/xhYF5O3Jk7Y5w1mRnWILQXQp/OVpvGoa2wMi tUE/oyOfzZtLQO09LhDz6ad0qAdoJqZnvbN7aySc3g== X-Received: by 2002:a1c:1d52:: with SMTP id d79mr1167435wmd.82.1595936535673; Tue, 28 Jul 2020 04:42:15 -0700 (PDT) MIME-Version: 1.0 References: <596dac201108233446694a1014726c51843172c5.1594230107.git-series.maxime@cerno.tech> In-Reply-To: <596dac201108233446694a1014726c51843172c5.1594230107.git-series.maxime@cerno.tech> From: Dave Stevenson Date: Tue, 28 Jul 2020 12:41:56 +0100 Message-ID: Subject: Re: [PATCH v4 31/78] drm/vc4: crtc: Clear the PixelValve FIFO during configuration To: Maxime Ripard Cc: Nicolas Saenz Julienne , Eric Anholt , 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 Hi Maxime On Wed, 8 Jul 2020 at 18:43, Maxime Ripard wrote: > > Even though it's not really clear why we need to flush the PV FIFO during > the configuration even though we started by flushing it, experience shows > that without it we get a stale pixel stuck in the FIFO between the HVS and > the PV. > > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_crtc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/vc4/vc4_crtc.c b/drivers/gpu/drm/vc4/vc4_crtc.c > index 13fe0e370fb3..25a77cd46b28 100644 > --- a/drivers/gpu/drm/vc4/vc4_crtc.c > +++ b/drivers/gpu/drm/vc4/vc4_crtc.c > @@ -358,7 +358,7 @@ static void vc4_crtc_config_pv(struct drm_crtc *crtc) > if (is_dsi) > CRTC_WRITE(PV_HACT_ACT, mode->hdisplay * pixel_rep); > > - CRTC_WRITE(PV_CONTROL, > + CRTC_WRITE(PV_CONTROL, PV_CONTROL_FIFO_CLR | > vc4_crtc_get_fifo_full_level_bits(vc4_crtc, format) | > VC4_SET_FIELD(format, PV_CONTROL_FORMAT) | > VC4_SET_FIELD(pixel_rep - 1, PV_CONTROL_PIXEL_REP) | > -- > git-series 0.9.1