From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0077.outbound.protection.outlook.com [104.47.0.77]) by dpdk.org (Postfix) with ESMTP id EC74E1B6D2 for ; Tue, 6 Feb 2018 18:28:42 +0100 (CET) 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; bh=k+zCIA0EnY2mHUT0Nr0bH6tiY6QTMg1QfIwZCVBZumw=; b=BZ3KNXe82kDuhdbKkcF0SjAJ6gSCbAdl3xSSZtNDC7TJo1y4lJDcjFG4sEJv9d0eQOaM3c+Vy5qPAzTomhtCj1C0/wF+/VPYJn6TG+8yCJfqPzrOVgIvh7JQkDjkYDO8Ipev1QBT0QnPmqqq3cfisFwK2gG5+WaA2bQtQUrONvs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from [192.168.1.4] (122.161.219.44) by DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Tue, 6 Feb 2018 17:28:39 +0000 To: Pavan Nikhilesh , jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, thomas@monjalon.net, ferruh.yigit@intel.com Cc: dev@dpdk.org References: <20180206162156.2104-1-pbhagavatula@caviumnetworks.com> <20180206172248.5067-1-pbhagavatula@caviumnetworks.com> From: Hemant Agrawal Message-ID: <0cc5b397-dbc1-de66-76ad-5ad47707a88a@nxp.com> Date: Tue, 6 Feb 2018 22:58:29 +0530 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180206172248.5067-1-pbhagavatula@caviumnetworks.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [122.161.219.44] X-ClientProxiedBy: BM1PR0101CA0026.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::12) To DB4PR04MB0767.eurprd04.prod.outlook.com (2a01:111:e400:984d::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8a951adb-bc7d-4eea-d4a5-08d56d8710a3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB4PR04MB0767; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 3:Lt1ul7cdrLo64EP4HU6PdJ3Nz000T3pYC843Jo3BIJylc0s+Frk8BczJ/wM0WhK5oIO8VTzBAiw92dQA+uEtzm4F83rEfXLt5PyCF+HlaP8+503B1MhvDXAabwUQwOm8/OBq9D8BGOlMJb1p8GqqzylUllYdOqDPHaeUgGj2IcQer6b24ZVfcaKka1TnWPg/6Fm3xBWfCcAkisd23ZSEebcjLCrJzGl36pIzz4rh8HeZR4j22ILenqdWWnLuPMe0; 25:cqQJ3ss0wzQmnbRpQ6bbDeFNNB1SWiryQYSwfkbY4pNVcJ/jMOo9Y+bT4QZ2YMs1WLzLorX6xpmGNe27UHeX0XZy6OEKX6Xa7ELD2CTmBmqgzuorWYv5ajrtUbgNworhFBxJ4D5kcpYnhR+2WG3MyRu0vRYAA2IotRYFOd7+vWsoNEsz5MHi2ristwEp/IqAlqyaxxvJmvCgw7HIETTIsxZWNi5F5vDEXRr/ic3CBdR0WZ+BUxgiUF/ZRhCXrsyAboySBlRDRGw8v3KiknR9go22g0jgkExRPQ7KgwyLIBXTcLYYlo2B6E8QO/V2dxnMvWQyzbrbaIonA2uzH929TA==; 31:ZxPESjbAKnSkDLYGAWqS5bTaN0fEubOYO0SGc1rCSDEGBCJ64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yYpub4C5C2OkcOtQFbvRuic0DshjqToeOw X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231101)(2400082)(944501161)(3002001)(6055026)(6041288)(20161123562045)(20161123560045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB4PR04MB0767; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0767; X-Forefront-PRVS: 0575F81B58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6049001)(39860400002)(39380400002)(366004)(376002)(396003)(346002)(189003)(199004)(6246003)(31696002)(16576012)(478600001)(186003)(25786009)(117156002)(65826007)(229853002)(50466002)(6666003)(86362001)(5660300001)(4326008)(31686004)(2906002)(6116002)(65806001)(77096007)(6486002)(2950100002)(106356001)(53936002)(65956001)(16526019)(105586002)(52116002)(59450400001)(47776003)(305945005)(2486003)(230700001)(97736004)(8676002)(81166006)(8936002)(3846002)(67846002)(68736007)(52146003)(23676004)(66066001)(81156014)(53546011)(386003)(64126003)(55236004)(36756003)(316002)(26005)(83506002)(7736002)(76176011)(58126008); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0767; H:[192.168.1.4]; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtEQjRQUjA0TUIwNzY3OzIzOkRzV1dSSEg4RkxIODZJOHhyTm5MbkdON0Y4?= =?utf-8?B?dmFSb3ZWOWZML3pjcjk0anFTRy9VYm5WYjJ4c0JEeENkVGI2QXhYL0pFZU16?= =?utf-8?B?RFRRYXdFYnNZZkd3dzE1eW1wM1g0ZTJSQTVYNTRWYTZBZnJ4U0pkdVBwM1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= X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0767; 6:ZO3fJj2Mw9XhPfVeK19yQvJBjKsJ61F85TJBxideLsnkp5kquVaMJepLF33E2XU2Y/lMnxN9GnrAC4X0dw94/wXt2CrZ9p9Pubn7Ux52DB9LgE4K7aFsIoUgdA0DtY5C/riS9DyAJ6qYOUiUepbos7mTiUFOuJicPF8I75cfGNHKXiuMIiy6TICAFYMIFW/VsjwDLwL2HVxjlz5VR8Z58TPmeApIbbHFvhswgXbY3m7YDLHSPJgcIdEf+oGMLmywkyl/e6z3Fx7/svsn1wsLw9wMVW8fs5QZ2sOJHwpmQxL+eKSCALR4azBzcntznvbJXFFHf2tw82OuRN0EfVvmbjLYGlKvFlfovxudszZKHzY=; 5:CQqjj8RTde0+L17bU6Zl/oCs65QFUmCQKYrN/UEP50S773SHYnRGVSHDPZufrLCAu/FZ2i9gXi1EO0OJJFzs2KYXiJPGPzpJwiiyJA8cHLg4FhRUfowFLrem5TXeXUB/Cq+xFOuNd4QsQROpRawErSc4IfxRIABcXL2+ZEYx/yg=; 24:a60VoScBC/zItKDGPLZx7EP2aDtvrxAl5hIBq+Qk37LPu+1+GeQr6W62lL7vWQt8uCZ1547p2VG/HdTPtaYl6tzsR1WbNiCQ9M1uO0B3yE0=; 7:sMSRoaCXpn9GmUCj1iCaf0uoiTxAcBOhNJNg+VqXLkgUs0MPmQJpm3DGfKMpF0O5V2xt+ozJvPAkVrm42a9qRP1J15Tv4SLwgWVJVoAa7bkwoF/Y7Vt8pEeueUExFfKt632e6jrG7ir3FOiKESlaR8XEkNt08tjLltcdRkyPBdXzYBQa1F/wR7Z12aCk7UiwyOo/kEAwTkFMvJoBX4K8Kds2TRMRzLjXBFq4yrqeGTb6/RYAKdB6Jf8bNRY9gJjp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2018 17:28:39.6383 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8a951adb-bc7d-4eea-d4a5-08d56d8710a3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0767 Subject: Re: [dpdk-dev] [PATCH v2] bus/dpaa: fix dpaa returning IOVA as PA 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: Tue, 06 Feb 2018 17:28:43 -0000 On 2/6/2018 10:52 PM, Pavan Nikhilesh wrote: > Fix dpaa bus returning IOVA as PA even when it is not running on dpaa > platform. > > Fixes: 1ee9569576f6 ("config: enable dpaaX drivers for generic ARMv8") > Fixes: d5a4e3a00c4a ("bus/dpaa: set IOVA mode as physical") > > Signed-off-by: Pavan Nikhilesh > --- > > v2 Changes: > - redo commit log. > > Currently all armv8 platforms are broken due to this. > > drivers/bus/dpaa/dpaa_bus.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c > index 290b967da..f2bb3b158 100644 > --- a/drivers/bus/dpaa/dpaa_bus.c > +++ b/drivers/bus/dpaa/dpaa_bus.c > @@ -541,6 +541,10 @@ rte_dpaa_find_device(const struct rte_device *start, rte_dev_cmp_t cmp, > static enum rte_iova_mode > rte_dpaa_get_iommu_class(void) > { > + if ((access(DPAA_DEV_PATH1, F_OK) != 0) && > + (access(DPAA_DEV_PATH2, F_OK) != 0)) { > + return RTE_IOVA_DC; > + } > return RTE_IOVA_PA; > } > > -- > 2.14.1 > > Acked-by: Hemant Agrawal