From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 258C52862 for ; Tue, 4 Sep 2018 12:15:12 +0200 (CEST) Received: by mail-wm0-f67.google.com with SMTP id 207-v6so3648536wme.5 for ; Tue, 04 Sep 2018 03:15:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:content-transfer-encoding:mime-version; bh=rkoJvNwUVsnnx2Y3emCfLv9DJOTclEDdrejhi0O5EuI=; b=J417rnGks9oOkEv4Z/6qVbw8/lqdMU4vlidBKqfIlKtK1LFQpLiYvig21jCELCz9p+ I8AtMH/9Vjjjvg7yzSDLyNb+dQqu/y8UfVzXXfWXgflNqdAZHzZwLyA1rCOUO89z8R3P CvWWHWNBsYsU14UcFtzg6WBdjLDJcIXf9qYC85XIKNKEgk+GMyOIvxn/AxB5j5Np0kOi jyDJrEo1aqIGCAzFTtb04Zo7qpGcaJOHQEd4zUuE2Z6wf+ovHUq/VxwdEDzx8RoGMcyB OWISqcziGKR+bEz/75tJaBY1QBCc3oje+jcbK8hLex7hX8T8hlwbsqMvqnqniPfShB1l fVnQ== X-Gm-Message-State: APzg51CjCzFvYcxQMxZ/EjxwYmleA8X+UyievGVXLbHTKzhksXVOf88B MDpdx0/kF2nqa77uXtQSewM= X-Google-Smtp-Source: ANB0VdZLeoAoUr45UVrkBovINo6sjhSDOWdk2BnORdYBLbuvqLhHNvB9iO4mOpWm6KCvK5082kZTOQ== X-Received: by 2002:a1c:8a04:: with SMTP id m4-v6mr2179425wmd.137.1536056111808; Tue, 04 Sep 2018 03:15:11 -0700 (PDT) Received: from localhost ([2a01:4b00:f419:6f00:8361:8946:ba2b:d556]) by smtp.gmail.com with ESMTPSA id b2-v6sm14325450wmh.3.2018.09.04.03.15.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 04 Sep 2018 03:15:10 -0700 (PDT) Message-ID: <1536056109.11823.52.camel@debian.org> From: Luca Boccassi To: Bruce Richardson , "tone.zhang" Cc: dev@dpdk.org, nd@arm.com Date: Tue, 04 Sep 2018 11:15:09 +0100 In-Reply-To: <20180904100626.GA19424@bricha3-MOBL.ger.corp.intel.com> References: <1536051547-8797-1-git-send-email-tone.zhang@arm.com> <20180904100626.GA19424@bricha3-MOBL.ger.corp.intel.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] doc: Clarify IOMMU usage with "uio-pci" 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, 04 Sep 2018 10:15:12 -0000 On Tue, 2018-09-04 at 11:06 +0100, Bruce Richardson wrote: > On Tue, Sep 04, 2018 at 04:59:07PM +0800, tone.zhang wrote: > > When binding the devices used by DPDK to the "uio-pci" kernel > > module, > > the IOMMU should be disabled in order not to break the IO > > transmission > > because of the virtual / physical address mapping. > >=20 > > The patch clarifies the IOMMU configuration on both x86_64 and > > arm64 > > systems. > >=20 > > Signed-off-by: tone.zhang > > --- > > =C2=A0doc/guides/linux_gsg/linux_drivers.rst | 7 +++++++ > > =C2=A01 file changed, 7 insertions(+) > >=20 > > diff --git a/doc/guides/linux_gsg/linux_drivers.rst > > b/doc/guides/linux_gsg/linux_drivers.rst > > index 371a817..8f9ec8f 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: > > =C2=A0=C2=A0=C2=A0=C2=A0``vfio-pci`` kernel module rather than ``igb_ui= o`` or > > ``uio_pci_generic``. > > =C2=A0=C2=A0=C2=A0=C2=A0For more details see :ref:`linux_gsg_binding_ke= rnel` below. > > =C2=A0 > > +.. note:: > > + > > +=C2=A0=C2=A0=C2=A0If the devices for used DPDK bound to the ``uio-pci`= ` kernel > > module, please make > > +=C2=A0=C2=A0=C2=A0sure that the IOMMU is disabled. We can add ``intel_= iommu=3Doff`` > > or ``amd_iommu=3Doff`` > > +=C2=A0=C2=A0=C2=A0in ``GRUB_CMDLINE_LINUX`` in grub on x86_64 systems,= or add > > ``iommu.passthrough=3D1`` > > +=C2=A0=C2=A0=C2=A0on arm64 system. > > + >=20 > I think passthrough mode should work on x86 too. I remember running > with > iommu=3Dpt setting in the kernel in the past. >=20 > /Bruce It does, can confirm. --=20 Kind regards, Luca Boccassi