From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0041.outbound.protection.outlook.com [104.47.38.41]) by dpdk.org (Postfix) with ESMTP id 7360B1B6F9 for ; Tue, 6 Feb 2018 17:22:28 +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=4JaxcfTNINuSYPZf76gJjAgKxP8XdrWc4X13qciZ2Y0=; b=HyaYARKkFzJq6L6BVxvfGZRBhjqWENyCyXhBfozsyOzOSLO9p6mkrCQlfEWqiuyqzzj0BxmGqT9ar1iGuuJL3SYDenzVNjpRHQ4mKJT2Jbez4SeAK7IGRSeGFy+EKWMyUhOIKsiz/1lPQNM0B/zWxl9fIhKnV4CrFszqlUEP/2o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from Pavan-LT.caveonetworks.com (111.93.218.67) by BN6PR07MB3459.namprd07.prod.outlook.com (10.161.153.22) 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 16:22:24 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, hemant.agrawal@nxp.com, thomas@monjalon.net, ferruh.yigit@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Tue, 6 Feb 2018 21:51:56 +0530 Message-Id: <20180206162156.2104-1-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR2201CA0031.namprd22.prod.outlook.com (10.174.164.44) To BN6PR07MB3459.namprd07.prod.outlook.com (10.161.153.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4d05feb0-8ca7-47fa-6710-08d56d7dcfe7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:BN6PR07MB3459; X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 3:WBNGQo1oH8P+B8qSKmiiM9tTnm78wWHT6l+NnYXf9WM4set08Pdzd9KVFjW0q/S5JRwxz/t68QGakfVprIH0FEVOqyAjs9lOloB9+dZxy9Ou+ysId1r0X6We28YoV4h+s2vkW4on+YUr9QK2/2jDd7pgi5PUgot8hMOK2bs1w6nhnghYNU5sSEM9bKWOEw5t5eqfrtra6dtQZIF6RKj8K0pQXKUBTQbzrcMWvbDiKvOfE9IO9ftTMZfMkpDGFF5m; 25:4FDENY/WNpnmGyd///SF8MjA4vxwcuuGB/cU6a477NS1SfKvR/cE5Z1EJwip+W4wrwbumnh9Oqv+kCK5pSlFI49c3WblMvSqPoKXksGBjwkaeiqSZDx35uCmu47cp7j3SBdxlQ/sZZGBxC+pmbwKPKJ3CnWhlKfwwwECWPZJRTC6UQMANQ8/Su71ooyCZLF5sn0uN3dOql+GMGcyy9vJVUqmV36CKKadwttfOG3x/Q/VKfWtQic2t21XTxKU54WqhHWUB2FIbznAZho+RbdOgDUo9/Cm5gPSKWyB7XZWGgx3EJfW45wSLprwhUcNuEqngrpcKIHY3YbaYoOGxbFhOg==; 31:zNBO938DMPIg1LsSzlR0Wz/iIAqp1NSanV9A/NwGDbN53O2RnWcJfmy2psk6cc7gSlDlL/5RqYuotsZ7VfyTTr6IIQ8cY5Iu+Wi718f4hOsymx/pYXhwDza/LZzCg/aGQsNKi467AQIg1Zvu7h94xFikyRZ2xIHtonqRC54sCJPVhnckDKPhDQZS42tVTyzGhqmoJBnp67roT6PugQQlIM8r6VIqoZVud2SOxdyf3Hk= X-MS-TrafficTypeDiagnostic: BN6PR07MB3459: X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 20:MVU4/uHZ5c5LSsDJgRyTc45LJmFkFjkGaP4iPSe6WGCZMqMQBzRK0hKlJn1RssAwbjRdHSdqFK/s4tTtSFvRrQOQ0/sN1B0JkcD2qd6to5WhPyY+A5Jhv2wJh8a23VcgnE0XDb1caUENvx5j4LM6Drq+kg+FeE8TPmgKBsZ30BPwG4kq7uIDSR5fIr9wCdT6eQl8SiP9M1p1bq7CvLy7Zc4LJ0M0oO5nSJt1rZ5uyZLP7RD840slwD5zf6StLJ25QWrJgY+D3w2GvGG2Dh1GT3xJjVA6ia/pZCiOVA2o+lSoZ2ffzkd5R6+Ct1/mIxy7I8TNC7dcFcwlNQSCjIkGFkh8yHgjNA+2VbBifBSmYBmtGmM8GRWLmddavBsenl1EAb8K96slFEPUT+d0FKCs9rhhUaScbB+mLgR4o5BH3bvXzKkU1dkJfcnSC4zHNwhFZ4UfTZZtg3aEneOXMu21SmFE5vNY134cQI9j+5l17y9mqlEwobMbI3lFssxZxbGo4NRlz9YqzZJuSzFuQL+pj5Ap4uanvM4daziEgTollsnDmR+7swDwNH5Eq0CKeYFn3ZF3vEhzW8YR6FqztKbyjRmIYlsmIwGzOSlieVCX6o4=; 4:I8kUe14hI6Y1rQeTJSIS6a42gcEVCDYa+PrReYYtdYmhf7YZwz7fPp4nVZCIaCWcMDsvs8+7OuScUx+EES3t5vUltflcPu7vawmeuHpocGheOvqUXh+CyMlLqOF67ueD2u9/FBfVSveOkonPyrW3tP35klFFfxnmymI9raq7sHGU4aIgVfQglgikgh/8solGWwSg9J60fk3s12Nv898DGNLz/5Y8u6ZS+bHYDdQPHSAGsKxJEafV1jxG6gN6GVI+VZP7Ge62CymKlRmBKSN0og== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3231101)(2400082)(944501161)(10201501046)(3002001)(93006095)(6041288)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:BN6PR07MB3459; BCL:0; PCL:0; RULEID:; SRVR:BN6PR07MB3459; X-Forefront-PRVS: 0575F81B58 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39850400004)(346002)(39380400002)(366004)(376002)(189003)(199004)(478600001)(53936002)(1857600001)(72206003)(16526019)(105586002)(107886003)(8656006)(6512007)(5009440100003)(66066001)(4326008)(47776003)(97736004)(5660300001)(25786009)(6486002)(42882006)(6666003)(52116002)(81156014)(8676002)(51416003)(81166006)(69596002)(5890100001)(59450400001)(68736007)(8936002)(53416004)(316002)(26005)(106356001)(16586007)(386003)(6506007)(50226002)(305945005)(36756003)(3846002)(6116002)(2906002)(50466002)(1076002)(48376002)(7736002)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR07MB3459; H:Pavan-LT.caveonetworks.com; 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: =?us-ascii?Q?1; BN6PR07MB3459; 23:Dn/XFV2Pes/AutANN3UYF8hAtHD9B+fw3utYC6Qon?= =?us-ascii?Q?0KS2+x/0duHGxK1H86PjGANlocgE5Op7M+bCQTs5elPnmkq9IH1fp7VG5lvg?= =?us-ascii?Q?XA3Qwxxs4GwuZFLqIDxce2jE4bqYHGcNrLPiIfqk1544xhS04psjtvJJ160E?= =?us-ascii?Q?kSEQpP2Gf9jMj+XHgL1WvSjb8V9aOUdp2hmwFgV1zOht9+Zy3mZk4/JmZoGf?= =?us-ascii?Q?KX8uNnrPxp4YOhS1ftI3sZzb79zl+ZtXxpZjKlI68Vn1jtohy2bRYm1hAJ19?= =?us-ascii?Q?wOyMqoVEoUJBQeRsDGdPDWRk7whtebzQ/roT7JhtyNKyGUtiVQwBCUiEW2ke?= =?us-ascii?Q?yJumTPu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rWNurQloeMNw?= =?us-ascii?Q?AxUckDK2VYUqy8fuQ0g1YHlwOoDs2EDzF8tvlzo?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR07MB3459; 6:O1ikbhBg6iBTTUsgwxhDhAAIMDC5vPWkqqUl7u6i1zlAv4F+DcK1ZHyfsjJG/0l5e5qZbTsnz0Z0poX4urFiw1YwsDiiGLwVCE+8J8MQV2qVhf9D1C6tHoo4mmzMDfA5NdIOijzGJvJdCBMX6J7otfcj0tV8qfFgTWznK9xeCuh/NR8Ax/rist84XHzZudfDDdm1Yiwdqu9RawjCGxFFpX6rHtUQLR3+90vbMegLGsBNSHqkKbzdDB3eTDPLVq9XM+mbAryRc+ZDRWBGyuPaH0yf3JVLubKs0+FhjR5BZ3+wgatUWJh8V6KxLOdvLYrgHYHInfSQbsOuDqE3tDMX67k23A7246wrq9xTTDWnpZ0=; 5:C+6WoFk/3C7rCFixhlE1flaiCa19QLVBwedWGeV9aaz0/z4CQkdLlI6NlESa5dhBAo2ErUE4FScR0dSIkO72Qh+CGrZgl+/Qsjha8dEYiwDuWL1TEmlH2mjBKSb3MUAFbWmb1LyuC2xPTJo8g1kootButDRoAwYeLYVjObqeP18=; 24:x0PqHwPOHg6DdkJmU2pqPSmxEHujshS8S0XOnFZuWRUAcwNXteT+pYrnEdhHG06u+UsakIaDJSficMlK7ZCEqY0IE/pO4t8X2gFxx9ARo5E=; 7:kDHHy99MyX3cGExNSe/AKI50gn3GFQekQEymzuCrPyQ42ZXa88KZyXHprMypz5Id+eIffZMLbrSeV8MlshKbxD2h3aLPq6OrACHVWo9gzXD9LTOjiUoyixE3E/hS0unjJZrqQjQl+E38jFBy2ukAjyW2S5omPTB9Fl5APOvinFP/RbYkiJor4wgVb0ylJCx9hSB9rkgVKe9T2qga4vU6ygQ8BrcE3wK4wqJ4/5Nk2NofCEuj9dmyr7qc6xZ0V4hq SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Feb 2018 16:22:24.3243 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4d05feb0-8ca7-47fa-6710-08d56d7dcfe7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3459 Subject: [dpdk-dev] [PATCH] bus: fix dpaa returning IOVA as PA 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 16:22:28 -0000 Fix dpaa bus returning IOVA as PA when there is no device attached to the bus. Fixes: 1ee9569576f6 ("config: enable dpaaX drivers for generic ARMv8") Fixes: d5a4e3a00c4a ("bus/dpaa: set IOVA mode as physical") Signed-off-by: Pavan Nikhilesh --- Currently Octeontx platform is broken due to this, please merge this asap. 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 41ee640e2..579870297 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -501,6 +501,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.16.0