Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1655251imm; Wed, 1 Aug 2018 21:37:59 -0700 (PDT) X-Google-Smtp-Source: AAOMgpc5inv6NoAcxNMOA9cV42wpGMkChwREu1x5UW6DiDWzPcf1A7Ghg9CM7LHtZFANQBkKWXIX X-Received: by 2002:a63:1b49:: with SMTP id b9-v6mr147681pgm.72.1533184679101; Wed, 01 Aug 2018 21:37:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533184679; cv=none; d=google.com; s=arc-20160816; b=iy2x+EjclpLakZT4FVJbftnWjhrOeg6fvqOpIjixxiCITNeEDt7OtoT12XRqh4D2u8 IZgX/sws7er/9fG3y8/BXiDxB5tbcmWf3eAM5UI7x8w6uHzxTcVMY10fow2URs+0z3XX GnnoNcwmVn1blIG1mmJBvlPEMkkMlO8To0kIGsinPXjmzTDklx4jMCWgXf8axUB9ZE9A E+IPfOS41oU5iulvvitCRxMmCjfrxojBxS9UsbtMtzgaUGiRoPBjZPkaM9jafecdF5/E JloTrY1cD5726N1rrq7pXIIOOr2slnMQ86PrzPJ5qrTUYfH4+A8K9FEOlhA3M9FJ/UeG ptIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :dlp-reaction:dlp-version:dlp-product:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:arc-authentication-results; bh=JPF+4rgN3SN5Y3IOPzbGZr7edGlciWYGTZs4JJH6QSg=; b=JrkEkRS9GDPM14xJM7N0U4Ojufvo1+jKTP4OaGVETNapws9EtavExzuqB3ch/TmHmT pjy9HdlXeY2J18GtrnLRkF1DqqLO/teBYyjDvm/TJ6WNImFsoAHPXGkl8IRCcD5fU+uG fK5gVFFkZ1oSig5iy6gMsNDllxUOtUL9UY2CFUivBUDB+BqPEhAT6Hb4sEmrUaHpLXIV MOK4qCmxo1A+AdIsc755bH8854LJr1GQ+zkcruxTZFVEJ4sKbt5Z1JUato0i4vC5THod iNPRPXkfG3+MGiM9rdBccCBe06NycbNCLIcGdxUtKGVwIWTDX59YGAoJazCfD4Nl7W3/ 3+wg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12-v6si635342pld.362.2018.08.01.21.37.44; Wed, 01 Aug 2018 21:37:59 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726246AbeHBG0K convert rfc822-to-8bit (ORCPT + 99 others); Thu, 2 Aug 2018 02:26:10 -0400 Received: from mga12.intel.com ([192.55.52.136]:32025 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725765AbeHBG0J (ORCPT ); Thu, 2 Aug 2018 02:26:09 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Aug 2018 21:36:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,434,1526367600"; d="scan'208";a="250400694" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 01 Aug 2018 21:36:55 -0700 Received: from fmsmsx102.amr.corp.intel.com (10.18.124.200) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 1 Aug 2018 21:36:55 -0700 Received: from shsmsx102.ccr.corp.intel.com (10.239.4.154) by FMSMSX102.amr.corp.intel.com (10.18.124.200) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 1 Aug 2018 21:36:55 -0700 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.57]) by shsmsx102.ccr.corp.intel.com ([169.254.2.124]) with mapi id 14.03.0319.002; Thu, 2 Aug 2018 12:36:53 +0800 From: "Tian, Kevin" To: Kenneth Lee CC: Kenneth Lee , Herbert Xu , "kvm@vger.kernel.org" , Jonathan Corbet , Greg Kroah-Hartman , "linux-doc@vger.kernel.org" , "Kumar, Sanjay K" , Hao Fang , "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 , "David S . Miller" , "linux-accelerators@lists.ozlabs.org" Subject: RE: [RFC PATCH 0/7] A General Accelerator Framework, WarpDrive Thread-Topic: [RFC PATCH 0/7] A General Accelerator Framework, WarpDrive Thread-Index: AQHUKYHSUTvc9I1u4EGviW0yiW9YHKSrv1Ww//+MjACAAJKKgA== Date: Thu, 2 Aug 2018 04:36:52 +0000 Message-ID: References: <20180801102221.5308-1-nek.in.cn@gmail.com> <20180802034006.GJ160746@Turing-Arch-b> In-Reply-To: <20180802034006.GJ160746@Turing-Arch-b> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ctpclassification: CTP_NT x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOGI0ZTRiYWQtMjNiNS00YmNjLWIyNDYtYTAyNDY5MzM0NDRiIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiVEtzK3E3NU93bWN0NFRyWnNXdjNLa0V1bjVcL2l1QWpub3ppaTNhZVVFNnRPclF0M2dnamZGTmJubnRVZFE5Rk4ifQ== dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > From: Kenneth Lee > Sent: Thursday, August 2, 2018 11:40 AM > > On Thu, Aug 02, 2018 at 02:59:33AM +0000, Tian, Kevin wrote: > > > From: Kenneth Lee > > > Sent: Wednesday, August 1, 2018 6:22 PM > > > > > > From: Kenneth Lee > > > > > > WarpDrive is an accelerator framework to expose the hardware > capabilities > > > directly to the user space. It makes use of the exist vfio and vfio-mdev > > > facilities. So the user application can send request and DMA to the > > > hardware without interaction with the kernel. This remove the latency > > > of syscall and context switch. > > > > > > The patchset contains documents for the detail. Please refer to it for > more > > > information. > > > > > > This patchset is intended to be used with Jean Philippe Brucker's SVA > > > patch [1] (Which is also in RFC stage). But it is not mandatory. This > > > patchset is tested in the latest mainline kernel without the SVA patches. > > > So it support only one process for each accelerator. > > > > If no sharing, then why not just assigning the whole parent device to > > the process? IMO if SVA usage is the clear goal of your series, it > > might be made clearly so then Jean's series is mandatory dependency... > > > > We don't know how SVA will be finally. But the feature, "make use of > per-PASID/substream ID IOMMU page table", should be able to be enabled > in the > kernel. So we don't want to enforce it here. After we have this serial ready, > it > can be hooked to any implementation. "any" or "only queue-based" implementation? some devices may not have queue concept, e.g. GPU. > > Further more, even without "per-PASID IOMMU page table", this series has > its > value. It is not simply dedicate the whole device to the process. It "shares" > the device with the kernel driver. So you can support crypto and a user > application at the same time. OK. Thanks Kevin