From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-f65.google.com (mail-ed1-f65.google.com [209.85.208.65]) by dpdk.org (Postfix) with ESMTP id E5BFB201 for ; Tue, 30 Oct 2018 13:03:06 +0100 (CET) Received: by mail-ed1-f65.google.com with SMTP id x31-v6so10225274edd.8 for ; Tue, 30 Oct 2018 05:03:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FqNF5aGWB1sKtdklhWXZgy2Iz61u2KmZqtNbtgo0OLI=; b=bBEAGVQ7XK4u0bq/SDy8y85hNmagZ29GWJMGjLS5yEQKbKNwpngIldndBKr5UcLyjQ Ygxg4jmhEJ3oLUvUHniagM83QodWxT8fzEiJNXa6X/iN1xQqWuwFgdujkMsaqPVipTVo tZdPxMAlGLzaqsYAGAMcNJHs62wRo6zAFi52ED9e8tjSUyr8fbUnKfDR9zUm0ExXKSou Y8tRgFRh0Tbk36W8K3ps1znhMDApD4bS6j3l98H8QXu6FMo1NlKpGkrE7oGh8njpM2M7 m3odcrUGdMO+O0y6TWgzdoTaMJRbBrb980mVMIwiLLYYBWbrxCarbgIVO0p9NCu5x+Cc jntQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FqNF5aGWB1sKtdklhWXZgy2Iz61u2KmZqtNbtgo0OLI=; b=WT+6BstrgxfMHLMWTqPSsBqHfxCCvcAgmA61iFV/buPVEcxK9QWw8NZ23G75EmkZDo 0GfFFWdqUJRCTisru1/KQzVML1wzrl0y1f+C8HTz8e2AM+oBhJAYFvWb/1HWEhFt4bdr Fhj/R0bZMQToI7MS1NxG0mVZFJsQlDW3OzDuOFjiTgTBF6apZXAAr99hnJEl+IB56gaa LjJbvQ+R36NDg1aUkyJ/m+s1ABfdD7MlSuNvAb5D2ZI7KNDepcXEhldobrHNCtQKN9h4 7P747t6YhWCpte4nJns61ec7cUQbpYhkbLsIfaqj6ncPnFm4Iy0ejdfIkmEL0GDSrey2 UjDw== X-Gm-Message-State: AGRZ1gLxK2y4B+Ee2W9D46+7+FoPAmkHFjfWI24OgHNQt8m+rVz/oSl2 0l75M8JKJBRZ1iDr1Ht7uLPdUb5itR65YTgOwG9G7g== X-Google-Smtp-Source: AJdET5dA+acUw2CrtY+Eh4mSV71mQO6Z3mS1P7bHsWC1PhVlni6KcuSHbkxh8+xRLQWC4CyEQSnPukhzXR5u4qnciGY= X-Received: by 2002:aa7:c0c4:: with SMTP id j4-v6mr14072030edp.173.1540900986531; Tue, 30 Oct 2018 05:03:06 -0700 (PDT) MIME-Version: 1.0 References: <1538599994-23331-1-git-send-email-eric.zhang@windriver.com> <3464472.yQ3oHpXKXX@xps> <1870558.97lydUBT9V@xps> In-Reply-To: <1870558.97lydUBT9V@xps> From: Alejandro Lucero Date: Tue, 30 Oct 2018 12:02:55 +0000 Message-ID: To: Thomas Monjalon Cc: eric.zhang@windriver.com, dev , "Burakov, Anatoly" , "Mcnamara, John" , Allain Legacy , matt.peters@windriver.com, Stephen Hemminger , Ferruh Yigit , Andrew Rybchenko , Maxime Coquelin , Shahaf Shuler , Jerin Jacob , Hemant Agrawal , David Marchand Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: Re: [dpdk-dev] [PATCH v3 0/3] force IOVA to a particular mode 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, 30 Oct 2018 12:03:07 -0000 On Sun, Oct 28, 2018 at 11:04 PM Thomas Monjalon wrote: > 11/10/2018 12:08, Thomas Monjalon: > > +Cc more maintainers in order to collect more reviews > > > > 04/10/2018 11:19, Burakov, Anatoly: > > > On 03-Oct-18 9:53 PM, eric zhang wrote: > > > > This patchset introduces an EAL command line option "--iova-mode" > > > > to give the user a facility to force IOVA mode to a special value. > > > > > > > > Auto detection of the IOVA mode, based on probing the bus and IOMMU > > > > configuration, may not report the desired addressing mode when > virtual > > > > devices that are not directly attached to the bus are present. > > > > The EAL command line option "--iova-mode" can be used to select > either > > > > physical addressing('pa') or virtual addressing('va'). > > > > > > Acked-by: Anatoly Burakov > > Rebased and applied, thanks > > > Could not this lead to a problem if a device can not wok with the mode set? For example, IOVA mode set to VA and IOMMU hw with less bits than those required for the virtual addresses? IMO any device should be attached to a bus, and a bus should have a function for setting IOVA mode and the --iova-mode option just allowed with supported IOVA modes within the bus.