[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180806012622.GE91035@Turing-Arch-b>
Date: Mon, 6 Aug 2018 09:26:22 +0800
From: Kenneth Lee <liguozhu@...ilicon.com>
To: Alan Cox <gnomes@...rguk.ukuu.org.uk>
CC: Jerome Glisse <jglisse@...hat.com>,
"Tian, Kevin" <kevin.tian@...el.com>,
Kenneth Lee <nek.in.cn@...il.com>,
Hao Fang <fanghao11@...wei.com>,
"Herbert Xu" <herbert@...dor.apana.org.au>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
Jonathan Corbet <corbet@....net>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>,
"Kumar, Sanjay K" <sanjay.k.kumar@...el.com>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linuxarm@...wei.com" <linuxarm@...wei.com>,
Alex Williamson <alex.williamson@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"Philippe Ombredanne" <pombredanne@...b.com>,
Zaibo Xu <xuzaibo@...wei.com>,
"David S . Miller" <davem@...emloft.net>,
Ross Zwisler <ross.zwisler@...ux.intel.com>
Subject: Re: [RFC PATCH 0/7] A General Accelerator Framework, WarpDrive
On Fri, Aug 03, 2018 at 03:20:43PM +0100, Alan Cox wrote:
> Date: Fri, 3 Aug 2018 15:20:43 +0100
> From: Alan Cox <gnomes@...rguk.ukuu.org.uk>
> To: Jerome Glisse <jglisse@...hat.com>
> CC: "Tian, Kevin" <kevin.tian@...el.com>, Kenneth Lee
> <nek.in.cn@...il.com>, Hao Fang <fanghao11@...wei.com>, Herbert Xu
> <herbert@...dor.apana.org.au>, "kvm@...r.kernel.org"
> <kvm@...r.kernel.org>, Jonathan Corbet <corbet@....net>, Greg
> Kroah-Hartman <gregkh@...uxfoundation.org>, "linux-doc@...r.kernel.org"
> <linux-doc@...r.kernel.org>, "Kumar, Sanjay K" <sanjay.k.kumar@...el.com>,
> "iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
> "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
> "linuxarm@...wei.com" <linuxarm@...wei.com>, Alex Williamson
> <alex.williamson@...hat.com>, Thomas Gleixner <tglx@...utronix.de>,
> "linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>, Philippe
> Ombredanne <pombredanne@...b.com>, Zaibo Xu <xuzaibo@...wei.com>, Kenneth
> Lee <liguozhu@...ilicon.com>, "David S . Miller" <davem@...emloft.net>,
> Ross Zwisler <ross.zwisler@...ux.intel.com>
> Subject: Re: [RFC PATCH 0/7] A General Accelerator Framework, WarpDrive
> Organization: Intel Corporation
> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-redhat-linux-gnu)
> Message-ID: <20180803152043.40f88947@...ns-desktop>
>
> > If we are going to have any kind of general purpose accelerator API then
> > > it has to be able to implement things like
> >
> > Why is the existing driver model not good enough ? So you want
> > a device with function X you look into /dev/X (for instance
> > for GPU you look in /dev/dri)
>
> Except when my GPU is in an FPGA in which case it might be somewhere else
> or it's a general purpose accelerator that happens to be usable as a GPU.
> Unusual today in big computer space but you'll find it in
> microcontrollers.
>
> > Each of those device need a userspace driver and thus this
> > user space driver can easily knows where to look. I do not
> > expect that every application will reimplement those drivers
> > but instead use some kind of library that provide a high
> > level API for each of those devices.
>
> Think about it from the user level. You have a pipeline of things you
> wish to execute, you need to get the right accelerator combinations and
> they need to fit together to meet system constraints like number of
> IOMMU ids the accelerator supports, where they are connected.
>
> > Now you have a hierarchy of memory for the CPU (HBM, local
> > node main memory aka you DDR dimm, persistent memory) each
>
> It's not a heirarchy, it's a graph. There's no fundamental reason two
> accelerators can't be close to two different CPU cores but have shared
> HBM that is far from each processor. There are physical reasons it tends
> to look more like a heirarchy today.
>
> > Anyway i think finding devices and finding relation between
> > devices and memory is 2 separate problems and as such should
> > be handled separatly.
>
> At a certain level they are deeply intertwined because you need a common
> API. It's not good if I want a particular accelerator and need to then
> see which API its under on this machine and which interface I have to
> use, and maybe have a mix of FPGA, WarpDrive and Google ASIC interfaces
> all different.
>
> The job of the kernel is to impose some kind of sanity and unity on this
> lot.
>
> All of it in the end comes down to
>
> 'Somehow glue some chunk of memory into my address space and find any
> supporting driver I need'
>
Agree. This is also our intension on WarpDrive. And it looks VFIO is the best
place to fulfill this requirement.
> plus virtualization of the above.
>
> That bit's easy - but making it usable is a different story.
>
> Alan
--
-Kenneth(Hisilicon)
================================================================================
本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
This e-mail and its attachments contain confidential information from HUAWEI,
which is intended only for the person or entity whose address is listed above.
Any use of the
information contained herein in any way (including, but not limited to, total or
partial disclosure, reproduction, or dissemination) by persons other than the
intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify
the sender by phone or email immediately and delete it!
Powered by blists - more mailing lists