From patchwork Tue Dec 14 19:59:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthew Brost X-Patchwork-Id: 12676715 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 C64AFC433F5 for ; Tue, 14 Dec 2021 20:04:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id D0F5210E1DB; Tue, 14 Dec 2021 20:04:40 +0000 (UTC) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id F21EC10E1DF; Tue, 14 Dec 2021 20:04:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1639512279; x=1671048279; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=swoirMKs5MDhbDpE2Au6ynmmzDg7ZNZd3fDh4TF/Hxw=; b=DlKOE0k1HQ2HgA6JYaDSKy39aBA7CvAa/WdsrYX7BD3uUPhQajXgzvpJ 0nAt4CfGfdmp1Fk8SSOw/HYzrlHi1nynidmSfNZL5AslQHy5fYjAcXHCG 1dznSChmjQauA2jeQi6wcOJKmy37y0Wy1D3qERvvZ3jtBifqOL54+kzdL wJc7x6b9hRXJOklM53jGCecSXaRT/jYOdIfrMqZC2voSTmdmRW0PuoG/y aLMJjPkb+7V6gSWXZtZhzKyx2azKFyL4EFABxrSzuQgCrWDyNhD8adHi3 jpa6MUsaQsftGuZUDrxpfMWFc7EDnoZNni29NGAnXuQs+W56MLGtY27sy w==; X-IronPort-AV: E=McAfee;i="6200,9189,10197"; a="219091531" X-IronPort-AV: E=Sophos;i="5.88,206,1635231600"; d="scan'208";a="219091531" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2021 12:04:38 -0800 X-IronPort-AV: E=Sophos;i="5.88,206,1635231600"; d="scan'208";a="614429295" Received: from jons-linux-dev-box.fm.intel.com ([10.1.27.20]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Dec 2021 12:04:37 -0800 From: Matthew Brost To: , Subject: [PATCH] drm/i915: Increment composite fence seqno Date: Tue, 14 Dec 2021 11:59:13 -0800 Message-Id: <20211214195913.35735-1-matthew.brost@intel.com> X-Mailer: git-send-email 2.33.1 MIME-Version: 1.0 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: daniele.ceraolospurio@intel.com, john.c.harrison@intel.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Increment composite fence seqno on each fence creation. Fixes: 544460c33821 ("drm/i915: Multi-BB execbuf") Signed-off-by: Matthew Brost Reviewed-by: John Harrison --- drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c index 2213f7b613da..96cf8361b017 100644 --- a/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c @@ -3113,7 +3113,7 @@ eb_composite_fence_create(struct i915_execbuffer *eb, int out_fence_fd) fence_array = dma_fence_array_create(eb->num_batches, fences, eb->context->parallel.fence_context, - eb->context->parallel.seqno, + eb->context->parallel.seqno++, false); if (!fence_array) { kfree(fences);