From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0048.outbound.protection.outlook.com [104.47.34.48]) by dpdk.org (Postfix) with ESMTP id E0B9F1B27C for ; Mon, 6 Nov 2017 09:51:35 +0100 (CET) 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=ZlE+pvsb9PMYvf5I6ZUL9Ry6urJ4FJ+e9Fst5T7Obgw=; b=oLL/MuU7Vf0SWzt5b0e3YJzY9NVZy5wTJKveB+8QoMiZrNBlw3YyH/QBC0yUjJqum+mjHTwRJP1Q2MYcUbe2fI3UP0wRuoBCGwzVG08/Bj1MJ9zJQ653oN41sjyeOZSewsqm8rI+J1j37Vc11KST9v48MHuwHs6hzSepoqz8imw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from [192.168.0.104] (103.76.56.167) by CY4PR07MB3094.namprd07.prod.outlook.com (10.172.115.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.197.13; Mon, 6 Nov 2017 08:51:32 +0000 To: Thomas Monjalon Cc: olivier.matz@6wind.com, sergio.gonzalez.monroy@intel.com, anatoly.burakov@intel.com, dev@dpdk.org References: <20170814151537.29454-1-santosh.shukla@caviumnetworks.com> <20171106014141.13266-3-thomas@monjalon.net> <80cb9e8f-c493-4b5f-909f-9ae233ba6541@caviumnetworks.com> <3304743.b7VfCBXbgQ@xps> From: santosh Message-ID: <020f79b0-8d81-7e5f-fd28-089f38e27723@caviumnetworks.com> Date: Mon, 6 Nov 2017 14:21:20 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <3304743.b7VfCBXbgQ@xps> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [103.76.56.167] X-ClientProxiedBy: PN1PR01CA0078.INDPRD01.PROD.OUTLOOK.COM (10.174.144.146) To CY4PR07MB3094.namprd07.prod.outlook.com (10.172.115.8) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f51184b4-d7c3-4a7d-a6de-08d524f3952b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:CY4PR07MB3094; X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 3:QVY4Mf6/+YyLaxUMHM8mhcW/Jg4RCJV38Oq/AypPKOEbDLnOkpyuVldNfn8xA03SCItVUlJUPLB+rcx/EuhZWqGx1ONKPzeb/e9gRoksaj0dccgVUO2Bey2+DOtixc7wPuAk3+zHCeOUG3aHw3nj75+uezvawqdot4n1t+64OY1ZqvMiNBKd3PPM0RbSiK+8b3ObGY2MD9O/fCg+TFQmpOLyGvK2+nRs7i69P8dvPrjTrnC+kHCk5q5gORdusyA9; 25:XLs7IGRGRaNoIddxEd/A173V2ydSJwpPbzT5rUmWIn2bfh64W9Ks05YwhDN5hLfKHR+xGg0gyhcXTy/MOkQ9XCC8dDACBlFUPixdKiWW7g41IoQ/0AUU82VqvPKmtM2gLzKkiB4qbl+VWJguiTjnfTwJPhUbA/ZpXgrGU27XVUcrMLoT9tQLAdpTHDLPJekuyYix4Sb2dsVIjhWu+NZJgcMeCgNW/x87f7KMhdOmkJkbG0I4XhqAU1YYwVXpRQGMK4OWPNc2MeK/5l6XQSvHp60Mi46nrO98O/w28yIsA9MwX0u1UUmJrgR8Q54dHaJaQ/7jfIW0wF8EUFPyjydu2g==; 31:8gEQJOCT04nimFK4vsxnV1pKqpcHrN8V+AZqvzgm8hgxfDP/XMhgTqiFb9u6HVfpqAk7Inv0ozcDiGY++31+I8l1H5wEgAIx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2QdvVcmjpzfJ4kkYr4WEMil1ehy0pGUQruTfMww== 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)(5005006)(8121501046)(3002001)(10201501046)(3231021)(93006095)(100000703101)(100105400095)(6041248)(20161123555025)(20161123558100)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR07MB3094; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR07MB3094; X-Forefront-PRVS: 048396AFA0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6049001)(346002)(376002)(199003)(189002)(24454002)(76176999)(54356999)(189998001)(65956001)(65806001)(66066001)(101416001)(65826007)(5660300001)(36756003)(47776003)(105586002)(478600001)(106356001)(8936002)(97736004)(16526018)(3846002)(90366009)(6116002)(305945005)(53936002)(25786009)(6246003)(64126003)(7736002)(50986999)(230700001)(8676002)(31686004)(83506002)(117156002)(33646002)(6916009)(42882006)(6666003)(2950100002)(81156014)(81166006)(86152003)(6486002)(77096006)(229853002)(23676003)(93886005)(50466002)(68736007)(316002)(2906002)(31696002)(4326008)(72206003)(16576012)(58126008); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR07MB3094; H:[192.168.0.104]; 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: =?utf-8?B?MTtDWTRQUjA3TUIzMDk0OzIzOlBVVmoycXU0SE5kM0FqMFpjZmFTSzhCQ0di?= =?utf-8?B?NTU1SlIrWFErM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RtdnNFZ0pVU0hjOThSY0JUWEtJa2xhaDNW?= =?utf-8?Q?33Vvz2+nce+dcdC+IX4jG4uhC/3UZP1w?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR07MB3094; 6:DtYt+y7eGBYnTVUEYNrmlN/v3Pgu1hf+o6M57zmW12tvqYXO7c4K2N7uYn102YJQ2PwyMcXYp43/u1p9wZxb5U+bDXyQWKZdSlKQChCHWDRt9tlYLlmrUTvTxGbfTqnlCW9tYlSFfqWjv/t9NDnzYIPkOVRh7M++dQPHSK80ZqkL2Udwy+8nnV9E9tNviazX1b9OjVW+A73cnPe/UQKIs+qDB4duKP9uRHP2KKD7Rtkrf+sOgKmfItFUCh3P0L2IovHSEDsD34qcU1Hcb4+LT583fald/imXumc+SVqwaByz74zFGRImDSHOhnML6Ce6++8xCEXCqd4CadMIvbCOQLVxlkDnH76+I4y2JIOqRUg=; 5:o9y+YhP0cgm4pRlPIeGN5pMNsgMhZC+8JODo0XjC8lQAi9UGlsdHHcD58kjTaQYiifkWCIOQTOkFh9l+OoNWJgZntfrZZutOVKoQVLzCe2zpwB+PH+9iQt6IgzpCF7EkjASL0fCXwaxzkno2Ley8/l5PNe/50waVox/AjFK38Mg=; 24:yoTF3iI7eAldRq5V/558EGAGf+MUIl99Nfjq8D3iE5zs3OilCtaaLtTJNpgHmDJQQZ0s20EQo6ySXl0UA3wyGpOCPG4gS5syga5lxilI/kA=; 7:V3siHwf+m/rEZAd9ZpY04UTzNJfD8I6/vNhvS77+FdPJzyrlR96IWJ8Rd+yk6M18rNSStZ5l0bS7qHYs/YeuX4V7VPVwqbwhK1oqWe/GEJlfw75b8nPaotP64PCOxngTjen8hFlTTiYxbEf9y7u+skW7sT2vu0mhWhshEmzehzoEtvEYpPpwEVHD9PalxZhL90ZHy1AEJYIAItbVAqLR5kLHwXNcSPPOX5yXd/QsKi5V+G5yn7CGjFkQcm4lZins SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Nov 2017 08:51:32.2830 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f51184b4-d7c3-4a7d-a6de-08d524f3952b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR07MB3094 Subject: Re: [dpdk-dev] [PATCH v4 02/15] mem: introduce IOVA type 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: Mon, 06 Nov 2017 08:51:36 -0000 On Monday 06 November 2017 02:07 PM, Thomas Monjalon wrote: > 06/11/2017 06:38, santosh: >> On Monday 06 November 2017 07:11 AM, Thomas Monjalon wrote: >>> The IO virtual addresses may be used instead of physical addresses. >>> As IOVA is more generic, it should be used in most places instead >>> of physical address wording. >>> >>> Signed-off-by: Thomas Monjalon >>> --- >>> +/** >>> + * IO virtual address type. >>> + * When the physical addressing mode is in use, >>> + * the translation from a virtual address to a physical address >>> + * is a direct mapping, i.e. the same value. >>> + */ >> I guess - that description applicable for iova=va mode >> and for iova=pa mode - Need to do explicit virt2phy translation. >> I believe you mis-wrote - s/physical addressing mode/virtual addressing mode. > Not sure to understand your comment. > Let me reword the description to be less ambiguous: > > * When the physical addressing mode (IOVA as PA) is in use, > * the translation from an IO virtual address (IOVA) to a physical address > * is a direct mapping, i.e. the same value. > * Otherwise, in virtual mode (IOVA as VA), an IOMMU may do the translation. > > Is this description correct? > Yes.