Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3715654pxb; Tue, 26 Jan 2021 02:56:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJzsIZ3dWbj5KqB3HEHu8p5xJN7Fu7uays+RjybRqJmBWGGim0FtrzGNkVJZtbQ575iSC5Dk X-Received: by 2002:a05:6402:1a2a:: with SMTP id be10mr4067699edb.185.1611658569595; Tue, 26 Jan 2021 02:56:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611658569; cv=none; d=google.com; s=arc-20160816; b=sNCIgvhTE92BNiPpttropQnU9iGa8ce863oduwgXuV4uLvSKnKiofH/fEV7UgcymeY 8r5j/mAyy1ANKR1B7x6asiQsuxG9oVfH6JYJ4h1bLd6HQcbqXF6b3DXjp+TAjiEYxKoI y/UCzAlrAAna/TAXec8KUWIHX7RgI6f6QUWD+lMYF8LRFyVRFeKONGvkQLM96ts3KxGV fECmDqlgmJBQRGFNMUQL7IQQTMda62nRIpQBV11vM05qrc9IU/+LpMSN9ZEiHrOgqIaO 9cc0/+LtuyJpH+xGw9kaPuRYCOlxdMQ3DHggaagofgl5Ztw2Z0dlHIxUSrBURbAcU4oI 7/xQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=umdNkO8GXJZg3q40ynFZVPGuiVv8pXT3KA6qwYGApRw=; b=xQ6Ccb9li54HwpZskI+XIcwx7e3qJN78KrUHamPcNW6ufpMfEjBVJmr33fZR1Vx19n +sGCMD68s0cIR4gdRf5UHofPqgoFzZup251qckGeezBRRPQkd5hT7Bw/WgSLo2E6/by8 WX7i3EpVKpnNKsDrvVoWh1vTpMaYgNm9px13HvLf6T83/uLvgRv5/Dxb4BSmT8FbYKJs uIUgEXt4rpdYHXiBV4DijqLVNgMOucmh7CraajMz0bLkHjxMUGVzzWQ04NHt6tns9e97 xkziiuKAmxDwGRK9/Pl8iBYge2T30o/KuxuOzVGG/snsA6D2pMbqJ56nU7eMv/d9EYrl pr1w== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i18si8300451edx.293.2021.01.26.02.55.44; Tue, 26 Jan 2021 02:56:09 -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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404513AbhAZKwl (ORCPT + 99 others); Tue, 26 Jan 2021 05:52:41 -0500 Received: from mga14.intel.com ([192.55.52.115]:36862 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732372AbhAZCpJ (ORCPT ); Mon, 25 Jan 2021 21:45:09 -0500 IronPort-SDR: 4FzgPWkLkKrJT5/46yApxVDuWLYoxOZISC7c+FeZ+SFUTJYfsP/gp4Z9mnDUW3DTP0fSFP4ohx 91WYDMD24kag== X-IronPort-AV: E=McAfee;i="6000,8403,9875"; a="179060470" X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="179060470" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jan 2021 18:44:26 -0800 IronPort-SDR: 0mLY8EDgJmwlZcGnqrZDfHjQ45RmKp4Li0V8hFPAUp7AlkxFr299tjqBpzpAv9WdtVfRLYETSj ilesyGXlUHmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,375,1602572400"; d="scan'208";a="368954150" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.141]) by orsmga002.jf.intel.com with ESMTP; 25 Jan 2021 18:44:24 -0800 Date: Tue, 26 Jan 2021 10:40:05 +0800 From: Xu Yilun To: Moritz Fischer Cc: 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: <20210126024005.GB3907@yilunxu-OptiPlex-7050> References: <1611564563-9665-1-git-send-email-yilun.xu@intel.com> <1611564563-9665-2-git-send-email-yilun.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > > > > 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. Thanks, Yilun