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=-12.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 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 9A928C433E0 for ; Mon, 22 Feb 2021 18:58:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 52BCC64E12 for ; Mon, 22 Feb 2021 18:58:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232223AbhBVS6p (ORCPT ); Mon, 22 Feb 2021 13:58:45 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:53098 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231985AbhBVS6R (ORCPT ); Mon, 22 Feb 2021 13:58:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1614020210; 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=rHg9HBe21T8aNYDULFVYUPlUSoyVR/CXm3vwO0QOYbs=; b=Y2/3Fajuqmz9Ijc1WGOTjc25928n+5pXTysvXOt/4scGJDytKXWtnji7KnvgcK97eL8KoT yluQrOTWHWyMuEPDZ/ItMOywTTBeSITjs9w8WHNjvOMnMa3W4kGSfuLNRv64GmFOUxRSk0 ik2z4i7fhriPpih4yhh558whkGqf6CY= Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-599-G2zbFyQYNC-_zvRXfQ1-aQ-1; Mon, 22 Feb 2021 13:56:48 -0500 X-MC-Unique: G2zbFyQYNC-_zvRXfQ1-aQ-1 Received: by mail-qk1-f199.google.com with SMTP id x21so9865821qkm.19 for ; Mon, 22 Feb 2021 10:56:48 -0800 (PST) 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=rHg9HBe21T8aNYDULFVYUPlUSoyVR/CXm3vwO0QOYbs=; b=JvZFjuYeTY3Xdwz1OCyYkQin3f3MwYYo7KBxg/vfniJcmt0cvqM5a4iya+gdIVTNVG SM2yO0YsMB8h8ipAaL1/j1LCKcYMOW/uQkAaCq79bol1/4eA+LW3XAN/mHSiFjl5M6zt UqpkqvnuWjiLk9CGFW8J2DxZheZlVMXebYipY4KeHVAZOztpga+6PpR1LFIuWoqU91Q8 p6uQAv8E16RxIJjwEZhZFsoENkd6Szs8aVpHPmsItEml4atnpsv3ut/MJrCzqQjxxH1u Ac5URSFWoo1aX+7vKbCpqyqCb1A2mKH1G1WLc8LTmaTXd2y8Umt14FvGc+P9dXJptycJ eH0Q== X-Gm-Message-State: AOAM533BZG4FSnpYKV4fEZ18w6JN3HS15qLseRCfCaOJnyhGNuCWgldM 1g0q5pq/VbZ1y7ihncuq7rEQ+IG+zk9RYK7LjkDD6VZLC//XVmOUeq9PYA1WLMVlUeA3ehnKfBT HGsO2cMQe106j28+0jBMzaw== X-Received: by 2002:a0c:abce:: with SMTP id k14mr21747503qvb.23.1614020207772; Mon, 22 Feb 2021 10:56:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/AMx9vVcs0qiOU4dEFXY7oJr5YRPBT1Zk6NdMEC00pqTTu9EDaFcj25uu4N7WZVpErziydw== X-Received: by 2002:a0c:abce:: with SMTP id k14mr21747480qvb.23.1614020207539; Mon, 22 Feb 2021 10:56:47 -0800 (PST) Received: from trix.remote.csb (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id l24sm11386133qtj.50.2021.02.22.10.56.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 22 Feb 2021 10:56:47 -0800 (PST) Subject: Re: [PATCH v11 0/2] UIO support for dfl devices To: Xu Yilun , gregkh@linuxfoundation.org, mdf@kernel.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org Cc: lgoncalv@redhat.com, hao.wu@intel.com References: <1612403971-13291-1-git-send-email-yilun.xu@intel.com> From: Tom Rix Message-ID: <9b5f6e54-7122-8cfb-39f8-a84599e081f1@redhat.com> Date: Mon, 22 Feb 2021 10:56:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 MIME-Version: 1.0 In-Reply-To: <1612403971-13291-1-git-send-email-yilun.xu@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org Yilun, Is there anything outstanding or remaining to be done ? Tom On 2/3/21 5:59 PM, Xu Yilun wrote: > This patchset supports some dfl device drivers written in userspace. > > In the patchset v1, the "driver_override" interface should be used to bind > the DFL UIO driver to DFL devices. But there is concern that the > "driver_override" interface is not OK itself. > > In v2, we use a new matching algorithem. The "driver_override" interface > is abandoned, the DFL UIO driver matches any DFL device which could not be > handled by other DFL drivers. So the DFL UIO driver could be used for new > DFL devices which are not supported by kernel. The concern is the UIO may > not be suitable as a default/generic driver for all dfl features, such as > features with multiple interrupts. > > In v4, we specify each matching device in the id_table of the UIO driver, > just the same as other dfl drivers do. Now the UIO driver supports Ether > Group feature. To support more DFL features, their feature ids should be > added to the driver's id_table. > > Before v9, we create a "uio_pdrv_genirq" platform device using DFL devices' > resources. Then we leverage the uio_pdrv_genirq driver for UIO support. It > is suggested that we implement a driver in drivers/uio that directly calls > UIO framework APIs. So we implement the uio_dfl driver in v9. The driver > now only binds the ether group feature, which has no irq. So the irq > support is not implemented yet. > > > Main changes from v1: > - switch to the new matching algorithem. It matches DFL devices which could > not be handled by other DFL drivers. > - refacor the code about device resources filling. > - add the documentation. > > Main changes from v2: > - split the match ops changes in dfl.c to an independent patch. > - move the declarations needed for dfl-uio-pdev from include/linux/dfl.h > to driver/fpga/dfl.h > - some minor fixes. > > Main changes from v3: > - switch to specifying each matching device in the driver's id_table. > - refactor the irq handling code. > > Main changes from v4: > - refactor the irq handling code. > > Main changes from v5: > - fix the res[] zero initialization issue. > - improve the return code for probe(). > - some doc improvement. > > Main changes from v6: > - use platform_device_register_resndata() for pdev creation. > > Main changes from v7: > - some doc fixes. > > Main changes from v8: > - switch to add a uio driver in drivers/uio > > Main changes from v9: > - add this source file in MAINTAINERS > - improve the Kconfig, add more descriptive Kconfig header, add detailed > path for opae uio example in Kconfig. > > Main changes from v10: > - add description in doc that interrupt support is not implemented yet. > > > Xu Yilun (2): > uio: uio_dfl: add userspace i/o driver for DFL bus > Documentation: fpga: dfl: Add description for DFL UIO support > > Documentation/fpga/dfl.rst | 26 ++++++++++++++++++ > MAINTAINERS | 1 + > drivers/uio/Kconfig | 17 ++++++++++++ > drivers/uio/Makefile | 1 + > drivers/uio/uio_dfl.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++ > 5 files changed, 111 insertions(+) > create mode 100644 drivers/uio/uio_dfl.c >