From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0040.outbound.protection.outlook.com [104.47.40.40]) by dpdk.org (Postfix) with ESMTP id ECD101B21A for ; Wed, 1 Nov 2017 04:55:05 +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=3+WeSkl5iygi1AyUlk9S1byTs15l4ZHhQEgGiLyLtVM=; b=gyZYJsHyJ2uzQE09MhdoMhAKmi2V1eA3K42fd1ovIOSIHrROp01K5g9eJbjQieMBqzS//FS+eYenVUqK1cFyEmUJppVDA619c+VkR/uM0ZDTdSt/0IRvsDIDyBxsu4S3reiZIpukPhHOyNMnMYK1UzdJYPl0k+vaUn/novthpb0= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Santosh.Shukla@cavium.com; Received: from [192.168.0.104] (103.76.56.167) by BN6PR07MB3092.namprd07.prod.outlook.com (10.172.105.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Wed, 1 Nov 2017 03:55:01 +0000 To: Ferruh Yigit , Thomas Monjalon , Bruce Richardson , Sergio Gonzalez Monroy Cc: dev@dpdk.org, Jianfeng Tan References: <20171101010726.17781-1-ferruh.yigit@intel.com> From: santosh Message-ID: Date: Wed, 1 Nov 2017 09:24:44 +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: <20171101010726.17781-1-ferruh.yigit@intel.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Originating-IP: [103.76.56.167] X-ClientProxiedBy: PN1PR0101CA0054.INDPRD01.PROD.OUTLOOK.COM (10.174.150.144) To BN6PR07MB3092.namprd07.prod.outlook.com (10.172.105.10) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1051cf5d-3a9d-4eb3-4cc3-08d520dc54e9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(2017052603199); SRVR:BN6PR07MB3092; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3092; 3:8F28eZ2MG3aVBl0cPs98AIg5vzio1OsQY6KAM9ER6E49+/JpTIdetUbZMkcuPyl6M9l7MCUTGETzNn0Hxc/dA67Fb1E/aP/F5UpjA3aE4og0+ZburS/JIfNtX5zowfHARBtNyGzX4vAoljIHHCgowokinFMh+5/G7Vsw9Pfqugbe9xk5/VcWzytjHGzWeCoicdiyqpvkG/0dJb54wIkKTJ4y87xqKen+gsr1+1MXGRsqWj2i8b2VFgF/rym8PLtv; 25:be6XJPQrMnp/ZM1FKcUkM1Msrbbj+wuvqvr7VDZF0veiuIf88VolPbuLCLw+u2HQ09FH1K17JvHr7BExfMvfgvDfFRdymIgwpin6opaXH6kGKKAUUrLI/Dwr77s7W08zVbIcxL/8FcY9/LcYgfy6TPASMe3dOC1z0h8ohKuq4DMqvyb62pStl/+ayyz+lRyrOWdupJEEDAStCRCpaZuYf5tGLXoxUSJPRzWmEm5LaGjp4gAOv8URz+F59PiKGbzQwAWxACAJIPA/3jdPkUZGIibn0Z905JOuE7VE3lzKYjjb/nPKZZyBAf5P8j/kfGvZEjMZ4ugo3ws8LROC4WpvaQ==; 31:Pw94qWuuJLL647nEwPmxiWvbTfTVDdm38r7Wn0cdeohj8dn0NDNZ4pxXuS1uJ6dP00NBUL7ZYIXXLYCqPWDVk8MaFiPxvWrTViQlpBcCWOKW/5uc54/2rfK6VGQAh/jqgOlRvRX63i8pdXr3jQJ7Y1YMCsuIOFnjRqzTFIGtn4y8rYik56P5uhOHd8QgpgnX0mMVwdaREIwC4/6h2rI9ULVDY6A/4+S+Q7YN2uRAGnU= X-MS-TrafficTypeDiagnostic: BN6PR07MB3092: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3092; 20:0OueIVeUkSYXbz3HcCKCyH8KDegOPUHFJMTqT5P1aYy7dF7NqJfhy55V8Ju45EEPzFEqxoNAmoHDJ+HG28tp87NWaqUP6CVoQJNFf5SqPmuV+oCh3vZ0ELg9YDx7Aaq31+rd4s4AYlZl7hECuJyrMJ5QvEFMZ7Wu0q0sAHKAKp3HprcHJTN05B0QVJqQ+gBvyOqQSzhQkaproZBOtZyaaVLMxH7+pDHTSQSRUN6qnZFQ35qO1KarPEUeQH3Ct6xBPFedmiaqs9n8sVAoGNN/Ovax5GG8+Cnc30dfXydX9KqvNVk2eTpwP6ri+CbcUl9ydfDT1szI1A+uvGqZwuNujQPPjEegdnF/roh6bvezSESB6mhS5vEYK2LYE5d9qE0dbwq7uAwxChi1TF9VNXNNJMlXzS3c1LBkjrqNg2NTQ1dqRi11t0f7sBnBHJ65qDjgPB0yThIadncQeduZ4Yq5NWtK6f1on5fSeQ6dU0t3GYbdxj7YT3nGy7XoEtQik3JmFSw0fr1m69ricDrGgeKovhzrKYK0aGk8rGJo7juoGMR8gltOmhmmgxfF2e5DOgHt/AgH8lXxi4wX3+gyBlKk00NaACsXNMy6OnD4Ck4QTdc=; 4:15AwXzaf0mGQdcko6fRZ0rw3IC+AIdJgkHeuvoWhMWaNvCfxvx3sTp/6Tf+ZKCyduozIVv8ssdzkK9n6ieXFbZPBfpY5tntW4/24Rhbfym8M9FrSRccf8wWj3pdIsFzQj9FgdxgciTQfASyxeCrLG8/RRrNmlarWVeFftTg+xTcQCrn50TuwluZnbL8gSQCQLG5FHnhdMkU3nLxsRW8vnxbUQDxb3Zzly3sK1aPXtqEgtyWwxe1PYYOjXl7TJv4Xphdr7nfXodlJPzOkkitRoHDhyewo215FtsZxBtohaWzHW+1hxWKgvwSzVTG5Lgif X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); 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)(3231020)(93006095)(10201501046)(100000703101)(100105400095)(3002001)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR07MB3092; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR07MB3092; X-Forefront-PRVS: 0478C23FE0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6049001)(346002)(376002)(189002)(24454002)(199003)(478600001)(101416001)(7736002)(72206003)(64126003)(65826007)(105586002)(189998001)(305945005)(106356001)(53936002)(4326008)(33646002)(50466002)(230700001)(68736007)(81166006)(2906002)(6116002)(3846002)(81156014)(36756003)(8936002)(6246003)(8676002)(229853002)(5660300001)(83506002)(16526018)(31686004)(90366009)(6666003)(2950100002)(42882006)(77096006)(86152003)(6486002)(54356999)(76176999)(50986999)(66066001)(31696002)(316002)(58126008)(65956001)(97736004)(117156002)(65806001)(47776003)(25786009)(23676003)(110136005)(16576012); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3092; H:[192.168.0.104]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjA3TUIzMDkyOzIzOm5WRGE1RGpCNWNkYXlZOGJxVTZaaDNPdnVq?= =?utf-8?B?b0lIckxsdHprRUZmUmRBOU1aTXdoVVVTU1JpQ3RhTmNSQ2hxUEwzMXBlT282?= =?utf-8?B?MWw4QVUyalJrRW1PSlZkZWxDMmozUHdTMmFZc1p3eXFFcStX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Hw9bX6WWs7wC6LFiRJBBqEUrTP1SE7IxLZm8SbzvieKPlsFqHCNxXcgcnu23EWJLMOfSyQXYx2uzvkQRPfIqPDrjoeYVOjJnc05REoylC18whHYbB81ezqO078mXup5+AyyiTe8QWWR/SQ+Sh5ZKYqT3PBkYBAL2ITX4gPrExO8S75hNxegipQZprZA52WpQpDnS7t7bFq8RwN+C07YHdu1WdSM7++CIcqyYea3ERHK1zai+zzn7wmbGXoxxe+essn6Zt7zJD54vSKM9oc4kEbFFr7zp6Rg2wM9N+F8tDQndeJUEefB7ca6PWJo2lK2OMOl/pgg8+zsmUYSOGhis=; 5:eOVH7KM5VHqBIpRmXFK9X5XCyIvjHDSsfb9KYbkYriSkb+ELszREPqP5o0uDmMwq4fBIT/UBiqpzVbLFDO4zr7eO6q2kfZQh8s6BtcyKehbl0YWgcErRrEGigH5DNIR7h9X/Zbw1m3ZM0To6FHzNR0PvTEBYhzXl93+ulxCupLw=; 24:/c4lStrFWAJtUVGyBnZ4A2H4GMpysNtx4adQivmJqy0ZON4wQaFB4fA+nyJrGu5u5W87w4NcF6K/6uYGO0e/nolbEJdRRl89aXEMmUMINBc=; 7:UAW7ZlB0QHyQV+6HpwruIN2gvgYi7li8vfDcB2E3ynx4X3k9va8+8QfIBlreSFCcmnC6yo0bND6KQ+e5xWFA/q9IZtbz+N+t9rZRpTcU1O1niqQli0PzlIPzAoW5WAPRIZPRWYuNzQlb4/PSI0WT2x1+HOFCzVsTSUy1pt5XTwxiRDDoQA9ps/zHiJgJr/IB6UsMuZipw9++6uPkGmxHi3ohODcn+vQTy3bDpFk5JFe7KsQhEp8loci12UtSpj7T SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2017 03:55:01.4294 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1051cf5d-3a9d-4eb3-4cc3-08d520dc54e9 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3092 Subject: Re: [dpdk-dev] [PATCH] eal: disable IOVA mode detection by default 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, 01 Nov 2017 03:55:06 -0000 On Wednesday 01 November 2017 06:37 AM, Ferruh Yigit wrote: > Fix kernel crash with KNI because KNI requires physical addresses. > > A config option introduced to disable IOVA mode detection and to set it > to physical address by default. Disabling config option will enable IOVA > mode detection. > > When there is no intension to use KNI, it is safe to enable detection. > > Config option disable IOVA mode detection by default to be sure only who > is aware of result enable it. > > Fixes: 72d013644bd6 ("mem: honor IOVA mode in malloc virt2phy") > > Signed-off-by: Ferruh Yigit > --- Disabling _IOVA in config (static-way) defeats the dynamic iova autodetect purpose. HW facilitates iova=pa/va address space so pmd's should able to adapt for both the programming mode.. meaning Perhaps phy2virt style translation might address the KNI crash. For that KNI could check iova mode by referring to api rte_eal_iova_mode() and then do the phy2virt translation.