Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2098740iof; Tue, 7 Jun 2022 19:41:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzRQGB10xwu1DEU5bLUltEgRdDz+55ijm3bNNnTI4VVTr5o59jNpePq2FrVqmzF5F7xE+k7 X-Received: by 2002:a05:6a00:23c2:b0:51b:c431:65bf with SMTP id g2-20020a056a0023c200b0051bc43165bfmr31703138pfc.20.1654656088854; Tue, 07 Jun 2022 19:41:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654656088; cv=none; d=google.com; s=arc-20160816; b=wT7jsjCQ1X4bLTCcYqDHhZKYrqtkP0mcIhe+UWaFBZFDD476tjXTRbWfAqOSA5w+Rx FOJilf/rrRaXRCJ2r6QwPfcIsT4giBbFJ1XpAkFQy9pz/mkRx0M05dbHAyMGsDoLQn+U N9l5vJicIjIrjx8BwAfB9rx6lHYMMsLWwCh3Md1gATel5bdxis/FQ6eiHFOanraU6Gv9 eYxeJ+lTTa9k/t+Fy9DZE31AudHrGoMR43kixjH53fUU8ZAUwBSGz+Z0Cd/miV+6WcFl MBVXjotOxLb6Y1c1v3/yg6ySvXpmzl2ZqWtWAnLP9E7VBlPYNueCsYMgUUbqA7dxY9d2 iqIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Sj8TbdA/UpyXRuZ1cw5RKheC+bkgIfLfFRs9oWYSZG0=; b=Q6/V9PgYXWwIxBZQE6A8/6zM5lGieGxDRsxYm+zpcC++C//yL2VlQaJJmDdrQlQCE4 Nvm2i10OyaooFd9RBGnD0ROZwISMnLHMWAqKEeBm4OhhETbStpagx8pmALJnAljGPxer qLO13bsNRRs+lKQEfYcEC5A+DcfFNlh+4DWdhfAa/x3NaZi7QoFDWqvJs+6S1ITFAFK3 N5n7cJ/rgDjuX04+BoFtbS5fLOI5K8gEUNuqsflTR10zXevkQ99CwFqNsPh/6WUMh/U2 bzwUH6KtK+t3A03Jpcgk6HGL5Be3bdOkXgxVjBAGCxehNapZz9Hn+A1VEtU3D9QlX96g iPHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="AF/vRRsZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id s23-20020a63e817000000b003fdc5a65a32si9312833pgh.406.2022.06.07.19.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 19:41:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="AF/vRRsZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 4086E40725C; Tue, 7 Jun 2022 19:31:49 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385320AbiFGW0z (ORCPT + 99 others); Tue, 7 Jun 2022 18:26:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381428AbiFGVRn (ORCPT ); Tue, 7 Jun 2022 17:17:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4BB0222A51; Tue, 7 Jun 2022 11:58:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C711C6159D; Tue, 7 Jun 2022 18:58:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CF814C385A5; Tue, 7 Jun 2022 18:58:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628336; bh=h6OqCUeDOUqyQBLL56rhlWhklL1em65k+Cw8UX3FKp4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AF/vRRsZgW0Koo0XmYlWo51j9tWtlJzGIpwbg9OREI2gKEUF6egltAfTHR9Wa5PJ8 cSFzkjGI2GpzxHrFf5z6/tg4K/YQj5+QXGeSAXPMta7wL8Ktha4fvgZao9pPKiCixE 5A67SuczA8ndd9XPgSF4zXGY5cyCZ8V3jP5f4KOA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Maxime Ripard , Thomas Zimmermann , Sasha Levin Subject: [PATCH 5.18 293/879] drm/vc4: txp: Dont set TXP_VSTART_AT_EOF Date: Tue, 7 Jun 2022 18:56:51 +0200 Message-Id: <20220607165011.352932984@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Maxime Ripard [ Upstream commit 234998df929f14d00cbf2f1e81a7facb69fd9266 ] The TXP_VSTART_AT_EOF will generate a second VSTART signal to the HVS. However, the HVS waits for VSTART to enable the FIFO and will thus start filling the FIFO before the start of the frame. This leads to corruption at the beginning of the first frame, and content from the previous frame at the beginning of the next frames. Since one VSTART is enough, let's get rid of it. Fixes: 008095e065a8 ("drm/vc4: Add support for the transposer block") Signed-off-by: Maxime Ripard Acked-by: Thomas Zimmermann Link: https://lore.kernel.org/r/20220328153659.2382206-3-maxime@cerno.tech Signed-off-by: Sasha Levin --- drivers/gpu/drm/vc4/vc4_txp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vc4/vc4_txp.c b/drivers/gpu/drm/vc4/vc4_txp.c index 9809ca3e2945..ace2d03649ba 100644 --- a/drivers/gpu/drm/vc4/vc4_txp.c +++ b/drivers/gpu/drm/vc4/vc4_txp.c @@ -298,7 +298,7 @@ static void vc4_txp_connector_atomic_commit(struct drm_connector *conn, if (WARN_ON(i == ARRAY_SIZE(drm_fmts))) return; - ctrl = TXP_GO | TXP_VSTART_AT_EOF | TXP_EI | + ctrl = TXP_GO | TXP_EI | VC4_SET_FIELD(0xf, TXP_BYTE_ENABLE) | VC4_SET_FIELD(txp_fmts[i], TXP_FORMAT); -- 2.35.1