Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1721019imu; Sat, 26 Jan 2019 09:10:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5+FG3A7MDIPRnDqp8zyoJ0wM5mkp/EcYBs11hZp9GpaA5484c+uB75488RfG6FYPIeggxN X-Received: by 2002:a63:77ce:: with SMTP id s197mr13907705pgc.89.1548522627577; Sat, 26 Jan 2019 09:10:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548522627; cv=none; d=google.com; s=arc-20160816; b=pe1DQqw5PPycwXcLT4zlAAxpSyBUd6MsgfODw19oVlv7mCgSZcfgasWcke6KwkfXkl KMWgvdMgaOnzLt8+220YwCx56qq+sWmrHJ/Y3c8VCJdsHzU2yjDBk1dv2k4ioJru3Ntp XLE5sIKM2wz/s5z8MTZPQdAPiPd2SSqHa3QXG7c5qfgOgqg4673q761LzvhkL9AToEOt Z8XCARu4nmTqf3OCketXfIpBbE7gG/Um5bf1lxjnGj014/fqF4L+ra8BOcmkw3lkqLKP 1J4aojXEoF1eoG+yaK9iW1hiWKiS4w9sa7NvcCCtMOcAlaYHJoQ9ZSy7Bnx9e4nnn/nb DKWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=/V3vJ/V4XmlImm05zmxwbkKUUN18Hwo8X6yfyM9B0tg=; b=nWLI7WORyaG0pVQ24ZMJlpdJwjj2gYABZ6iwYmjed2aGrR2ABnGtSLjB6DzCiK/nsb qw1dSacVnoaUvJAaE89yxNvxerjbNQwseiSRNA1G2O9XDmy2SFqHtk9GhX63CUIbxDj6 Z1JXIKnXFkbnRX91mghTR8J3dEHkPPNisjxeMKqjUAUEthEc29faEDkR8FEUWA2uIie/ sJEggYtPKgpLgKCFmcm68BXxCBMTE7Cdj4tnvyjASCdXAPYd8urnrWHYQkSUl/xG10Et AGXrdXCys3ItQ45QgSvIAWVwsBfre7rdUiJAsPMdmVk/I+kmLa4IQl6DsZ36M24gzrMb AvMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qlDi8aRR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z14si5790307pgz.180.2019.01.26.09.10.12; Sat, 26 Jan 2019 09:10:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=qlDi8aRR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726328AbfAZRJX (ORCPT + 99 others); Sat, 26 Jan 2019 12:09:23 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:41224 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726070AbfAZRJW (ORCPT ); Sat, 26 Jan 2019 12:09:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Content-Transfer-Encoding: Content-Type:In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To: Subject:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/V3vJ/V4XmlImm05zmxwbkKUUN18Hwo8X6yfyM9B0tg=; b=qlDi8aRRaeoM5uZS86SbbWd5E 0iYY2Tq6Xy+Ux/E4VGAGplqwwt7i77vysky8czHGncAhaGIjwDNAh2ijSgfha+N8CjB9x7WW7CMnv 2Sm0Xg1JXTWn9xfsW6wrjVH4KppRkpmNDU8YjadI3jYfliKyVREjozYcWv2ftP3GE3TuWl9oFOL5n s3TrUwEQZa11Kq74458/0PRFuYUjlCbHeMAsxRfGE/MqMqf0YPdlHCBPGmN/EizfAWWpc6tN65Xdz EvL7TFewHAJOeskVM2xXyhMZ5AMxw7GJhwicrYWrCFLInS3vCNht3YpcG77nzyaaiHTyrtXaDuRac fz2+7Yyqg==; Received: from static-50-53-52-16.bvtn.or.frontiernet.net ([50.53.52.16] helo=midway.dunlab) by bombadil.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1gnRSH-0004Pd-GO; Sat, 26 Jan 2019 17:09:17 +0000 Subject: Re: [PATCH v2 1/5] drivers/accel: Introduce subsystem To: Olof Johansson , linux-kernel@vger.kernel.org Cc: linux-accelerators@lists.ozlabs.org, Greg Kroah-Hartman , Frederic Barrat , Andrew Donnellan , ogabbay@habana.ai, airlied@redhat.com, jglisse@redhat.com References: <20190125211335.65783-1-olof@lixom.net> From: Randy Dunlap Message-ID: Date: Sat, 26 Jan 2019 09:09:15 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20190125211335.65783-1-olof@lixom.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Please see a few corrections inline... On 1/25/19 1:13 PM, Olof Johansson wrote: > > Documentation/accelerators/README.rst | 42 +++++++++++++++++++++++++++++++++++ > MAINTAINERS | 8 +++++++ > drivers/Kconfig | 2 ++ > drivers/Makefile | 1 + > drivers/accel/Kconfig | 16 +++++++++++++ > drivers/accel/Makefile | 5 +++++ > 6 files changed, 74 insertions(+) > create mode 100644 Documentation/accelerators/README.rst > create mode 100644 drivers/accel/Kconfig > create mode 100644 drivers/accel/Makefile > > diff --git a/Documentation/accelerators/README.rst b/Documentation/accelerators/README.rst > new file mode 100644 > index 0000000000000..79049ff99e93e > --- /dev/null > +++ b/Documentation/accelerators/README.rst > @@ -0,0 +1,42 @@ > +.. _readme: > + > +Hardware offload accelerator subsystem > +====================================== > + > +This is a brief overview of the subsystem (grouping) of hardware > +accelerators kept under drivers/accel > + > +Types of hardware supported > +--------------------------- > + > + The general types of hardware supported are hardware devices that has that have > + general interactions of sending commands and buffers to the hardware, > + returning completions and possible filled buffers back, together > + with the usual driver pieces around hardware control, setup, error > + handling, etc. > + > + Drivers that fit into other subsystems are expected to be merged > + there, and use the appropriate userspace interfaces of said functional > + areas. We don't expect to see drivers for network, storage, graphics > + and similar hardware implemented by drivers here. > + > +Expectations for contributions > +------------------------------ > + > + - Platforms and hardware that has fully open stacks, from Firmware to that have > + Userspace, are always going to be given preferential treatment. These > + platforms give the best insight for behavior and interaction of all > + layers, including ability to improve implementation across the stack > + over time. > + > + - If a platform is partially proprietary, it is still expected that the > + portions that interact the driver can be shared in a form that allows that interact with the driver > + for exercising the hardware/driver and evolution of the interface over > + time. This could be separated into a shared library and test/sample > + programs, for example. > + > + - Over time, there is an expectation to converge drivers over to shared > + frameworks and interfaces. Until then, the general rule is that no > + more than one driver per vendor will be acceptable. For vendors that > + aren't participating in the work towards shared frameworks over time, > + we reserve the right to phase out support for the hardware. > diff --git a/drivers/accel/Kconfig b/drivers/accel/Kconfig > new file mode 100644 > index 0000000000000..13b36c0398895 > --- /dev/null > +++ b/drivers/accel/Kconfig > @@ -0,0 +1,16 @@ > +# > +# Drivers for hardware offload accelerators > +# See Documentation/accel/README.rst for more details > +# > + > +menuconfig ACCEL > + bool "Hardware offload accelerator support" > + help Use tab instead of spaces above. > + HW offload accelerators are used for high-bandwidth workloads > + where a higher-level kernel/userspace interface isn't suitable. > + > +if ACCEL > + > +comment "HW Accellerator drivers" > + > +endif -- ~Randy