Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2129294imm; Thu, 2 Aug 2018 06:45:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpeCvHMa6PZYs5vrUv+xtl9HrVACgZasITpbUskQn/BDl02L60XgVWBSacpKD5Oyrn3RLyVk X-Received: by 2002:a63:5143:: with SMTP id r3-v6mr2978434pgl.11.1533217510170; Thu, 02 Aug 2018 06:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533217510; cv=none; d=google.com; s=arc-20160816; b=hQ5QGwvJwGRiL8Zpl3JcbAAtZ/4aRpyUN0aGHszcyvjnBDcx8YuhJDmwzCelNYfhz4 lkJKF0TMfiBVgQ8RRC4/oYl5BuVYK+oAaGFiLTon0e5EqyCKWQ/LLzJBLNTaH9YIbT9o jW9ejMiKmF7hCsjjeQv3T8KmdBz6gm8HMYUjgjuHkqyFRw4h8yn601atZglprCBCk4v0 ZsDpEUpJypE/sHXHBqF4LGiGabvlou1/kIQKVPkPVZYzYOL6cZa81wRCYdxsQTQT4PNV lIjmObOFfcxJ+n9ME7Ef9KzXx+uBXYKzCq1HsgnGKwRzxVJLILNhjVnJAXtUmATWwhyN eVvA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:cc:references:to :subject:arc-authentication-results; bh=lEtlb9l2fT02xzzYesKKnDU7HsSJdsybndblh7R7/wg=; b=RiFABC3Zwp01t81xwQpN9zDjaJb/3pxkGZsls4E9zsr5cJuDklJkJajdD5jBR0m2ra qDFLJbzbuVPiGNQ0O9ezw7XGsy8jParj/idaqTm7uQLvak3VFpWktk8POypQ48pwAHqv 9Bqh7aC/inyE64H9Vu7xZEtXtfd30uFUxmjM/jh0XfHdz2fgBv5BMgk0mkDVxPQZsM0/ MjTiNCsjCcmJD2/Ve4IXZzaV+MWPlXj9m4G0zdDKrbdpUsVRglzgX6GjDmi47AJrGnIT fcMVxNjQtxfLe9vShCF9eRe+onOQVbBdjcc9W514s1yrgj8PsFgkW/3js87e6yfk6Kqm qZDg== 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 o2-v6si2294726pgm.288.2018.08.02.06.44.55; Thu, 02 Aug 2018 06:45:10 -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 S1732329AbeHBOQK (ORCPT + 99 others); Thu, 2 Aug 2018 10:16:10 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:41274 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728797AbeHBOQJ (ORCPT ); Thu, 2 Aug 2018 10:16:09 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id F128194EAC467; Thu, 2 Aug 2018 20:25:06 +0800 (CST) Received: from [127.0.0.1] (10.57.77.109) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.399.0; Thu, 2 Aug 2018 20:24:59 +0800 Subject: Re: [RFC PATCH 0/7] A General Accelerator Framework, WarpDrive To: Alan Cox , "Tian, Kevin" References: <20180801102221.5308-1-nek.in.cn@gmail.com> <20180801165644.GA3820@redhat.com> <20180802111000.4649d9ed@alans-desktop> 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 , Kenneth Lee , "David S . Miller" , "\"linux-accelerators@lists.ozlabs.org\\\" " From: Xu Zaibo Message-ID: <5B62F807.8030407@huawei.com> Date: Thu, 2 Aug 2018 20:24:39 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <20180802111000.4649d9ed@alans-desktop> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.57.77.109] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 2018/8/2 18:10, Alan Cox wrote: >> 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. > Agree, at the beginning, we try to bring a notion of 'capability' which describes 'algorithms, mem access methods .etc ', but then, we come to realize it is the first thing that we should come to a single solution on these things such as memory/device access, IOMMU .etc. Thanks, Zaibo > > . >