Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1913205imm; Thu, 2 Aug 2018 03:14:22 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeirw3nAHIoIwd1OOgTnsX4iRCBQpcK/C4pflcJUeGu7v04rtm2IXze+6H9434S9rVzg9jU X-Received: by 2002:a65:5581:: with SMTP id j1-v6mr2158473pgs.203.1533204862741; Thu, 02 Aug 2018 03:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533204862; cv=none; d=google.com; s=arc-20160816; b=gkg+B1NUPLTk8EFQJbAqNLSPbs03rPriWXb27t5bAKYMM1eu9pONI/APAo0icCmfKl owDiQfSWxIOh6fUVZOUDG6T6hhl6t9o7bvq7c+/dQaOBJj2WE7aE0SUbfXbs2/ehYU+7 QBkXda4pbX16E52pvMNcrLaGmeDfej4eleyeLz5zuQ9UxEeYBguL4L5+RpzB/OWrNQX/ Kz9LEcvs2FsIxHyy2dtEde6qew0spk9BLps5Qbv6QUGcZ70Aw2coy8DMqoX5Dw+qiLJh zg6ukBE/0UIJeHe68R9nL9VXc0YWtlGsYRZFqK0eO1HAHyryFXM9yggcADz8ehtgLrUs SZrQ== 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:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=VQUSiw6suMSE09x7Mg0n4bQd2ZPFnavofsDp0vt0/EI=; b=lSWYx/Ydm4ADckxupRfh0MSS6VtoKlOgxltjm4b8D8SDM035vs365G4dOgdSfSPv4U 64jVT4mbfb4oJdTL7u5uNV1TF/Oa+rr3xECz912lrArtqOcAuNji2THecUgF+N3d52VO Z2Vv9LyjzNN7+9bZAzA4ZyHftG9K9Vwq6u0/rzs3bydZKBEAKX/QmUrfJY+fzLB+stfz Fo0pxU1KFVum1lvDAFWcAHtsokDvQ1Bz/m5tdsM6exHL3byvrv6TNXy/xP5xP2haDJyC SoDEFtdNmIXN8vTgqoXdiJj/DVubj8KdhaduTr6bIKa5kXHhjQ/mswGc6+l9hFjg6gri NYyg== ARC-Authentication-Results: i=1; mx.google.com; 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 o84-v6si1607533pfa.15.2018.08.02.03.14.08; Thu, 02 Aug 2018 03:14:22 -0700 (PDT) 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; 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 S1732076AbeHBMDX (ORCPT + 99 others); Thu, 2 Aug 2018 08:03:23 -0400 Received: from www.llwyncelyn.cymru ([82.70.14.225]:45822 "EHLO fuzix.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbeHBMDX (ORCPT ); Thu, 2 Aug 2018 08:03:23 -0400 Received: from alans-desktop (82-70-14-226.dsl.in-addr.zen.co.uk [82.70.14.226]) by fuzix.org (8.15.2/8.15.2) with ESMTP id w72AA0JR012178; Thu, 2 Aug 2018 11:10:00 +0100 Date: Thu, 2 Aug 2018 11:10:00 +0100 From: Alan Cox To: "Tian, Kevin" Cc: Jerome Glisse , Kenneth Lee , Hao Fang , Herbert Xu , "kvm@vger.kernel.org" , Jonathan Corbet , Greg Kroah-Hartman , "linux-doc@vger.kernel.org" , "Kumar, Sanjay K" , "iommu@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , "linuxarm@huawei.com" , Alex Williamson , Thomas Gleixner , "linux-crypto@vger.kernel.org" , Philippe Ombredanne , Zaibo Xu , Kenneth Lee , "David S . Miller" , "linux-accelerators@lists.ozlabs.org\" "@fuzix.org Subject: Re: [RFC PATCH 0/7] A General Accelerator Framework, WarpDrive Message-ID: <20180802111000.4649d9ed@alans-desktop> In-Reply-To: References: <20180801102221.5308-1-nek.in.cn@gmail.com> <20180801165644.GA3820@redhat.com> Organization: Intel Corporation X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > One motivation I guess, is that most accelerators lack of a > well-abstracted high level APIs similar to GPU side (e.g. OpenCL > clearly defines Shared Virtual Memory models). VFIO mdev > might be an alternative common interface to enable SVA usages > on various accelerators... SVA is not IMHO the hard bit from a user level API perspective. The hard bit is describing what you have and enumerating the contents of the device especially when those can be quite dynamic and in the FPGA case can change on the fly. Right now we've got - FPGA manager - Google's recently posted ASIC patches - WarpDrive all trying to be bits of the same thing, and really there needs to be a single solution that handles all of this stuff properly. If we are going to have any kind of general purpose accelerator API then it has to be able to implement things like 'find me an accelerator with function X that is nearest my memory' 'find me accelerator functions X and Y that share HBM' 'find me accelerator functions X and Y than can be chained' If instead we have three API's depending upon whose accelerator you are using and whether it's FPGA or ASIC this is going to be a mess on a grand scale. Alan