From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 19FC4A00E6 for ; Mon, 2 Sep 2019 11:31:45 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 66B301C21D; Mon, 2 Sep 2019 11:31:44 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 5C0BE1C214 for ; Mon, 2 Sep 2019 11:31:42 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Sep 2019 02:31:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,457,1559545200"; d="scan'208";a="181834158" Received: from irsmsx152.ger.corp.intel.com ([163.33.192.66]) by fmsmga008.fm.intel.com with ESMTP; 02 Sep 2019 02:31:39 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.7]) by IRSMSX152.ger.corp.intel.com ([169.254.6.191]) with mapi id 14.03.0439.000; Mon, 2 Sep 2019 10:31:39 +0100 From: "Van Haaren, Harry" To: Yuan Kevin , "users@dpdk.org" CC: "Richardson, Bruce" Thread-Topic: How DPDK initialize PCIe DMA engine? Thread-Index: AQHVYMiuT4+B+tE8akmb7EcPwMxjN6cYH50Q Date: Mon, 2 Sep 2019 09:31:38 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZmVlOTJlNWQtZDY5Yi00YWE0LWJjZWMtMDYxNGIzZmI1Y2Y2IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiOExSc1JGdzRWQTdvMlprd0o1c2hjczRpTG1acHliNWxcL0ZqaXlNaUdaVktHZDVCRTR4RVIxQzdsZDR3YjZrN2wifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.2.0.6 dlp-reaction: no-action x-originating-ip: [163.33.239.180] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-users] How DPDK initialize PCIe DMA engine? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: users-bounces@dpdk.org Sender: "users" > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Yuan Kevin > Sent: Sunday, September 1, 2019 2:29 PM > To: users@dpdk.org > Subject: [dpdk-users] How DPDK initialize PCIe DMA engine? >=20 > Dear DPDK Community members, Hi Kevin! > I am new to DPDK. After reading through the documentation and doing web s= earch > a couple of days, I am still not clear how DPDK initialize PCIe DMA engin= e. >=20 > As far as I know, the PCIe scan / probe / intialization is pretty > standardized, but the DMA engines along with the PCIe are very different = from > vendor to vendor. >=20 > My question is, what's the best place to implement the DMA initilization = code > within the DPDK framework and how? >=20 > Could you give me an example ? There is a DMA engine driver which has been upstreamed in the 19.08 release= , please see the patchset cover-letter here; http://patches.dpdk.org/cover/55= 872/ The cover letter gives lots of details, and the 9 patches following it enab= le the device itself. Patch 2/9 is the patch that enables a new PCI device to = register as a rawdev, which is probably the best way to enable your device: http://patches.dpdk.org/patch/55874/ > Best regards. >=20 > Thanks, > Kevin Yuan Hope that helps, -Harry