From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 3DA79A00C5; Mon, 31 Oct 2022 16:43:49 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2717740223; Mon, 31 Oct 2022 16:43:49 +0100 (CET) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mails.dpdk.org (Postfix) with ESMTP id 93B7440151 for ; Mon, 31 Oct 2022 16:43:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667231026; x=1698767026; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=lHYEgPh/MX+4QDBZfMresqfBwX0r2N4h23Li9Edrj0U=; b=fAB+9AxZ6/oMCqjwMWCU4b8G8aPOXQm4U4WZKjLnl/4WYWqSS1eRNtxr 1yPSvOyZREkk0YbwnTfgWzvtcWpJJFa9jb54Pj3XjfSOBVgB36AU7KKGX rL1COJeefGa9m7rfIE8KpUzX5ZVjquMBShCfshuIdU7wPsI94GhqR7ZEd HhIiQ56acUbJRITt3nw2Grg00cxeW3gF+/s/jLQwzrKFVq4+/evZKxvDy dCFF+G8CdzaUTRONnmrooYv8HvrHzHbtjlxygTNv3a0YvYKVEOEtL5lFv Yw+V+vu2j4F3tdrVpaVVvc0NNnOml4xBEsl4GTHb5w+/UeZgXGQE5xjDd Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10517"; a="289319699" X-IronPort-AV: E=Sophos;i="5.95,228,1661842800"; d="scan'208";a="289319699" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 31 Oct 2022 08:43:29 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10517"; a="758876504" X-IronPort-AV: E=Sophos;i="5.95,228,1661842800"; d="scan'208";a="758876504" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by orsmga004.jf.intel.com with ESMTP; 31 Oct 2022 08:43:29 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Mon, 31 Oct 2022 08:43:28 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Mon, 31 Oct 2022 08:43:28 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.47) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Mon, 31 Oct 2022 08:43:28 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Xa0dKQIvWsojjOh84WGUVOzgVl07TV3yFWjY3SWwvyGEW2ypLxmGAi5SNdEaOOReCxitiAz/vQaa5dMMrVMDnH2K5fMKS+BRxDIN+BjieblGwe7YI6tWWiXtjQRU+iHsXp4zDGy2SCa10RW+e5t/2kPfzo7gZQ49J4WQTFHOLdmGp5u/HpDM6Kd0yYPGSzvGYFxJLj8NvYLpduswQT33is71Day/6uvfyUHYzm2g2UlxgRYooDPlULd2FUo2m3lFOQXoLCYw4vs2/L6SDd5Ri2mPTwBh2wOvYpK8kdJTdfviAy3/7ggXdpJ0O+OWYDQ3xDpB1Yrtw68Sv1q1eWnSsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9G75m3yGqq9xuXo+Cl5gzJMIf4PFKgUVgat5w1459yk=; b=TioCMbwh5/oe2p+RwtSFXZHFZ2H7yJrtIzCPm93/59nw4QiBtxEjmeGQDwC9z9tcHx3+jUx4jrvXvB9UH/I4yEL1OoSkV4Epvwhukh6mlFTjvQIkK6wAseBSfI2F3fsAhkOriAY2NAqwUFAk/Jwk8pLodnQKqqMf7cdG+g9Yfeg7zI8T3XuFPLzLOBVhcC3u3VtIU57auMIdaa9MwrwNUx2VmxP8DdKJW+O5X4FTlTifzIpXyz0419tKz39H/3/3A+BZ1Bv28LEzGjGTlz/933yd9WSxhnX+2jh1GO5Meyh162bpuSREUZk8tYxBAcaZZHBYPF3HP2d5zl9ryfN48g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from BY5PR11MB4451.namprd11.prod.outlook.com (2603:10b6:a03:1cb::30) by CY8PR11MB7243.namprd11.prod.outlook.com (2603:10b6:930:96::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5769.15; Mon, 31 Oct 2022 15:43:26 +0000 Received: from BY5PR11MB4451.namprd11.prod.outlook.com ([fe80::de48:e4af:4bd1:b30c]) by BY5PR11MB4451.namprd11.prod.outlook.com ([fe80::de48:e4af:4bd1:b30c%4]) with mapi id 15.20.5769.019; Mon, 31 Oct 2022 15:43:26 +0000 From: "Chautru, Nicolas" To: Thomas Monjalon CC: "dev@dpdk.org" , "gakhil@marvell.com" , "maxime.coquelin@redhat.com" , "trix@redhat.com" , "Richardson, Bruce" , "hemant.agrawal@nxp.com" , "david.marchand@redhat.com" , "stephen@networkplumber.org" , "Vargas, Hernan" Subject: RE: [PATCH v12 04/16] baseband/acc: introduce PMD for ACC200 Thread-Topic: [PATCH v12 04/16] baseband/acc: introduce PMD for ACC200 Thread-Index: AQHY3mR/OJU5Izo8vEyVyrRhEklaea4nNV6AgAGKGiA= Date: Mon, 31 Oct 2022 15:43:26 +0000 Message-ID: References: <20221012175930.7560-1-nicolas.chautru@intel.com> <20221012175930.7560-5-nicolas.chautru@intel.com> <3141057.vfdyTQepKt@thomas> In-Reply-To: <3141057.vfdyTQepKt@thomas> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.500.17 authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BY5PR11MB4451:EE_|CY8PR11MB7243:EE_ x-ms-office365-filtering-correlation-id: af0fbabc-a2ff-4e89-8cbb-08dabb56a6c6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: CwqgLm6jZBKCLZ4OaBKnRlSC28DEYQlwvU/zaDtgjJl+XqN8ka6ospRLiOQQNJnWPliCyQO2eyGOe2XrAk6slxlMR46mgw0/n8fK8MHCn+l6ocWUuXvEdSECPSZA7RBwgBpQlWYa0hHEdvqPWo0xVQR+LWPpqQWVoV+ZjjJ6tkFNj+PmwNJVeU0a11mlHQ/OzOzs/lnOOGz8aydgwB4B4sdaWUxG25AGrKCBym1USKN/XJFudE14GmRL04Nd+DPM/RSrHmHtFLmLZNqiJ4VdUiidM0MBwTF+c5LKeUleEQM9D9y27FeStfoRIh4Cy18efemwD+mqEFt8MH9jn3IXJlAMM7APdvXq1HraNIuziNkwHSE+7AK/6LqkduVwDdEtruV6wzRGytxx9uLQT3mG4ALCQoAAemPbY8DVKJmxNpZtV7Xg+yaWqDtKGi1BabwkRHBVE7bkTjiFLlK+SYES9KujabdcqJmRYLlDOMBicMOwZMUX7abUVLLsL3olsbGhiU2Gep01E+NBtL6C3e10iZlvbpfxCzoaGNTmpGWemE+hcphislg7+OKbAezokrlF6KwMychmToPkvgXnxksn9IXTtF+TxfPwo1QJOLtTPppbVuRkk0z5f5BUp9O3VYQOZ8SLoe6RqUKNPT5Lv+CL3rHCMnZdN9tej6LmeiqJD+6LyPZZ749NwblcjOjyF9dFt1zvX3CS4N25+kMPtrLgd4HCJmYQiF6RT7Fm4dNSRutFxT3q9EgDARrw+ZK6C2L3lhbAdL9AKKANK7qBOumLkA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB4451.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(396003)(39860400002)(136003)(346002)(366004)(376002)(451199015)(66556008)(33656002)(55016003)(71200400001)(76116006)(4326008)(8676002)(66476007)(66446008)(64756008)(83380400001)(6916009)(38070700005)(41300700001)(52536014)(5660300002)(9686003)(8936002)(478600001)(2906002)(316002)(54906003)(86362001)(26005)(186003)(53546011)(82960400001)(66946007)(122000001)(107886003)(7696005)(6506007)(38100700002); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?plucYDE6Aph3GLJ9CaW2H+HnrZHWxfEamCZsGPI/JYvaiyvBo6Xp17yIMKLb?= =?us-ascii?Q?DTpo5erFl3DgTu2YAlkr11+LTKPW7xmTiYCrZlADh8Vb8ubDpthATLT3wzzz?= =?us-ascii?Q?w4k+H1NC6DswFYLrOzdnn/uPjzDXLnOifQBxdOAN5A+J9NvM4mKDk0CJpsOb?= =?us-ascii?Q?PUbbdFTM4wCMlwVAD4GgQU45nYLsG//KynDVAIyTeSBAU/zhsb6h0LZyZ5ti?= =?us-ascii?Q?787lTJfPhwfXMrBT1eynNQJTEngo+Y+2OxXDANKooqNPA67hAQMU77FP/u0W?= =?us-ascii?Q?lrtxujb5L6lrXgAP/1cPCqVedslQQD9Xtm7SDMiJ4+M+2itg02z5AWkwc96v?= =?us-ascii?Q?K9EGrZTFDWqnzHwUvaIoOErfXjeKGQJyPouMOi5p2+11aks6VRocKw2J+8dG?= =?us-ascii?Q?adJoW9AVqrtAr2GoSZMUHKzdPXvpjupDgfRfumJEiouC7WWgveOujmp47Bf1?= =?us-ascii?Q?kqJT8TeC2V2/ecenOlIhICSAevY41i2fmhxdxv+58mj3lxHsB7H/S44xvk1b?= =?us-ascii?Q?yREti3RpvszofzhjJiDVEOWzCkPALMm62owgns01DRf+1KuiXebgq6JKww3p?= =?us-ascii?Q?opKoLKGyMIvLQedqBNaFM7+SvWbwE8tnspNBktto0COwwbFkyHWMIL/yRN8+?= =?us-ascii?Q?timRvX2s08vN0Ubqfyq0tf9Sz5R671vLREjQV9opU2sHKBj8uDFMVyN2XZXd?= =?us-ascii?Q?0O75OIwj2/qKmvxaIXk0ab8vIUtDZm5EgU+fsWEH+x6ILVIK9PkoO+vFh6+r?= =?us-ascii?Q?w4N04KGQjeS9bNSkkJWH+GZ9sH2+BJ/iyaQXslUZoAnhprLYajSS83+4erZB?= =?us-ascii?Q?hR+p0DVPXXO+QKmswLSB9z+80pIXgJuOYRT76aH/5DmnN8QL3/XsdzUZu59P?= =?us-ascii?Q?95+eted99xtxlkgiWTzZwLkTCZghexiZqvaKp1ig42N5Zyo5H2JPwlv/0HI8?= =?us-ascii?Q?c7Rr/edU3KHpJ8xXO0zNimqzi9rwcvUUFIwvjMd/Olzc/uvw0z+frz5PSyxS?= =?us-ascii?Q?rLV49gf73djfOIQkvzc+/mKa1WBax67YbArBxG05DutUzJLBDajhoovwKzBC?= =?us-ascii?Q?ewx9zNF7TKT7gpYAIC0vqGhvGIKhH0lpfeMcZXxbtbBuXRQpBMSKteNudwJF?= =?us-ascii?Q?wH2Aa3Ea2ZjfoDMPjkKQl0Je+ttqwNzhDG/79TbXkkKplQYxgmvOtY0yqZmc?= =?us-ascii?Q?Rlh0jy9Ex19AEI8lAx/SXHdEdWh5xLBSRjs7OMo9fQVtHezCR3wj4SCCvrMZ?= =?us-ascii?Q?khnn3CIQev9JVOtmJ8IHXDiaf9IYkfwXH7sq0Cz2vc/y61+Fhm5OkZyGzz8K?= =?us-ascii?Q?cdEK8GGuMtelTEOJaxLF5KCR6/jTkdtSC9NEDR6OcRz6dU99ZaVeITDhJMrG?= =?us-ascii?Q?38gPjCcTN/nSNpZDnsTQ5CGr/hzMI5LrXpXo9XT1q12Yb3QjoH7Pk1Nl19SC?= =?us-ascii?Q?U4Z7cqeSquLH+IyERqI9phzhMDNdGfHd5PPwi91kIe2t1FwxqvCLC3O4eU+8?= =?us-ascii?Q?sUfx4Jpx3x8sRuCXy+ex8INyFONtt480blBklwXT13yDSazw2MtRKBMS4jjq?= =?us-ascii?Q?L9cdjZWbf+yOZXlypwQAyLCCszfBLbg2WH4AIjOQ?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB4451.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: af0fbabc-a2ff-4e89-8cbb-08dabb56a6c6 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Oct 2022 15:43:26.5645 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: wGRKa+2dPcqjVhYSWZ7OMVJb+LX8qk91ogr4SjiTSONE61antcxA4mUtI7fJlbjJLijFQ5Qq9wm9uZvExQOsDIttvjdWQ36Z7yC6UaW0N2g= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR11MB7243 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Hi Thomas,=20 > -----Original Message----- > From: Thomas Monjalon > Sent: Sunday, October 30, 2022 9:03 AM > To: Chautru, Nicolas > Cc: dev@dpdk.org; gakhil@marvell.com; maxime.coquelin@redhat.com; > trix@redhat.com; Richardson, Bruce ; > hemant.agrawal@nxp.com; david.marchand@redhat.com; > stephen@networkplumber.org; Vargas, Hernan > Subject: Re: [PATCH v12 04/16] baseband/acc: introduce PMD for ACC200 >=20 > 12/10/2022 19:59, Nicolas Chautru: > > +Bind PF UIO driver(s) > > +~~~~~~~~~~~~~~~~~~~~~ > > + > > +Install the DPDK igb_uio driver, bind it with the PF PCI device ID > > +and use ``lspci`` to confirm the PF device is under use by ``igb_uio``= DPDK > UIO driver. >=20 > igb_uio is not recommended. > Please focus on VFIO first. >=20 > > +The igb_uio driver may be bound to the PF PCI device using one of two > > +methods for ACC200: > > + > > + > > +1. PCI functions (physical or virtual, depending on the use case) can > > +be bound to the UIO driver by repeating this command for every functio= n. > > + > > +.. code-block:: console > > + > > + cd > > + insmod ./build/kmod/igb_uio.ko > > + echo "8086 57c0" > /sys/bus/pci/drivers/igb_uio/new_id > > + lspci -vd8086:57c0 > > + > > + > > +2. Another way to bind PF with DPDK UIO driver is by using the > > +``dpdk-devbind.py`` tool > > + > > +.. code-block:: console > > + > > + cd > > + ./usertools/dpdk-devbind.py -b igb_uio 0000:f7:00.0 > > + > > +where the PCI device ID (example: 0000:f7:00.0) is obtained using > > +lspci -vd8086:57c0 >=20 > This binding is not specific to the driver. > It would be better to refer to the Linux guide instead of duplicating it = again > and again. >=20 > > +In a similar way the PF may be bound with vfio-pci as any PCIe device. >=20 > You could mention igb_uio here. > Is there any advantage in using igb_uio? >=20 Igb_uio is arguably easier to use to new user tend to start with it or spec= ific ecosystem. This is typically the entry point (no iommu, no flr below t= he bonnet, no vfio token...) hence good to have a bit of handholding with a= couple of lines capturing how to easily run a few tests. I don't believe t= his is too redundant to have these few lines compared to the help in bring = to the user not having to double guess their steps.=20 More generally there are a number of module drivers combinations that are s= upported based on different deployments. We don't document in too much deta= ils for the details since that is not too ACC specific and there is more do= cumentation no pf_bb_config repo for using the PMD from the VF..=20 Basically Thomas let us know more explicitly what you are suggesting as doc= umentation update. You just want more emphasis on vfio-pci flow (which is f= air, some of it documented on pf_bb_config including the vfio token passing= but we can reproduce here as well) or something else?=20 Thanks! Nic