From patchwork Fri Jul 8 15:18:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mikko Perttunen X-Patchwork-Id: 12911287 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2FABBC433EF for ; Fri, 8 Jul 2022 15:18:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 41D8410E51A; Fri, 8 Jul 2022 15:18:21 +0000 (UTC) Received: from mail.kapsi.fi (mail.kapsi.fi [IPv6:2001:67c:1be8::25]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1A81410E3E8 for ; Fri, 8 Jul 2022 15:18:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kapsi.fi; s=20161220; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=YB0MEtRKCjiefnpFCGAACL9OCmYc8qRsAvG6uRgrqGY=; b=J2or1fISVTn7ulHhsrpa8xq0Sb lOsWpe3Pu50c2hMLTj09v6bxPC09pZqKaG2iK6Pgw0PUBbF5fcTw0OjPTSm5BVSVQkT7Ib0aC8OIP CKPXpMze2a/CoSnz6kt4qGQqZXAqAthrn1O14y6+swonhpOSDBRZ+WZ0ewJ1eAx1E/BatYYEjfosU vmogfbKH88kIhCdfS3wtCs9qPD7DlthxbMxet++9eH/Fq/xBrLGQeoa0lZDunZecVXqYpIURGUkp4 LvCT2jFHkxbk3yPibgPSfLkvjar0hReLVviSB15IVUytvk8AmJUtO4ePDfxlQkXLVD0e44CP2v4T2 myW3GWOQ==; Received: from 91-158-25-70.elisa-laajakaista.fi ([91.158.25.70] helo=toshino.localdomain) by mail.kapsi.fi with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o9pkH-009wYA-JA; Fri, 08 Jul 2022 18:18:16 +0300 From: Mikko Perttunen To: Thierry Reding Subject: [PATCH 1/2] gpu: host1x: Initialize syncval in channel_submit Date: Fri, 8 Jul 2022 18:18:01 +0300 Message-Id: <20220708151803.3064062-1-cyndis@kapsi.fi> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 91.158.25.70 X-SA-Exim-Mail-From: cyndis@kapsi.fi X-SA-Exim-Scanned: No (on mail.kapsi.fi); SAEximRunCond expanded to false X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, Mikko Perttunen Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Mikko Perttunen During the refactoring of channel_submit, assignment of syncval was moved but it is also used in channel_submit. Add this assignment back to channel_submit as well. Signed-off-by: Mikko Perttunen --- drivers/gpu/host1x/hw/channel_hw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/host1x/hw/channel_hw.c b/drivers/gpu/host1x/hw/channel_hw.c index 4eb7fb2e4f0a..732abe0750ff 100644 --- a/drivers/gpu/host1x/hw/channel_hw.c +++ b/drivers/gpu/host1x/hw/channel_hw.c @@ -319,6 +319,7 @@ static int channel_submit(struct host1x_job *job) } channel_program_cdma(job); + syncval = host1x_syncpt_read_max(sp); /* end CDMA submit & stash pinned hMems into sync queue */ host1x_cdma_end(&ch->cdma, job);