From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0072.outbound.protection.outlook.com [104.47.1.72]) by dpdk.org (Postfix) with ESMTP id 42A792862 for ; Thu, 30 Aug 2018 14:13:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zrAHXyL4tztfqObfBj0lGbWvZLJeY5DavvjC7bowdss=; b=ca0vRMQtramLZGaODsMsiv7R2D5Cq5EbGYWEuIH6EetqoVfU25vlew7IUjI1IzyQobwF6N451CXjEkH0Nc1rA2zr8IIeVoWLbuRhpU8YZeXH01PgBEv5tTVb9e1PuOdBNY95VTyJVaoBdV5uSZhtkRVsXlZ8RbJxjqTKmwReMwI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from [10.232.133.65] (14.143.30.134) by VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 12:13:49 +0000 To: =?UTF-8?Q?Ga=c3=abtan_Rivet?= , "Burakov, Anatoly" Cc: eric zhang , bruce.richardson@intel.com, dev@dpdk.org, Allain.Legacy@windriver.com, Matt.Peters@windriver.com References: <1535558289-10336-1-git-send-email-eric.zhang@windriver.com> <20180830094323.37xkgud4fz3mflbg@bidouze.vm.6wind.com> From: Hemant Organization: NXP Message-ID: <0f19de06-fccd-eff2-b33e-71d49a005dbb@nxp.com> Date: Thu, 30 Aug 2018 17:43:29 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180830094323.37xkgud4fz3mflbg@bidouze.vm.6wind.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: PN1PR0101CA0023.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:e::33) To VI1PR0401MB2541.eurprd04.prod.outlook.com (2603:10a6:800:56::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3cc670a0-a625-4b5b-85e3-08d60e720ba7 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2541; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2541; 3:Y0pMWKVbt3zPtygKbNjBtQUYJ1hH/ubP7XQZ/komp7dmXA914TpqL/9MF8mUGxaT6oYdvqKuQOY9N1O0sO75F+c47w5CQeK7ZXu1FMzHkI7TyK91g4BicC3aBJ5NlNe6t5hWMoZeb6ejL0tDiDSqJIRJj7W5Srkgu7U8gcy8nSLosyXpMwI0xIZieA/qFYtVYB1uPanhUny+/CH48zludWhvDPBVI34HW7mw1S1cW/eCDIHWe+hNosuzeRBU/TfB; 25:JpaneP2Nr/3UkdZHy/lG83EXpazIWuBy5T7IsOOPoI7UM3nlu4n1epJNtyHxNNzFYjAmnpSUNLegA856GyKDqhhfm4ZzJMxcvVVYX6NdZVZHA3oFg8kwyMUXKX3GUcDgDDUpVcXC4gPT2RVAwl8JWxp7890OSIcKBN3kuIxXsXEiqdCs0bY9BizKXfqqDQbjqPQNr2kWpMlGgWJIhqZDZG6imramzCp4p+kvLQspE2sa9aLX3q7K0F0bAuZH7XaG3/QQQCuhfZHYhDPQuXjXr2yHHIrLJIYB8kp/XwVf7nH++u6SrUe5HlqsXLnv1ojiI61h/A4UFH8I+f36B6Zn+A==; 31:jjZXx1csjJFmeg8AN0jCYYyLbPAfsoaifG47ClOu2wIrXd5EU/gq6uUfrnJgVuIn3UVBkC2nybimsXj3Vmf7Vo8a0PGYfDF4HmRn2ybDkRdxD4rZC12QKlM7MX1nAs8UJHCF27cLGQaDvciTl9ODRXLelGzEfJvM2OCzNlLokrf/KrabRXDS/5Jjracupw7M+xiyr28FyRlsRHqU8gV9RDGGHcTNy13SBs+KLVJENVo= X-MS-TrafficTypeDiagnostic: VI1PR0401MB2541: X-Microsoft-Exchange-Diagnostics: 1; VI1PR0401MB2541; 20:FA5ATkdGeHXO85MSk8Glj01qcbH8X9dOIC7cuX/XOE5fa0flr7PUT58x0YADXtMXnStxINlXBDv7Tjfrg5wq9FeZo2Em2Oqbsi2LpXM6qtcYnVp2/IMH28SwJYI8QcU462fXt5XliksAvdxXWuUPoLya2GVFA4d61D0Ym1RRU4dtOfZj3tGDTeKJM991in3UkSmlc7KIgu2E2wdi7aKud9xFLmay6KEeSvR2lqC2czM95JdXybb1pQR3ochKbmdqA1Z0opUMFWU+q16SKLZdAY8H1muziOK0G5ll9oDWq+jc1PHHWj4sXOJVJbpjoJcF9v2RmPyYzH299tZKqn+ZQP+myuNQ/VK32ICXxB4KYjaJbYAWb87Z/J8wWcwVdrmDeecEyUNm0A2QjwUD7X3bKYwLef/KTFl6OErdjw9E2WILKl+zh/BvAWsDp4sbVvqF6L8MM8LrdEAns/Lu5iPG85rvoYLRMiR5i8f8vgKbAT1/PIZ2/DexHlPrUGyIq/C7; 4:3o+BiEzen1T8v0PDaUqMESq1T6gTD9gzR9aAQZ7+RUThKKlshU7ePfrHUClF2srmThBnPw2c4DeyACuXqE7wWjlZ3+9uATIcvVLkg7q1YrqMsAXF8JH8DkvKUSQYF7vKD9DmcSRCRPRsDRP6TMz2auhTVmxg3K4KjVsytgfIUIHvVjjjfalYczldqgAQj3wb2zGn28xejR1YVz3VmL9PHexpb6AYvybCqUClx2cJgr7lgq7rUA9f69rlSS14cDVwXHqaeamB40iIDq4miM5ZtQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231311)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:VI1PR0401MB2541; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2541; X-Forefront-PRVS: 07807C55DC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(376002)(39860400002)(366004)(136003)(346002)(396003)(189003)(199004)(53546011)(316002)(106356001)(65956001)(486006)(47776003)(229853002)(16526019)(5009440100003)(53936002)(26005)(186003)(77096007)(386003)(6666003)(31686004)(31696002)(52116002)(43066004)(23676004)(66066001)(956004)(65806001)(446003)(67846002)(36916002)(52146003)(76176011)(6486002)(11346002)(58126008)(16576012)(110136005)(2486003)(97736004)(86362001)(105586002)(4326008)(6246003)(3260700006)(25786009)(68736007)(2616005)(305945005)(64126003)(2906002)(65826007)(6116002)(5660300001)(476003)(3846002)(81166006)(7736002)(8676002)(50466002)(478600001)(2870700001)(81156014)(8936002)(5024004)(3450700001)(36756003)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2541; H:[10.232.133.65]; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtWSTFQUjA0MDFNQjI1NDE7MjM6aFRsS1J3UWlmSGc4U2VBSkVnNkFiR3pS?= =?utf-8?B?UXh5WjV3KzkzUUpwUlIxcm43QUQ5dXJHTDhyK0dCeFprMEd6ZTh1ek0wQlRy?= =?utf-8?B?TVNabjNucEpwTkpPRG45QnRWRFVlTk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vxh9dBwupQJdQVuZQR13hcrHTd6pE3ECnxwNQd3WB/dJ+pbbUfWKMb/CbBYr9otiDeu/UXFD3Csj4pwM3D4w==; 5:2NoGitKrkOh53Jftq45TWg/DjSsKf3IPam6iOuWDTWA/BOKq8gpu3y1Os4l+UEGG2Fmd4VeY3hxnfnKnsQ3yYueX/O+b6xgL8M3yjZMasFjKPVwLhzbCmExyrS86Stkou/pm+qbGjdg1v6YNoeHpadXgnCuc0ap/ccmqLUoEm6M=; 7:Vki0zmzyg16pvG3D9Dcuu4+EuY989h7mqM/EBYy/qKKkCb0aWuexC1rMGSVidoR5KFyUzB5QZVv6m3aaIMPk1EgjXBgqUfbjuqAxigtS9tdNYSZ4jb9uUXho19rgglipiVPJx4H1tpqB9cLFwxKUgEobQA7SwuuWY9CAJYnXLdnITDuTjY7z1o1ulifFOctftDGKGFGTdLLaNdrfV5MsfJWfrqkXsKME5gpn4uX3hnfctW+frN+7HuwhTRifaDkl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 12:13:49.0391 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3cc670a0-a625-4b5b-85e3-08d60e720ba7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2541 Subject: Re: [dpdk-dev] [PATCH] eal: force IOVA mode to physical X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: hemant.agrawal@nxp.com List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2018 12:13:52 -0000 Hi, On 8/30/2018 3:13 PM, Gaƫtan Rivet wrote: > Hi, > > On Thu, Aug 30, 2018 at 10:09:04AM +0100, Burakov, Anatoly wrote: >> On 29-Aug-18 4:58 PM, eric zhang wrote: >>> This patch adds a configuration option to force the IOVA mode to >>> physical address (PA). There exists virtual devices that are not >>> directly attached to the PCI bus, and therefore the auto detection >>> of the IOVA mode based on probing the PCI bus and IOMMU configuration >>> may not report the required addressing mode. Having the configuration >>> option permits the mode to be explicitly configured in this scenario. >>> >>> Signed-off-by: eric zhang >>> --- >> Defining this at compile-time seems like an overkill. Wouldn't it be better >> to just add an EAL command-line option to force IOVA mode to a particular >> value? That is a good suggestion. >> -- >> Thanks, >> Anatoly > What is the bus of these devices and why not implement get_iommu_class > in it? There are cases, where you are using dpdk libraries with external libraries and you need to change the default behavior DPDK lib to use physical address instead of virtual address. Providing an option to user will help.