From patchwork Tue Jun 22 16:55:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 12338107 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2BAF5C49EA5 for ; Tue, 22 Jun 2021 16:55:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id F212D6102A for ; Tue, 22 Jun 2021 16:55:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org F212D6102A Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=ffwll.ch Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9A3256E822; Tue, 22 Jun 2021 16:55:37 +0000 (UTC) Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 007BA6E821 for ; Tue, 22 Jun 2021 16:55:33 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id y7so24383450wrh.7 for ; Tue, 22 Jun 2021 09:55:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JOUPUItnfv9eoWzULPlnmpftFBykYS+GwxysUnbtbjs=; b=IJnlQtw84nLq6UKrv07Fzv4RjJvDi0CvbSS5tQ1jkICmk1HEXUQ8MQ7tbttJy9yVRh a0lAjJhjQ4+XSwKKn8Fy55oRyJgMmuDVysw5+ONhWPovdIs0HXXHSjpalD2cyWa5YuE4 a6QH4AKTi9XMmIspJaolIQ0Wf0/HVTKVwLDTw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=JOUPUItnfv9eoWzULPlnmpftFBykYS+GwxysUnbtbjs=; b=cDxaZngTt0569rV8+JXpA6yAlutWx+Bz6NV/4jYukJ8pzmOXY+RND/eKjRhkiAowbL SN5DX0+QWVl/dAYXtxxsTalMIPUvS0NETHc4PmCtalcbTrDeLAdIaA5LRz8AfX0uTdyE Tz6zDecSWIFqc/S0416BCTYciKUGUc10XUpYJY/7zHj36XEuMs1ijCIycK+l10ChC9zc 5m66jZ6bSmJp8/aniRi9tZFNlMNe3Mr/5MO5aFPak7/P0an5rS8eXnZPh7FHJg3q77R+ aVBZZ1OJS3o9Xk7NHpYSwcBXywBrk+aefYNh2jlHgGMkgs7d+HD2aV30KYb+2L8T6USL 6bAg== X-Gm-Message-State: AOAM533kej4cAcE42KaU9T06qqXFkDjegR5sf0mIXCaYDotaxLJuJbpQ xZXUx9+nfPoBy8sMWS09AnRpU4CGhL4Bag== X-Google-Smtp-Source: ABdhPJwk0x8sLZPq1PhkUnLJYNpHGFgOjr9HyaHc/WHHogSQMSIySsd7VhCEb6ndiCelRmwpEV1VPQ== X-Received: by 2002:a05:6000:258:: with SMTP id m24mr5900659wrz.127.1624380932762; Tue, 22 Jun 2021 09:55:32 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:57f4:0:efd0:b9e5:5ae6:c2fa]) by smtp.gmail.com with ESMTPSA id l23sm3632342wmc.5.2021.06.22.09.55.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Jun 2021 09:55:32 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Tue, 22 Jun 2021 18:55:10 +0200 Message-Id: <20210622165511.3169559-15-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.32.0.rc2 In-Reply-To: <20210622165511.3169559-1-daniel.vetter@ffwll.ch> References: <20210622165511.3169559-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 14/15] drm/gem: Tiny kernel clarification for drm_gem_fence_array_add X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Daniel Vetter , Intel Graphics Development , Maxime Ripard , Thomas Zimmermann , Daniel Vetter , =?utf-8?q?Christian_K=C3=B6nig?= , Lucas Stach Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" Spotted while trying to convert panfrost to these. Signed-off-by: Daniel Vetter Cc: "Christian König" Cc: Lucas Stach Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Reviewed-by: Christian König --- drivers/gpu/drm/drm_gem.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c index ba2e64ed8b47..68deb1de8235 100644 --- a/drivers/gpu/drm/drm_gem.c +++ b/drivers/gpu/drm/drm_gem.c @@ -1302,6 +1302,9 @@ EXPORT_SYMBOL(drm_gem_unlock_reservations); * @fence_array: array of dma_fence * for the job to block on. * @fence: the dma_fence to add to the list of dependencies. * + * This functions consumes the reference for @fence both on success and error + * cases. + * * Returns: * 0 on success, or an error on failing to expand the array. */