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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 847DDC54EAA for ; Thu, 26 Jan 2023 00:30:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236326AbjAZA36 (ORCPT ); Wed, 25 Jan 2023 19:29:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40254 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236344AbjAZA3o (ORCPT ); Wed, 25 Jan 2023 19:29:44 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5436C166F4 for ; Wed, 25 Jan 2023 16:28:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674692931; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=JbyYoo+iTg/7s516SgITKP/ggW6rCx9usz1BqFXsKhg=; b=Ox2HPXAL4gaTS65NoPT365CGTga2f/U/ma6DHusamY1h/gRqjGS+Ysn+D5TKn3XSnugkpe C5/fHeiSOwbCTdbBXrJoYDdRkLwOGKIhHozVj0MwjOG3pImpDlfYlHrx88AB7qKGHh7yV0 F3DmSywfB6riJyE5tkRP7SDJbvRIQxo= Received: from mail-ej1-f70.google.com (mail-ej1-f70.google.com [209.85.218.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-79-yxfQmfEINrCCDFPJGEbQyQ-1; Wed, 25 Jan 2023 19:28:50 -0500 X-MC-Unique: yxfQmfEINrCCDFPJGEbQyQ-1 Received: by mail-ej1-f70.google.com with SMTP id hc30-20020a170907169e00b0086d90ee8b17so230918ejc.10 for ; Wed, 25 Jan 2023 16:28:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JbyYoo+iTg/7s516SgITKP/ggW6rCx9usz1BqFXsKhg=; b=tTfoNDK5SqKUWp6WABnkBGPtLcP21qvEMoj9Rt6srQ7DN5pykfShn0iwDOXi5RRPaP Q9bN9QtjAOKpag8D4RGSr6Qd0MeEDbR+MssYSvH0L2vTn3cDeAO28e+d9wAQ3D6SmrRx mvLpsmHp/uFi4HWivLOK6HgfboDNRxYScE3FCVE0g2vKjeE19EiZXerUh2bI9GoijiDD 27fE6xz67pQCQRcw7jhpTNkeAE1thnCZNC7wjjUDmoC4d51cJotjaWATLgPXih6itf4z HE8EB+b09/T+PtXMG2hEJ++bP263qe+eZwasf3l3Z0K+xqdQbu13Lst0uTqN2ou2PbPe 1UiA== X-Gm-Message-State: AFqh2ko+eA/8qIvQ7jvZ3qyNuWLVZRzH0mZ+57PCSibLF0ve/aQgtBbp fOD/q6L0aBK3kmbsWvcZc8oiBgrqy6ieldBqcyAXhovpak0LI7oGpUKIn0pRkzMRwqEK+ktWREG P/b83bWNFbTsOUlxVOKIQDBLm X-Received: by 2002:a05:6402:5419:b0:463:9193:404a with SMTP id ev25-20020a056402541900b004639193404amr36659382edb.21.1674692929038; Wed, 25 Jan 2023 16:28:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXvGz2LNpp1BEszvXNVD/n0jXIZ8CQsApiWD0Hl3aVbSLJvpgJWIyT48ddPBP9ROdENyzemY5A== X-Received: by 2002:a05:6402:5419:b0:463:9193:404a with SMTP id ev25-20020a056402541900b004639193404amr36659373edb.21.1674692928896; Wed, 25 Jan 2023 16:28:48 -0800 (PST) Received: from pollux.. ([2a02:810d:4b3f:de78:642:1aff:fe31:a15c]) by smtp.gmail.com with ESMTPSA id j15-20020aa7de8f000000b0049622a61f8fsm3009706edv.30.2023.01.25.16.28.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Jan 2023 16:28:48 -0800 (PST) From: Danilo Krummrich To: christian.koenig@amd.com, Arvind.Yadav@amd.com, sumit.semwal@linaro.org, gustavo@padovan.org Cc: dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Danilo Krummrich Subject: [PATCH] dma-buf: actually set signaling bit for private sub fences Date: Thu, 26 Jan 2023 01:28:44 +0100 Message-Id: <20230126002844.339593-1-dakr@redhat.com> X-Mailer: git-send-email 2.39.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org In dma_fence_allocate_private_stub() set the signaling bit of the newly allocated private stub fence rather than the signaling bit of the shared dma_fence_stub. Fixes: c85d00d4fd8b ("dma-buf: set signaling bit for the stub fence") Signed-off-by: Danilo Krummrich --- drivers/dma-buf/dma-fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c index 406b4e26f538..0de0482cd36e 100644 --- a/drivers/dma-buf/dma-fence.c +++ b/drivers/dma-buf/dma-fence.c @@ -167,7 +167,7 @@ struct dma_fence *dma_fence_allocate_private_stub(void) 0, 0); set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT, - &dma_fence_stub.flags); + &fence->flags); dma_fence_signal(fence); -- 2.39.1