From mboxrd@z Thu Jan 1 00:00:00 1970 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=-17.6 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=unavailable 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 B3D3BC433B4 for ; Thu, 20 May 2021 13:39:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9A6F860FE6 for ; Thu, 20 May 2021 13:39:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232806AbhETNkh (ORCPT ); Thu, 20 May 2021 09:40:37 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:58774 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232329AbhETNkg (ORCPT ); Thu, 20 May 2021 09:40:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621517954; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=tIHuKc7qKGZdh6rEj/UQHhsvnRluHQvBwSw2juTcRH8=; b=YcmyjxY0/4btP86g7KMdzjcdb/3I6kaq00a/led11flp9Kycv6LrJvBQPyjccptIgbmFu8 Vqa3NdO6CRn7Rq+YSmPHHhuzQW74carnnfqHS4phco8hQ7Yfy1k+QiG273zopMphTw13LL dVCMwX1H7bMP6q0dsREUVE3n1cp2eEE= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-266--88de2CkMNunrNiNjGyn0A-1; Thu, 20 May 2021 09:39:12 -0400 X-MC-Unique: -88de2CkMNunrNiNjGyn0A-1 Received: by mail-qt1-f200.google.com with SMTP id i12-20020ac860cc0000b02901cb6d022744so12262083qtm.20 for ; Thu, 20 May 2021 06:39:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=tIHuKc7qKGZdh6rEj/UQHhsvnRluHQvBwSw2juTcRH8=; b=RjLyUTHKG5WA7wXRgd8z6s5t53Sy9ldzWGnNTizpuDOlJTA6fnaOsbQyrtJKo4eQV/ 71684hK+RzZF7uW6emzDuYGu50dfCCkyi2Z+LaptdIitCAC7MMS6XRPQ7PwtczBObfwg 0cGPYQLCFjKl2AKItZJjG3yy+gYvhW5YASK6Z212LY86haHRksu2J3Ce2xSGs0ouq/gl 0yZ8SGH5DoZH99geq9cvHN7dMBGUUf4rGQSnnMtfCVUyH+EqE/J/wqQEY8k5AMWrNISU PFQ2iL6tleGqmXdopoQPReBYnNzZK6thz3ggYNdLSn1PHsitK9veomUPfvkkPn78cYdA AORA== X-Gm-Message-State: AOAM533s4BBaKdATBiP5Mh8NOd7RkITqGEiXfbZKjkpMglj79S+FeN6u JSjw47e/zvmpDFLzg9MHhQ2fcgbVOta4104KyDf8A6NPjpxDB9PY4y+UxwJoRLghUZLUc0GUwpS JMXIzB7MevsiHHDL+gSm8lEyXlmE/dqb4dIXt9M/QxHcRF+/psv9kmbYtbHmCYirAHkp4To0= X-Received: by 2002:aed:2010:: with SMTP id 16mr5164700qta.256.1621517952004; Thu, 20 May 2021 06:39:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyY6d7yrV3IScAgQdkxLU88EkWvFf8eL6VXoT9cYThIk8gfokUR+vQJYCXMNAJnr4qS2t8Wlg== X-Received: by 2002:aed:2010:: with SMTP id 16mr5164670qta.256.1621517951736; Thu, 20 May 2021 06:39:11 -0700 (PDT) Received: from localhost.localdomain (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id f13sm1092060qkk.107.2021.05.20.06.39.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 20 May 2021 06:39:11 -0700 (PDT) Subject: Re: [PATCH 2/2] fpga: add cancel() and get_error() to update ops To: Moritz Fischer , Russ Weight Cc: linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210519204318.1976186-1-trix@redhat.com> From: Tom Rix Message-ID: <053373e3-bf53-d662-d4a2-1297efed830d@redhat.com> Date: Thu, 20 May 2021 06:39:09 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/19/21 1:50 PM, Moritz Fischer wrote: > Tom, > > On Wed, May 19, 2021 at 01:43:18PM -0700, trix@redhat.com wrote: >> From: Tom Rix >> >> A user may want to cancel an update or get >> more information on when an update fails. >> Add some device ops to do these. >> >> Signed-off-by: Tom Rix >> --- >> include/linux/fpga/fpga-mgr.h | 4 ++++ >> 1 file changed, 4 insertions(+) >> >> diff --git a/include/linux/fpga/fpga-mgr.h b/include/linux/fpga/fpga-mgr.h >> index ab68280f3b4a4..31d6ebc34d87a 100644 >> --- a/include/linux/fpga/fpga-mgr.h >> +++ b/include/linux/fpga/fpga-mgr.h >> @@ -111,6 +111,8 @@ struct fpga_image_info { >> * @write: write count bytes of configuration data to the FPGA >> * @write_sg: write the scatter list of configuration data to the FPGA >> * @write_complete: set FPGA to operating state after writing is done >> + * @cancel: cancel the update >> + * @get_error: get extended error information >> */ >> struct fpga_manager_update_ops { >> int (*write_init)(struct fpga_manager *mgr, >> @@ -120,6 +122,8 @@ struct fpga_manager_update_ops { >> int (*write_sg)(struct fpga_manager *mgr, struct sg_table *sgt); >> int (*write_complete)(struct fpga_manager *mgr, >> struct fpga_image_info *info); >> + int (*cancel)(struct fpga_manager *mgr); >> + int (*get_error)(struct fpga_manager *mgr, u64 *err); >> }; >> >> /** >> -- >> 2.26.3 >> > There is no user for this, so if we add this, we add it with code > calling it. These additions come for unioning the fpga manager ops with the secure manager ops. So will be needed if the secure manager goes this this way. Tom > Thanks > > - Moritz >