From patchwork Thu May 3 14:25:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 10378479 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 9195260541 for ; Thu, 3 May 2018 14:26:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7FB4529194 for ; Thu, 3 May 2018 14:26:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7466C29195; Thu, 3 May 2018 14:26:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1A2CD29196 for ; Thu, 3 May 2018 14:26:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C6E236E6A4; Thu, 3 May 2018 14:26:13 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1C6016E63B for ; Thu, 3 May 2018 14:26:12 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id j4so28736931wme.1 for ; Thu, 03 May 2018 07:26:12 -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=AZemI1NoJS+8Itk3QVHN8+UtNnnnSAXt8LWEtEhV2pU=; b=BGQsQURtjZe0eh06LhV06Sty7dLFIDlJARUPrCnNbQ5zxjKbS/cDasaTJ0TJfHALTP WwMRPr3Q3jQql+thPJg5L95eHisS38U6qcKvSyVN7N8lcFrCospidnWpRQK031/pMd90 Af5sJIDYbS5bzNnoVGrKX1P2zC8qMzYqC/lvA= 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=AZemI1NoJS+8Itk3QVHN8+UtNnnnSAXt8LWEtEhV2pU=; b=OcBIJ1Z/NDN5R6wf+XoCRSqntyf8t5vIC1mKVrmcGthbHdeO//uDFv7YmNu+OXI7w+ TDdWnK40tfHCr0g9JdQYPj+RjuPh7lXCe7H5SJRrNUWJdMAj8L+U4jPxjps5gwlPBZdU 91Gpg2I6EaZ2qQCoR9OiQKlUUgBKjCFhVjfcSczXPfAxtZJIX6OsDFhEPz5FXufeSMn0 bRIk5ldDxwSp4OeizIzzJ0IEMNnVm3RvfviwlZuG3h2/ZILORqJ8ayC0de7ZnRWM8m7k 8m8gQVzEfbTI3BHK9H8ue+qYWW8Layd3K61xSQswduN+qjI/V2VFh0NhqEKJr6s0ax1+ B0QQ== X-Gm-Message-State: ALQs6tB6Poz3UBQ+bdppHZXZDrYQCErvuN6htES/GxJEVF6CeD/gBYCh P2V5gA6lnMYioA1ZM9KD2dg19A== X-Google-Smtp-Source: AB8JxZrWjNulN2pXR7Rt3Rr4SrULYR/Fea7xGYizz4saCeunCL8x5ERD6vHR8kOsKynhocamPQt9ug== X-Received: by 2002:a50:949c:: with SMTP id s28-v6mr31237004eda.201.1525357570795; Thu, 03 May 2018 07:26:10 -0700 (PDT) Received: from phenom.ffwll.local ([2a02:168:5635:0:39d2:f87e:2033:9f6]) by smtp.gmail.com with ESMTPSA id u5-v6sm8095647edi.79.2018.05.03.07.26.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 May 2018 07:26:10 -0700 (PDT) From: Daniel Vetter To: DRI Development Date: Thu, 3 May 2018 16:25:49 +0200 Message-Id: <20180503142603.28513-2-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180503142603.28513-1-daniel.vetter@ffwll.ch> References: <20180503142603.28513-1-daniel.vetter@ffwll.ch> MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH 01/15] dma-fence: remove fill_driver_data callback X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , Intel Graphics Development , =?UTF-8?q?Christian=20K=C3=B6nig?= Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP Noticed while I was typing docs. Entirely unused. v2: Remove reference in @timeline_value_str too. While at it clarify why timeline_value_str has a fence parameter - we don't have an explicit timeline structure unfortunately. Cc: Eric Anholt Reviewed-by: Eric Anholt Reviewed-by: Christian König (v1) Cc: Christian König (v1) Signed-off-by: Daniel Vetter --- include/linux/dma-fence.h | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/include/linux/dma-fence.h b/include/linux/dma-fence.h index eb9b05aa5aea..111aefe1c956 100644 --- a/include/linux/dma-fence.h +++ b/include/linux/dma-fence.h @@ -217,17 +217,6 @@ struct dma_fence_ops { */ void (*release)(struct dma_fence *fence); - /** - * @fill_driver_data: - * - * Callback to fill in free-form debug info. - * - * Returns amount of bytes filled, or negative error on failure. - * - * This callback is optional. - */ - int (*fill_driver_data)(struct dma_fence *fence, void *data, int size); - /** * @fence_value_str: * @@ -242,8 +231,9 @@ struct dma_fence_ops { * @timeline_value_str: * * Fills in the current value of the timeline as a string, like the - * sequence number. This should match what @fill_driver_data prints for - * the most recently signalled fence (assuming no delayed signalling). + * sequence number. Note that the specific fence passed to this function + * should not matter, drivers should only use it to look up the + * corresponding timeline structures. */ void (*timeline_value_str)(struct dma_fence *fence, char *str, int size);