Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp453028pxb; Wed, 27 Jan 2021 11:48:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwenY45ls6DLVyHiGmhBnSYX6L8nrcZA4hcGGw/pieXpVoeTkB9B+XYK5F4BgS2xQ+V87+h X-Received: by 2002:a05:6402:3552:: with SMTP id f18mr10410313edd.111.1611776921002; Wed, 27 Jan 2021 11:48:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611776920; cv=none; d=google.com; s=arc-20160816; b=eHbrCc0I2qkPQ/GE/AdxhSRYWT0fpS8ecAaM6v2BmQtnsXAYFWSY45QZFY3ZfS1aNP X4ZODo2rvi6POM9hZbES3dyz2gXoU4MHvUbNVJFL07xJ1Yjk3tWT02IcGdcLh95iqEbM R764fwkDJTwD5n0Z3hstifCeWuE7eAZg43BXx9EaTl/+Mp7qbNuncyeObsYY6x3qvgin t3pkSvqjpvI31FQHopAQW8rpVB1Xfd8CYS46/HcIkDqJYwwDffB9Yo/iCROvUsMhakyG VbuTbQjzjSjR41l6Qd0pwBfGEClmxAXieYP+Cj7Fav96Zj456JEBNEK+Wg6JgUPMVEWq Xcfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=qMQSXSqdqPw2ouePc311mhljsHLmSTms1OySVvrYkrQ=; b=N0NlJ82nD3jtJJQP1Us6xmxltz6hlDV7n74Ush72zLD0i6taVnGdl/2VXHjnPcfAnT McXfPPRjwi1Im4Fe5KPt+CnbfiqX6THypJUYJ2qDes2sl0zzFkK0Bk1bFZhwGFgHjeXP B5jKJPUw4unw1iAqYT9QsqQofNNAZ5/puJGfZQIVZ5GIQCvCCeYYtIOj1jBOW0g/37vi vj45dn8g1e/VtrA095N6JJfL3i5dxnL9B5q2ZbDC/wpz7CWwTBnDLnMcAccT+JwtpWU4 EZq2CDmZWQ/amclHl7ARl0V/rx+yYymEisBG0X8+7OAdqtHct7TAAY2LE66nZ+1JnRfK O4hA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h16si1238509ejy.432.2021.01.27.11.48.15; Wed, 27 Jan 2021 11:48:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S317001AbhAZXNQ (ORCPT + 99 others); Tue, 26 Jan 2021 18:13:16 -0500 Received: from mail-pf1-f172.google.com ([209.85.210.172]:34419 "EHLO mail-pf1-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730077AbhAZE6o (ORCPT ); Mon, 25 Jan 2021 23:58:44 -0500 Received: by mail-pf1-f172.google.com with SMTP id m6so9824919pfk.1; Mon, 25 Jan 2021 20:58:29 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=qMQSXSqdqPw2ouePc311mhljsHLmSTms1OySVvrYkrQ=; b=I+uZOgjBknJKnVv8jzUyqSxTeoyK4u8DpRXLT0a+EH2dbMbOkH+9Vwqz8TcJypsZJ2 lLhwy3gPayzHyKtlCVIPIcVKzbwL3g4SdtCn62xEAidhWOXlP0cYd1inxN8oRTMy1H6u FErVteYQSqVZ429J0hZk9kkZz08oYtIgXOQHxo16m9pEO4qS8Od8rzrnQxUcKFhnFsbh 6chtOiVW+9N9II3vBRuOeXc+KqLj4AsYRiP9zXWpjDqU7iMTZ0cVGnArU12Sp5517pdD v91blbPpXoZecb4VGaf5BgiRJDjndug7rWiEpHOv10dN4J8Jh44kvJ7L1okMNP3Egxxp lCxA== X-Gm-Message-State: AOAM532uTn9Pg/voGXayv2AlzFPgFCOIPwCDVOW2DSUgsvly+dZBluBm /tyUEzRemay92QHPY0M4SD4= X-Received: by 2002:a62:37c7:0:b029:1aa:22ea:537d with SMTP id e190-20020a6237c70000b02901aa22ea537dmr3680475pfa.56.1611637079026; Mon, 25 Jan 2021 20:57:59 -0800 (PST) Received: from localhost ([2601:647:5b00:1161:a4cc:eef9:fbc0:2781]) by smtp.gmail.com with ESMTPSA id bk18sm908042pjb.41.2021.01.25.20.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Jan 2021 20:57:58 -0800 (PST) Date: Mon, 25 Jan 2021 20:57:57 -0800 From: Moritz Fischer To: Xu Yilun Cc: Moritz Fischer , Tom Rix , gregkh@linuxfoundation.org, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org, lgoncalv@redhat.com, hao.wu@intel.com Subject: Re: [PATCH v9 1/2] uio: uio_dfl: add userspace i/o driver for DFL bus Message-ID: References: <1611564563-9665-1-git-send-email-yilun.xu@intel.com> <1611564563-9665-2-git-send-email-yilun.xu@intel.com> <20210126024005.GB3907@yilunxu-OptiPlex-7050> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210126024005.GB3907@yilunxu-OptiPlex-7050> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 26, 2021 at 10:40:05AM +0800, Xu Yilun wrote: > On Mon, Jan 25, 2021 at 06:22:55PM -0800, Moritz Fischer wrote: > > On Mon, Jan 25, 2021 at 11:00:38AM -0800, Tom Rix wrote: > > > > > > On 1/25/21 12:49 AM, Xu Yilun wrote: > > > > This patch supports the DFL drivers be written in userspace. This is > > > > realized by exposing the userspace I/O device interfaces. > > > > > > > > The driver now only binds the ether group feature, which has no irq. So > > > > the irq support is not implemented yet. > > > > > > > > Signed-off-by: Xu Yilun > > > > --- > > > > v9: switch to add a uio driver in drivers/uio > > > > --- > > > > drivers/uio/Kconfig | 13 ++++++++++ > > > > drivers/uio/Makefile | 1 + > > > > drivers/uio/uio_dfl.c | 66 +++++++++++++++++++++++++++++++++++++++++++++++++++ > > > > > > You should add this to the MAINTAINERS file. > > > > This is covered by MAINTAINERS under drivers/uio. > > Yes. But is it OK I also add the file in "FPGA DFL DRIVERS"? So DFL > developers would also be aware if there is change. It is a little > different from other feature driver, it is like a generic driver for > DFL bus. Fair enough. I meant you don't have to if you don't want to. If you want to feel free to do so :) > > > > > > > > 3 files changed, 80 insertions(+) > > > > create mode 100644 drivers/uio/uio_dfl.c > > > > > > > > diff --git a/drivers/uio/Kconfig b/drivers/uio/Kconfig > > > > index 202ee81..44778f8 100644 > > > > --- a/drivers/uio/Kconfig > > > > +++ b/drivers/uio/Kconfig > > > > @@ -165,4 +165,17 @@ config UIO_HV_GENERIC > > > > to network and storage devices from userspace. > > > > > > > > If you compile this as a module, it will be called uio_hv_generic. > > > > + > > > > +config UIO_DFL > > > > + tristate "Generic driver for DFL bus" > > > > > > The term 'DFL' will be unknown to folks in drivers/uio > > > > > > I think it would be better if DFL was always prefixed 'FPGA DFL' > > > > > > > + depends on FPGA_DFL > > > > + help > > > > + Generic DFL (Device Feature List) driver for Userspace I/O devices. > > > > + It is useful to provide direct access to DFL devices from userspace. > > > > + A sample userspace application using this driver is available for > > > > + download in a git repository: > > > > + > > > > + git clone https://github.com/OPAE/opae-sdk.git > > > > + > > > > + If you compile this as a module, it will be called uio_dfl. > > > > I'm not sure KConfig is the right place for this. > > Do you mean the OPAE link? I see several uio drivers provide their > userspace application link in Kconfig. I guess the uio drivers are > selected for these applications so it may be better pointing out where > they are. Ok, works for me. - Moritz