From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50042.outbound.protection.outlook.com [40.107.5.42]) by dpdk.org (Postfix) with ESMTP id 4F30D7ED7; Fri, 20 Apr 2018 06:05:10 +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; bh=QN2och65AXnVeWH6hLpeGh9fjCGf1fE03D1WKz4tQ4k=; b=APr1n3bA/TkcwTZ3QfxZ1Tc6daU4Pc4hNKreboZrlDUDDYez9l0d5vkytQfaFvaI5KrcKvOXqW3evfqzpUo7+ddgtqQkPHbyT93LwhdIAy1cpJQjuvkf7Xvy96do74RiQQQZ15iM2eJSS95DJw0lhXtJkqn65XfNRR3VZ0FS42o= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=nipun.gupta@nxp.com; Received: from b27504-OptiPlex-790.ap.freescale.net (14.142.187.166) by DB6PR0401MB2422.eurprd04.prod.outlook.com (2603:10a6:4:4a::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Fri, 20 Apr 2018 04:05:08 +0000 From: Nipun Gupta To: shreyansh.jain@nxp.com, thomas@monjalon.net, hemant.agrawal@nxp.com Cc: dev@dpdk.org, Nipun Gupta , stable@dpdk.org Date: Fri, 20 Apr 2018 09:34:17 +0530 Message-Id: <1524197062-1230-5-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524197062-1230-1-git-send-email-nipun.gupta@nxp.com> References: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> <1524197062-1230-1-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR01CA0092.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::32) To DB6PR0401MB2422.eurprd04.prod.outlook.com (2603:10a6:4:4a::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:DB6PR0401MB2422; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 3:1OWJjqbIHkbhH1qYl9sB1k0yRqNLo1kWAEu1uKkXDlj5wE8Qd/t47XGujQcngMoLufAGEcIzNUSW4KNXbpigNxy5zXGOX2gIgKb1LoVpe0io0VtNYMLxEwMRIpEsxsvRBFFCWpvEmnSfeoV0qd/VKIqCU2GH8xj3Xsy4nUXVIR3g7dv6mhUcSfWLzNiQlG/1DKk3pa0lOfF5vs5a5fJtb0NzX1JaN8X9CTrXzV8ALwKELCtjB43OZCVbo2EqALNU; 25:M2QX00eBWqy/B2kEMklJVxgD9JO/gWrlU3/wkXUJ+CMJ7N8qvQerlx/eCopA74pQXdhxO6w2G0mYHJ5CR0M8yVOuA01RcMLaSsRm3PGIpVrDmi5O6Fn5QJAKL0Knax6h1a8YUebuRpXbqVGLwGSsh/eQ2CaVG4F75Zbnn83/GFijvAi6JHaB787tRf5dMiUENri3cUE5rdSRw0qJ2C9RNo8Dc62Y8OGW8BqQBBcCV/WkFdOswH/Ds8qCvQZhlup52tEcP2xlE+38ZI1Np0DHhnbbusUyfGoeKdq6cS5gevkUnBrMAML/Zw6vBUNoiFZSP+IYAYT1D66j/tgcIWHSEQ==; 31:BOES4O5fQxE+TlnwDFv9CICEfCDXxkYSG8IS4xCKQZO7S3Cv6m4hjQmB2N5J8spstBiOBrkLNgbaJaUanchF4WDdlKyDvtwsGScvBQPO6xDRJ+T5Iu7uKZKOw3iwWqlJmwZI2LodPOeDzqDnnJcRnw4UgHzrGUcXup+aDV6/8AfKZpYulGGNoXXvO5/9mLfED5994PxsrH67qKczt6yzGS8cVQP7ChG97vWMdkg741E= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2422: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 20:Dcxc2XFMwV9jMEKruz8+uqkV+49vUUaIW73ePSYXpaTleatbJ9R22d/uTwRHuM7deE1U0LAmJC5EskVReKjPJAbBYdogOAQhG/rDJxWfruQHdXSQ1ZCR0sV1lWfhMTU+vRqlCS+WrvC5RwEjixAfP6z7ldwKZi/W7UmicH/DyhXwxtgD5OEZCOWvFoJu8szgXUy1gzqjf/q6tlq2MHzIM7ztKwcNDhGWb67qq6q55KIcwAM8gKMTxLVJALQBitFmRjby2lpJOi/l/QCUHXzpie3R2l2Mk15g77HaC+BHCngvfZqTINZsI/4ZVKwwaDCs+Y0K1u7yqUEBsK4lyFdhh19lRwRKdUFMEWQk2wf7wCRYiYI8fRoessx8Go7YdHqO22x+IY+aC9x9cWSJPkRwZuEuzMKU+MpzM9S/SocTCjbKQ87PESGRxOdyfDYtaqmen/f4/sHlVdWKNgGffaLQtIKQge0wT9Q3mUMLNuE3nj6gTYsIj33eq5jUMsxlBEVh; 4:/Mpy2kNNLXrWJZUyL2DFmHKEkPoWluLMfSblV15OwJraTtMlKqJiNKzvY7lrd0aQFPqTZH1SuaDB98wN3VG/SjwBuaN4lLsK20G7Gt3A9TTSJiBQs5riFZ3ii/h8p87/WC+jJLp6XoOon3meKEv2ewOjaFBz9Ldth77j2/058am2SpqZW3YZ8AQRxHusOIzdLu7uN/WIsK1SPq0Xx/G2cbc9YTtQ4MotDUng8W74zpwunZj+44Vuj84+H9pu+n5vCoV5PguVWLfTF5a3qIuUNAlOdoA2Vzv5uhBPrKCOC8Q8NtH63SBMbJMcf2QanBHDbgTQBIK+yJK0m+Fz5naCsUfMy0c6kpXNrfuvPbF3UR8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231232)(944501327)(52105095)(6055026)(6041310)(20161123564045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(6072148)(201708071742011); SRVR:DB6PR0401MB2422; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2422; X-Forefront-PRVS: 0648FCFFA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39860400002)(39380400002)(396003)(346002)(7736002)(316002)(25786009)(51416003)(50466002)(16586007)(76176011)(66066001)(16526019)(47776003)(48376002)(81166006)(8936002)(8676002)(6512007)(50226002)(36756003)(52116002)(2906002)(4326008)(476003)(305945005)(6486002)(53936002)(2616005)(6636002)(956004)(6666003)(44832011)(386003)(11346002)(3846002)(5660300001)(26005)(6116002)(6506007)(5009440100003)(446003)(478600001)(86362001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2422; H:b27504-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:nov; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0401MB2422; 23:CY5LdQyOG1UYIczA9z03WJkF/l+shmCD6yon0s2?= =?us-ascii?Q?1kWV1v3VHKMyd6EVLufiWoDRSD6Hpu96uziqIpJ84J9zSY7rN2Wm8qWUfEi/?= =?us-ascii?Q?qcAbcsh1Bo77h+HZOEp9vPsK8r5bbFlHcddKE4WgQS14h/CsVDRNyBM3AKYl?= =?us-ascii?Q?GXqZBF8evsxbH07OD1kA1E7OuXfvFT98Aj4BUfwMsxE8nfCC3lagap/9ztp9?= =?us-ascii?Q?Xg5tmGIRXqPJMFWrolF7rrh8DgnA4FaVmLpLdJS1QJeCSsNOXsPyTJAKJ39U?= =?us-ascii?Q?9MczRHbLmZmev7DxH4awC3n0JV91/1jjfMlo+Jli0UR/vGY51yRsnzLDawUF?= =?us-ascii?Q?BSB2KF34tDwfZCCnDjDbP6087AFFtG9u83Z1DLDh7aF/oB8l5JgBxVXYD+Ch?= =?us-ascii?Q?RJ+rWTibK0oSHtiZyo3I8Ji2r0FSjDDd8wW1bpSfnYAaKeWU42eFz01+jJ+7?= =?us-ascii?Q?kqqGflD/7aS2voNt3etyufolvATbqTCA//nYyWG17Dqs9pB/I3G3gxB5+x84?= =?us-ascii?Q?1f259N7jiiYPA00WDmmTjxggrSxTNBkknBNHtwrbjmkPWEtJ4oJub8Y/YuHf?= =?us-ascii?Q?SBRSspy32Gn0y8qeVThdgCiup/JkHBctTBbiyZM9yIiaZLhQ5ACM2LNlG7ng?= =?us-ascii?Q?p3iSbFE3rxZ6LLo27En4hnqf/4r5RXLbVhh4jI5KORx7DataCqOYDdBfQV9E?= =?us-ascii?Q?Xi2UxJ0/VUDv6XkJnpbybUKz788QplIiVGCMxX0ISM47ClG0Ukl6wSp/0cWb?= =?us-ascii?Q?yjuii4caft2zRB4P3YFMd8X0LdAICP+uOcam2yUmJ7ndhbL3AwIpshV9Nvnk?= =?us-ascii?Q?BRQ56A7mDS9evW8RHuy8iEaK28smMuNljb8sAYvppdotw08Zq8r7fQn4bIFe?= =?us-ascii?Q?Pxur+MpJO84WY/SkbBHd/SML3nE3n0Y4xyOkye13inIWvkU1JQ31J90OBgcF?= =?us-ascii?Q?j2WMxPRHUffhUZ2A+yF6gW6Zq5jCMvNGUPpldn4unP8aCCoaos0oCPCgOXv7?= =?us-ascii?Q?yjP3vE8uFcR23zbSrwz1mpeusc/vpSPqmssOndNnjC+e9cMR0dftLygxyXg2?= =?us-ascii?Q?jq4b2T9AUKC3eYUawreEOjAn934/9?= X-Microsoft-Antispam-Message-Info: c2Q74SnfvMlyWo6QOaPBlsVIpNAbzGq6zVN7LdHmxm9ol7wqQs/C2q+30y0GgnyF1nKv+5+3scqTVGxWTZ8sXnJP7Du/kjiYBUNtvM8ctJDE0PW6hhRYAxA5foqdeho67n8xMoU2p6QFF1N8zVaIa0yi1Cbqn7KuQuXYxjrzdx6NdrCqi2qOrBftlOkc6U4H X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 6:Cws6QBmzmEkFPiJfRjdbymoFTHY3iG9XC9j/x4CKQ/VH69wNuDexTaTKq8mRnDYBZmN1jyKChLotclq3n5gX+mt6267BChJbpO2k7Swyt71TmcFIgtpQQZkpLbI78WVn/J0JNS//HOvZoCC6cIsRsXqIyi+f7I/klXZM08mjn1ANoKa/WWonNIbCEjkpoFOKQHYxT06V46U7XOXRbt7i0uXmjOeVFVyEAMhjKkoJ3ufWZEjvzyFGq4SKhSk3w2vdBgCqNqTgLhh76yEQYrU6VLYCPRt5BH+u5dTYv4is6SAk2WvtMGnNodXtnfeU8Z7JllKjmrCKYgJ1iUbRihJ0wg/jyDJuMTioeJ1cdw67gTX4W4sAI0eM9DbLhsmO2xa2NmY1IPaiO56106ycgdRHct+4PcIRdlhwdowk6K+ze2WWlHPbpWHm/v4fcyPlT+H9TIOBufsE3yBf4o76jRa8qw==; 5:OIDb/nt3/OYbzJqSSCR60rg562LVuSacM94eBjjRb7BQtW4QdH52CWeD5t2uNfb2ynWxh0Jv01USKZOG7bH2Yo3A5MjTsuVLOH5uS4B3S4uECM+KVXIbziv70SKW1d7oI8GQqy2MiMkdEf95Og4/JptK2W7vafQWkQbJooLV8Fo=; 24:BryhhZIlHdxWDCuhqCTZHswR1hN7g1xuJ3/2RtBLwktXK70++xvfY1h6KPjmmpdHMI138Vo3stjR75qpaDUh0z9NijLxguloBZ1i7u84lWQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2422; 7:PSYsLtQ6AC5tHeG9WzU/6S0iMcLtKYOHzCgFxajb6outDTEu1OTn4YHz69xVpKdzMvYILV5DzggAa5vsGqTOg8WeqXdhD+dO4WrIbDqgSCa6ud7wQ3kz4VRqThuMRXmGIEyL5yw5afyZFnnTf5X5mpaNzHAUcBjnK+hatEhv1XZ7t1Rlh422K7tmN7ilp/94vQY/y9eguVAwX/sA1iULL7KkQ8iCRjDp6TeSPBSVx0t7R4Ki3rUs8jQqIySBG0lM X-MS-Office365-Filtering-Correlation-Id: 36894e21-be67-4237-e5ae-08d5a673e859 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2018 04:05:08.0573 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 36894e21-be67-4237-e5ae-08d5a673e859 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2422 Subject: [dpdk-dev] [PATCH 4/9 v2] bus/fslmc: fix typecasting in IOVA/virt conversion macros 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: Fri, 20 Apr 2018 04:05:11 -0000 Fixes: df0011c92312 ("bus/fslmc: add physical-virtual address translation helpers") Cc: stable@dpdk.org Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index 1b67bed..507bff7 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -316,8 +316,8 @@ static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) #define DPAA2_MBUF_VADDR_TO_IOVA(mbuf) ((mbuf)->buf_addr) #define DPAA2_OP_VADDR_TO_IOVA(op) (op) -#define DPAA2_VADDR_TO_IOVA(_vaddr) (_vaddr) -#define DPAA2_IOVA_TO_VADDR(_iova) (_iova) +#define DPAA2_VADDR_TO_IOVA(_vaddr) ((phys_addr_t)(_vaddr)) +#define DPAA2_IOVA_TO_VADDR(_iova) ((void *)(_iova)) #define DPAA2_MODIFY_IOVA_TO_VADDR(_mem, _type) #endif /* RTE_LIBRTE_DPAA2_USE_PHYS_IOVA */ -- 1.9.1