From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00077.outbound.protection.outlook.com [40.107.0.77]) by dpdk.org (Postfix) with ESMTP id 289141559 for ; Tue, 25 Sep 2018 08:18:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nBykazzaYJBAXoNN+dOlaYWkriMTDdyQdrjcfD40lQk=; b=DQLlEWYGCR6tz9eHa4CTI3+FITCfILDh4Lni8SZ1EaQOmOXbwZrbbMXIRUJ1VDXwIQIxMvCm15woyrP++0nlBQRMGz/GceA/pR62t0m83Rmc9phjcGWKTlO6CuDsS6J8kRH9JtI3ymP1ZReCnhMB8JjLAcXN0UM26KOTIpPeagc= Received: from AM0PR08MB3409.eurprd08.prod.outlook.com (20.177.109.139) by AM0PR08MB2962.eurprd08.prod.outlook.com (52.134.92.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Tue, 25 Sep 2018 06:18:08 +0000 Received: from AM0PR08MB3409.eurprd08.prod.outlook.com ([fe80::6cd9:ddb2:1c60:d5e]) by AM0PR08MB3409.eurprd08.prod.outlook.com ([fe80::6cd9:ddb2:1c60:d5e%2]) with mapi id 15.20.1164.017; Tue, 25 Sep 2018 06:18:08 +0000 From: "Tone Zhang (Arm Technology China)" To: Bruce Richardson CC: "dev@dpdk.org" , "Gavin Hu (Arm Technology China)" , "bluca@debian.org" , "roszenrami@gmail.com" , Honnappa Nagarahalli , nd Thread-Topic: [PATCH v4] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module Thread-Index: AQHUUZ0gzAQlycz8rkCur90ctDJPXaUAi4ZA Date: Tue, 25 Sep 2018 06:18:08 +0000 Message-ID: References: <1536124655-27163-1-git-send-email-tone.zhang@arm.com> <1537499262-22644-1-git-send-email-tone.zhang@arm.com> <20180921112023.GA2668@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20180921112023.GA2668@bricha3-MOBL.ger.corp.intel.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Tone.Zhang@arm.com; x-originating-ip: [113.29.88.7] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM0PR08MB2962; 6:scHmGGWieGY4Qz+hzY9m5aAtTHJBuh26yiXNgUvxlbFe0FmltdMAx287oABhLJnq7At8ftRxfZ5MMBlJOHTB0gReY/OuzuzHuUUFUQ54nNRlSdZoFCWNCQw7/NUe7XiJXmPWEMseAtcfyPhi/HjOmcX+nvygmW/kz2t5LhJESzEx8693Gz392ScUPcL/zUQ2v3xbHDsRRhyxUdrZXnMT/tPDX983OGYFebXTJoTe/oVrHUc4fci8zAFRDg1aKyEguf5g/6+r36t6FZA+3IjAo+rJjGzATS+I6tu3qLjkHG2pYGNU3zHhvYMVbXtQxj9o30Id+XbfcDjGmeHfxElFGNB/jBGb67IXF2NJmHuz0yq15vRCdyoIbm1BYAmaJ7GAzacfo8Di3EoMBA4nlpp3oAID60HHKHvaPK21/ucdhYOoDXolOY/Ci39cfEvmvadoTElpOa7nHIdrclynWMro5A==; 5:lt0rfyRZ6SyJ/B9sFF6N3248j5VKwXu08a1+HE7lqnYhch2wr0kmmGyI9Uk8NB3LNBBlym5lmhfVnH/Vc2n1sQN+r3XeHaON2Ff5H96pPwlZ71insaqi/Rtw6vyRtkcwtwaWoIpD6eM9B3xCsl5XiU3w6XB66B9LT+wQOg1WkRo=; 7:eeJ4/Hp9aa2g5O1N76/anbkagv+No/r4EmSID7GWSv2yHaK/rDxFEgM06w0L39T8+qnuqxmgH7GJZUXcLBTsI7YDnXMLmsp0T61VwE86ztZ14Vkvd+Jz5otqxeXmKWShWohT3CQiHNCEYXxXBJnVRFjZEsQ56KVB3dErQE0Mws4XjABJ2mVzFFNNoRuVLy4ggsZQQ/7lvaWCVfmPNp2c6XAVK+YM6rzfB67fHlsxzW377tIGouHgsCuynUIfiSxO x-ms-exchange-antispam-srfa-diagnostics: SOS;SOR; x-ms-office365-filtering-correlation-id: ebc09c36-2706-4975-4290-08d622aea9b0 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR08MB2962; x-ms-traffictypediagnostic: AM0PR08MB2962: nodisclaimer: True x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(85827821059158)(228905959029699)(180628864354917); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231355)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149066)(150027)(6041310)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(201708071742011)(7699051); SRVR:AM0PR08MB2962; BCL:0; PCL:0; RULEID:; SRVR:AM0PR08MB2962; x-forefront-prvs: 08062C429B x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(136003)(376002)(346002)(366004)(39860400002)(13464003)(199004)(51914003)(189003)(68736007)(446003)(14454004)(54906003)(3846002)(72206003)(74316002)(6436002)(2900100001)(4326008)(33656002)(316002)(9686003)(105586002)(86362001)(5660300001)(81166006)(25786009)(478600001)(229853002)(8676002)(11346002)(6506007)(6116002)(81156014)(97736004)(39060400002)(102836004)(55016002)(66066001)(2906002)(7736002)(53936002)(7696005)(26005)(76176011)(256004)(486006)(186003)(6246003)(71200400001)(53546011)(106356001)(8936002)(305945005)(476003)(99286004)(14444005)(6916009)(71190400001)(5250100002)(41533002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR08MB2962; H:AM0PR08MB3409.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: wXPyWguHQjiajJNDffXTZs7jIHCo6bsHvC+Wvbhs0jOEjXUWT8+E92+T8MuM9TqMhIKqhlRM6siYSEkF4xafLogWj3wNLUwiTo7pEhNJ3X2lA6qIwwWzhmJHVjQ+NcQUQ7sdSICTqXcmzHFsNHByZ8tJE3fTNhe0i7On88hr4pulcYmX31cAb44/qVMbtI6s6aUGY8SHYxcGHc154BVrMsBqwu9k/RL3o4ko3AqDf0RKqBbbfrYwLWh8scGtx33jyaauBoHbq9l370kC9K0ndd5QVeljwBXCWm+4KCUBG3rAFU1QlXbjALpYrp1iMQ/ApXsyG8rrEults56XUCDyapXhUgMvXbslpV2xwj+QRQw= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: ebc09c36-2706-4975-4290-08d622aea9b0 X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Sep 2018 06:18:08.5248 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB2962 Subject: Re: [dpdk-dev] [PATCH v4] doc: Clarify IOMMU usage with "uio_pci_generic" kernel module X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2018 06:18:10 -0000 Hello Bruce, Thanks for the comments. I will update the change and issue v5 soon. Thanks! Br, Tone -----Original Message----- From: Bruce Richardson =20 Sent: Friday, September 21, 2018 7:20 PM To: Tone Zhang (Arm Technology China) Cc: dev@dpdk.org; Gavin Hu (Arm Technology China) ; bluca= @debian.org; roszenrami@gmail.com; Honnappa Nagarahalli ; nd Subject: Re: [PATCH v4] doc: Clarify IOMMU usage with "uio_pci_generic" ker= nel module On Fri, Sep 21, 2018 at 11:07:42AM +0800, tone.zhang wrote: > If the devices used for DPDK are bound to the "uio_pci_generic" kernel=20 > module, the IOMMU should be disabled in order not to break the IO=20 > transmission because of the virtual / physical address mapping. >=20 > The patch clarifies the IOMMU configurations on both x86_64 and arm64=20 > systems. >=20 > Signed-off-by: tone.zhang > --- > doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ > 1 file changed, 7 insertions(+) >=20 > diff --git a/doc/guides/linux_gsg/linux_drivers.rst=20 > b/doc/guides/linux_gsg/linux_drivers.rst > index 371a817..3304800 100644 > --- a/doc/guides/linux_gsg/linux_drivers.rst > +++ b/doc/guides/linux_gsg/linux_drivers.rst > @@ -48,6 +48,13 @@ be loaded as shown below: > ``vfio-pci`` kernel module rather than ``igb_uio`` or ``uio_pci_gener= ic``. > For more details see :ref:`linux_gsg_binding_kernel` below. > =20 > +.. note:: > + > + If the devices used for DPDK are bound to the ``uio_pci_generic`` ker= nel module, > + please make sure that the IOMMU is disabledi or passthrough. One=20 > + can add typo ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ > + ``intel_iommu=3Doff`` or ``amd_iommu=3Doff`` or ``intel_iommu=3Don io= mmu=3Dpt``in GRUB > + command line on x86_64 systems, or add ``iommu.passthrough=3D1`` on a= rm64 system. > + > Since DPDK release 1.7 onward provides VFIO support, use of UIO is=20 > optional for platforms that support using VFIO. > =20 Acked-by: Bruce Richardson