Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp193537ybg; Tue, 28 Jul 2020 03:39:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYO4Vhs3R2bV1m3csILzUw4jV8zjf/UKRni3ljx5DlW63mThowpi/PGbAcsi6c2P+vShO1 X-Received: by 2002:a05:6402:cb3:: with SMTP id cn19mr26415035edb.368.1595932752087; Tue, 28 Jul 2020 03:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595932752; cv=none; d=google.com; s=arc-20160816; b=AmMcvXvpn5M/s27MBt44etcoGR496Dg8LTpswFY7a6gKg6+LSXbiG5qFGggQA95ZPb emc85rK3GaTSvRXGQNRgdfT/qVO1aqCT2/x2RqaIW3UETnBTK16V6OI8EfyCSOeysynq EUba7Ck+UbEIO3kUZfkXBSdLeQalVAtjgBKt3fseP3+UmwWplYkuKFTbDxELNzYJ/G72 lTMHT4kIXx1z4fgiqbsu1mLPDo1gahO/8Nspl51zvLycoXxSnxRZQpMBZ9PE6FyuzeWG ocufg+4/L5x+oBmH9+cGuG8q0W+/Db2YZuIGiH/h2nLUWuI1LpvMVqGniQXRwjQ4qljc LkZg== 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=OZjzAoiWn1HSh0Y0nkJfSNiw0UIfvD0fsceTUq2RuYk=; b=YPUFKYqA/Zh+vF7nUPyvZUIcuGjsKuFplXD2LYbshIPtfNpbiYIzvGWJlt4HHrqHPy y4g4IRzaCXpGTGH4zIfNw2dnL4JxcR4LD/QN1MR1/omziorLtNtSmsJ/v8OZOZp/UoYC HXNaS4DygAkPoPLcFuAz9rlyMrMP8ijRMdNmMluj47hEck1fkKlEWyX4wud+zbc1z5fZ SbIPQDaPRvDphed+/tfmkTxoGKr7PviZF0p60UvieiPTAX8lqtnqoWIXKbeNtcRF9jDe l22dFSQjknAtJdGOX1XKSRC0MPLAw4FX9QdMMV9V/14xeH1t6JnU6mXdE0Tt3FPhyZ3L g4bQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@raspberrypi.com header.s=google header.b=a51eZGbm; 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 t17si7765313ejs.635.2020.07.28.03.38.49; Tue, 28 Jul 2020 03:39:12 -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=a51eZGbm; 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 S1728650AbgG1Kht (ORCPT + 99 others); Tue, 28 Jul 2020 06:37:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728580AbgG1Kht (ORCPT ); Tue, 28 Jul 2020 06:37:49 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3F40C061794 for ; Tue, 28 Jul 2020 03:37:48 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id b6so17777292wrs.11 for ; Tue, 28 Jul 2020 03:37:48 -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=OZjzAoiWn1HSh0Y0nkJfSNiw0UIfvD0fsceTUq2RuYk=; b=a51eZGbm6AIsMwVK6quzrGdo4namqdd/119nT+FhzgTCI1cP2ZXE9xyzrK/Dibox96 YDt4CzGvuA8BFkl6016hNTW65d2MdXct9rnADduF3Tm7F1000TWXFtnBDgvhHzvpINcC x/2/TT7wO4hqryvt80wM3Bz/a0BF49Te3UREiFw+98qdgckjXAUNXeR7LAyM563LdL8H t0fRLSOS82X2PRwXm7F3OXswaZIJyyg6VWwUX43rrEsTpA/0A0ZAoAFxwU9Wify7tz9R rGgFpoLWs5DorYH8Q4HiE3O/45ZMgSWEIEr6RgJq78b9FKZQ6Z1QbbH6ZEhxt6tbGNLF 56vA== 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=OZjzAoiWn1HSh0Y0nkJfSNiw0UIfvD0fsceTUq2RuYk=; b=RkzPvYZYvDsk4wQP5hVGkQTVXWtlH5U8Rygh8FN2IZc7p8PJR0HPR88p7c3nJI0qSX WLVUUs5ICkdUEcpExytdf0RTPs2O2mQWKFJxhpdK5sXpW/1PiwPn6jmSn7RHhopTrzjU T14ryIJjUK7eOXybYlEXhweIp/3/Wr1QdAoPw0OvU9S5LmH4HRq0jt0ThHVR+u4hzgdH sG9BAUPRrxQWE6SH5rvgZc/DJ6QpTHJJW9r9xjmRE/S3UTwcpPNSUbEvMcUnWAa37ueT JWmTXAUSJshZjsr4UOPS/2GbTU+lTzynVNikPb66AM6hnZeh3RFGaKk0OW7AqDX2yaFS AkLA== X-Gm-Message-State: AOAM530heZirCgrC9UsZHd3/pjjRX3HaUaWCLHhSaLAsClA36k3/IOR5 ud9sy+QOrnR5ackc6tUPfJoOKrXhOAZUvkFGLvX+fg== X-Received: by 2002:adf:fdce:: with SMTP id i14mr19075246wrs.273.1595932667516; Tue, 28 Jul 2020 03:37:47 -0700 (PDT) MIME-Version: 1.0 References: <1fa32b771828098365162a24654c7bbab805500e.1594230107.git-series.maxime@cerno.tech> In-Reply-To: <1fa32b771828098365162a24654c7bbab805500e.1594230107.git-series.maxime@cerno.tech> From: Dave Stevenson Date: Tue, 28 Jul 2020 11:37:31 +0100 Message-ID: Subject: Re: [PATCH v4 24/78] drm/vc4: hvs: Make sure our channel is reset 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: > > In order to clear our intermediate FIFOs that might end up with a stale > pixel, let's make sure our FIFO channel is reset everytime our channel is > setup. Minor nit pick: s/everytime/every time > Signed-off-by: Maxime Ripard Reviewed-by: Dave Stevenson > --- > drivers/gpu/drm/vc4/vc4_hvs.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/vc4/vc4_hvs.c b/drivers/gpu/drm/vc4/vc4_hvs.c > index c7de77afbf0a..64b9d72471ef 100644 > --- a/drivers/gpu/drm/vc4/vc4_hvs.c > +++ b/drivers/gpu/drm/vc4/vc4_hvs.c > @@ -205,6 +205,10 @@ static int vc4_hvs_init_channel(struct vc4_dev *vc4, struct drm_crtc *crtc, > u32 dispbkgndx; > u32 dispctrl; > > + HVS_WRITE(SCALER_DISPCTRLX(chan), 0); > + HVS_WRITE(SCALER_DISPCTRLX(chan), SCALER_DISPCTRLX_RESET); > + HVS_WRITE(SCALER_DISPCTRLX(chan), 0); > + > /* Turn on the scaler, which will wait for vstart to start > * compositing. > * When feeding the transposer, we should operate in oneshot > -- > git-series 0.9.1