From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0064.outbound.protection.outlook.com [104.47.1.64]) by dpdk.org (Postfix) with ESMTP id C7EBFA49A; Fri, 20 Apr 2018 12:34:35 +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=H+XLqPzfZjow9Ppma+SEhEKHBWqvjpKxfyoeN/Eljf3Djj7sEaRA65NjD/WlzzlK3crjxZUtom10kd2tR+Z2Hqimk8fBfRqM3i91bIdo/k6/RuUSLQTTcIj1Dpy4QbZqKwU1cskMle8xGdsUsQgHUvSe9mXfrggaRBV0fvL1cE4= 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 HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Fri, 20 Apr 2018 10:34:33 +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 16:00:59 +0530 Message-Id: <1524220264-17281-5-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524220264-17281-1-git-send-email-nipun.gupta@nxp.com> References: <1523114224-9852-1-git-send-email-nipun.gupta@nxp.com> <1524220264-17281-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: BM1PR01CA0102.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::18) To HE1PR0401MB2427.eurprd04.prod.outlook.com (2603:10a6:3:25::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(2017052603328)(7153060)(7193020); SRVR:HE1PR0401MB2427; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 3:m1LgqmPrEMN7pDcVj+pPAi6PS09U31qo1FB0ZvYobb6E7KE63twPFktQDLSE67rQZL4PjXNq0Rcwue+84h/+uj6ufmwmgKOqA7K5oEOdesRmFGl2//jid9fxwW2SDK1+iz/xMlAgR7hnxlcm4t8sFvyCAMi5OXYkO5JZwBLS86K9cRwR/hOjhIfiV9PTb81Vl8HTJr+QaiHOci1ZfxIFNpNalq8d1388n1Kcdy3U4PHnAKoubXU9+vqp4JEpuvDo; 25:jnl3MuMmnp6WFffkSVdSTNddc2Zsoc1c2bkK5twPfdeGPjiDYvFYvnSPhYcwNb/aoYduECSQZFfWNGj8JMvai0IWc0IeKNSYl8ue/hZ+Kole3UYOqyOvYz2UiSVKQVAoprKoAjLX15FEmWmO8KDCW5uKTykM6/HjCP34fKQ+lDVyAx7Z0F9NsNi505HA9c7s0Fmo1/9u8UJ0lGey3ZB4K7a2g5no7lgye+QZhQfA55B9HNGhfXWo+3H/EtDGWQVwraEUkVV7aWxHQ99767OF4b6LwIscSURx57q/FYcApsKLUHHimasHzs3FPlrkGIyTgTRb5Ng7tOalcE0Uamdmlg==; 31:uFhCuvaMGjI3jLURgrSgmNW9H6Y3BWPWBGTixUr3HI74aPTRzYSeq5vU+VNjnHuIC9WcU9tGrG/xejgmQlea4ZvABLLwY+pAklnQBAihwgnsIflIMH1PZY7UU21LAGt4FhHtemODRsHMCUhvhhC37vwPn8rKWGA0DlR+EIyCUKT+R00gMnXr1/NN1JH/xrt7xZyohbBiJFnpvSJpVnUZ+kLg3ZvlNiFZal0U+rmCPzc= X-MS-TrafficTypeDiagnostic: HE1PR0401MB2427: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 20:eAmoA/e5OJEJxvdWCQbDEMRQ+EPHsdARXZHXrbxlBN62fX7btrs+NZqKk3Gko1ZoY0LmShwdF/5J7wf2QjZda9Gj4ZHVoa5ZwnYloJ7V3vyTYdR4iOda5Y9Pl5KgrmsjcjfGyIREMVf3cILh92T5WWw83j48KWQFY03EvdZ3GwfvNdjfASTez7bno+tILFUpxvYvIk+mBcKfRCDcQwR5h40i+8swzVyccpCB5kVLcc4XA041I4/uwS5zi6ZchnVNNlvBA0nNPVLtOu2143/ZA2GMcHbFUAR88rB28ZYk+49Ix/xKizO+jdoB8kBFcHXbPtGQiZKdpGVab6ZJiR/10la6MlTEA9mQ3UlGRoi7W1AptPyL5TofEWtJTb2ixCyzYHqaqdUVX36XnAsbg9r//H5hy+mM7hjIsWsTPKQH4z1epk+nnrvCkNLv8CCVqhWKvjjEg7/bukWCFHy/voemiCzdh088czRhUbJJ3OY8e53fV43s9H/bWvc4LSTc7W43; 4:yO1sXGEebXLa2w0jHtI0EXfp6ZvjkIgh2w8Q/m8841jDANnou/IkDPxfZkBOL/yW+1eIx9pu9NAXohXdFIz5XtV0eP0M+9orL7TMue+3lKwewOTVVhfqyvi3hHDhUuKZv3Qr3Z9/FBaP/FcQNfXGmwh7V31jA1aPXDH3JdwaPJ7aHqHjuigwk2+UJ4n6CFckHFls602fjZkT9EHHRBbwyT1UWr+TNcC61cYBEQfRKZI1UEVj84Ki9dNtuqmkjV+CRgAZIm6ON2hLM9TvBe4QKl4+kJ3YkF0NcpZPVQOnWiT/1sU5AQMbaSCjYxM+zUqv+78EPqnEv0+EKbrPA2Dk2pMu48gewuFdW3mljQyNxrI= 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)(5005006)(8121501046)(93006095)(93001095)(3002001)(3231232)(944501393)(52105095)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:HE1PR0401MB2427; BCL:0; PCL:0; RULEID:; SRVR:HE1PR0401MB2427; X-Forefront-PRVS: 0648FCFFA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(366004)(39860400002)(39380400002)(4326008)(16526019)(6506007)(48376002)(386003)(8936002)(8676002)(81166006)(26005)(36756003)(25786009)(6116002)(3846002)(6486002)(86362001)(956004)(11346002)(446003)(476003)(52116002)(2616005)(6666003)(76176011)(6636002)(5009440100003)(51416003)(6512007)(53936002)(2906002)(316002)(16586007)(50226002)(50466002)(305945005)(44832011)(478600001)(7736002)(47776003)(5660300001)(66066001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0401MB2427; 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; HE1PR0401MB2427; 23:rZstYPmpP1/7jOF2iQ2QAt+GGPPbB+uwQvV+pB0?= =?us-ascii?Q?ulP/0LrM1uYY4a7YwFM9KxTUKvJ8DoE0TEebb8J5oWE03UGgCacRjJ7gZlsA?= =?us-ascii?Q?1zRWaqyw72USzFg4bBCLJYki+pkvCC7Ntgmq7u836ziv2TaaQiVif/J6aLbn?= =?us-ascii?Q?q1IsQ/YAshtvKeGNIiPhejndfvDKe65fML57e6DlkSJ/zRkNpqrW/ViiOg32?= =?us-ascii?Q?KzVZmKwhF3fKNVWyCG7BuDT30k1UcxGUPMMNXfUzJVdcZBKfeS3RTKqqZyvk?= =?us-ascii?Q?Q7oXBKh5LWrP0rZGYS2ketDbrav134GAoWvYuuiYKTenOkgMXpPVoZLjBJ5h?= =?us-asc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zmT6K8BeLOEdgAVAPNvKxU1oqEE0eLZdxUpqA+w/P9o8rq0KYLi6WMiQYpoNTnypUJhzR X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 6:ZEaL1SOFQJ49ZntKSkj8EqFg/pQBQ5u+HZJE9Rm3+X5EoCv6E8JqvGlObS3SKYIwncaUjBPom7q6/YOWMIC0xaF0k+nVXlCID9fgrLRbO+3l/c5gnyq/3Kc8mPTziGeR0ZRy5iieG3aWniAmqSwo77EIx4VNCWyZyJ39nmbfFf6sKC8O8IjkdfoToV6ys/CzUJZezrpn9FATSse+GP+2Oz1pM7ko5029i4YGVXcfGzMLH1fAQunTvEhq/Drbf0dX4VlMIKfP09rJhJrzKCBERhkQRfrYWUaHlToGG9FMURETaorKH33BESDcklG9L12Ej6MheGPjFkNgUoPrk17viBovGH0EjCzjQoJjPWV1Bt5flbTCcffGuuR+McyiVtmZauctPpdYksxc8HTVr2Jxg/sK8wl4ESNYiTKf8qbw/liHlg1RDMIEdIohlHT9vunvxMnKNSTH6bvhYCTXVe6Ylg==; 5:w/A45qXLcQjll/BvMoezdSklDMUgaf1T5YAXBariYdreUXgP6OEC+Is9YrIBfCN5NiWX1M/5ATeZblrb1hsMqLCtkuozirNw7ckEgGCS5wSKoVuJXZ38mq/1dws1CLItYlq/c9ZNp1H6SkGLtLoB3yGLoWpJJTLg8G2z01Txo90=; 24:KW1ARYFa0uvS5o4wxsmFMjmxZMbYrP1TDu7z58alP2aCLccXQa4ETDujv/OLbqwxr+79rsDXaeqxgeK+C5VQMjMSzJEwAJSsVwnJYp+cX4c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; HE1PR0401MB2427; 7:C7+O584hQmuL3yHRWsor9G+Gl7RJzUGmdKWufKZT4kRJJteea0mwlZFhBmhSIMb+chHGrFMAtDUVcXa8bNnVQJI0n/bEW/OmXE7CGNF5qjsNP16HfPDIqitvlMT05GcSPv5M2udSgBqHUItTdEvpOnHvXMWyjdYPgWW+48rbNQnKJYnqWzDNCmYGTCtBrPJ9ZSbGeagIGx0ErFKo5y1eU/gxFfEcO0EY8TjG3NtU9s2/naQwQKxfkPC2242kn4oc X-MS-Office365-Filtering-Correlation-Id: 068da0bd-7d35-44db-f963-08d5a6aa4f2b X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2018 10:34:33.1663 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 068da0bd-7d35-44db-f963-08d5a6aa4f2b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0401MB2427 Subject: [dpdk-dev] [PATCH 4/9 v3] 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 10:34:36 -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