From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0057.outbound.protection.outlook.com [104.47.41.57]) by dpdk.org (Postfix) with ESMTP id 68360316B for ; Wed, 14 Dec 2016 02:58:50 +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=ygSfXQf6NinHQPT0MSs4B1/8hXrhjrd9ueGwA6mCDZo=; b=jetHdY+AQkhr3hD79/3PkPOyi6SrtioLl1UYFhEohww9E3butPbFGZS0sZiKRDCdjuahf9nARV5bRNqsgmcY1ZPEHLyP0P2KjFgrhba9R/C6Dhu1LujoCK2Q8N7jL4G0OhVi8xwtWXdiVmoRRPSoQg4czOO3fr4MWF4w9jaelKA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain.localdomain (122.166.91.229) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.771.8; Wed, 14 Dec 2016 01:58:44 +0000 From: Jerin Jacob To: CC: , , , , , Santosh Shukla , Jerin Jacob , Jan Medala , Jakub Palider Date: Wed, 14 Dec 2016 07:25:49 +0530 Message-ID: <1481680558-4003-20-git-send-email-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1481680558-4003-1-git-send-email-jerin.jacob@caviumnetworks.com> References: <1481680558-4003-1-git-send-email-jerin.jacob@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [122.166.91.229] X-ClientProxiedBy: MAXPR01CA0006.INDPRD01.PROD.OUTLOOK.COM (10.164.147.13) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-Office365-Filtering-Correlation-Id: 90bccabc-4310-4293-c96c-08d423c4be73 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:B04gddf0lYTiU2JWQCzzOHU0F3tOxYxVQGjLlWPX3DJEbxb5HBlj6bqUNCSyFQ/HVNOpAzbU4XMAeV2Eqq/MPJkBSCjMMKb1UuUnp80gvCdv/5DUZoq9804uZ4n3e5TgPp5Rcb05/RNiZ7QPSgxfqM21fMcysAhFxI24hhN1CyUimhl7YgAz1t93klU0ctM6cyv9OESqbeoUj0uG2s/YKAQ4sotutRuC8dKr8Au/AOz+GleU3p80lJX7I/Z7bOPa58CAu6+up2yjeNJNLWp8QQ== X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 25:ra7BrcA83lqJ+QettN8m/CW0643FpiRGcp3N5cQvu+PppSaVB9tIzEaBq2t+R4FqPZZMetjKw6oj2LISg3MZtPpS3rc5hooVaPrLqCUBszQr4geQOs3lvoMyn0SeCoF8qArN49NAgMQYPRt5rJO01mo0x2DZCzSTeGa8B+NPo7a0akiBEnZxhMqB9unKpq5bf5cuvTVan1s2sIqq0ZBtukZ6R6I2gFut3u+ZPFX+3KMmYtZswV3hPpMXxnboghuQO9MALfETkFH/QIwm2lXmWgEU35oDF+28OvKQdpbRYtlJnEqaSOaXMpgseijNLaR5aeNYXUQj03/wOF461qxhwBA0aPAuitGy0XRoYfryrtJIKnOBP5IY7EjlE8UeFTeva9oYmK8C//AcJl3/p95jTKVnLQ/d0bjs5Y8cp59cfex29fDanK5ATG+3HrzUWyHYdU59VpRyQbK3U0spNi1m3ytBD0dKj5GKGjasrn4L3AwsCpBieydE4CBpgW1rXIRRqgAmco6KOmR7szK297/rIyh3YSOTyaB5m4z6s53eGBFJklaXX3Mz4t5zvPIGtvLe1VS7c3rdFUdOD2dEYVfGCnv/cSPRCkAOd+3fqbDkHwKJkUaX1Wz5J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QvXeI2+JPWnewdsk7Rgdgst1u0Cy7Sh3dGeu2mDfewhggqKbUujAhlU= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(6072148); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 4:DuN7uvO1Rx79R10AXD2RhAqP2iJftjfOMxueya/vyPbdJmHh3Kc5z+lquhaF74XGE7NeHgx2yDmHOTW18tsM7bNloBCK9qmvz0HGr/Szci8Pu+Ieqy2WOlqQvVtytc1n2cLwZboI8GNXq4w+0nMsuG74JiqMBnpY1rYwJPHys4utqOsQ1HOKGDFtvar82CFqX53ZK3ZVSEUqFfv+VNFLGCmRtNJoqEGxwNanVXWWpmkuMfZ2wveejhc4antr+Y/Mfi26SLf2mSE5+EYx5/MNdgjiwjanzJWmwfUC6wgVJ+wqcBy9yKMKJm6irfL4Nv5TscqJisYEeLmgOhd+V41OnXVQ2Fjq1ieEreUznOa81zoeYz0im/hvRbhx85b0x9Zo5RrIgtwadW+9EX3fX7Ax+UPNFzJS28AWw4BQIVvdFvlhqTaFpkwWkmRUnvQkr7t0VA9sLPHiKxYVBr5VuMxKwuG6ElAKfJv6C4tqwSCOjPRHUyCd9mKFyim1GmqHOBWu2cjLWm8xpMmp6jlE+Keidbapi8o+yeCk2YLtPyxNqbXbdIbIAqfx55vmKzGG2wd2Se+yhNPFiPhOcdq9YHl4Thw1/aUlqrGvrLu4QTrPYcE= X-Forefront-PRVS: 01565FED4C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(39450400003)(39840400002)(39410400002)(189002)(199003)(6116002)(6512006)(6506006)(6486002)(3846002)(66066001)(68736007)(47776003)(92566002)(5003940100001)(50986999)(76176999)(81156014)(50226002)(2906002)(110136003)(33646002)(6916009)(101416001)(42882006)(2950100002)(4326007)(81166006)(38730400001)(105586002)(8676002)(106356001)(5660300001)(305945005)(48376002)(97736004)(50466002)(36756003)(2351001)(42186005)(7736002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:localhost.localdomain.localdomain; 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; BN3PR0701MB1719; 23:14DjoHbUlRSNjxjQz01iyWaNd0tndOp3QSCj9FH?= =?us-ascii?Q?w8k8SpNNhelpbZDe/3QlqvZJcd5pivLDv7QSoS2yeMCVt7oEA1wmV3xsFz80?= =?us-ascii?Q?E74UHecN22UhVvGSFmfwy34mmTP2NKqEf7tld452Iv4TlvzmKDh8tVAs611/?= =?us-ascii?Q?KB2IjhD9ZLomFrwvcUtO1GKGIVe6e/5bguIYz0pTxzpzXhHudMHXBFQrylvX?= =?us-ascii?Q?v0yIlZKclw7udjA+hAJFu+JCNNfst0yTtD9kgSbuN7IjvUsqVbXjVIHZYTIO?= =?us-ascii?Q?QEbh7l5iValCIjwDzFVy2QwLqo98CwfYLVvfsDFtYFmEaAOVn+E88abwPT5P?= =?us-ascii?Q?hMXcasPMk9vurcl9BfZPE/nC2mgYSpP1iAjZA1ojKxFot1UriU2T9rE2QBe3?= =?us-ascii?Q?P+fyn351CupVorNTG9eiKSQeRl8b/MSZvNcSbJLWG3cfdp7Cjck22/XRtq4d?= =?us-ascii?Q?bjyxWZmF9dZ/bADL8akMqLSbFn7mTuWD9tQjUPja8yapqZiVa/K42omWqE8p?= =?us-ascii?Q?slqYwO3c0ZyP0V5BM7b0g6dANLgpqnqlAWdazMFDtpWcx7di0lFKFaeecSc2?= =?us-ascii?Q?nxoZ/B1yi+yRlWD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OicDXnKnhYGy96ghT5o1DMzU2Jd9woGX098e0sNpFpXw9DxA=; 5:6EDm6ItLrRDUBcEQCVq60GnASkYawuDFsZPLS/p+qI9RYQaXHYMH1v2ClstnHNGJytze/WN5B6YVlqat3/dmX84zZ8yudEZhKNpnP0bIi1fZ7tpPdyLdCxSJNh04YWBL5KCJlJYV6rcPHFHdQGdW+w==; 24:xBUiv2Kc9G8VVvNTA05l8tjNz9zke7jPM4T2PgxEeqMth9odwDAEWJaTsrVZD0Ltz8kW05zjuI5D0oJRrvLdAwhQWNal6KNHITFX9vQawyY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:V+k2t6misjR+9EwZilM6d5ws2yw4hzK80e04YtGUSPZXOzW5jsZ6sprQIY/ozfdHV2o1x3XEqwbtUGrMeBXkLXM+4KgK+Y9QofcsNzXiXEmPnDnDcu+6cpdS19rijiIydYZWznyFnECRl2HxuBgc9Slx7UfQgLstsVjtJEPI2tR4ZKZawXvWvyAJAAb9WWvKEOgaK+O7DyNTy7BBWgg7cjuyjeX9qlHNTXdb03v4w6qp0za0umfJCes76U3tx0js6pucW9+0Bxvdi4Ab0Uv1RvHbPVYhALLMcYc8WbRQQYKwp9QEBgAq0QyCN1jdUnXn/IyEhpmw0PO/QQZb1QX9Has/ZYtBqugJhCO9fW3myntv1i/Po+NaUOMKn7NLQX2AVTdgWOk5nd3GJbspa6FbaIjdjkLwRUlcZ5QUxnh6jfLShnF3y8vdquSFHelNxu2mHg0mSQsGFQzn1FVql/wF+A== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Dec 2016 01:58:44.7956 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: [dpdk-dev] [PATCH 19/28] net/ena: use eal I/O device memory read/write API 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, 14 Dec 2016 01:58:51 -0000 From: Santosh Shukla Replace the raw I/O device memory read/write access with eal abstraction for I/O device memory read/write access to fix portability issues across different architectures. Signed-off-by: Santosh Shukla Signed-off-by: Jerin Jacob CC: Jan Medala CC: Jakub Palider --- drivers/net/ena/base/ena_plat_dpdk.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/ena/base/ena_plat_dpdk.h b/drivers/net/ena/base/ena_plat_dpdk.h index 87c3bf1..4db07c7 100644 --- a/drivers/net/ena/base/ena_plat_dpdk.h +++ b/drivers/net/ena/base/ena_plat_dpdk.h @@ -50,6 +50,7 @@ #include #include +#include typedef uint64_t u64; typedef uint32_t u32; @@ -226,12 +227,12 @@ typedef uint64_t dma_addr_t; static inline void writel(u32 value, volatile void *addr) { - *(volatile u32 *)addr = value; + rte_writel(value, addr); } static inline u32 readl(const volatile void *addr) { - return *(const volatile u32 *)addr; + return rte_readl(addr); } #define ENA_REG_WRITE32(value, reg) writel((value), (reg)) -- 2.5.5