From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0059.outbound.protection.outlook.com [104.47.41.59]) by dpdk.org (Postfix) with ESMTP id 8861C1B1EB for ; Wed, 11 Oct 2017 07:38:21 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ACrNrz1iM4eXPPBXn1hRcyTb1VQ6NJB1NIvwtXhDHV8=; b=gfPR+wrSEUTGL3dNZGuHIk0ETqsV1zZWqOPrI3vbum+Ysge8M9rVHopjATFtEZfpS1oJeJYOSnl4SRUm18f4IZa8wblyGLg6vTuRTTTGMAnmaBlU208B7gkE5mqUmT0MhZkXJrurr/Y92EFkp6Iv/BDERh/uPGzXSoiB4IBd4h0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from [192.168.0.105] (103.76.56.167) by MWHPR07MB3104.namprd07.prod.outlook.com (10.172.95.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Wed, 11 Oct 2017 05:38:13 +0000 To: "Tan, Jianfeng" , olivier.matz@6wind.com, dev@dpdk.org References: <20170920112356.17629-1-santosh.shukla@caviumnetworks.com> <20171006110346.13247-1-santosh.shukla@caviumnetworks.com> <20171006110346.13247-4-santosh.shukla@caviumnetworks.com> <02200f40-8158-27ec-02c1-aa5ba92e824a@caviumnetworks.com> <15d6938c-43dd-9301-71e4-b32a78765fb4@intel.com> Cc: thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, aconole@redhat.com, stephen@networkplumber.org, anatoly.burakov@intel.com, gaetan.rivet@6wind.com, shreyansh.jain@nxp.com, bruce.richardson@intel.com, sergio.gonzalez.monroy@intel.com, maxime.coquelin@redhat.com From: santosh Message-ID: Date: Wed, 11 Oct 2017 11:07:59 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <15d6938c-43dd-9301-71e4-b32a78765fb4@intel.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Originating-IP: [103.76.56.167] X-ClientProxiedBy: MA1PR0101CA0029.INDPRD01.PROD.OUTLOOK.COM (52.134.137.15) To MWHPR07MB3104.namprd07.prod.outlook.com (10.172.95.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 10d23621-0e4c-480b-decf-08d5106a468e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR07MB3104; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3104; 3:rsATu5Swx9+5RlOPxjOx1ggwVrdhM5YMyqas9xw2aWdZNV/WbrwVYIFyaqs9gaxcCS9d87wn+bhAo51+R/GTW9jccT5JB+i/5Q24p0lhoLJSfMkDOyYKoYa5YPcV1CTnzsl790AejmDppZRcGUdLPL4hCuX0VbYpQr2671VTeCYPMzCEwaW8ralIJhHOUEDagK85nElzKoDg/KaRAnNkhh3JGsIwREy6XgaPLP9BJm6KwqLe/3kSkpZWFxiDTbJm; 25:uz/xn7xfyg0G24Jx3l2IGUZmEfFtwnllBUaDrPHRY3KIpBZtoPq96WniDGPyS3WfepFh4wbMlXqcOCVOFstb1FuA9mRGeYCyqsWmLc9QHq7T4AJ4JWyY4gkJsuxlcxU71DG4zNvrubcc1mCcLU4v9B1TGrqN9VNKNHP/tDKtvNWOM4Gi8logJaBNlA0dhxA9tLXFSRa6AArEGnzji57rrLMvrCVHhW3vbwCmPXEBEWhA+K+3TCkR1jO3AQTlQvthIlJwOoQl/qNGi1DfydJ9yGMFBAes7WFj2ZbBySjr3GfUOCVhc0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CoywTXRTT9Ahi0tZs6gsphiYj6e/rds5u7WjQY3Mnx/+hgMhlQa988NEukwtlxPeC8lwSByXWGQQhmlIBffyN83U0n1o57ep5QYaX4x37jmH3asP7pAAYAUP6RZgq3XWjTq5YJ1b8y3vqHdfY9NOOW X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(93006095)(10201501046)(6041248)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123562025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3104; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3104; X-Forefront-PRVS: 0457F11EAF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6049001)(346002)(376002)(199003)(377454003)(189002)(24454002)(81156014)(81166006)(6246003)(5660300001)(101416001)(6116002)(36756003)(86152003)(65806001)(47776003)(93886005)(3846002)(31686004)(33646002)(53936002)(106356001)(23746002)(90366009)(105586002)(66066001)(65826007)(65956001)(7416002)(16576012)(229853002)(72206003)(64126003)(25786009)(2906002)(50466002)(478600001)(83506001)(4326008)(8656003)(6666003)(16526018)(77096006)(8676002)(58126008)(6486002)(31696002)(8936002)(189998001)(316002)(2950100002)(50986999)(42882006)(117156002)(97736004)(68736007)(76176999)(53546010)(230700001)(305945005)(7736002)(54356999); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3104; H:[192.168.0.105]; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?Windows-1252?Q?1; MWHPR07MB3104; 23:XrAHiZf59Cuwk2hycaDFfFyYie3mv02vZWahM?= =?Windows-1252?Q?OrCFNX4G5CkGHmQ3N7nFnIW07J8BaX3Fvzus0EnRauZuTrkf8s1pqW4B?= =?Windows-1252?Q?TuDCyHUXK715phQXxYcSy3PXAhiwWEd+/hQoCH1DVpNxqWoMjTbIz6ci?= =?Windows-1252?Q?/KhWQoKeC5sKqS0MbhHFsWCDk+uuyE5MoAJUhOCMLQ6If5khXrhywkkc?= =?Windows-1252?Q?jb9eZH+AErsuX9wfh9CZLjVOJO/gif0iGOaC/FXBWfpaWcjzd3pBA+La?= =?Windows-1252?Q?qbBcH6/ebmYpShT4gg24zdpc+KnNnBiiZOTABIXNdOgT3jGjrFQfrDMA?= =?Windows-1252?Q?b7ZDHJWO/YcGsZKMh6DuLf0R/sNautxKjIaWkSaH1Hq6ebukpM+X4UlL?= =?Windows-1252?Q?zU79xEW4WgP7F7d38y4lBfqn7G9SYA/NlJhjEvclm8QoluaYH1hOwrQ8?= =?Windows-1252?Q?rKoAt/WGn+VPdIJ2/u8HTZ6fM3BtOYnntiXBFCt7jRojl2L29HTunZ0G?= =?Windows-1252?Q?hBL4YasIT7ADD32ImDhaghSZo+aVbzPgQZ8FU7tziX554uM+oU7cV0j1?= =?Windows-1252?Q?48zwqY0yNWYZVkHqbccfISTDGgSWOTMMdZCX4Tz/0ReoR5fdDBMNTjoo?= =?Windows-1252?Q?xz5VdRiX+H23KY1qsvI/0QBa1z3p92TMojROiiD11KZ39TAwRSZlXX4Z?= =?Windows-1252?Q?QArjzPqwpChNRlJyGiHuwV6b7Sl19AlPFPYSi9dSGPy7EyD9B9EwCGtJ?= =?Windows-1252?Q?Y7MAr9f5DfwmwjzDdXs/9U7nLplLgt2dMPHtBK0kRF9RLJZcN+jrQfxJ?= =?Windows-1252?Q?Pknek8DLpd5A8g3fDPLEu/Nnkw0tKgjFMkpOILeINJEoFm57rUIcSZSS?= =?Windows-1252?Q?HQgXyzdxQbnAoGDNz/fA9rMC8UKMef+EwpuruMiSameDiCTDwhNYlPXc?= =?Windows-1252?Q?UG0Lqpmy1vMKjPwC3ZmomIFLfRlQ8A/qliAvJCNdIAPNZrUgHufiKy4p?= =?Windows-1252?Q?UKnnLmGbXRl4oM6y7CfAoZ7law3BuBUuOurBiV3cQMntDi0fnHBz1orG?= =?Windows-1252?Q?aEBXY+QFT48hcktzxjCeuC7dVIBH14QXzOadUjtQO3M57Ya56G5Ym5hP?= =?Windows-1252?Q?Zzx2xoODqVDi9u8luIcgiZjAK8jyC/58Vxkpm1A2x7U53744tP1MfToo?= =?Windows-1252?Q?EbIEDWAA8F7MGgU6CrfJU6gWFwK4cl4UHbB1OoVe6b3zdNQc+LA1WpSN?= =?Windows-1252?Q?h5HRypMLz019UlL+SCr95On0uCd1+pgMYw6ftI8NvifPSBc+QFM9BC7w?= =?Windows-1252?Q?uHRGhCTCE7OI7b08b+YY42ETk+RlVNIWNecI6RQfXOjQJ88NGPYgaM/g?= =?Windows-1252?Q?vRJjE38m2gfY1ZE//UoCSuQ/jOamA9iOtQau48sJSDhuAnd1+ygRyNaI?= =?Windows-1252?Q?r0RO91pPCBH4j3Bpp9Kf6qVdhY8nWROSmBbu6FLbkOF/U6mqPV1dzBu+?= =?Windows-1252?Q?gmWZpNlLXFaSdvE6iO0ORzYlYpFbs/ONTyiOcwNKOOKAbY+jxmI3YnRA?= =?Windows-1252?Q?71Qki+8HFrKLaxm73iLjZNNY6YI8tuhJQOS?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3104; 6:G7HxBsyljxpmAoHlcZ1Il+b+y+n5zUePmSFIbXFwwzWeSKYGb38SYyqRYMtycrDGYsZWTNZlb3j4zYkoIMp4jCXPJMxYmxWXPlGwSfa1zYyFW8ASBSzINy27effyO6RFb+OqPTbwnN0RaP0dGHGmEXvNbOSwAgXSH5wAMTn1fUsC8+FqZIHW9Y10NA195iV0kXbVv1E0rUI7PgABZgIkKXe0hHonDIBtw2VtOmZ9XGaUqHHVlk8Bp63suBler6FpPoshbx0L3JJscZPN3uh+b+byOlQRobIlsUBP5ZJ9pzOjGxffzx0IKyxHYCFZLqXGGAyv2YCtu1OZBq+sINZizA==; 5:3efxkdxd/Wq6N/CxLFvI2v3W7J4r6c98mtdeAxNNJxHf5tPViGIDbJOPu4I6Pv52YjiolL/4eZyz4vdAlpArJ5gfkVHoDuFZtSuMxWf0Q1ezG1YStGDMovpwzVvUkAXwuL6V4vetzYdd951NIIhFFQ==; 24:ls+xXr486DAiChxPdd8SV7l9wPc524LDyWV3GpkeWbDZ4rlAyBprX29dOuXSWGEC77bfoTWF9G6nsTpu/7YXj7xplBJ3ZjinHhcPXaAzqGg=; 7:Yh9rm8kw0HAIqEMLKecjdB2wipzCMCY0xHqeD+8gekrCIeY3/MWEs4xcy4I73KyrgcTkmA8JWX+VVpRbaC0kXGLa+3GnPybCyFmSzphywU1DdTb/sHQ8kSf5puDnekwPtQa2w7IdoubX9SbrfKbnBe6nDawnJYDIi27bnsRnviQ6DveBvR8c8++LuoZ7YP3Z1EE/PLDldcPBcfHNe45OiCWm2PU/RwfC7J3sBAksrEs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Oct 2017 05:38:13.9138 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3104 Subject: Re: [dpdk-dev] [PATCH v10 3/9] linuxapp/eal_pci: get iommu class 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: Wed, 11 Oct 2017 05:38:22 -0000 On Wednesday 11 October 2017 11:01 AM, Tan, Jianfeng wrote: > > > On 10/11/2017 12:43 PM, santosh wrote: >> On Wednesday 11 October 2017 07:17 AM, Tan, Jianfeng wrote: >>> Hi, >>> >>> Nice patch series. But I still have a small question about below flag. >>> >>> >>> On 10/6/2017 7:03 PM, Santosh Shukla wrote: >>>> Get iommu class of PCI device on the bus and returns preferred iova >>>> mapping mode for that bus. >>>> >>>> Patch also introduces RTE_PCI_DRV_IOVA_AS_VA drv flag. >>>> Flag used when driver needs to operate in iova=va mode. >>>> >>> Does this flag indicate a must to use VA as IOVA, or a nice-to-have one? In detail, above commit log says, "needs to operate in iova=va mode", but the comment in the patch indicates this flag means "driver supports IOVA as VA". >>> >>> If it's the latter case, I would suppose all drivers support to use VA as IOVA, if the NICs are binded to vfio-pci (iommu mode). Please correct me if I'm wrong. >>> >> - Any iommu backed pmd could choose to use this flag. > > But if this is characterized by assumption for all PMDs, why do we trouble to introduce this flag. > to hint bus layer about iova=va mapping choice for _this_ driver and default is iova=pa. Thanks.