From patchwork Wed Mar 14 07:55:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131557 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp547683ljb; Wed, 14 Mar 2018 00:58:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELuXhewlSCQGHvalmHbiRVGlmNoA0AphMR3hjgU9jQqMmO/dYmnBxXBXy1x72xZ6b6zgbFqp X-Received: by 10.28.95.139 with SMTP id t133mr758409wmb.16.1521014284584; Wed, 14 Mar 2018 00:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014284; cv=none; d=google.com; s=arc-20160816; b=wzALq68DlAQavWFAEva9fKYlDczbp43LA7y4YywYxUFGccH3oe3ijicSAijBp0Mbsj 1GCpG91Wc6PiCVCsSxR16rW2kd+8wi7t0vhoJevXVY1M93WEYhWVg9zRgJ/Nth444Fu9 d9717wxXg9qZvt4rbBTDf47/yn15yig7q+wcSYnUs06+JEIBPYNeTEuUa5/XoME/0mBA nLbFBrDFEfIu3xKlPfVLghM8ChRXtzCWmIq/ih7Jd/BH8/0+E5ywj5VmuGVj6ylwYA8a iZs2HtTSObAPbaWR1dCUMJoulrGf1O/862JKiiFPZlKNYTbHBX8F38EC6xJf6zRlUd0b i5XQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=3xj0u3rvST7s4dAKqIyxYvEW4onZgtbg79jnTUJ37Qg=; b=VecU6szGBBxKA7Tjgu1TLTU/XbvxqQu+0YYk/ds7tigHLirzqnV9JKP5OxUxELmHdG Xh4Ygjk/xWhLna2OxtN3yv7nUWsC6sIy/dMOD/r/ibVPgMbNC4vEs7bHFUDFHLSm/YYV F7riKEMpUIEMMts+/1h061WPVm/DO92509jLDPU93jfKOmTYbsCbmVvNR8cFPtYlRtYk OvVsmCSlW9z7Ctu4S/88nbCXakjsM+BpRtUWirxot4akN1aNPNHqgic0kpCAr0AybI3w lRng3CdvOgNxYCRyV161i7z1Fj3C12eI1//SMKhoXssNZDTYppBTH17rgL4DyrrEZCp3 jo8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=m1faoEgl; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id e30si1541155wre.471.2018.03.14.00.58.04; Wed, 14 Mar 2018 00:58:04 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=m1faoEgl; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 2F9795F2F; Wed, 14 Mar 2018 08:58:03 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40088.outbound.protection.outlook.com [40.107.4.88]) by dpdk.org (Postfix) with ESMTP id 1E72C5B18; Wed, 14 Mar 2018 08:58:01 +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=3xj0u3rvST7s4dAKqIyxYvEW4onZgtbg79jnTUJ37Qg=; b=m1faoEgl1D4jnSHB/wAEfNPwG75r8eid6ZQbVxpkGUgAG0DMYtBbxKhOLdSugc/y/9J12JB823+hu9pVFwEhJ7u9j3nubdctJB63hAUnj9R05ijA2Xk6pogCfF9ULFldoF6rozFMwijeP+7OCbjj9GBS5HltZRdmKRqfoMldrWA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:57:59 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net, stable@dpdk.org Date: Wed, 14 Mar 2018 13:25:57 +0530 Message-Id: <1521014166-3201-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2f7d81a3-46ed-4aae-79d1-08d589814e90 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:fW+iH5VvkJYJpbAv1rvxxWUO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Etjf2yZOGx1MjgarjSjk2/KMjBIIXhD35M0r+wWHLCAHXF4MO7GjEniOalN0D0PdyYgU6nBmyHEwLgQ/oCBjzQP8MKB79AdtvFBVHppdovK0X3CC4y3uR8DmbuXvkHVUTB3QXZ/rPTF/hEud/02Pgr/8S41EyPnUR2AhdLh2ECmecvh8+a7itL9ILbKI/uBLVTSIjMEjmq4arLYV1q/arosNB5O2oTMVR29wBlxkL6BQw1q/zCRPZvnmPAJYGhZLQSPriwdXW10Lyz8gSotRJhAwLzb9N/3UsnVp2cvJmvMjAPtDGUzQv2xYa5ZWh1ImdtBGXxLS; 4:30nx6ziCa5PpHkWySFgx4laX+wGkwF2+8IV6DBOPLKycDP572U1QQv4QwqMji9S1w1bkSq+ct3K5qi6KnR/5d9GAlMP57NWVzlK2ZvDmpPTrLBggbEa/UF6QXgpaqoyn3XM/rUNu44TiDMuLXhSrwArGsL+NNLyyuXQ54UfsO6bvwYWfmCJ5Y1DTkSBCMA6RIgVv0ETIOn7xQwzAynsTRp+3bGVJZeMUT3pIi9wQRpElYJ7lYv1Wnm11oouduhZ3YYt3uqfs7JbE5h+nd9EcLz5rFkibsa40sa0BhGMn0Ccs51MhnK85KTLCj1gRbIg6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(575784001)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(59450400001)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:Y4HexGsFJbeQF6ygk+2YAKdgJ7ka7r7Xb1ni8hCRC?= iIi2wFgANg7tnY3jgUQhAoRhMVgVQ96jHB4W24uv/ZbO7tE9+sZuITdqo+CghlNPjK/4ZpZaK5QlEEVLkMCHCseIW/6+UsOMeKlldh9+BMqmo6nB1izyfTPHT+70fFJgwC33s88iplpH3wAAsBrkQfrYggloa7dXfDvICnrazz311i6gG0t9owx6CzPtKg2oRkYT1UfXwIC6r+H3Ur5UYk0Ov3CmXQZvaO6lp6raSkxBB7bOqehXxJn41K8Z7WTZ51JEZYz2Y90TsRt3yYGTQTbV2vezuLh0hT0JnW0+gsr3izxSrLYSOxqXqWXvuR9LO9sCuhmv+wDcXybPJ2cWCT7KlhHfI7/nPuAWAYEstL+8LQpN8J83pl8bRCyK1pp5lyd28bmyZP1wdWODUeMDkQi66VoHcj1bCWGkScoYgUx9iDI0P+G4NRAq+oORcvEVBxbfLrPrpBlTnMmkqGg0l6uFlsd3Bq9RvNhvuESvMHOrRm9/N7b5qAg7Gx8kJ9NOBFOL2h29Z4UQj8v2Zv5IDOBU99SyWVPGWsXhck1NjERcAOqUcEn2f5yMW+his14VuEGM8Mgv3neqxOhrkoRwLGZoszhkUhjaS/fLP21Rx/fwvNwW0svJ1JbG/3k3yYv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Ai58wGPunNGiQurZX4e58PPs98e2XGUVTw5Ef/sc=; 5:Hz9JH69JH1fjM6f7LXVQQvJH69RNvqV2HGLlJy0LVVbTsW7p0Y35O4e/W+rcfXSKuPuFkx3RZkoqDwoXRwQalqye96cv5cHNAcVbz4iz7Gn8uaFGeofTH99NKJUiKO/+G6TXiicTiXOYW0gU8nbWbJc32kZPkjUZfa+WUGKWW+c=; 24:9HJIzGYPQGqj9i+d0rPWp4gtgmaWobd+rjlOwVou7rrtFSwr9HHhlLRZUV9XSqKkTUi38s2jNyqv/x6AUmoRZvneCwbR8hSip4m7ejlW4D4=; 7:hmOay4dUEySM5wm5j21NCErBCZUBsMbChywx445yMuo2VDW6H/kqGG6ysoOR4eoGJF46imJDkhn++JZ/NS/QrMJxid/fulGM/XOn3LAsxQjQJXwkchxH6baE2kCXnFAX9dd4nOfdyEaxSysv8Nf7MhF692pqmI4I0DAwgrQBHGZfp5EICo4ioL/j4qBihfm5HFfk11Lr/t+JZiEAj5TQpMQAoLTKuecYgQdIf33o0ouIjUyOlPPaV6IAM4D1M+1d SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:57:59.5607 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2f7d81a3-46ed-4aae-79d1-08d589814e90 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 01/10] event/dpaa: fix include header 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" rte_cycles.h shall be included instead of rte_cycles_64.h dpaa_eventdev.c:32:27: fatal error: rte_cycles_64.h: No such file or directory Fixes: 9caac5dd1e7f ("event/dpaa: introduce PMD") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/event/dpaa/dpaa_eventdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/event/dpaa/dpaa_eventdev.c b/drivers/event/dpaa/dpaa_eventdev.c index 0006801..cd13d0c 100644 --- a/drivers/event/dpaa/dpaa_eventdev.c +++ b/drivers/event/dpaa/dpaa_eventdev.c @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include "dpaa_eventdev.h" From patchwork Wed Mar 14 07:55:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131559 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp548076ljb; Wed, 14 Mar 2018 00:58:33 -0700 (PDT) X-Google-Smtp-Source: AG47ELvUsJPhuaFNnsTTOtHpA1jyhFeFw8kiui9rAotwGmi+36q3sqGiqo9Fl7yaX1xtrSmffsWX X-Received: by 10.223.151.1 with SMTP id r1mr2950074wrb.126.1521014313922; Wed, 14 Mar 2018 00:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014313; cv=none; d=google.com; s=arc-20160816; b=ocTrjImq6yArrznx9DG4uZ6Useo19IhhXW3D9s6SgI20cva7adVl5fKfYOKiZNAFja CzFZrB86jIzqby6VGlCYIGeJ8cuPOodiZw9NPD12qyCXzFZpy7LZ+Nlkx9PshWwvWXdK 8XvPo/rrVNfhWHKLgOMm75TqLCjz/x3BLU/u1O7IgGU285qDxfmga3ld81zk3Wavj8kg /VxKe2wt5BM1swShRG3MhAaQ6+VuTxEvpVuDcpT/m88FZYE/EPSiP7lcWKg53UVx6MIh VnyagUOWYe3JCS77KoTI8dnVLJbZtRlpblmvqjMNEQnKjZgnBib12WNm+fh/4qDT5EPl AIXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=HG05S5rud76hN9Lqj6jOwy+CWuWGVr6E5IdIz2NmlKM=; b=TG+lhwHJjst4H6VN+MWNROK/3PvX70uwr2JSgLK22yLXgArlMdHRtp3SqE7EfQq0u6 5jMElSv7TafpT4aK9JoCdhJBoOHWQjQZ5AJSepPLIa1rbUhAbGF+/izNkNBB+c7IUxIX D9Far5qNGlcfO7wTFvyeg9jc7qPios485zSDvU/G26+xy1qPYA1tov9VhEPQ1IUz6ACc cuYYHDdrtKYfZ6Ke6Tx3nHSgNFPBaLctfYEGJwc6uB/uZm/ZpnVY/kso0wEm/KakkHnQ hMtIBc3SFHqxRhS7zx5J1Dy019GuRAL40xu/lQCLzFRkP4mwyfkNU3nQ2zhhtOdwYj/N 1vhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=dqYHiEoM; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id f36si1439684wrf.393.2018.03.14.00.58.33; Wed, 14 Mar 2018 00:58:33 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=dqYHiEoM; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B11437CFD; Wed, 14 Mar 2018 08:58:07 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40074.outbound.protection.outlook.com [40.107.4.74]) by dpdk.org (Postfix) with ESMTP id 0EA475B18; Wed, 14 Mar 2018 08:58:02 +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=HG05S5rud76hN9Lqj6jOwy+CWuWGVr6E5IdIz2NmlKM=; b=dqYHiEoMtDeEK8vEpIxDAjERtI8TVeCLUTBomnLTQkXdO6pUWchoZXB3RUbzn9fc0NYiP2lMf94blmSJymMqcpnuwHXOri4Jic7ndRabzBuXzx9lMoCp6o5jaDrjxo/4bru5kIIMFknWLto2HQyfy0vnOB0HnY8prkyiaLgUBGo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:00 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net, stable@dpdk.org Date: Wed, 14 Mar 2018 13:25:58 +0530 Message-Id: <1521014166-3201-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1f998048-c4be-477b-264c-08d589814f5b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:xFUh24qYY4qHKx7sTAenThoqA2MwkJHBo1LBaVebj6lDu+bHWcSgoDwv5h0bUIy1NYKWLvkNKI5+Hxe9zaVG1Cpyu6e7TUm/j56I74e8Te+hBKF+yWxAVktU3yKLMZpjJDuTCHwVLujCepBxhPsgrPKBTVTU2ByvVObkoW6AfqLoJHEil6Mpm2xB7DlxCO2uJH95x+ch9fnXvmmVD9hy0gfbwFJZWn931vCvsMlsZ6pbPzopME19QuWV9dIeccZF; 25:urjzrsVozsPTu88m6O7PAgPl4PLHYf3au6+DVLb59CKg6omTSwe3RcU1adsppHVXxftbWzrBsAHSKhRJgxMo9upTFoRTnihQsvjA4b5zNRkmahuPGpOTiAQNjc+rfZ3j5u3Qe7NpyGbA9uutF9NieleuCNitwMPkBtzcLZGQ77snRvoERrerdQp04SeJSkZyahJ4KOc8jusjK33raAM1JJ+SsBm1XcxhCsHRT6fuP30iOPu5TfWn9fVuCyxn9qJhLtoOCHTex2QqkwJ66xm9cWUMiX+b4U4IJIqzLmeCb0N5NGUDXJLe4sLLvztLlfkuXrNCotGpyHUke0fQWPSbJA==; 31:RMGt8/8GEBhFcYQ/l9Zmmqh3TnHzi+CG0bDhGM6Abu24Wkmdi/ujOv7ShBu1Gl7gACKUmY9hx3O4WwI/X6BSOSpPsG1VAnevM7kDr+RuLuInsQfxs/5H5ziimFT9EGX+kAJc6zGzPM5B6zPccxuHuOTnk1rFppRwH8dNFh9v6J1l3bz0p17gK8fi5Y3B179xeoI0C4jBN8bSxFT0FVs0tMaqPZ1YqpDDv+ZQE5cAUBY= X-MS-TrafficTypeDiagnostic: AM2PR04MB0754: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 20:HOnjVlbD75ts82MIWHvCqqFQZs7sz0imqDz6XtSu00Gm77O2yK8RLBr1elynCN19psw3FtmhWgIcGhd4HWwZ2EGFoNNjwWph1BodQkj9J8V3GfUXglJ1J3IcCIw4Og+K57W/2UrePdu7/YLkJ/ZxXKSPx4J4RNVswqucW1IRnkejkTuNX6kwhe4RekVKEhlUveW7S/widnfqkB3g434Ggfe5dO481LnNhyjlO7QpMh5Jig51mCx/GzkRTfkQ+057Ehk+RuKjVxPDxtMTc83HpyRW448vUUaPZhuiXoQ2dJUpedAEmkfkhRFGUbSEpKvyLpRsp/Ji2TShay7woNQ8+ZmJT10EKU+OKN63cv3p/BV9hASL621QDOXhApbDDqTRjTgODe78knguIQjFklirwBMQYIUNNaU1qJdeRdW2a6Un18dlZPYneWk8QJLq8+/cDbAtngn3bpyz/XgQr+vY+M7SyaPQ4kvQwoajk52Ajal6Qy16qwEULy5o7LOrH3wQ; 4:O426wuwMFOtIDbRWlCqFmTkwsNzsL7lFvJXNuZHKn57saS53LmOtCjhM3OrsEVfDpSnNxmeuTARy2Z5Tsu3VWcHJ9OTXxDjFLkHLGdJ0Luz2/r+6X9qv8AnrbXAHPelt/osYhDkyRe+HUzg166odRIJ5hr9l28ZDcQcSWsrFen2yN36qxuEAwGBZA32kA2XilTlIaheRjObpYJU1Y5OJMfiIZc9vyGUTyMtdKJAIq7IwNOjVYFAUenp+0BAZrLu8aFpaHZbQSGSsqG1CGZ70jioMCYrk3xQJM5BuQntFHbCPxYzzjR0VMq++iHpkv6fg X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(59450400001)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:k+Jv+Dhlpc6NgW/Vftmy+vDdYglwTWl//vGQV3nbF?= 429fwzH9tEaaD+LziO89x5G5lr6sUd9cHSs5VqUaSZcvYTSImLVbnYljF4vOXRpe/k5nhP8wD7TvnLfeJhgIvS9TKAux5VV8pXjHQZOASP7BWyMxwC3lEbLd3Lg8Eu1s02j17MkSat5kXQI2btR7odRtJCWzKxQlPewcovIrTEWLdqbGulb7JKJPzxK7ZSELnQ734fbkgRZ4elcoskV8bK0NK/HFDG1topMrABk9NQjGtq1ZJLahLlNP2XLihcVbwHk9JvQS2CeCpbUyB1RKSKtCz8qEDanbzm0PJc5NrbQLcuuumO1jffdXetDiu3aHcfd6eoxsXL+Fv+7/ELlgdJFzKU/JUIjwMIP4JfzzPNWWDUyLpaLxZy07IMRoUYubMfG3Fsi7n4GWP0NGsuPeDjkP04G6kiwRCku02Yqv7jT/OXTkGFtr0EaeejlYJZ94dJh5kI5NBnCNumNQ0ovV58LANPC3NmbhzfUsj6pGebPcbFDJb6k90aEzk1wd4a8c0WoVxH2JhWUViVq1gXlTCp1zEdVOntANVg1opomF+1QKU2fwIz26sj88vGyhuSd6iNL3mIQK9CrK0CJcNKFJmXoPgtSz561Os6QTU5wPgJPHad+CRtZZCmNGVs4014V9Ni/dkY15GgptWkKshStvtss2YQEM0s1nn0o5brMT+pVRaRVndIl+Gc4gtNBGuT+EqPW3I6xofuxoDkraZATRZpgR/YckId/qSCCaga1IH8NfLblZ+lf6pA/PH5giIZpPVs0SDQHj7Hcy+AjtnbhVGdesP50XrcNyNtfs5r+vFCydUDXXJ3GpY2pEqHwIj4gGxY05cIj0SjUo/PyGQD/UErBkx1ggXTE7CdpF8pdKAeXfsXQ4v4Y/wvjH3ZUsTg2oKcyGY0Ab37c/K0jivchFgIi6UPhlHjKSwdybUnnPvyMk1FgmAq9XFFWeRUdyaHkL/254lgfAZhP/s7sk7mWfjyZnddw3xkUS1qeYMjfB5u8ykRtZQzzEfP7X3ukq4zu2xn6AHh8IrWxaK9Pjppaozb1xFr3h8Bfk0R7EbGtKN7ghrAsjJtz05YwU/sTtOdBowCvCORQsVg6lCHzEGV0N67lWz488202U1XDm3rPQ5dSag== X-Microsoft-Antispam-Message-Info: iCplRrML8VMm5c+pD+rlME2Okf/heH3u0/OfgwfnEtvwBT2yOOODh63tn94mCLDvC65RQ41kXzUv2fuWDzob2hyndGT9UHRsGitsQCrN/0tJI3fNkLslZvbsMh/lNS+z2fG44zY9SabFOxrfnFarPSRVQDz782TOTsliMsQ9qZpMCqeW2FM/a12Vmmot3u/v X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 6:CTU4ToYt/zuenvWjbs+E8N78J9VLNpP53EasKWm3dbE6Sn84evIfSGAU312QHxj8MqZFfWvpMIcIT0OS6pb//7PsSPzgfIMsn3kwZTQeEbWIgcsoDlf2WzlQfzsG1fuy4N+b71xeqqo/u+get8SpZbiUiJXyuRC5vzE/Pr/maN2DZnj0OKa9Jf4UqXs/ODE0Q14h5UmBl7FAV+/DB4Q+O5W+ZluZ0bUO+smUt+/q7oqm+4XzsPdLyswpj9aekLy/eSp+6GPT1MTrwRZ0h23HRXR40qntOjrwDJdXx3zMkW4dLubRJL8cMEge8s5u0jAcTOpHTztG3lpthAfq7yzkJdSeTlwAPmUQ7q4XdO8aDoo=; 5:OrPmroZTBqpKTWrIo9VwKNJFtsCWutiGbHG+3FU0hLkdspieyj54DeepMW19ptAFVfM1nchwH1uyJMgfAMUo1BGaNoICqLi35YG00ENiAUwbmCxEC5RYXOPNvJU/utLHlyZGrTAwRnMA7CGuz8EneTWWrg2Iow6M/BBsUzOSht4=; 24:sHd5bhcdywd0Kic6rOfHw5daLKB3HNbyecF0H7dTs6Ey5g603OVnrBpnEEvXgiRjJrreXVo2iGWqyuKEv6utCbaOvdSzbz8Opf8JWf012VU=; 7:WDnBmlqAnRg6sKcAGdy73TjxChLpH8wtYV8jZmTn8FqXPv603nYQpFvSFHdbk3QRjPidHi1YIYWnvl1qQHJ7Heba5G2q8Fo6aVd8YlZFCVkIwDofKqwgL2VFDSkK72zK6FuhJrx1bXaros+D0D/9dUfmi6pSa7SIapOFh8j6VoGZYIU3XS3iUT5Ep8iOjjiOp/t6mljE9B8vEbw771J+qAnUv3Quggqr1YW1BoBa6tNwkkXcm/CyujdXiVbuzDyg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:00.9046 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1f998048-c4be-477b-264c-08d589814f5b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 02/10] bus/dpaa: fix the BE compilation issue 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The array pointers were used without index. Fixes: b9083ea5e084 ("net/dpaa: further push mode optimizations") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/bus/dpaa/base/qbman/qman.c | 5 +++-- drivers/bus/dpaa/base/qbman/qman_driver.c | 5 +---- 2 files changed, 4 insertions(+), 6 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 2b97671..2810fdd 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -1087,7 +1087,7 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, shadow[rx_number]->fd.opaque = be32_to_cpu(dq[rx_number]->fd.opaque); #else - shadow = dq; + shadow[rx_number] = dq[rx_number]; #endif /* SDQCR: context_b points to the FQ */ @@ -1095,7 +1095,8 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, fq[rx_number] = qman_fq_lookup_table[be32_to_cpu( dq[rx_number]->contextB)]; #else - fq[rx_number] = (void *)(uintptr_t)be32_to_cpu(dq->contextB); + fq[rx_number] = (void *)be32_to_cpu( + dq[rx_number]->contextB); #endif fq[rx_number]->cb.dqrr_prepare(shadow[rx_number], &bufs[rx_number]); diff --git a/drivers/bus/dpaa/base/qbman/qman_driver.c b/drivers/bus/dpaa/base/qbman/qman_driver.c index 7cfa8ee..66838d2 100644 --- a/drivers/bus/dpaa/base/qbman/qman_driver.c +++ b/drivers/bus/dpaa/base/qbman/qman_driver.c @@ -246,7 +246,6 @@ int fsl_qman_portal_destroy(struct qman_portal *qp) int qman_global_init(void) { const struct device_node *dt_node; - int ret = 0; size_t lenp; const u32 *chanid; static int ccsr_map_fd; @@ -352,9 +351,7 @@ int qman_global_init(void) qman_clk = be32_to_cpu(*clk); #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - ret = qman_setup_fq_lookup_table(CONFIG_FSL_QMAN_FQ_LOOKUP_MAX); - if (ret) - return ret; + return qman_setup_fq_lookup_table(CONFIG_FSL_QMAN_FQ_LOOKUP_MAX); #endif return 0; } From patchwork Wed Mar 14 07:55:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131560 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp548213ljb; Wed, 14 Mar 2018 00:58:46 -0700 (PDT) X-Google-Smtp-Source: AG47ELuIVW5wR8g2H54g5pm/QnN9uzURr/Bxl/4Nbq1hUo3OyD/qCO+T4gB6uuszfbTP9/x93PB/ X-Received: by 10.28.62.16 with SMTP id l16mr857961wma.54.1521014326702; Wed, 14 Mar 2018 00:58:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014326; cv=none; d=google.com; s=arc-20160816; b=zEeS2oWYaYqUaWjnf28wtv1G2vUSgrGDVBbI0FIPKd45IkUY0enDpnCgwR0ybliI96 zo9hkWeB2wXEtHEVtJuKlBjLzVXpi4ymT2RZSimj+po9Yh7Y4qCtCOtX0Enkl7ZFnJqI F4/kQnHejaFzQKMB9u950EI8Ob9ClSyYjP1dU2jF6I0w0476y/yEnASrlOmmIwIX5TCI iecXCUDaQQTnJk26DRe4A1prM5pscTRS7lVDE4ePzO35FENyFkNtau041TWSUjJm3Ef1 nPm1ADpG0Gg0WG/fbCapU5BGRNxF7hy2DW8vt+mxnf3/Q/YRqGrVPQKd+qLivgzuVLWa rnig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=8g00tP6KBmMb7wyCsq4lOIbgHOCf/MiO0LdfN1w4qDw=; b=hEaRadO9UIV+4kp8J2dTk6c2B0Ad/uUkMfRcPcn23AjVrwtaQSbNi93j/rClXFyceP TIEe3XP3AtF0X4C6mp8J5zqceONXBh+Zx0jGmcAXD3JVUl2HDtPY5MzTa348sbG9sgCS f6z9DCECfqcIW7AgC6bnMNoqtRALONuj1PpTEx/X9WKdofdtt5St9GaLIh/zoX4NNmC7 7GZAJdz67Vkek3E6LFtbALW/iLxm2TxKfh1kNHc8XbW2acPd/P70+BpYrZ1Svbn3Son2 /652ltocRr+SUbsA3t0FBFmJrcQrxNBaYyU3RNBX3atRgVTAaOD2mkATCDtrxbYwwK+/ o3mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=ZZ5b2uAX; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id y8si1401845wrg.265.2018.03.14.00.58.46; Wed, 14 Mar 2018 00:58:46 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=ZZ5b2uAX; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 601C9A48A; Wed, 14 Mar 2018 08:58:08 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40054.outbound.protection.outlook.com [40.107.4.54]) by dpdk.org (Postfix) with ESMTP id 6E4B15F5F for ; Wed, 14 Mar 2018 08:58:04 +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=8g00tP6KBmMb7wyCsq4lOIbgHOCf/MiO0LdfN1w4qDw=; b=ZZ5b2uAXOy2uPSU7rNlWe1MPJHthuKSXyBOY2W0eEYZIHYMYuMUvN6t1qN90Z2erggx6AYUUyainsq5PDl1GIZX8DC+KNN2Ua/VAxCfN9i+5ohUEh/RNjS/OY5olXJT1cdNAqihTAgF5T4+aQsdQ9bXOvvKIdXokwz1s+PpkEjs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:02 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net Date: Wed, 14 Mar 2018 13:25:59 +0530 Message-Id: <1521014166-3201-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d7d30e6f-1c5f-40c7-d384-08d589815006 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:FjMRwKPXtRxo/BXYf3t7OkTkLe2pDUf6SXNSsUUQBVwryxSJZiowx/l8ZsEoycYOvaQ9+hQvTvQLpMO+cQrFiiTHvAi3HZIhxxrwlRt8hlYUN+KctEG4og7ISToJpYVS58ke8v4lkg7YZzjUf+m3UbpD5BiC3d/O74rmQlKFXdUqYhWQ7baAIsi8qlDqIkvPOVOAXnZIGvYNpdAdR6xxyrGO1vjdPTUvIDTw8jr8GvjwTC3mKsQs6o3TP8tqfvy6; 25:05v4usM0yVh8idP89wpqB+qV/CfG3iN8azXS7W2wuBvmVDB93q+B4RFA1OYUKD1I2nqwtCiEB51h70CgywzHjNaeQrNnQzDyWCguj24EgNGLfq/Rhr0sMrLeBILNKdINJbj8yWZAQYW0Ayz5YmqwDoC9drVYTtubxWrAoXTJvQUBzbfwSOQkCCNjTAt1ZmEv8oqWCglSOD6NJxaY5vUrStKjG1ov8XGP+wYumPIkz2+k+gVUXRfGsE4CthzKBWqlY51f8BGpodh7yL+bSgFxfUgZJ27FXdgSnBbkEg6ie4LqLcRM/MwSw53QOXnOnWALSPws2+SRlTzo6gZkikEhcw==; 31:07b0FnQ9jVq63bzbX8z+F4fECcAbDepYKaiz0IK0V9KFSIO0hpmq6O6RPD0qyPBO2cDlNls2W3GlOCwguQv4ZH6Dl3AvkYx1tMh+GhVzTnh/6bAEKbhpf7B5rZH5emYOAtqJkJ0nZ59LtDPEY88hGiu/z9+LbvXJUrSL2yH5OV66udVlwgrxYSqHn+2FYNLOXNonAPBb/0aA5m8t1BkRsKSY6rosbvYaKyaRK2DUVN0= X-MS-TrafficTypeDiagnostic: AM2PR04MB0754: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 20:4ds2aHXWRDoTu6f4rmfTSdPPr8E3WWlY194AGU2L/2fGKU+Tz9A0icjQAT7dfjFekT3zD7cnrXgMhazaEzYkRhC8RXYw6UgrDJ2gX+TdQQakovHoZp/vyfWDzvV6422YIlCAqlj2Yw88oadIgfOCPSOG8ZLyRymApetmHW1a0sjhD/RLyH5GcoAEts6wtww0wQKxmkMhtAGf4Bzc7zMcm7d9eX0wQ08L+bNjvI9lZ1o39fUKY5aeClEx+HZR+3TQxNDiy1kksoJ9gvOlwQ16Dfni8S2bARP/bNxGz/z2f3egVbKHArC6+kOHxjG/Pdh7MjMsVVS6W0g5WoRRabiUpqVejoCLOyK/NPssKEaC4Aw74CWGGUOs9RT6d09wlRceD2xCge2NUFIhnuPmokraA/7LCZ13bXomoHMln1hKWsfj5/98QTzQca0shgX28AS/J4GbQHruxw0/zn+FrrbvFXBZYaI7HVa8VD3Rc1j75kZ2F5VUUcfCFI4Ij6fEqcv0; 4:JhmfsVM2K6h1RZ5umYZJmNBLP0WQOLTm7Af8hB/pQR4gp/xlxc8n9+8t/soC48LHUPAGAZm31GZd0PuX2vHDLwi23ywvKKxqgNKxBPbG3XKORH+JkDXdsUB8z/Xel5uGUQhKMV64bIMns3GI/jZ03UvrqY3RUvjEOk3ZIBAVC5wD7zrXR2h9vh53ZfFvMKi8+IP8SnHxO5t7/OIvs3FAnzg7R4Euu4OLnQPSc3RcsIGs+3940jw9+rLicKcogLdZysPLfzq4dzQWRKzUspSMVTfvUUBC8ejU9ZUzujAk/Oihc+0wygauarT6TrfC6ugVS0vOw2dxUoEHQS9CB+ezP+biH+jN8dskiR8KTCIw5GI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(131327999870524)(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(59450400001)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(6666003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:blrWbFOWWXzMeK8sr4cHql4V4a53NAK3xWpOf4oZe?= vs3VqOQbtFRM1JwHY4O1ouHMMsdC7nVYREMXRePVLpzWvvchhqJ2GGtMoouM5jM8YlNS02vTg/dvp+yteyIsb8sZo1ezrh1sjUpw6CLq71XHFVmb8aVNHOjm20+29TcQ1tVy/KzNAJ8FEy6aY8e4yVlqOgsWvjewtNMWu7KKlHCmuprxQdJsxOg2GA518yYJ8L4+n/gRWk9ktE5Ie1xpxT4SYt1kXeI74GbEGA24ncKWH9sms8zvAbRGs7HGVn3MtFA+DIVg8Nx4lrM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8C/kswSnFAhA4NySTusUQRUzaTPF4wFT2reolijrZ2/cCnFwqSz X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 6:JmM3pTRO3EodYuOPttELc6C1tQOuNZmG0P+4a9beUjXNTT2qXEcV9PXcgUThfcbTvh9Uh+OepZP0wt8/rAvKP7+cbbH9FRtoz1GJ9QzDJ1mRuyZDuJsjlPRcad5Wl49T6nuR6y3JqfT04lbHc7mIVOLaIpNPuT4j2xz/IXHStExZLeFo6dT6E7/+NTErMBEdFPS16Z/ukuiPbHjXBXIZc0pCIyrYoqqgU4XF4n5M6ul3xAIpH+OT4fAkQRlmAIRhMYs/cF2AE8VgvQbYJfgpkaPlsUCVaKe7MU++UpfbRpbW6PxwQ/pHQWCI2KQlsUhII+rWIQsUWBCtXGcc3xagXAp8MY8eU3+xHI0ahKsl1kY=; 5:8M/oC7A8bv3TmedC1YLHeWh31lZ70qwISlcdql09ljAerr3cl4iYxT5P7qK1uxudNSX72FBV6WsbHuEQDho3skqxPD7udkbOF7Dh947Fp0ia0Hl1vC6kaNQf3gLFa/qn1Hsft52ISzUPEmAzifoeL8iwNNzEDMjFDoyTz/Cq2A8=; 24:Y415e2BO4jM770XP/2sYJlOigIStuBfLTZ31tsKCObXCOuhATeWUfvIqbV2P1GtKIZgdwNxA2RWsHJWMisqYYQ/8R3LN/TCmdhzEK+7biBI=; 7:8446EVJM0qTixPwMmKIj3UALeQszOO3BnZEuE0NamuLlWD17tbMj2367B91bQdvQU8aZ5sJqy1LGDvvlB5G6e3Ipvy0L6hpDf4glD39jnyHJ37PrDUufRsmqyzc8Cluq86rRZQETEKZcYIoDiXOM1MpLmCMTPJL+2I7zoioHc4nf80rNc1lh1NDBK45hUfOnvUcT4DlA77uo4xeFKPw7+wdqNbdtBV7nlDVkd0jxBQTCY6xhtfh7dfzPl8XQoRte SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:02.1703 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d7d30e6f-1c5f-40c7-d384-08d589815006 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 03/10] dpaa: prepare for 32 bit compilation 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch prepares the dpaa drivers for compilation on 32 bit machine. Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/fman/fman.c | 2 +- drivers/bus/dpaa/base/qbman/bman_driver.c | 2 +- drivers/bus/dpaa/dpaa_bus.c | 3 +-- drivers/crypto/dpaa_sec/dpaa_sec.c | 30 +++++++++++++++--------------- drivers/mempool/dpaa/dpaa_mempool.c | 10 +++++----- drivers/mempool/dpaa/dpaa_mempool.h | 2 +- drivers/net/dpaa/dpaa_rxtx.c | 19 +++++++++---------- 7 files changed, 33 insertions(+), 35 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/fman/fman.c b/drivers/bus/dpaa/base/fman/fman.c index bda62e0..e6fd5f3 100644 --- a/drivers/bus/dpaa/base/fman/fman.c +++ b/drivers/bus/dpaa/base/fman/fman.c @@ -300,7 +300,7 @@ fman_if_init(const struct device_node *dpa_node) _errno = fman_get_mac_index(regs_addr_host, &__if->__if.mac_idx); if (_errno) { - FMAN_ERR(-EINVAL, "Invalid register address: %lu", + FMAN_ERR(-EINVAL, "Invalid register address: %" PRIx64, regs_addr_host); goto err; } diff --git a/drivers/bus/dpaa/base/qbman/bman_driver.c b/drivers/bus/dpaa/base/qbman/bman_driver.c index a1ef392..1381da3 100644 --- a/drivers/bus/dpaa/base/qbman/bman_driver.c +++ b/drivers/bus/dpaa/base/qbman/bman_driver.c @@ -161,7 +161,7 @@ int bman_init_ccsr(const struct device_node *node) PROT_WRITE, MAP_SHARED, ccsr_map_fd, phys_addr); if (bman_ccsr_map == MAP_FAILED) { pr_err("Can not map BMan CCSR base Bman: " - "0x%x Phys: 0x%lx size 0x%lx", + "0x%x Phys: 0x%" PRIx64 " size 0x%" PRIu64, *bman_addr, phys_addr, regs_size); return -EINVAL; } diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index f2bb3b1..3535da5 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -19,7 +19,6 @@ #include #include #include -#include #include #include #include @@ -235,7 +234,7 @@ int rte_dpaa_portal_init(void *arg) BUS_INIT_FUNC_TRACE(); - if ((uint64_t)arg == 1 || cpu == LCORE_ID_ANY) + if ((size_t)arg == 1 || cpu == LCORE_ID_ANY) cpu = rte_get_master_lcore(); /* if the core id is not supported */ else diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 18681cf..c5191ce 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -84,7 +84,7 @@ dpaa_sec_alloc_ctx(dpaa_sec_session *ses) dcbz_64(&ctx->job.sg[SG_CACHELINE_3]); ctx->ctx_pool = ses->ctx_pool; - ctx->vtop_offset = (uint64_t) ctx + ctx->vtop_offset = (size_t) ctx - rte_mempool_virt2iova(ctx); return ctx; @@ -97,7 +97,7 @@ dpaa_mem_vtop(void *vaddr) uint64_t vaddr_64, paddr; int i; - vaddr_64 = (uint64_t)vaddr; + vaddr_64 = (size_t)vaddr; for (i = 0; i < RTE_MAX_MEMSEG && memseg[i].addr_64 != 0; i++) { if (vaddr_64 >= memseg[i].addr_64 && vaddr_64 < memseg[i].addr_64 + memseg[i].len) { @@ -107,14 +107,14 @@ dpaa_mem_vtop(void *vaddr) return (rte_iova_t)paddr; } } - return (rte_iova_t)(NULL); + return (size_t)NULL; } /* virtual address conversin when mempool support is available for ctx */ static inline phys_addr_t dpaa_mem_vtop_ctx(struct dpaa_sec_op_ctx *ctx, void *vaddr) { - return (uint64_t)vaddr - ctx->vtop_offset; + return (size_t)vaddr - ctx->vtop_offset; } static inline void * @@ -125,8 +125,8 @@ dpaa_mem_ptov(rte_iova_t paddr) for (i = 0; i < RTE_MAX_MEMSEG && memseg[i].addr_64 != 0; i++) { if (paddr >= memseg[i].iova && - (char *)paddr < (char *)memseg[i].iova + memseg[i].len) - return (void *)(memseg[i].addr_64 + + paddr < memseg[i].iova + memseg[i].len) + return (void *)(size_t)(memseg[i].addr_64 + (paddr - memseg[i].iova)); } return NULL; @@ -406,7 +406,7 @@ dpaa_sec_prep_cdb(dpaa_sec_session *ses) return -ENOTSUP; } - alginfo_c.key = (uint64_t)ses->cipher_key.data; + alginfo_c.key = (size_t)ses->cipher_key.data; alginfo_c.keylen = ses->cipher_key.length; alginfo_c.key_enc_flags = 0; alginfo_c.key_type = RTA_DATA_IMM; @@ -424,7 +424,7 @@ dpaa_sec_prep_cdb(dpaa_sec_session *ses) return -ENOTSUP; } - alginfo_a.key = (uint64_t)ses->auth_key.data; + alginfo_a.key = (size_t)ses->auth_key.data; alginfo_a.keylen = ses->auth_key.length; alginfo_a.key_enc_flags = 0; alginfo_a.key_type = RTA_DATA_IMM; @@ -439,7 +439,7 @@ dpaa_sec_prep_cdb(dpaa_sec_session *ses) PMD_TX_LOG(ERR, "not supported aead alg\n"); return -ENOTSUP; } - alginfo.key = (uint64_t)ses->aead_key.data; + alginfo.key = (size_t)ses->aead_key.data; alginfo.keylen = ses->aead_key.length; alginfo.key_enc_flags = 0; alginfo.key_type = RTA_DATA_IMM; @@ -463,7 +463,7 @@ dpaa_sec_prep_cdb(dpaa_sec_session *ses) return -ENOTSUP; } - alginfo_c.key = (uint64_t)ses->cipher_key.data; + alginfo_c.key = (size_t)ses->cipher_key.data; alginfo_c.keylen = ses->cipher_key.length; alginfo_c.key_enc_flags = 0; alginfo_c.key_type = RTA_DATA_IMM; @@ -474,7 +474,7 @@ dpaa_sec_prep_cdb(dpaa_sec_session *ses) return -ENOTSUP; } - alginfo_a.key = (uint64_t)ses->auth_key.data; + alginfo_a.key = (size_t)ses->auth_key.data; alginfo_a.keylen = ses->auth_key.length; alginfo_a.key_enc_flags = 0; alginfo_a.key_type = RTA_DATA_IMM; @@ -493,15 +493,15 @@ dpaa_sec_prep_cdb(dpaa_sec_session *ses) if (cdb->sh_desc[2] & 1) alginfo_c.key_type = RTA_DATA_IMM; else { - alginfo_c.key = (uint64_t)dpaa_mem_vtop( - (void *)alginfo_c.key); + alginfo_c.key = (size_t)dpaa_mem_vtop( + (void *)(size_t)alginfo_c.key); alginfo_c.key_type = RTA_DATA_PTR; } if (cdb->sh_desc[2] & (1<<1)) alginfo_a.key_type = RTA_DATA_IMM; else { - alginfo_a.key = (uint64_t)dpaa_mem_vtop( - (void *)alginfo_a.key); + alginfo_a.key = (size_t)dpaa_mem_vtop( + (void *)(size_t)alginfo_a.key); alginfo_a.key_type = RTA_DATA_PTR; } cdb->sh_desc[0] = 0; diff --git a/drivers/mempool/dpaa/dpaa_mempool.c b/drivers/mempool/dpaa/dpaa_mempool.c index fb3b6ba..7b82f4b 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.c +++ b/drivers/mempool/dpaa/dpaa_mempool.c @@ -115,7 +115,8 @@ dpaa_buf_free(struct dpaa_bp_info *bp_info, uint64_t addr) struct bm_buffer buf; int ret; - DPAA_MEMPOOL_DEBUG("Free 0x%lx to bpid: %d", addr, bp_info->bpid); + DPAA_MEMPOOL_DEBUG("Free 0x%" PRIx64 " to bpid: %d", + addr, bp_info->bpid); bm_buffer_set64(&buf, addr); retry: @@ -154,8 +155,7 @@ dpaa_mbuf_free_bulk(struct rte_mempool *pool, if (unlikely(!bp_info->ptov_off)) { /* buffers are from single mem segment */ if (bp_info->flags & DPAA_MPOOL_SINGLE_SEGMENT) { - bp_info->ptov_off - = (uint64_t)obj_table[i] - phy; + bp_info->ptov_off = (size_t)obj_table[i] - phy; rte_dpaa_bpid_info[bp_info->bpid].ptov_off = bp_info->ptov_off; } @@ -282,8 +282,8 @@ dpaa_register_memory_area(const struct rte_mempool *mp, bp_info = DPAA_MEMPOOL_TO_POOL_INFO(mp); total_elt_sz = mp->header_size + mp->elt_size + mp->trailer_size; - DPAA_MEMPOOL_DEBUG("Req size %lu vs Available %u\n", - len, total_elt_sz * mp->size); + DPAA_MEMPOOL_DEBUG("Req size %" PRIx64 " vs Available %u\n", + (uint64_t)len, total_elt_sz * mp->size); /* Detect pool area has sufficient space for elements in this memzone */ if (len >= total_elt_sz * mp->size) diff --git a/drivers/mempool/dpaa/dpaa_mempool.h b/drivers/mempool/dpaa/dpaa_mempool.h index 9435dd2..092f326 100644 --- a/drivers/mempool/dpaa/dpaa_mempool.h +++ b/drivers/mempool/dpaa/dpaa_mempool.h @@ -46,7 +46,7 @@ static inline void * DPAA_MEMPOOL_PTOV(struct dpaa_bp_info *bp_info, uint64_t addr) { if (bp_info->ptov_off) - return ((void *)(addr + bp_info->ptov_off)); + return ((void *) (size_t)(addr + bp_info->ptov_off)); return rte_dpaa_mem_ptov(addr); } diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 0dea8e7..bdb7f66 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -59,7 +59,7 @@ } while (0) #if (defined RTE_LIBRTE_DPAA_DEBUG_DRIVER) -void dpaa_display_frame(const struct qm_fd *fd) +static void dpaa_display_frame(const struct qm_fd *fd) { int ii; char *ptr; @@ -90,11 +90,10 @@ static inline void dpaa_slow_parsing(struct rte_mbuf *m __rte_unused, /*TBD:XXX: to be implemented*/ } -static inline void dpaa_eth_packet_info(struct rte_mbuf *m, - uint64_t fd_virt_addr) +static inline void dpaa_eth_packet_info(struct rte_mbuf *m, void *fd_virt_addr) { struct annotations_t *annot = GET_ANNOTATIONS(fd_virt_addr); - uint64_t prs = *((uint64_t *)(&annot->parse)) & DPAA_PARSE_MASK; + uint64_t prs = *((uintptr_t *)(&annot->parse)) & DPAA_PARSE_MASK; DPAA_DP_LOG(DEBUG, " Parsing mbuf: %p with annotations: %p", m, annot); @@ -351,7 +350,7 @@ dpaa_eth_sg_to_mbuf(const struct qm_fd *fd, uint32_t ifid) prev_seg = cur_seg; } - dpaa_eth_packet_info(first_seg, (uint64_t)vaddr); + dpaa_eth_packet_info(first_seg, vaddr); rte_pktmbuf_free_seg(temp); return first_seg; @@ -394,7 +393,7 @@ dpaa_eth_fd_to_mbuf(const struct qm_fd *fd, uint32_t ifid) mbuf->ol_flags = 0; mbuf->next = NULL; rte_mbuf_refcnt_set(mbuf, 1); - dpaa_eth_packet_info(mbuf, (uint64_t)mbuf->buf_addr); + dpaa_eth_packet_info(mbuf, mbuf->buf_addr); return mbuf; } @@ -455,7 +454,7 @@ dpaa_rx_cb(struct qman_fq **fq, struct qm_dqrr_entry **dqrr, mbuf->ol_flags = 0; mbuf->next = NULL; rte_mbuf_refcnt_set(mbuf, 1); - dpaa_eth_packet_info(mbuf, (uint64_t)mbuf->buf_addr); + dpaa_eth_packet_info(mbuf, mbuf->buf_addr); } } @@ -593,7 +592,7 @@ uint16_t dpaa_eth_queue_rx(void *q, static void *dpaa_get_pktbuf(struct dpaa_bp_info *bp_info) { int ret; - uint64_t buf = 0; + size_t buf = 0; struct bm_buffer bufs; ret = bman_acquire(bp_info->bp, &bufs, 1, 0); @@ -602,10 +601,10 @@ static void *dpaa_get_pktbuf(struct dpaa_bp_info *bp_info) return (void *)buf; } - DPAA_DP_LOG(DEBUG, "got buffer 0x%lx from pool %d", + DPAA_DP_LOG(DEBUG, "got buffer 0x%" PRIx64 " from pool %d", (uint64_t)bufs.addr, bufs.bpid); - buf = (uint64_t)DPAA_MEMPOOL_PTOV(bp_info, bufs.addr) + buf = (size_t)DPAA_MEMPOOL_PTOV(bp_info, bufs.addr) - bp_info->meta_data_size; if (!buf) goto out; From patchwork Wed Mar 14 07:56:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131561 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp548342ljb; Wed, 14 Mar 2018 00:58:59 -0700 (PDT) X-Google-Smtp-Source: AG47ELudAhNGxW8ZPyeXbkpoihAzAyhEUHJtik/Rdlg2yKCj655nVwfH2EYiglZkuy9HwwdvxJQc X-Received: by 10.223.185.73 with SMTP id b9mr2962765wrg.229.1521014339393; Wed, 14 Mar 2018 00:58:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014339; cv=none; d=google.com; s=arc-20160816; b=zLQxBE3iOH+AvP/jl94I+Abebrmf3zLxrSf8ZG8ECLcoGU4Bgr5by/qkDz5C+FcwAa fsMYl+bgBxpZNXQfGK/9VSAfJB0R9GGGB8C2wkk/xrPo9X0h2PrXq8SToU2LK5xV59dj aHtpF4xQ4LiVUGSDR6AF4AAlMSLh7J9mogjIAAt+rcKlJvVkzLS9exgNDQW9QY3P8ygc SpE/YzEiN8ThpxN0dEop7u8p/ELiMVM4U60/azRnfIBkzSl6KVYl/AW7ZmjFuBWRVKeG FXjUOGcKgkpb8pFGx0vpVqo2iOrenXZGL9JUh7uF/jgsm8EHwklOGgncZovi6pBxe+VP wjaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=xJfAVFm0tthY3qHCJROHhrAx32uWGu+lp3fqtVR+2lk=; b=a5G9/Yl3Y1H7znj6m1+3C5k4OjvzNDGwV3a4e/7axbsKoD1P8RuybRS5lJ4LBtmtnc JDhMtvaya4Kzn/GvcW4ILWbTzuFfQ6vZ++U827rLryATU40vzk2wimJh+TPFdEc1wWGb xOD33SLgjjt5JV/auKh4VHmchrtDZ84gNEJEomKxIVGq+Jz4oEAsIdarnbsildaEmHjR 5gfcvMfD4Ky4Hg1jlVg+cLBwD6CmIGqRS0Dc7ez9e3YccnQki2E/wGUMEXejzEJdOVkc nb5DX2Tzyu6J25RGaEdyDShE6r+0UQu8AIupuykwaXN2khkVflZ5ePJgNQUWvYtA1vWu 31MQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=NQrr9mGW; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id r8si496256wmb.115.2018.03.14.00.58.59; Wed, 14 Mar 2018 00:58:59 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=NQrr9mGW; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 63014A495; Wed, 14 Mar 2018 08:58:09 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40048.outbound.protection.outlook.com [40.107.4.48]) by dpdk.org (Postfix) with ESMTP id 3EC447CFD for ; Wed, 14 Mar 2018 08:58:06 +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=xJfAVFm0tthY3qHCJROHhrAx32uWGu+lp3fqtVR+2lk=; b=NQrr9mGWf3J3DsE42LWj9vRteFQXf6oS3/iJ889K4TXIkc6RpJkAd1C4e7ly1/wrPV7o6/bmQ4Rmla8tLa7i44c871NkvuaSZNNKg8hyFrBIgGfz3t7sQPz0lAmSykx/UvVQfW42rrxJx3UXe4CdYCyI5cMKMmFBRqgYDQVnh8E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:03 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net Date: Wed, 14 Mar 2018 13:26:00 +0530 Message-Id: <1521014166-3201-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 7fe90903-7013-4e40-e321-08d5898150b4 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:KQ+UW/yUr6EAlJA0apOEzA3tBRErf1yYcJI37G4XKSdkMO4bby1M1Fb3JYEYibF6oYuvwQhXxqeP4sH8hf4wVTqK0gQlb8p1PAFnmB/0Sf1nW72Kdyl6jf0qwpD/ELr/VS5G+mhbwuAe0E44mNcHu2EybshUUwyx2+DT3LZnXxbvWk+zgrfvC8gUf3kCoeSIL68L4e+X+uG4ls04OkBElxQ3OnThh+ZAC82GcCwZvu7NK4tRehIfjapfdmxUfzMk; 25:TO0HnK1/k8jIZzQO1Hu+A8hgsz+5/qvegF9sS5qGGuDrqojC5HC1vlYaECZzusdmL1cTAGItpOFHZi6CQFDEBNcskfd69+5W+OvM72N646p6UtcznP6lZFEGsygL64+ltpcWabWY9n4VKtkyoO02fqlYnPh+0tyTulCqWQNzdcTK+ytOYY7zNhCO3JdIbglHbZ5BbRC9SOWRZn4mbqrmzprDK/petffcvYbPB6HJSajd6glWZhNQYniUHro3qiWJxmnbzByy4rjk6HgR6YRmn6QLpvd8mvBH9paD3kD4hv5TZNue/R6B1vLJnsBOHE6KoB4pLItTSu3PouKZNuaSjQ==; 31:eK7prLpk0uSAZRT3mRTh4fxzKdy0L8jCZG5bhKoLNWbxDE5R4OIXLXcRNyW/fDQEVKCgl96s5K6lFxIyeYRkUlMb+UXpknTWTUaF6M0UVk+8YaJRJ4XnK2zZcDpBpK+TNoZCbdYT6zLlLXgipeSm+dGbaxf5AIiIJKG84BRm4mjYdBsURZZMyGRd1FYcUUL132se0fXS9QYT3ZOFlkJhKMylC9VMalPkOvV+uuMiLFk= X-MS-TrafficTypeDiagnostic: AM2PR04MB0754: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 20:FHjP65vt64L3iYU83SzCoH8yoQgN9LxZp32gTN9KfIPC3GTTvojamXLGLE0ekJRZX65xiVTEMdMY2qbZ1BxMuvnEoKJ96S244cKZ16BAKgKazwF5/xaj7dA6IO+VeB6cIi6SDAUzCnjLk1w//8KfVCbVF9smLOW5+6QAvzYoL1MOelveSk7D63YCYSK5EHrD9b+q73vZar/WLEFYgER19ol1burWPWcSnrWgM4dGiw+eM+21cZJGb6dof9rz8DqX/mcWFsOhovD9hsKQ+ZSs4cYn6ZtU2cwfjHahFXREKpWsmgWS32y51RrLh1ZEI2Wl/ArO55HggGrV9C2ODivJaoabkxHrPSWEnIfqHs5x4FdtVoijrQJAOjLE69SMTPGLY9y/sD9EqOPkzrZsP9E1KpaC1bAgD6gL49rz0yMK6lv5v8v9QGx2nQ1UZlswGf21hjWGLRG51Ug1B7SM5lClvD77XKv6sNz8/jvYUQWUWTRD2wYM2qoDwscdI1DmZeTW; 4:0pBRoplJg7YLd1a+e62oJjeq4RA8Hp0Qp9JO8tBFaF0h6em1tRxvyO324KtPsAJQJ3eFvCwEm1mdBwvM4mNqxWyEaObaeFyex8cT9i8Rn4LgE89HGmzXZK3IQtN+NYjUXbNgcw8r5LzTUrL9Lr9I+WbYk+5Wo/oTwgnFXDQmfUCN9V2SE+pWASOyKvIQgZRwlHBDoERVxAZ1ZpJre17aBgmmI/hn4dCny/OhftFlvMz/JxUIRfcGoVSfEIc2YUwTXv2hcYIp/rKSpuVBr9puAwwbccPScZ25+hFPLkb7I5BP+jSIWHTTXobJsaKjDWuxM7Y+thgh8MLSqGj6VWjO7jbIdTwICCoiC4xchp/gKGk= 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)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(575784001)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(59450400001)(48376002)(2906002)(97736004)(53946003)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(5890100001)(2950100002)(3846002)(478600001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:tuEdXnY7ZfrISnTjwiAg/1Hh7Hm7YsL1jmeEaR/cm?= CQV2mc1BucTJyZAKYtql5gknPEevGCvzWOqyuxQ9NuqHaM44vSyUL48FgUtivR6dRGy7bxwYAphmxdmKRUNfg80gMZbLN+POnhhpFmUf/BGcHbyJzQWJikDVHqPR0V50Iprx2OjHx2+9INUs5hYNKH8i6YTtegxm3TG87P19m/n39z4M9zVqTtpqsmpPlJYAg1x7PEJnUiBUrIKfy9yNipOQ0yjqixyoKy3AVSEYdLz58ETCzm+t8lxIVtlQeLrMgCtrK2Qhf/q1gU/IO74J7SjVkyiDbdzPj+cRpi4K3Xwwo6dgt7JDlz+p+5eER/HyLLlB7lU0Iw63JCRUkAgtmb3rpLvj1BzOjqIPkdfK6FWNLtFCOFBPK+B/fJlB20br3Zg/zLLqNfqR0YnytPyUT+HGbSYASWQXn/NdEeah/znTB1jTsoTApnOTJY/7yj4TlPnNl8oqpEpVJG4I57iI3vLUkit5uhrtKwoU16/Lx5hNG74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p+eEuv63N+JBvLk9LGIJ0hw2WJzfGwSrOOPagslqDj4ztXkqOjZGXD37zqH8RrBRjNazxDjSmEqOF2td6KUSJ1XIbr5sC1GB/ZAd4/0F9lLnp5XjqW8gqcEFTi+ZJDla9FYibvhEo/1i0IrWkk48yBnQVz9wcwSfWJwHwm1CWmNaCklEPVVjmQCBzCEK7xjsmAd825/vhzRNYLpIEjSCWF2t95VJcIwNFrVDGkwmXIT9pJkmdg61lKIBmUc4I=; 5:ER/u4CZcIvEhzwHH69/1EySbtPL0W2o7NoXmflfEOC7LbN+1ZT1INR2gO6eAR3qg1l+hXw4AsmnX5CiF54Lp2+J17whwus43owLcZi8cCTyPytaSuOwqSOjJhPKhG44bJl7xR9icoazv1yWeIQYbX74FXnALnnnK/3H2gIfkXjo=; 24:au4/TRo1z0e+tYORnnq/K7Rv6h8ES8j1K1PeZ2wVCw6P5HEvpYRBYO9rNUYqW19co5lRC4tKck+8t0ZsHQ8CDBlBCBFjcvcCDm1dY2EK7rw=; 7:IVDBxy6QstO4qTa0hXKjgoKt3/7uJrW4b0OzvupxVFL9xxzQNcp3RjLeBLukJpR9c43js2LdFraXfxiHOySA2PIXW+N11SzaUO5qkNkqZAJ/m7WS9B9/mZcVCz0Ti8NwB9FBIeq9f/YCOZr6TKgw2cza/E5PAbM6Hrsju5Dao2h//uudF2S9CwpNqhfMd6EfXqJzsGX5k+MyqAM7wr6TsDXa0Ebx2pFizDL3bdsi/Cz3m9ynDMv7J9gV0u0eeckI SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:03.2954 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7fe90903-7013-4e40-e321-08d5898150b4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 04/10] dpaa2: prepare for 32 bit compilation 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch prepare the dpaa2 drivers for compilation on 32 bit machine. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/fslmc_vfio.c | 10 +-- drivers/bus/fslmc/mc/fsl_mc_cmd.h | 2 +- drivers/bus/fslmc/portal/dpaa2_hw_dpio.c | 22 +++--- drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 37 +++++----- drivers/bus/fslmc/qbman/qbman_portal.c | 14 ++-- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 101 ++++++++++++++-------------- drivers/event/dpaa2/dpaa2_eventdev.c | 10 +-- drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 8 +-- drivers/net/dpaa2/Makefile | 1 - drivers/net/dpaa2/base/dpaa2_hw_dpni.c | 2 +- drivers/net/dpaa2/dpaa2_ethdev.c | 6 +- drivers/net/dpaa2/dpaa2_rxtx.c | 63 +++++++++-------- 12 files changed, 137 insertions(+), 139 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/fslmc_vfio.c b/drivers/bus/fslmc/fslmc_vfio.c index 1241295..e840ad6 100644 --- a/drivers/bus/fslmc/fslmc_vfio.c +++ b/drivers/bus/fslmc/fslmc_vfio.c @@ -76,7 +76,7 @@ fslmc_get_container_group(int *groupid) if (!g_container) { container = getenv("DPRC"); if (container == NULL) { - RTE_LOG(WARNING, EAL, "DPAA2: DPRC not available\n"); + RTE_LOG(DEBUG, EAL, "DPAA2: DPRC not available\n"); return -EINVAL; } @@ -270,7 +270,7 @@ int rte_fslmc_vfio_dmamap(void) static int64_t vfio_map_mcp_obj(struct fslmc_vfio_group *group, char *mcp_obj) { - int64_t v_addr = (int64_t)MAP_FAILED; + intptr_t v_addr = (intptr_t)MAP_FAILED; int32_t ret, mc_fd; struct vfio_device_info d_info = { .argsz = sizeof(d_info) }; @@ -301,7 +301,7 @@ static int64_t vfio_map_mcp_obj(struct fslmc_vfio_group *group, char *mcp_obj) FSLMC_VFIO_LOG(DEBUG, "region offset = %llx , region size = %llx", reg_info.offset, reg_info.size); - v_addr = (uint64_t)mmap(NULL, reg_info.size, + v_addr = (size_t)mmap(NULL, reg_info.size, PROT_WRITE | PROT_READ, MAP_SHARED, mc_fd, reg_info.offset); @@ -469,7 +469,7 @@ fslmc_process_iodevices(struct rte_dpaa2_device *dev) static int fslmc_process_mcp(struct rte_dpaa2_device *dev) { - int64_t v_addr; + intptr_t v_addr; char *dev_name; struct fsl_mc_io dpmng = {0}; struct mc_version mc_ver_info = {0}; @@ -489,7 +489,7 @@ fslmc_process_mcp(struct rte_dpaa2_device *dev) } v_addr = vfio_map_mcp_obj(&vfio_group, dev_name); - if (v_addr == (int64_t)MAP_FAILED) { + if (v_addr == (intptr_t)MAP_FAILED) { FSLMC_VFIO_LOG(ERR, "Error mapping region (errno = %d)", errno); free(rte_mcp_ptr_list); diff --git a/drivers/bus/fslmc/mc/fsl_mc_cmd.h b/drivers/bus/fslmc/mc/fsl_mc_cmd.h index a3c3e79..ac91961 100644 --- a/drivers/bus/fslmc/mc/fsl_mc_cmd.h +++ b/drivers/bus/fslmc/mc/fsl_mc_cmd.h @@ -27,7 +27,7 @@ #define le32_to_cpu rte_le_to_cpu_32 #define le16_to_cpu rte_le_to_cpu_16 -#define BITS_PER_LONG 64 +#define BITS_PER_LONG (__SIZEOF_LONG__ * 8) #define GENMASK(h, l) \ (((~0UL) << (l)) & (~0UL >> (BITS_PER_LONG - 1 - (h)))) diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c index eefde15..7b671ef 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.c @@ -291,7 +291,7 @@ struct dpaa2_dpio_dev *dpaa2_get_qbman_swp(int cpu_id) if (!dpio_dev) return NULL; - PMD_DRV_LOG(DEBUG, "New Portal=0x%x (%d) affined thread - %lu", + PMD_DRV_LOG(DEBUG, "New Portal %p (%d) affined thread - %lu", dpio_dev, dpio_dev->index, syscall(SYS_gettid)); ret = dpaa2_configure_stashing(dpio_dev, cpu_id); @@ -314,8 +314,9 @@ dpaa2_affine_qbman_swp(void) return -1; if (dpaa2_io_portal[lcore_id].dpio_dev) { - PMD_DRV_LOG(INFO, "DPAA Portal=0x%x (%d) is being shared" - " between thread %lu and current %lu", + PMD_DRV_LOG(INFO, "DPAAPortal=%p (%d) is being shared" + " between thread %" PRIu64 " and current " + "%" PRIu64 "\n", dpaa2_io_portal[lcore_id].dpio_dev, dpaa2_io_portal[lcore_id].dpio_dev->index, dpaa2_io_portal[lcore_id].net_tid, @@ -326,7 +327,8 @@ dpaa2_affine_qbman_swp(void) [lcore_id].dpio_dev->ref_count); dpaa2_io_portal[lcore_id].net_tid = tid; - PMD_DRV_LOG(DEBUG, "Old Portal=0x%x (%d) affined thread - %lu", + PMD_DRV_LOG(DEBUG, "Old Portal=%p (%d)" + "affined thread - %" PRIu64 "\n", dpaa2_io_portal[lcore_id].dpio_dev, dpaa2_io_portal[lcore_id].dpio_dev->index, tid); @@ -360,8 +362,9 @@ dpaa2_affine_qbman_swp_sec(void) return -1; if (dpaa2_io_portal[lcore_id].sec_dpio_dev) { - PMD_DRV_LOG(INFO, "DPAA Portal=0x%x (%d) is being shared" - " between thread %lu and current %lu", + PMD_DRV_LOG(INFO, "DPAAPortal=%p (%d) is being shared" + " between thread %" PRIu64 " and current " + "%" PRIu64 "\n", dpaa2_io_portal[lcore_id].sec_dpio_dev, dpaa2_io_portal[lcore_id].sec_dpio_dev->index, dpaa2_io_portal[lcore_id].sec_tid, @@ -372,7 +375,8 @@ dpaa2_affine_qbman_swp_sec(void) [lcore_id].sec_dpio_dev->ref_count); dpaa2_io_portal[lcore_id].sec_tid = tid; - PMD_DRV_LOG(DEBUG, "Old Portal=0x%x (%d) affined thread - %lu", + PMD_DRV_LOG(DEBUG, "Old Portal=%p (%d) " + "affined thread - %" PRIu64 "\n", dpaa2_io_portal[lcore_id].sec_dpio_dev, dpaa2_io_portal[lcore_id].sec_dpio_dev->index, tid); @@ -427,7 +431,7 @@ dpaa2_create_dpio_device(int vdev_fd, } dpio_dev->ce_size = reg_info.size; - dpio_dev->qbman_portal_ce_paddr = (uint64_t)mmap(NULL, reg_info.size, + dpio_dev->qbman_portal_ce_paddr = (size_t)mmap(NULL, reg_info.size, PROT_WRITE | PROT_READ, MAP_SHARED, vdev_fd, reg_info.offset); @@ -439,7 +443,7 @@ dpaa2_create_dpio_device(int vdev_fd, } dpio_dev->ci_size = reg_info.size; - dpio_dev->qbman_portal_ci_paddr = (uint64_t)mmap(NULL, reg_info.size, + dpio_dev->qbman_portal_ci_paddr = (size_t)mmap(NULL, reg_info.size, PROT_WRITE | PROT_READ, MAP_SHARED, vdev_fd, reg_info.offset); diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h index d421dbf..4a19d42 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_pvt.h @@ -174,7 +174,7 @@ enum qbman_fd_format { }; /*Macros to define operations on FD*/ #define DPAA2_SET_FD_ADDR(fd, addr) do { \ - (fd)->simple.addr_lo = lower_32_bits((uint64_t)(addr)); \ + (fd)->simple.addr_lo = lower_32_bits((size_t)(addr)); \ (fd)->simple.addr_hi = upper_32_bits((uint64_t)(addr)); \ } while (0) #define DPAA2_SET_FD_LEN(fd, length) ((fd)->simple.len = length) @@ -193,33 +193,32 @@ enum qbman_fd_format { #define DPAA2_SET_FD_ASAL(fd, asal) ((fd)->simple.ctrl |= (asal << 16)) #define DPAA2_SET_FD_FLC(fd, addr) do { \ - (fd)->simple.flc_lo = lower_32_bits((uint64_t)(addr)); \ + (fd)->simple.flc_lo = lower_32_bits((size_t)(addr)); \ (fd)->simple.flc_hi = upper_32_bits((uint64_t)(addr)); \ } while (0) #define DPAA2_SET_FLE_INTERNAL_JD(fle, len) ((fle)->frc = (0x80000000 | (len))) #define DPAA2_GET_FLE_ADDR(fle) \ (uint64_t)((((uint64_t)((fle)->addr_hi)) << 32) + (fle)->addr_lo) #define DPAA2_SET_FLE_ADDR(fle, addr) do { \ - (fle)->addr_lo = lower_32_bits((uint64_t)addr); \ - (fle)->addr_hi = upper_32_bits((uint64_t)addr); \ + (fle)->addr_lo = lower_32_bits((size_t)addr); \ + (fle)->addr_hi = upper_32_bits((uint64_t)addr); \ } while (0) #define DPAA2_GET_FLE_CTXT(fle) \ - (uint64_t)((((uint64_t)((fle)->reserved[1])) << 32) + \ - (fle)->reserved[0]) + ((((uint64_t)((fle)->reserved[1])) << 32) + (fle)->reserved[0]) #define DPAA2_FLE_SAVE_CTXT(fle, addr) do { \ - (fle)->reserved[0] = lower_32_bits((uint64_t)addr); \ - (fle)->reserved[1] = upper_32_bits((uint64_t)addr); \ + (fle)->reserved[0] = lower_32_bits((size_t)addr); \ + (fle)->reserved[1] = upper_32_bits((uint64_t)addr); \ } while (0) #define DPAA2_SET_FLE_OFFSET(fle, offset) \ ((fle)->fin_bpid_offset |= (uint32_t)(offset) << 16) -#define DPAA2_SET_FLE_BPID(fle, bpid) ((fle)->fin_bpid_offset |= (uint64_t)bpid) +#define DPAA2_SET_FLE_BPID(fle, bpid) ((fle)->fin_bpid_offset |= (size_t)bpid) #define DPAA2_GET_FLE_BPID(fle) ((fle)->fin_bpid_offset & 0x000000ff) -#define DPAA2_SET_FLE_FIN(fle) ((fle)->fin_bpid_offset |= (uint64_t)1 << 31) +#define DPAA2_SET_FLE_FIN(fle) ((fle)->fin_bpid_offset |= 1 << 31) #define DPAA2_SET_FLE_IVP(fle) (((fle)->fin_bpid_offset |= 0x00004000)) #define DPAA2_SET_FD_COMPOUND_FMT(fd) \ ((fd)->simple.bpid_offset |= (uint32_t)1 << 28) #define DPAA2_GET_FD_ADDR(fd) \ -((uint64_t)((((uint64_t)((fd)->simple.addr_hi)) << 32) + (fd)->simple.addr_lo)) +(((((uint64_t)((fd)->simple.addr_hi)) << 32) + (fd)->simple.addr_lo)) #define DPAA2_GET_FD_LEN(fd) ((fd)->simple.len) #define DPAA2_GET_FD_BPID(fd) (((fd)->simple.bpid_offset & 0x00003FFF)) @@ -231,7 +230,7 @@ enum qbman_fd_format { (((fle)->fin_bpid_offset & ((uint64_t)1 << 29)) ? 1 : 0) #define DPAA2_INLINE_MBUF_FROM_BUF(buf, meta_data_size) \ - ((struct rte_mbuf *)((uint64_t)(buf) - (meta_data_size))) + ((struct rte_mbuf *)((size_t)(buf) - (meta_data_size))) #define DPAA2_ASAL_VAL (DPAA2_MBUF_HW_ANNOTATION / 64) @@ -265,14 +264,14 @@ static void *dpaa2_mem_ptov(phys_addr_t paddr) int i; if (dpaa2_virt_mode) - return (void *)paddr; + return (void *)(size_t)paddr; memseg = rte_eal_get_physmem_layout(); for (i = 0; i < RTE_MAX_MEMSEG && memseg[i].addr_64 != 0; i++) { if (paddr >= memseg[i].iova && - (char *)paddr < (char *)memseg[i].iova + memseg[i].len) - return (void *)(memseg[i].addr_64 + paddr < memseg[i].iova + memseg[i].len) + return (void *)(size_t)(memseg[i].addr_64 + (paddr - memseg[i].iova)); } return NULL; @@ -295,7 +294,7 @@ static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) return memseg[i].iova + (vaddr - memseg[i].addr_64); } - return (phys_addr_t)(NULL); + return (size_t)(NULL); } /** @@ -311,18 +310,18 @@ static phys_addr_t dpaa2_mem_vtop(uint64_t vaddr) /** * macro to convert Virtual address to IOVA */ -#define DPAA2_VADDR_TO_IOVA(_vaddr) dpaa2_mem_vtop((uint64_t)(_vaddr)) +#define DPAA2_VADDR_TO_IOVA(_vaddr) dpaa2_mem_vtop((size_t)(_vaddr)) /** * macro to convert IOVA to Virtual address */ -#define DPAA2_IOVA_TO_VADDR(_iova) dpaa2_mem_ptov((phys_addr_t)(_iova)) +#define DPAA2_IOVA_TO_VADDR(_iova) dpaa2_mem_ptov((size_t)(_iova)) /** * macro to convert modify the memory containing IOVA to Virtual address */ #define DPAA2_MODIFY_IOVA_TO_VADDR(_mem, _type) \ - {_mem = (_type)(dpaa2_mem_ptov((phys_addr_t)(_mem))); } + {_mem = (_type)(dpaa2_mem_ptov((size_t)(_mem))); } #else /* RTE_LIBRTE_DPAA2_USE_PHYS_IOVA */ diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index e221733..713ec96 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -553,10 +553,9 @@ int qbman_swp_enqueue_multiple(struct qbman_swp *s, /* Flush all the cacheline without load/store in between */ eqcr_pi = s->eqcr.pi; - addr_cena = (uint64_t)s->sys.addr_cena; + addr_cena = (size_t)s->sys.addr_cena; for (i = 0; i < num_enqueued; i++) { - dcbf((uint64_t *)(addr_cena + - QBMAN_CENA_SWP_EQCR(eqcr_pi & 7))); + dcbf((addr_cena + QBMAN_CENA_SWP_EQCR(eqcr_pi & 7))); eqcr_pi++; eqcr_pi &= 0xF; } @@ -620,10 +619,9 @@ int qbman_swp_enqueue_multiple_desc(struct qbman_swp *s, /* Flush all the cacheline without load/store in between */ eqcr_pi = s->eqcr.pi; - addr_cena = (uint64_t)s->sys.addr_cena; + addr_cena = (size_t)s->sys.addr_cena; for (i = 0; i < num_enqueued; i++) { - dcbf((uint64_t *)(addr_cena + - QBMAN_CENA_SWP_EQCR(eqcr_pi & 7))); + dcbf((addr_cena + QBMAN_CENA_SWP_EQCR(eqcr_pi & 7))); eqcr_pi++; eqcr_pi &= 0xF; } @@ -690,7 +688,7 @@ void qbman_pull_desc_set_storage(struct qbman_pull_desc *d, dma_addr_t storage_phys, int stash) { - d->pull.rsp_addr_virt = (uint64_t)storage; + d->pull.rsp_addr_virt = (size_t)storage; if (!storage) { d->pull.verb &= ~(1 << QB_VDQCR_VERB_RLS_SHIFT); @@ -749,7 +747,7 @@ int qbman_swp_pull(struct qbman_swp *s, struct qbman_pull_desc *d) } d->pull.tok = s->sys.idx + 1; - s->vdq.storage = (void *)d->pull.rsp_addr_virt; + s->vdq.storage = (void *)(size_t)d->pull.rsp_addr_virt; p = qbman_cena_write_start_wo_shadow(&s->sys, QBMAN_CENA_SWP_VDQCR); memcpy(&p[1], &cl[1], 12); diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 9a790dd..9a74845 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -77,11 +77,11 @@ build_proto_fd(dpaa2_sec_session *sess, DPAA2_SET_FD_ADDR(fd, DPAA2_MBUF_VADDR_TO_IOVA(sym_op->m_src)); DPAA2_SET_FD_OFFSET(fd, sym_op->m_src->data_off); DPAA2_SET_FD_LEN(fd, sym_op->m_src->pkt_len); - DPAA2_SET_FD_FLC(fd, ((uint64_t)flc)); + DPAA2_SET_FD_FLC(fd, (ptrdiff_t)flc); /* save physical address of mbuf */ op->sym->aead.digest.phys_addr = mbuf->buf_iova; - mbuf->buf_iova = (uint64_t)op; + mbuf->buf_iova = (size_t)op; return 0; } @@ -118,7 +118,7 @@ build_authenc_gcm_sg_fd(dpaa2_sec_session *sess, } memset(fle, 0, FLE_SG_MEM_SIZE); DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); - DPAA2_FLE_SAVE_CTXT(fle, priv); + DPAA2_FLE_SAVE_CTXT(fle, (size_t)priv); op_fle = fle + 1; ip_fle = fle + 2; @@ -269,7 +269,7 @@ build_authenc_gcm_fd(dpaa2_sec_session *sess, } memset(fle, 0, FLE_POOL_BUF_SIZE); DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); - DPAA2_FLE_SAVE_CTXT(fle, priv); + DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2; if (likely(bpid < MAX_BPID)) { @@ -414,7 +414,7 @@ build_authenc_sg_fd(dpaa2_sec_session *sess, } memset(fle, 0, FLE_SG_MEM_SIZE); DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); - DPAA2_FLE_SAVE_CTXT(fle, priv); + DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; ip_fle = fle + 2; @@ -563,7 +563,7 @@ build_authenc_fd(dpaa2_sec_session *sess, } memset(fle, 0, FLE_POOL_BUF_SIZE); DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); - DPAA2_FLE_SAVE_CTXT(fle, priv); + DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2; if (likely(bpid < MAX_BPID)) { @@ -692,7 +692,7 @@ static inline int build_auth_sg_fd( memset(fle, 0, FLE_SG_MEM_SIZE); /* first FLE entry used to store mbuf and session ctxt */ DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); - DPAA2_FLE_SAVE_CTXT(fle, priv); + DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; ip_fle = fle + 2; sge = fle + 3; @@ -773,7 +773,7 @@ build_auth_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, * We can have a better approach to use the inline Mbuf */ DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); - DPAA2_FLE_SAVE_CTXT(fle, priv); + DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; if (likely(bpid < MAX_BPID)) { @@ -865,7 +865,7 @@ build_cipher_sg_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, memset(fle, 0, FLE_SG_MEM_SIZE); /* first FLE entry used to store mbuf and session ctxt */ DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); - DPAA2_FLE_SAVE_CTXT(fle, priv); + DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); op_fle = fle + 1; ip_fle = fle + 2; @@ -944,13 +944,13 @@ build_cipher_sg_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, DPAA2_SET_FD_COMPOUND_FMT(fd); DPAA2_SET_FD_FLC(fd, DPAA2_VADDR_TO_IOVA(flc)); - PMD_TX_LOG(DEBUG, - "CIPHER SG: fdaddr =%p bpid =%d meta =%d off =%d, len =%d", - (void *)DPAA2_GET_FD_ADDR(fd), - DPAA2_GET_FD_BPID(fd), - rte_dpaa2_bpid_info[bpid].meta_data_size, - DPAA2_GET_FD_OFFSET(fd), - DPAA2_GET_FD_LEN(fd)); + PMD_TX_LOG(DEBUG, "CIPHER SG: fdaddr =%" PRIx64 + " bpid =%d meta =%d off =%d, len =%d\n", + DPAA2_GET_FD_ADDR(fd), + DPAA2_GET_FD_BPID(fd), + rte_dpaa2_bpid_info[bpid].meta_data_size, + DPAA2_GET_FD_OFFSET(fd), + DPAA2_GET_FD_LEN(fd)); return 0; } @@ -987,7 +987,7 @@ build_cipher_fd(dpaa2_sec_session *sess, struct rte_crypto_op *op, * We can have a better approach to use the inline Mbuf */ DPAA2_SET_FLE_ADDR(fle, DPAA2_OP_VADDR_TO_IOVA(op)); - DPAA2_FLE_SAVE_CTXT(fle, priv); + DPAA2_FLE_SAVE_CTXT(fle, (ptrdiff_t)priv); fle = fle + 1; sge = fle + 2; @@ -1206,7 +1206,7 @@ sec_simple_fd_to_mbuf(const struct qbman_fd *fd, __rte_unused uint8_t id) DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)), rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size); - op = (struct rte_crypto_op *)mbuf->buf_iova; + op = (struct rte_crypto_op *)(size_t)mbuf->buf_iova; mbuf->buf_iova = op->sym->aead.digest.phys_addr; op->sym->aead.digest.phys_addr = 0L; @@ -1267,16 +1267,17 @@ sec_fd_to_mbuf(const struct qbman_fd *fd, uint8_t driver_id) PMD_RX_LOG(DEBUG, "mbuf %p BMAN buf addr %p", (void *)dst, dst->buf_addr); - PMD_RX_LOG(DEBUG, "fdaddr =%p bpid =%d meta =%d off =%d, len =%d", - (void *)DPAA2_GET_FD_ADDR(fd), - DPAA2_GET_FD_BPID(fd), - rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size, - DPAA2_GET_FD_OFFSET(fd), - DPAA2_GET_FD_LEN(fd)); + PMD_RX_LOG(DEBUG, "fdaddr =%" PRIx64 + " bpid =%d meta =%d off =%d, len =%d", + DPAA2_GET_FD_ADDR(fd), + DPAA2_GET_FD_BPID(fd), + rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size, + DPAA2_GET_FD_OFFSET(fd), + DPAA2_GET_FD_LEN(fd)); /* free the fle memory */ if (likely(rte_pktmbuf_is_contiguous(src))) { - priv = (struct ctxt_priv *)DPAA2_GET_FLE_CTXT(fle - 1); + priv = (struct ctxt_priv *)(size_t)DPAA2_GET_FLE_CTXT(fle - 1); rte_mempool_put(priv->fle_pool, (void *)(fle-1)); } else rte_free((void *)(fle-1)); @@ -1455,7 +1456,7 @@ dpaa2_sec_queue_pair_setup(struct rte_cryptodev *dev, uint16_t qp_id, dev->data->queue_pairs[qp_id] = qp; cfg.options = cfg.options | DPSECI_QUEUE_OPT_USER_CTX; - cfg.user_ctx = (uint64_t)(&qp->rx_vq); + cfg.user_ctx = (size_t)(&qp->rx_vq); retcode = dpseci_set_rx_queue(dpseci, CMD_PRI_LOW, priv->token, qp_id, &cfg); return retcode; @@ -1536,7 +1537,7 @@ dpaa2_sec_cipher_init(struct rte_cryptodev *dev, memcpy(session->cipher_key.data, xform->cipher.key.data, xform->cipher.key.length); - cipherdata.key = (uint64_t)session->cipher_key.data; + cipherdata.key = (size_t)session->cipher_key.data; cipherdata.keylen = session->cipher_key.length; cipherdata.key_enc_flags = 0; cipherdata.key_type = RTA_DATA_IMM; @@ -1595,10 +1596,10 @@ dpaa2_sec_cipher_init(struct rte_cryptodev *dev, flc->word1_sdl = (uint8_t)bufsize; flc->word2_rflc_31_0 = lower_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); flc->word3_rflc_63_32 = upper_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); session->ctxt = priv; @@ -1651,7 +1652,7 @@ dpaa2_sec_auth_init(struct rte_cryptodev *dev, memcpy(session->auth_key.data, xform->auth.key.data, xform->auth.key.length); - authdata.key = (uint64_t)session->auth_key.data; + authdata.key = (size_t)session->auth_key.data; authdata.keylen = session->auth_key.length; authdata.key_enc_flags = 0; authdata.key_type = RTA_DATA_IMM; @@ -1720,10 +1721,10 @@ dpaa2_sec_auth_init(struct rte_cryptodev *dev, flc->word1_sdl = (uint8_t)bufsize; flc->word2_rflc_31_0 = lower_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); flc->word3_rflc_63_32 = upper_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); session->ctxt = priv; for (i = 0; i < bufsize; i++) @@ -1786,7 +1787,7 @@ dpaa2_sec_aead_init(struct rte_cryptodev *dev, session->aead_key.length = aead_xform->key.length; ctxt->auth_only_len = aead_xform->aad_length; - aeaddata.key = (uint64_t)session->aead_key.data; + aeaddata.key = (size_t)session->aead_key.data; aeaddata.keylen = session->aead_key.length; aeaddata.key_enc_flags = 0; aeaddata.key_type = RTA_DATA_IMM; @@ -1840,10 +1841,10 @@ dpaa2_sec_aead_init(struct rte_cryptodev *dev, session->digest_length); flc->word1_sdl = (uint8_t)bufsize; flc->word2_rflc_31_0 = lower_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); flc->word3_rflc_63_32 = upper_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); session->ctxt = priv; for (i = 0; i < bufsize; i++) @@ -1928,7 +1929,7 @@ dpaa2_sec_aead_chain_init(struct rte_cryptodev *dev, memcpy(session->auth_key.data, auth_xform->key.data, auth_xform->key.length); - authdata.key = (uint64_t)session->auth_key.data; + authdata.key = (size_t)session->auth_key.data; authdata.keylen = session->auth_key.length; authdata.key_enc_flags = 0; authdata.key_type = RTA_DATA_IMM; @@ -1988,7 +1989,7 @@ dpaa2_sec_aead_chain_init(struct rte_cryptodev *dev, auth_xform->algo); goto error_out; } - cipherdata.key = (uint64_t)session->cipher_key.data; + cipherdata.key = (size_t)session->cipher_key.data; cipherdata.keylen = session->cipher_key.length; cipherdata.key_enc_flags = 0; cipherdata.key_type = RTA_DATA_IMM; @@ -2066,10 +2067,10 @@ dpaa2_sec_aead_chain_init(struct rte_cryptodev *dev, flc->word1_sdl = (uint8_t)bufsize; flc->word2_rflc_31_0 = lower_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); flc->word3_rflc_63_32 = upper_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); session->ctxt = priv; for (i = 0; i < bufsize; i++) @@ -2202,7 +2203,7 @@ dpaa2_sec_set_ipsec_session(struct rte_cryptodev *dev, memcpy(session->auth_key.data, auth_xform->key.data, auth_xform->key.length); - authdata.key = (uint64_t)session->auth_key.data; + authdata.key = (size_t)session->auth_key.data; authdata.keylen = session->auth_key.length; authdata.key_enc_flags = 0; authdata.key_type = RTA_DATA_IMM; @@ -2261,7 +2262,7 @@ dpaa2_sec_set_ipsec_session(struct rte_cryptodev *dev, auth_xform->algo); goto out; } - cipherdata.key = (uint64_t)session->cipher_key.data; + cipherdata.key = (size_t)session->cipher_key.data; cipherdata.keylen = session->cipher_key.length; cipherdata.key_enc_flags = 0; cipherdata.key_type = RTA_DATA_IMM; @@ -2345,10 +2346,10 @@ dpaa2_sec_set_ipsec_session(struct rte_cryptodev *dev, /* Enable the stashing control bit */ DPAA2_SET_FLC_RSC(flc); flc->word2_rflc_31_0 = lower_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq) | 0x14); flc->word3_rflc_63_32 = upper_32_bits( - (uint64_t)&(((struct dpaa2_sec_qp *) + (size_t)&(((struct dpaa2_sec_qp *) dev->data->queue_pairs[0])->rx_vq)); /* Set EWS bit i.e. enable write-safe */ @@ -2647,13 +2648,13 @@ void dpaa2_sec_stats_get(struct rte_cryptodev *dev, PMD_DRV_LOG(ERR, "dpseci_get_sec_counters failed\n"); } else { PMD_DRV_LOG(INFO, "dpseci hw stats:" - "\n\tNumber of Requests Dequeued = %lu" - "\n\tNumber of Outbound Encrypt Requests = %lu" - "\n\tNumber of Inbound Decrypt Requests = %lu" - "\n\tNumber of Outbound Bytes Encrypted = %lu" - "\n\tNumber of Outbound Bytes Protected = %lu" - "\n\tNumber of Inbound Bytes Decrypted = %lu" - "\n\tNumber of Inbound Bytes Validated = %lu", + "\n\tNumber of Requests Dequeued = %" PRIu64 + "\n\tNumber of Outbound Encrypt Requests = %" PRIu64 + "\n\tNumber of Inbound Decrypt Requests = %" PRIu64 + "\n\tNumber of Outbound Bytes Encrypted = %" PRIu64 + "\n\tNumber of Outbound Bytes Protected = %" PRIu64 + "\n\tNumber of Inbound Bytes Decrypted = %" PRIu64 + "\n\tNumber of Inbound Bytes Validated = %" PRIu64, counters.dequeued_requests, counters.ob_enc_requests, counters.ib_dec_requests, diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c index c3e6fbf..8800b47 100644 --- a/drivers/event/dpaa2/dpaa2_eventdev.c +++ b/drivers/event/dpaa2/dpaa2_eventdev.c @@ -126,7 +126,7 @@ dpaa2_eventdev_enqueue_burst(void *port, const struct rte_event ev[], goto send_partial; } rte_memcpy(ev_temp, event, sizeof(struct rte_event)); - DPAA2_SET_FD_ADDR((&fd_arr[loop]), ev_temp); + DPAA2_SET_FD_ADDR((&fd_arr[loop]), (size_t)ev_temp); DPAA2_SET_FD_LEN((&fd_arr[loop]), sizeof(struct rte_event)); } @@ -182,7 +182,7 @@ static void dpaa2_eventdev_process_parallel(struct qbman_swp *swp, struct rte_event *ev) { struct rte_event *ev_temp = - (struct rte_event *)DPAA2_GET_FD_ADDR(fd); + (struct rte_event *)(size_t)DPAA2_GET_FD_ADDR(fd); RTE_SET_USED(rxq); @@ -199,7 +199,7 @@ static void dpaa2_eventdev_process_atomic(struct qbman_swp *swp, struct rte_event *ev) { struct rte_event *ev_temp = - (struct rte_event *)DPAA2_GET_FD_ADDR(fd); + (struct rte_event *)(size_t)DPAA2_GET_FD_ADDR(fd); uint8_t dqrr_index = qbman_get_dqrr_idx(dq); RTE_SET_USED(swp); @@ -258,7 +258,7 @@ dpaa2_eventdev_dequeue_burst(void *port, struct rte_event ev[], qbman_swp_prefetch_dqrr_next(swp); fd = qbman_result_DQ_fd(dq); - rxq = (struct dpaa2_queue *)qbman_result_DQ_fqd_ctx(dq); + rxq = (struct dpaa2_queue *)(size_t)qbman_result_DQ_fqd_ctx(dq); if (rxq) { rxq->cb(swp, fd, dq, rxq, &ev[num_pkts]); } else { @@ -736,7 +736,7 @@ dpaa2_eventdev_setup_dpci(struct dpaa2_dpci_dev *dpci_dev, dpaa2_eventdev_process_atomic; for (i = 0 ; i < DPAA2_EVENT_DPCI_MAX_QUEUES; i++) { - rx_queue_cfg.user_ctx = (uint64_t)(&dpci_dev->queue[i]); + rx_queue_cfg.user_ctx = (size_t)(&dpci_dev->queue[i]); ret = dpci_set_rx_queue(&dpci_dev->dpci, CMD_PRI_LOW, dpci_dev->token, i, diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index 2bd62e8..1a618ae 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c @@ -242,7 +242,7 @@ rte_dpaa2_mbuf_alloc_bulk(struct rte_mempool *pool, #endif struct qbman_swp *swp; uint16_t bpid; - uint64_t bufs[DPAA2_MBUF_MAX_ACQ_REL]; + size_t bufs[DPAA2_MBUF_MAX_ACQ_REL]; int i, ret; unsigned int n = 0; struct dpaa2_bp_info *bp_info; @@ -270,10 +270,10 @@ rte_dpaa2_mbuf_alloc_bulk(struct rte_mempool *pool, * then the remainder. */ if ((count - n) > DPAA2_MBUF_MAX_ACQ_REL) { - ret = qbman_swp_acquire(swp, bpid, bufs, + ret = qbman_swp_acquire(swp, bpid, (void *)bufs, DPAA2_MBUF_MAX_ACQ_REL); } else { - ret = qbman_swp_acquire(swp, bpid, bufs, + ret = qbman_swp_acquire(swp, bpid, (void *)bufs, count - n); } /* In case of less than requested number of buffers available @@ -290,7 +290,7 @@ rte_dpaa2_mbuf_alloc_bulk(struct rte_mempool *pool, } /* assigning mbuf from the acquired objects */ for (i = 0; (i < ret) && bufs[i]; i++) { - DPAA2_MODIFY_IOVA_TO_VADDR(bufs[i], uint64_t); + DPAA2_MODIFY_IOVA_TO_VADDR(bufs[i], size_t); obj_table[n] = (struct rte_mbuf *) (bufs[i] - bp_info->meta_data_size); PMD_TX_LOG(DEBUG, "Acquired %p address %p from BMAN", diff --git a/drivers/net/dpaa2/Makefile b/drivers/net/dpaa2/Makefile index 5a93a0b..068e9d3 100644 --- a/drivers/net/dpaa2/Makefile +++ b/drivers/net/dpaa2/Makefile @@ -25,7 +25,6 @@ CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/qbman/include CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/mc CFLAGS += -I$(RTE_SDK)/drivers/bus/fslmc/portal CFLAGS += -I$(RTE_SDK)/drivers/mempool/dpaa2 -CFLAGS += -I$(RTE_SDK)/drivers/event/dpaa2 CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal # versioning export map diff --git a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c index b93376d..4b60f56 100644 --- a/drivers/net/dpaa2/base/dpaa2_hw_dpni.c +++ b/drivers/net/dpaa2/base/dpaa2_hw_dpni.c @@ -50,7 +50,7 @@ dpaa2_setup_flow_dist(struct rte_eth_dev *eth_dev, ret = dpaa2_distset_to_dpkg_profile_cfg(req_dist_set, &kg_cfg); if (ret) { - PMD_INIT_LOG(ERR, "given rss_hf (%lx) not supported", + PMD_INIT_LOG(ERR, "given rss_hf (%" PRIx64 ") not supported", req_dist_set); rte_free(p_params); return ret; diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 09a11d6..fd5897e 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -445,7 +445,7 @@ dpaa2_dev_rx_queue_setup(struct rte_eth_dev *dev, memset(&cfg, 0, sizeof(struct dpni_queue)); options = options | DPNI_QUEUE_OPT_USER_CTX; - cfg.user_context = (uint64_t)(dpaa2_q); + cfg.user_context = (size_t)(dpaa2_q); /*if ls2088 or rev2 device, enable the stashing */ @@ -560,7 +560,7 @@ dpaa2_dev_tx_queue_setup(struct rte_eth_dev *dev, */ cong_notif_cfg.threshold_exit = CONG_EXIT_TX_THRESHOLD; cong_notif_cfg.message_ctx = 0; - cong_notif_cfg.message_iova = (uint64_t)dpaa2_q->cscn; + cong_notif_cfg.message_iova = (size_t)dpaa2_q->cscn; cong_notif_cfg.dest_cfg.dest_type = DPNI_DEST_NONE; cong_notif_cfg.notification_mode = DPNI_CONG_OPT_WRITE_MEM_ON_ENTER | @@ -1702,7 +1702,7 @@ int dpaa2_eth_eventq_attach(const struct rte_eth_dev *dev, } options |= DPNI_QUEUE_OPT_USER_CTX; - cfg.user_context = (uint64_t)(dpaa2_ethq); + cfg.user_context = (size_t)(dpaa2_ethq); ret = dpni_set_queue(dpni, CMD_PRI_LOW, eth_priv->token, DPNI_QUEUE_RX, dpaa2_ethq->tc_index, flow_id, options, &cfg); diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 183293c..21a08b6 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -21,7 +21,6 @@ #include #include #include -#include #include "dpaa2_ethdev.h" #include "base/dpaa2_hw_dpni_annot.h" @@ -104,13 +103,11 @@ dpaa2_dev_rx_parse_frc(struct rte_mbuf *m, uint16_t frc) } static inline uint32_t __attribute__((hot)) -dpaa2_dev_rx_parse_slow(uint64_t hw_annot_addr) +dpaa2_dev_rx_parse_slow(struct dpaa2_annot_hdr *annotation) { uint32_t pkt_type = RTE_PTYPE_UNKNOWN; - struct dpaa2_annot_hdr *annotation = - (struct dpaa2_annot_hdr *)hw_annot_addr; - PMD_RX_LOG(DEBUG, "annotation = 0x%lx ", annotation->word4); + PMD_RX_LOG(DEBUG, "annotation = 0x%" PRIx64, annotation->word4); if (BIT_ISSET_AT_POS(annotation->word3, L2_ARP_PRESENT)) { pkt_type = RTE_PTYPE_L2_ETHER_ARP; goto parse_done; @@ -167,12 +164,12 @@ dpaa2_dev_rx_parse_slow(uint64_t hw_annot_addr) } static inline uint32_t __attribute__((hot)) -dpaa2_dev_rx_parse(struct rte_mbuf *mbuf, uint64_t hw_annot_addr) +dpaa2_dev_rx_parse(struct rte_mbuf *mbuf, void *hw_annot_addr) { struct dpaa2_annot_hdr *annotation = (struct dpaa2_annot_hdr *)hw_annot_addr; - PMD_RX_LOG(DEBUG, "annotation = 0x%lx ", annotation->word4); + PMD_RX_LOG(DEBUG, "annotation = 0x%" PRIx64, annotation->word4); /* Check offloads first */ if (BIT_ISSET_AT_POS(annotation->word3, @@ -207,25 +204,24 @@ dpaa2_dev_rx_parse(struct rte_mbuf *mbuf, uint64_t hw_annot_addr) break; } - return dpaa2_dev_rx_parse_slow(hw_annot_addr); + return dpaa2_dev_rx_parse_slow(annotation); } static inline struct rte_mbuf *__attribute__((hot)) eth_sg_fd_to_mbuf(const struct qbman_fd *fd) { struct qbman_sge *sgt, *sge; - dma_addr_t sg_addr; + size_t sg_addr, fd_addr; int i = 0; - uint64_t fd_addr; struct rte_mbuf *first_seg, *next_seg, *cur_seg, *temp; - fd_addr = (uint64_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)); + fd_addr = (size_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)); /* Get Scatter gather table address */ sgt = (struct qbman_sge *)(fd_addr + DPAA2_GET_FD_OFFSET(fd)); sge = &sgt[i++]; - sg_addr = (uint64_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FLE_ADDR(sge)); + sg_addr = (size_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FLE_ADDR(sge)); /* First Scatter gather entry */ first_seg = DPAA2_INLINE_MBUF_FROM_BUF(sg_addr, @@ -243,14 +239,14 @@ eth_sg_fd_to_mbuf(const struct qbman_fd *fd) DPAA2_GET_FD_FRC_PARSE_SUM(fd)); else first_seg->packet_type = dpaa2_dev_rx_parse(first_seg, - (uint64_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) - + DPAA2_FD_PTA_SIZE); + (void *)((size_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) + + DPAA2_FD_PTA_SIZE)); rte_mbuf_refcnt_set(first_seg, 1); cur_seg = first_seg; while (!DPAA2_SG_IS_FINAL(sge)) { sge = &sgt[i++]; - sg_addr = (uint64_t)DPAA2_IOVA_TO_VADDR( + sg_addr = (size_t)DPAA2_IOVA_TO_VADDR( DPAA2_GET_FLE_ADDR(sge)); next_seg = DPAA2_INLINE_MBUF_FROM_BUF(sg_addr, rte_dpaa2_bpid_info[DPAA2_GET_FLE_BPID(sge)].meta_data_size); @@ -299,12 +295,12 @@ eth_fd_to_mbuf(const struct qbman_fd *fd) dpaa2_dev_rx_parse_frc(mbuf, DPAA2_GET_FD_FRC_PARSE_SUM(fd)); else mbuf->packet_type = dpaa2_dev_rx_parse(mbuf, - (uint64_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) - + DPAA2_FD_PTA_SIZE); + (void *)((size_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) + + DPAA2_FD_PTA_SIZE)); PMD_RX_LOG(DEBUG, "to mbuf - mbuf =%p, mbuf->buf_addr =%p, off = %d," - "fd_off=%d fd =%lx, meta = %d bpid =%d, len=%d\n", - mbuf, mbuf->buf_addr, mbuf->data_off, + "fd_off=%d fd =%" PRIx64 ", meta = %d bpid =%d, len=%d\n", + (void *)mbuf, (void *)mbuf->buf_addr, mbuf->data_off, DPAA2_GET_FD_OFFSET(fd), DPAA2_GET_FD_ADDR(fd), rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size, DPAA2_GET_FD_BPID(fd), DPAA2_GET_FD_LEN(fd)); @@ -340,7 +336,7 @@ eth_mbuf_to_sg_fd(struct rte_mbuf *mbuf, DPAA2_FD_SET_FORMAT(fd, qbman_fd_sg); /*Set Scatter gather table and Scatter gather entries*/ sgt = (struct qbman_sge *)( - (uint64_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) + (size_t)DPAA2_IOVA_TO_VADDR(DPAA2_GET_FD_ADDR(fd)) + DPAA2_GET_FD_OFFSET(fd)); for (i = 0; i < mbuf->nb_segs; i++) { @@ -402,8 +398,8 @@ eth_mbuf_to_fd(struct rte_mbuf *mbuf, DPAA2_MBUF_TO_CONTIG_FD(mbuf, fd, bpid); PMD_TX_LOG(DEBUG, "mbuf =%p, mbuf->buf_addr =%p, off = %d," - "fd_off=%d fd =%lx, meta = %d bpid =%d, len=%d\n", - mbuf, mbuf->buf_addr, mbuf->data_off, + "fd_off=%d fd =%" PRIx64 ", meta = %d bpid =%d, len=%d\n", + (void *)mbuf, mbuf->buf_addr, mbuf->data_off, DPAA2_GET_FD_OFFSET(fd), DPAA2_GET_FD_ADDR(fd), rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size, DPAA2_GET_FD_BPID(fd), DPAA2_GET_FD_LEN(fd)); @@ -458,11 +454,12 @@ eth_copy_mbuf_to_fd(struct rte_mbuf *mbuf, PMD_TX_LOG(DEBUG, " mbuf %p BMAN buf addr %p", (void *)mbuf, mbuf->buf_addr); - PMD_TX_LOG(DEBUG, " fdaddr =%lx bpid =%d meta =%d off =%d, len =%d", - DPAA2_GET_FD_ADDR(fd), - DPAA2_GET_FD_BPID(fd), - rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size, + PMD_TX_LOG(DEBUG, + "fd_off=%d fd =%" PRIx64 ", meta = %d bpid =%d, len=%d\n", DPAA2_GET_FD_OFFSET(fd), + DPAA2_GET_FD_ADDR(fd), + rte_dpaa2_bpid_info[DPAA2_GET_FD_BPID(fd)].meta_data_size, + DPAA2_GET_FD_BPID(fd), DPAA2_GET_FD_LEN(fd)); return 0; @@ -523,8 +520,8 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) } dq_storage = q_storage->active_dqs; - rte_prefetch0((void *)((uint64_t)(dq_storage))); - rte_prefetch0((void *)((uint64_t)(dq_storage + 1))); + rte_prefetch0((void *)(size_t)(dq_storage)); + rte_prefetch0((void *)(size_t)(dq_storage + 1)); /* Prepare next pull descriptor. This will give space for the * prefething done on DQRR entries @@ -554,7 +551,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) */ while (!qbman_check_new_result(dq_storage)) ; - rte_prefetch0((void *)((uint64_t)(dq_storage + 2))); + rte_prefetch0((void *)((size_t)(dq_storage + 2))); /* Check whether Last Pull command is Expired and * setting Condition for Loop termination */ @@ -569,7 +566,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) next_fd = qbman_result_DQ_fd(dq_storage + 1); /* Prefetch Annotation address for the parse results */ - rte_prefetch0((void *)(DPAA2_GET_FD_ADDR(next_fd) + rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(next_fd) + DPAA2_FD_PTA_SIZE + 16)); if (unlikely(DPAA2_FD_GET_FORMAT(fd) == qbman_fd_sg)) @@ -616,7 +613,7 @@ dpaa2_dev_process_parallel_event(struct qbman_swp *swp, struct dpaa2_queue *rxq, struct rte_event *ev) { - rte_prefetch0((void *)(DPAA2_GET_FD_ADDR(fd) + + rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd) + DPAA2_FD_PTA_SIZE + 16)); ev->flow_id = rxq->ev.flow_id; @@ -641,7 +638,7 @@ dpaa2_dev_process_atomic_event(struct qbman_swp *swp __attribute__((unused)), { uint8_t dqrr_index; - rte_prefetch0((void *)(DPAA2_GET_FD_ADDR(fd) + + rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(fd) + DPAA2_FD_PTA_SIZE + 16)); ev->flow_id = rxq->ev.flow_id; @@ -726,7 +723,7 @@ dpaa2_dev_tx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) fd_arr[loop].simple.frc = 0; DPAA2_RESET_FD_CTRL((&fd_arr[loop])); - DPAA2_SET_FD_FLC((&fd_arr[loop]), NULL); + DPAA2_SET_FD_FLC((&fd_arr[loop]), (size_t)NULL); if (likely(RTE_MBUF_DIRECT(*bufs))) { mp = (*bufs)->pool; /* Check the basic scenario and set From patchwork Wed Mar 14 07:56:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131562 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp548524ljb; Wed, 14 Mar 2018 00:59:13 -0700 (PDT) X-Google-Smtp-Source: AG47ELv+M359UwgIphofEMYl7+eoU00dZdd+HCq/GZz0cFiYkZO8t7g4ySJEY2F0smLSpZ6E9Mbt X-Received: by 10.223.133.209 with SMTP id 17mr2956259wru.143.1521014353431; Wed, 14 Mar 2018 00:59:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014353; cv=none; d=google.com; s=arc-20160816; b=ihPjXcjICe5sWPHD7H/CZENamlm+OzNyBwsR0iUdjn3DZtZoVAGaTFyHdSPSS1JP2f 0WGG0YwhiNoewO5WyxaXcWauwtYRGIoGg7OlbDx1Z5xoFnGG/aGaMD2YzwEftihIikt4 iyO/JSzPlI+foOlSY3i34qRU7RkgeS+IAFVDYBzhrYPXDlnkrXRNVNcahh18G38aTmlZ x/0MU1V/iwYUc8kah7xZu+DdP4aY7PuSuGVjlX2f9/GUtWzRgS3BoXi55cFPvFbEU3L9 kF85WSKlbmXOQhkgPLdnTaTg1+Qk23qYo2IxeF7pJ22H2GHa5j4Et8saQWiWjSM5daGL eliA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=To8CPbx0zPrhJRiP/hS3GfrkUqDoIpo6VimzlVgrTkU=; b=uz2D4IPNDg8paoH8GvLmGB7qSdaTPFcpfa04mkQsfngqBXXykmtiHg6mj7HKNICNeK Rwpv9hnT7Eg7qccMhayPXCNJnZw2UVVeSaB2kBv4CItwxf1u84UIT9tiJ5En1SszsQ4F 1NBOCAojS/ZxeNabnDHaL8NeAP+QyxOsFVL6Q67Bl9L5eKp+kIUJAxQtHFQLX6tUrlGV QCqKqA3KfP+IQ41L+u1u5qQNGtA7SYYYUBxjQwUBlNTC1RZRJ+Aly0MqtaNdYlzk0zRi EOS0oBRrZSW8WE4r6eTvtWG9GVD3hOUBVd30HmW8WQeEQ+pz+0w+B2gOtx5DOF8f8yOe o5nQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=yNMU8jzS; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id s144si488484wme.258.2018.03.14.00.59.13; Wed, 14 Mar 2018 00:59:13 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=yNMU8jzS; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id A79CBA49B; Wed, 14 Mar 2018 08:58:10 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40048.outbound.protection.outlook.com [40.107.4.48]) by dpdk.org (Postfix) with ESMTP id 6C6E15F1F for ; Wed, 14 Mar 2018 08:58:06 +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=To8CPbx0zPrhJRiP/hS3GfrkUqDoIpo6VimzlVgrTkU=; b=yNMU8jzSAvYzbbIuTfp3mo3iJsfD+5zPDTDJIBEuRiVRYRf82YLjcxe/Y4/ZYarq6xXiyY+szEzIkdRF8CJ7VjQGtrs9NhXaYGPtWo6ZJAQLSs78S7VVyZr7DxUmRDTfBg8KUZQBwTuwPbkXGSvMGuiijwq9afJ04Qejz3eivdw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:04 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net Date: Wed, 14 Mar 2018 13:26:01 +0530 Message-Id: <1521014166-3201-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 68743594-b1bd-4320-4122-08d589815171 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:EHW/3XmlRHUUAKvZQf5F0uAQ5w9mE4esVSprvYiyujrLsOkH2+i3+Q/qwGHmVgCi93mwWfE3UvQvWJuFRToM78wmvI909p1AP5yL2t2Ynpw31JpPhjBZcgVD3z2ddLkcLt3K002SyUFlQapvFQww05gc3YqgZQkyd/9z5E45sdbxZ5YI45sWX4VNMVmLDT9cZZizM7dnX9IN3lyI5AshdaA/zPloP74tGEkg5OcEc5kl6I90I/bExCVK+WJKYMNx; 25:uzEK+m4YPAXbJtqdQcJrHLQakjqAKJezr5XMmcXQ+Pixx0tEs2iZyyJxxaVRV9mvMX4s06plxjEhuTvInHMXKI+ULz3LzsRwjzaIGZYega7I9QrKRnUc3P2vJkV7Pxu8Fd9gbvbJMfPV7ex8NO+v7Stwd6QHkhBNWaXslXs9QKOuVEatRA4T+EB9MqqGwJVUMHBZS4qRaW3HM/4L1nUoOUCWGO1IGBIFs1iChHi3v4n4ILz9s4ugFcPuQLT2VK6fGr/U8JzbmtI9OR7a3mX5fnUfoANFRnJ8VbdKgvM1K4vgX/eTyO0lnGTrTZWraMeDzpvqwpBgLcDeuigmFnasvA==; 31:zVe8Zq4uSx+ICad2JinukYOJQdD+L6xoRIxvA+voxWHpk1zNS7ni852oIL2IlMsD6OQCRFYE0/rOJCgqUnSYBlYtG1brJUyhBWN/6HwMzbU4LaQkjbGCd6jZTCAFLTt/32RPcmxxO0KT8hvq6OGgmRS9cMvim+Sx6ck9thKDuGchxiXeGCn+Bb0PEepDdA6NHWCt/MlqqnP4wQRW5fkfE/Q2pAasBaIroa6PIe5B9UA= X-MS-TrafficTypeDiagnostic: AM2PR04MB0754: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 20:D1tMi6nQb5cC40YeAhijTxg5Fre46QTB+WMGJ+cu++fnOzsPS3I2btT5zrl3i3deYXlJZrknoCxcGxxmpKbqPOS9pP93zybEUVid4w+ALw+fSUThfwTIEM312LvDJc7tlz7lNJJB/MXR+7nxohWL2mzJ0pasXf3dw74eaAZhkfP21SC2AdpB1tnCGhKkoXlyytpPf/0yHFAt1gscQp9b5V53ZOpB75RxnuKqR3GZoyVmWe9z+p2Gopf3wowINfK42FXy30+GCUBNclABBKmut2rYaW6uqcWRtx6+KEAlHVRgK7KG97JCke0Lds4Pt65bmZV+ityscQYa6fuDPxt47dWGMrywWFrWtDDULhj1P2h6REb9g3aGpK6613xhJ0gEYr657ZLPTrRFbqOXg4gdzRJA1LJXpNzT6qnylSeeEjLwqxKnIuQNq4RVcHHVvrVkDLy1DcxPtGxREAkrE33IwuLbK+tlGhLA5GmgUFpSKc+5cPMSBf61Y8bKmd5GaGph; 4:pkjKFQ2zsfIgOuLxU9hGwGRIIlXGyUJySxX3AtoSWHCpbVRdmKiRCbke7B5cbq+L2zByo1RHK+qfmlsL2rNzTy0w/Wy91c58/vwjzr/w5kN173dLUpykU6KXEr83FSQUVXCT2DM7RD2oV6TqcLybyeDJqbHnOQMX4UK8YL5JHfV8Y0A1c9IN1nnlI54puh4qMMTKOv87TWLGaH9lo9xd7Ee/HpzZFuYCGk5zn71Oz5ibo4CRk/MyoFx+RFFaRXhiMbH4bubnrc08JqIMHrTjJr8tvU+t4Ssvqu7wygPDybzqghcBTHNS8vFYTjBnrh0Y X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(6666003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004)(473944003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:WdgBBaqzinY8vuwADkM+tpUh/4qsY4ccNSa+4pKJK?= L9wHrIzW+cTeJWX01Lhccjl+Zwlij3tpSbbYi2VvYJAXHTIPa9b1g97HohYCS9M7xO7jiJQiJWa1p58GU3df4RlZx/wMNU7PuOp99cNSbYTNv1ebMdv7ZbYI+SYaIH5Zxs4dTdNH10oEDtSXNivXPK0pLXj5Hq+6xHKrd2mI+gdluGUJMAdlvc+M9Eco8sTydHsIVMDNg9YFQhztNihr7WW5aQTcnoGOpj2lDcNYAlAZ3rq6kOkDqGtJ78ECgwige69pNnObyTfVpz3Duero6F7bjYwvaihU4o98pJ2+8TvJQV38LYL8LC8zMGkMk0Ol03cNV0sBkBu6MQqK0qvE9js268/GvJJ6MelILgz6l/XECWBY3QLn7waUWsPg5vdQWbbHi9w6tbWnIuR6ZvyIfPsQcsiGCBuRWvFlvgFUVrMYMZmblIix+gaselFjrfG5sN1Ll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ytS2aWESHHyUuywTH3YZDmi4IAOKhXcsAFcODHegMrdQeI+ars9SJLn4futSorzLvg03Ehb6F6gcjRZG2AchS8Vp4pkzy7GnBKqOLK8BeuygTRT6UtuTI0SDNOc6e557fM5yKzz6jQ5p93yqCxXY8X44UIyIAziffKfVmJdWPGQrr7awQVL+aUbu59CPgl6v3oy0akRllyWELJ1fXXWlHPn+LefYCioNYHI8ui9PPnLSVs42dgVjg8dPDXgxkrAA5jrLmeIBIeWk/nTmYY24GH5NXxQKCyIo35tF9XOs893gYqou1VaE/GUIyULKB4EVSlb2l74kB8=; 5:XOZ7r8w4Jspol0B1AtNXz5y5hr7YsAENhmjTJEIa2wB9GJFYnA8Od2tU8W8D4PQbSZ2gBwBhkrJQrLOqH+wAxDiVHTFDLsx/+a99r6jj4Fg4/luFC8kz3JwswA56NZutTC/O45qGplmvHx3+4NbJEb0gUosM4DLNsHANrMaJygw=; 24:MdFxUf+Lxle33M3K2go62VOgRjR8gnP6XINXZU1q23db+oERO6wgkgCcAOYYw+kljSUKvKf7n691wo53EhAgXsJ8n7r9SecRSu/hIT87wjQ=; 7:dYY9ykNQtL3JIeB7ovh6GLAJdIIHmZj7l6RZOkcWJ6nvqj7DoxK1pU6EznGtkQeEXv55oa/7soMq9gdnqBFyTi81nOholocwfeTtC+EdLWy1MdElM3T6Yxta5W4gMxd58kiSlmMJyZhAQkB4AeL+UEAWFlyQcFkBtHWxPdAQdp5tqRfFebe+c22LO6vPRGtRuirp+NcJJdfo+3OEOq+HaVXKsmRqp7fwNFfPO+gVs8tinz8iTEjoVy1Q9n0xrXZu SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:04.5455 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 68743594-b1bd-4320-4122-08d589815171 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 05/10] bus/fslmc: add 32 bit functional support for ARM 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This patch adds the functional logic to make the dpaa2 drivers work on 32bit machine. Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_sys.h | 30 ++++++++++++++++++++++++++++-- drivers/bus/fslmc/qbman/qbman_sys_decl.h | 9 +++++++++ 2 files changed, 37 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/qbman/qbman_sys.h b/drivers/bus/fslmc/qbman/qbman_sys.h index 846788e..2bd33ea 100644 --- a/drivers/bus/fslmc/qbman/qbman_sys.h +++ b/drivers/bus/fslmc/qbman/qbman_sys.h @@ -20,6 +20,9 @@ #include "qbman_sys_decl.h" +#define CENA_WRITE_ENABLE 0 +#define CINH_WRITE_ENABLE 1 + /* Debugging assists */ static inline void __hexdump(unsigned long start, unsigned long end, unsigned long p, size_t sz, const unsigned char *c) @@ -178,7 +181,11 @@ static inline void *qbman_cena_write_start_wo_shadow(struct qbman_swp_sys *s, s->addr_cena, s->idx, offset); #endif QBMAN_BUG_ON(offset & 63); +#ifdef RTE_ARCH_64 return (s->addr_cena + offset); +#else + return (s->addr_cinh + offset); +#endif } static inline void qbman_cena_write_complete(struct qbman_swp_sys *s, @@ -191,11 +198,19 @@ static inline void qbman_cena_write_complete(struct qbman_swp_sys *s, s->addr_cena, s->idx, offset, shadow); hexdump(cmd, 64); #endif +#ifdef RTE_ARCH_64 for (loop = 15; loop >= 1; loop--) __raw_writel(shadow[loop], s->addr_cena + offset + loop * 4); lwsync(); __raw_writel(shadow[0], s->addr_cena + offset); +#else + for (loop = 15; loop >= 1; loop--) + __raw_writel(shadow[loop], s->addr_cinh + + offset + loop * 4); + lwsync(); + __raw_writel(shadow[0], s->addr_cinh + offset); +#endif dcbf(s->addr_cena + offset); } @@ -224,9 +239,15 @@ static inline void *qbman_cena_read(struct qbman_swp_sys *s, uint32_t offset) s->addr_cena, s->idx, offset, shadow); #endif +#ifdef RTE_ARCH_64 for (loop = 0; loop < 16; loop++) shadow[loop] = __raw_readl(s->addr_cena + offset + loop * 4); +#else + for (loop = 0; loop < 16; loop++) + shadow[loop] = __raw_readl(s->addr_cinh + offset + + loop * 4); +#endif #ifdef QBMAN_CENA_TRACE hexdump(shadow, 64); #endif @@ -313,6 +334,11 @@ static inline int qbman_swp_sys_init(struct qbman_swp_sys *s, uint8_t dqrr_size) { uint32_t reg; +#ifdef RTE_ARCH_64 + uint8_t wn = CENA_WRITE_ENABLE; +#else + uint8_t wn = CINH_WRITE_ENABLE; +#endif s->addr_cena = d->cena_bar; s->addr_cinh = d->cinh_bar; @@ -333,10 +359,10 @@ static inline int qbman_swp_sys_init(struct qbman_swp_sys *s, QBMAN_BUG_ON(reg); #endif if (s->eqcr_mode == qman_eqcr_vb_array) - reg = qbman_set_swp_cfg(dqrr_size, 0, 0, 3, 2, 3, 1, 1, 1, 1, + reg = qbman_set_swp_cfg(dqrr_size, wn, 0, 3, 2, 3, 1, 1, 1, 1, 1, 1); else - reg = qbman_set_swp_cfg(dqrr_size, 0, 1, 3, 2, 2, 1, 1, 1, 1, + reg = qbman_set_swp_cfg(dqrr_size, wn, 1, 3, 2, 2, 1, 1, 1, 1, 1, 1); qbman_cinh_write(s, QBMAN_CINH_SWP_CFG, reg); reg = qbman_cinh_read(s, QBMAN_CINH_SWP_CFG); diff --git a/drivers/bus/fslmc/qbman/qbman_sys_decl.h b/drivers/bus/fslmc/qbman/qbman_sys_decl.h index f82bb18..5640b04 100644 --- a/drivers/bus/fslmc/qbman/qbman_sys_decl.h +++ b/drivers/bus/fslmc/qbman/qbman_sys_decl.h @@ -15,6 +15,7 @@ /****************/ /* arch assists */ /****************/ +#if defined(RTE_ARCH_ARM64) #define dcbz(p) { asm volatile("dc zva, %0" : : "r" (p) : "memory"); } #define lwsync() { asm volatile("dmb st" : : : "memory"); } #define dcbf(p) { asm volatile("dc cvac, %0" : : "r"(p) : "memory"); } @@ -28,3 +29,11 @@ static inline void prefetch_for_store(void *p) { asm volatile("prfm pstl1keep, [%0, #0]" : : "r" (p)); } +#elif defined(RTE_ARCH_ARM) +#define dcbz(p) memset(p, 0, 64) +#define lwsync() { asm volatile("dmb st" : : : "memory"); } +#define dcbf(p) RTE_SET_USED(p) +#define dccivac(p) RTE_SET_USED(p) +#define prefetch_for_load(p) { asm volatile ("pld [%0]" : : "r" (p)); } +#define prefetch_for_store(p) { asm volatile ("pld [%0]" : : "r" (p)); } +#endif From patchwork Wed Mar 14 07:56:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131563 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp548711ljb; Wed, 14 Mar 2018 00:59:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELv2KF3Q6bdSqubRjG9Pkq9QZNksU4ZJ+4R2v5pD02GBvXO1HeQYfL/NXoRFuaXMvsPHa/nJ X-Received: by 10.28.153.75 with SMTP id b72mr843137wme.127.1521014370289; Wed, 14 Mar 2018 00:59:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014370; cv=none; d=google.com; s=arc-20160816; b=jD4s5v1xGrOkzsaAPYfaRZ6bNJ+LMqsPjT5negkAXPbkquERcg25nCCcmW7qHzv2P4 XlCxvL5sOXnMoGbs1o+L8i7HMuaNT27nVbOnBgdBem7YFHwiQeTULXgUN9naIQ81gaUA pGhtvOR0vMR2rbUCsh0qgfIEbVKe2XHebt0ab3Ixbgtrj0yYoLgmPtVe7xlD+5NLs4YI jTin3V160MZNLyubOB029fVf911lKIYnteYbmRsWOTgkz1obPGzr9ci8BPz6QpVh1kK7 0PG07KBZiujtUNinboEgRZScvkUa0aRVTnV5+2vl08W+YQm/xMjhKKjVdtEoSUuVwoIx 6L0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=D5ZayIA0Luz9imyBsjRBDBVd6ar0B8p+oHMOVrgQX24=; b=ronMGxfm2CSQfExXNZtXGwBiywtA0Le28MbJXsO1kmXd0B/MYz7lL4Qdzlk4GiGIYr TZ8d8EXyL6yLTQGg4jIvGTAvVIRa4riR24DJxU38cEqX31Hz2YuyZfBxubMG46oE1O8o dKAG/aEun9JjRMpGUFrw2ro6pqogdw0x/5xrP8V3P73S6eZUgpaZq8/0TgNmhZsRBaqd n0hhFZG6i03CRwojRQbvBLkYg37zWHQmtdImuMMPCk0l7iosuBMTqJcwXZ5Frd2r7Cyi 733g2A7cLEa+YnUg4QKmk4eeuNtRaqlgmgr4M2EgsGE89qokvvxitxCH+jUCa3WvXESn 4eDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=b/tQVbkt; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id e193si483910wmd.82.2018.03.14.00.59.30; Wed, 14 Mar 2018 00:59:30 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=b/tQVbkt; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B33867272; Wed, 14 Mar 2018 08:58:17 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40061.outbound.protection.outlook.com [40.107.4.61]) by dpdk.org (Postfix) with ESMTP id 708CC5F1F for ; Wed, 14 Mar 2018 08:58:07 +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=D5ZayIA0Luz9imyBsjRBDBVd6ar0B8p+oHMOVrgQX24=; b=b/tQVbkt1+6btyBrRfNsqvlIYvlcbPM42YjKPY3CUNWASWhj+lHPd8DaXgKxVsPQTmhv7aahB64baKEvSx/1B9EfsXdPP+Mv/bgAEVY/E9Ffd/He2sXiBesrlTgUX8byrmzmPg8n20wgecsS/6wOhK3M1f+GpVQGSHDnH2/Vqv4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:05 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net Date: Wed, 14 Mar 2018 13:26:02 +0530 Message-Id: <1521014166-3201-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: afbfdce0-9361-4343-8bf5-08d58981521a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:1bR0Cd9X/v0oxzuZCfPTsxdVZe83/iAQToi1g25uH9iedmz4xvwGJJ6lXsjJouiooU2xYMd4/uBfNJ+0IOYm0PLYbLs5FBtwg0NOLnoWjSqHeuooknyatqQ3tXg1xOt909iZPrw1ESD2OuJ2hxW9nwQWYNmihxa3lWgVWsxZKpC1fHf/Lllc7AK5uYBRO2+VmW43d2P30hbm8RSYI9kJ+wgZr9NIvwDHkGShuaXMrS7hzfpBESzEjnlGPVvaIXAP; 25:/TIAGN6AcS0TLiueECVgqrN7nKYB8ScQYFOcja/YaRHssQK+jwgkg5Uj2qakkWNVogwsjQ3EBDpEZB9wn02yUh5te7JiwCqKWZXoVZThX4dbL2Zi5shrSnr1klimrVpnWKQn0yhF531uZ+kJziljiD5ZGo/sSdbZcwOo+ezaWSkCm9ETGxcddKVqTe+p+B5/42XxiZi0ONsqQu2afu2nZKp/hhjCdfO9wIuqLrAvXF1A+evdNeifbG0xnMGiHc3Ok916XPf2jJRkgoRiHauCeW5RetdUXZY1J9yYFyqromecAGBMmyyXtsXfToDkdXo1x5GsAKNRZcuklOwX4Vb71g==; 31:6ktoTLWC2fraQnXOkOti4E78YjuKaLw8D8EQNo3eK1p/VxojK6lZEAhrz9+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0dB9XxNQXIy X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(6666003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004)(473944003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:GKxSCvi8SYxpoKjyuBq7b8jx2H3LZK4AZRKiEmOI/?= gRfnklu+Vzhs9jnXXYnrdtCQCV1hesouRJHL2bLf77T+4sX53xI/czfPL8qFxNNpXvHSM8zBxsSqWnnGvOH/eNXez87Q3gq0Vn8J+YuTMmoDpEtiqra6unaK4uKf8INSx1w+OdPsyanmpQ6rsEmNurN4UjYn+ZvqYChxQEJSG9qvNXgSdlysdAAMAOTy9HltfOx2WYG63LEt/AQ7vQZbXQ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.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:05.6550 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: afbfdce0-9361-4343-8bf5-08d58981521a X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 06/10] bus/dpaa: enabling dpaa compilation for other platforms 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/include/compat.h | 30 ++++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/include/compat.h b/drivers/bus/dpaa/include/compat.h index 53707bb..e4b5702 100644 --- a/drivers/bus/dpaa/include/compat.h +++ b/drivers/bus/dpaa/include/compat.h @@ -39,6 +39,7 @@ #include #include #include +#include /* The following definitions are primarily to allow the single-source driver * interfaces to be included by arbitrary program code. Ie. for interfaces that @@ -127,13 +128,15 @@ static inline void out_be32(volatile void *__p, u32 val) *p = rte_cpu_to_be_32(val); } +#define hwsync() rte_rmb() +#define lwsync() rte_wmb() + #define dcbt_ro(p) __builtin_prefetch(p, 0) #define dcbt_rw(p) __builtin_prefetch(p, 1) +#if defined(RTE_ARCH_ARM64) #define dcbz(p) { asm volatile("dc zva, %0" : : "r" (p) : "memory"); } #define dcbz_64(p) dcbz(p) -#define hwsync() rte_rmb() -#define lwsync() rte_wmb() #define dcbf(p) { asm volatile("dc cvac, %0" : : "r"(p) : "memory"); } #define dcbf_64(p) dcbf(p) #define dccivac(p) { asm volatile("dc civac, %0" : : "r"(p) : "memory"); } @@ -144,9 +147,27 @@ static inline void out_be32(volatile void *__p, u32 val) asm volatile("prfm pldl1keep, [%0, #64]" : : "r" (p)); \ } while (0) +#elif defined(RTE_ARCH_ARM) +#define dcbz(p) memset((p), 0, 32) +#define dcbz_64(p) memset((p), 0, 64) +#define dcbf(p) RTE_SET_USED(p) +#define dcbf_64(p) dcbf(p) +#define dccivac(p) RTE_SET_USED(p) +#define dcbit_ro(p) RTE_SET_USED(p) + +#else +#define dcbz(p) RTE_SET_USED(p) +#define dcbz_64(p) dcbz(p) +#define dcbf(p) RTE_SET_USED(p) +#define dcbf_64(p) dcbf(p) +#define dccivac(p) RTE_SET_USED(p) +#define dcbit_ro(p) RTE_SET_USED(p) +#endif + #define barrier() { asm volatile ("" : : : "memory"); } #define cpu_relax barrier +#if defined(RTE_ARCH_ARM64) static inline uint64_t mfatb(void) { uint64_t ret, ret_new, timeout = 200; @@ -160,6 +181,11 @@ static inline uint64_t mfatb(void) DPAA_BUG_ON(!timeout && (ret != ret_new)); return ret * 64; } +#else + +#define mfatb rte_rdtsc + +#endif /* Spin for a few cycles without bothering the bus */ static inline void cpu_spin(int cycles) From patchwork Wed Mar 14 07:56:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131564 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp548846ljb; Wed, 14 Mar 2018 00:59:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELsvYqydC6O0rUFUw32pNafMnUloXvGvGFd/wQuX23MtrMphlKQjckNoKIyDQxp2T76nHgpR X-Received: by 10.223.130.194 with SMTP id 60mr3017359wrc.209.1521014381512; Wed, 14 Mar 2018 00:59:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014381; cv=none; d=google.com; s=arc-20160816; b=pnm0bs0Avw1AIT6mDkcHeZixwn5YaApt77df66c0jY6w0pTi4yQHnBF9dn9U/FkYnh nI9I4LdgOD12z2YK6qbrzr2OXoWoclyO7zyuIdq7jmR7zp8xHoLsHq8mPZu/sjEF3CoZ +oVaKpgUIj14OJcOJk+KHCoQ1JGyvx+ObAhJGtv1hp3iV7ZsJtXdmPNcWAdOj49GOCIX 7bDjE8tDA83bPUVgE9IunpCyLlYGd3cZSfrZ43TjRCdbvhtKAgZ3tpjmV/cuBSNSi+pc 2LtL31oK5XOSFZSKrLzsN68x1Rza6JdAi3oTPCqlTXfT1sB53hgj8q4UE/QcQrPkH71R lYnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=MjmjqcIGob+uoQE6xVPSpAX0+Fx7g6gjkoE6LLToVQI=; b=joR5LEe+4wX+hiq+ngbG0KPg03HOlPpkwK1zgA4JGPPjH8W3/4pNylqjzC68MHEUaG xQF3hfGQuGyY49DMsCHmOyiqM9wDbVhHEjA3B4eNfWvu4pdY3zSSBJBWU/hgsQWcJ+9a T17veM2IsL5IwOP95jAF1qjoa27DbKElGrSH4yU85PQbsWLo3TnkYWJIufwrhy+F+pAt qsYfQhcTlssVdx/lImPrB3IY2qJevIXVKTQJ/wlOD/64+M207t6UTSrcY4foM7zr40wi yD5kF3OLslI3UMtUMuCauJRTPUc65BTHWqujDrJwnMuKawFDpHWaL7gLSHao5LSHJ2Em OdAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=oYvb4cJk; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id z39si1464291wrc.456.2018.03.14.00.59.41; Wed, 14 Mar 2018 00:59:41 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=oYvb4cJk; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3AFACAAB3; Wed, 14 Mar 2018 08:58:18 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40084.outbound.protection.outlook.com [40.107.4.84]) by dpdk.org (Postfix) with ESMTP id C05E37CFA for ; Wed, 14 Mar 2018 08:58:08 +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=MjmjqcIGob+uoQE6xVPSpAX0+Fx7g6gjkoE6LLToVQI=; b=oYvb4cJknvAsk12yFfP2ZFoUf9Wog6+6MOaBAT7sYW4MpRdqKgHD5BEf8aM7x1jqL2yRAINcRJkcS2vnhx+txgHMxuymJfkuy2rVB0bvrDNnqU78ZngNIOCjCZAZ4tFmosRJgPvEFPMvUftoz8+QJAwS1zxKCz7IyCSYFI15sQk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:06 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net Date: Wed, 14 Mar 2018 13:26:03 +0530 Message-Id: <1521014166-3201-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8aa121d9-6fc6-40d7-7458-08d5898152c1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:UUcmQJbHrdMIeVFnDKihpFszeGgtJJ/HDQsqXzbKnFPkIg2nFXt7aof2zUpWgmhPGw6oGlQIkFqZfH2BOyy25zfi7/inOFva8j+lK/jhhswzTOAvElXrNFCxRKdZn6SeZiDj1OsaIcGSMOXTL+x0K23zgvo2VgLg5cOwb5mYyTu1F77PsCfwb6gGDrLxAW/CBcF0pj2G1QXYNNExV9RKwwxCvkogNcBXRL6+jJ3/8yMnr3cOOPzJVQiIx9M5wW0G; 25:wUYRqfPlxkORb/sn2O+P9U/Wk0AdlNpaMSXkLxKpOO/e+IpZBZ5WMHUjB8eh3ToiZfCGSjAnhvS3HViP85RgZ8crH7B3Hso10HSdhQwCbiFX3H59j2/24p+m79CUAyTTNprQwUfAaIXKSlJIM512yrGBUoeKRrXBrFQSKAPRahoJp7ptAMJL5jt+kZn+4oopjDxa/Gf37wbDARSHS+PkFiqMUS0pbK43Q4PbixgN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K6ZmQl+HwynuGVHBNhNzekBq9vKMDmP90WBWZ4LQnxYX9xqkTCvTlHXIKENt8p+I3jE1ea9rIcuLqXJq0dySjabUiuYKuB7N/bpMZw3fxFmxzx4L9f3O13DYy+nuxHk1x+/M0hhp4RZhcUdKdDdK0DLhBr3NlG9m6RaMf2lRlS/fthJ6O6a5f X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(6666003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:X/qIZwrjXZCxMYHu9yA3aq9bRoGimQSYmqBneHm+I?= y2TYVupjeVkX3VsbzhXDHI9mRrseMg3QdZMyM65afT6ljNTJBS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EVPY3riXQsSmMB589CF8bIUKPi5H+6nccrHaFh/kKDPRyEY+X+zHKyllAbHiXmwir/QDbO3xecRg4oUx/c9s0Fx SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:06.7488 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8aa121d9-6fc6-40d7-7458-08d5898152c1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 07/10] bus/fslmc: enabling dpaa2 compilation for other platforms 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_sys_decl.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.7.4 diff --git a/drivers/bus/fslmc/qbman/qbman_sys_decl.h b/drivers/bus/fslmc/qbman/qbman_sys_decl.h index 5640b04..fa6977f 100644 --- a/drivers/bus/fslmc/qbman/qbman_sys_decl.h +++ b/drivers/bus/fslmc/qbman/qbman_sys_decl.h @@ -36,4 +36,18 @@ static inline void prefetch_for_store(void *p) #define dccivac(p) RTE_SET_USED(p) #define prefetch_for_load(p) { asm volatile ("pld [%0]" : : "r" (p)); } #define prefetch_for_store(p) { asm volatile ("pld [%0]" : : "r" (p)); } + +#else +#define dcbz(p) RTE_SET_USED(p) +#define lwsync() +#define dcbf(p) RTE_SET_USED(p) +#define dccivac(p) RTE_SET_USED(p) +static inline void prefetch_for_load(void *p) +{ + RTE_SET_USED(p); +} +static inline void prefetch_for_store(void *p) +{ + RTE_SET_USED(p); +} #endif From patchwork Wed Mar 14 07:56:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131565 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp549022ljb; Wed, 14 Mar 2018 00:59:55 -0700 (PDT) X-Google-Smtp-Source: AG47ELtrU7falH/Mmhl/rCmuurdABngkCQfeAFP1G6WtSRKMe7OxAozixLgSIDE/8nLtg+juDmW7 X-Received: by 10.28.230.147 with SMTP id e19mr872744wmi.2.1521014395697; Wed, 14 Mar 2018 00:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014395; cv=none; d=google.com; s=arc-20160816; b=ktMqN1v/gUBNctoYY/DX4Toy64pGUJi6IDleoD588qF6AJDbvEgSRXo1wbAboiYfwm pfKl7N0S/sdT9xxJwjVNwPI3uIOToh193lDUlu/a3yPPQJ+s2c0RaooFjNKzy/4lESFG Sb6zDw117M10KTQwXbLR+geon8q0I52igDFZ2ppipVywQ9lfMODITwFrz/ywY4uyLw7p TfQWq81XiCcgOSWDdoZwXoHZTiwVw8N1rqfffKfFiO1Siu7seZvw3ng7u5lDi1bo5ltB zb1fyw+tX7WVK5o3YKvD16kzBx7ho1KSy2QRcVBzS+5p4RxSasEVJeFMRwEJxnzPgA2F 1L+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=oRjHCsXy9bilb5GVQ8enEktL2PMApQny0HYoVQ1uwus=; b=UkdpeptAfO4O1gnY6YVu86q7f0EFyw9oX60EMx0lBgsxo28dGENRw0iEwAX1yDO7+2 iXhpxnEttBIijrspeM/xk9q/E1WXjnpGuNdcbyMryQqIn4DkfcQOSzBCRR0byDT2c8xc rI+ehGNk86e09cyR/RBr4BzZacaCywKEjIvCmxBuu92XCUFoo3CphCI6NvWqCvOwWZQP RvjIihmxk0PWCVXvphnb8V5dXboN8uZV96oEABWENHRTKG/ibpAgrbPS4jt4xJqVcGpF KmbZ+o7cEHugzwke2vn7xE4nTVBpZvFcRZEJJ02K3I5qf/Vo7PyX6D7VCVrMDv+SnfDe f5XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=BNSSLbBV; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id k189si495796wmd.249.2018.03.14.00.59.55; Wed, 14 Mar 2018 00:59:55 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=BNSSLbBV; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id CC78CAABD; Wed, 14 Mar 2018 08:58:18 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40070.outbound.protection.outlook.com [40.107.4.70]) by dpdk.org (Postfix) with ESMTP id DAB54A49A for ; Wed, 14 Mar 2018 08:58:09 +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=oRjHCsXy9bilb5GVQ8enEktL2PMApQny0HYoVQ1uwus=; b=BNSSLbBVwaKDDdsqwbFCcBNaiX+B/QAFN1QUig9h8VARdP/2sBWd5dU4EwpO8J5mQDk/3NPc/u7eJ4mdvm5ezQg6vcJAwUhtJQFRmLGslJuU8cfsqOUAKVNUsUc7XuqQN060Zyx2aHlaRVqO3PyFQEopGKIQWMtBlimNkP35rKE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:07 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net Date: Wed, 14 Mar 2018 13:26:04 +0530 Message-Id: <1521014166-3201-9-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 1abe06dc-00a0-4056-ab2a-08d589815376 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:VbPhkbWM/U/5ac2HIE9jS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71AZLMMvDpiVRmsSMT3ph0GjiA1JZVlpf5zEM20J7LJERWvdySMdI0J0iiGSqabDfhK7ipZg+ikRtov5gfFvvGvYgI9OFRnjIGmShya9sNZKzHQbHYA0JkDxBux+SIqEPqaPmBTpONa1DbZRFvjN9cQsA380u/HvUjx6v1fKCBtaXScz7F6ap5NRg8AtX41uXd7M+FfB+EIDerBtf1Y/it5y5Ch/VBRE6rKaggvEB+Boge9tuIe+CIe7tKiMkzhqiiJ/zadCzt1vUQxO27PmcMWr2Xj1M1nOSBNFj86kvZG7vSWIcTB40X9R8niyV0n6dggIHNr+dcdvI1MvV; 4:CnG39MxhjFYb+eUdtd9Ay4QJQ9tPBsXuMYzAPk1uGYowMbAMWMCOj4pAzv7H3pgumaC673di7KcPhUKV/pO3TzjfXMYL4RJ2HoBpH5F825uZDue02jrR5oGKmsNrH05ziccxq5P7RdGJQSurq0GbMUTkc1drg5iUlqtyDbhiUrmXxPqGzAES9BOeZ4v9Pctcg6z/j99ZkgfEfkkbw+MXV0YCZQ8hTYmm9gvrdjBEbeXqK0K6V4JqH+3xvI2irSSfK8WSCKSYYXdW4urY01Xi8w0lXXUL95DIiPne/qZhlIv8+ZcMd6dmIMBWxKyMda5J X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(6666003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:PMQbT/aWBtkbOm1oBlsESY3MxHJ6u6hBZFilIiFG6?= bxoHB+7Ived9vmgb31LmwFN0ZBiJZ1sG9/vKCO9bfFVvqFqTPUu5bxpNhByJmlSwpBZmPQ06uqUX7zXnAiW6OhUjG1I1d+DXM0NeJGOKvCgkbDqPjkVGwRWOMMt4whr/efIsA2v6qY1B4dABSviXp6VPooR5rzpLUYhLnKqtOOLMM6Ku1UFbzicsxcPjCahGDkXIEUS1Uuv9fhfKOh1tABJzyRWB3qJkxA1+dX9uPspMXQyPvevdjk9yxxXUr0sgxlsd9ibO51OdrUhAvCbanGBb4zZlsG142Iy4OdIKWxOOSaPmLw680nYtqeslcoAj0HBwobz9R2/4fi5DPTA5xRAytx6JsxHhTtzQqM6xQb5l3c7AJvI0AZfaiX3iBBvpATa3b12ttcnYPWlGNy9YrdALbFJa+8Ty0fE3aqVBJFoWjQMYO6EnisF+4l9o84HLEzFq88o47ZCDWYwAT3Cc5wxlR3xHKPEpN3GGKGjAoO/0RRxmzhwhFrO+aXV04uHAFP7L2oIk4n1hqpuwfEl7HYrD3HLLIdkdd+o/Z+h50x9AH25sZ5XDpjedhKH3hW9OQIOSJ69fRsJoTJpVkps3MfPNu1sZFwD8E8YcpYGT/xqpwFRQb7Fgqb0U6Zv95YaVD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C0oJbNmbxjFkBvGqRIc=; 5:c6/C39XZYf4qGeFH6ehgbDbY09wJxbOxKwVR0xRSCoJrfBeXjWLv8mQb54uTciAQ+oYlBTz0StU8XZ5am0p313/2XllvWU0EcxCVjEnRUcqxE9rws2YE4XL7KO5WmJymA2H9C4XWb8aT/+RWitLYIGS01kVQKIP3RJk5QJ7aTkE=; 24:z1YmJOXRDXoyZeQ4N/bmq5bOIajUSN1Kc8uoGmJKHYLMh6Tx0kQ30LVZppvq82PpygmAi7Bfs1N44cIlCMYYY/Qr1ZLKUJSW0pTlaR94Db4=; 7:NmjkiVuqjGyLJlHDaFVIcXRQg88GiLdKzXHqo4NlIFLvxjhiYqf2+vQH6i8w3iBV33GItSL69PbR6Txowxy3POK9KySRe11xsCgMMmxrRBstP86taQqtNvCgyAP8eSx49iJnEA5psGtd8xtuT3VDmtlf0XUQ8DoT/w65ObP7C9x1gH6e4+L8gDp7JS5Jc+jCcxpiaIWRfeYj5atSJWGJm3MzuJQ4Hg+GFVcbjaxjmGmOKDUUXyG3yKK8TtU/x2fc SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:07.9365 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1abe06dc-00a0-4056-ab2a-08d589815376 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 08/10] config: add dpaaX build support in common linuxapp 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Hemant Agrawal --- config/common_armv8a_linuxapp | 58 ------------------------------------------- config/common_base | 4 +++ config/common_linuxapp | 14 +++++++++++ 3 files changed, 18 insertions(+), 58 deletions(-) -- 2.7.4 diff --git a/config/common_armv8a_linuxapp b/config/common_armv8a_linuxapp index 507b28a..111c005 100644 --- a/config/common_armv8a_linuxapp +++ b/config/common_armv8a_linuxapp @@ -36,61 +36,3 @@ CONFIG_RTE_LIBRTE_SFC_EFX_PMD=n CONFIG_RTE_LIBRTE_AVP_PMD=n CONFIG_RTE_SCHED_VECTOR=n - -# -# ARMv8 Specific driver compilation flags -# - -# -# Compile NXP DPAA Bus -# -CONFIG_RTE_LIBRTE_DPAA_BUS=y -CONFIG_RTE_LIBRTE_DPAA_HWDEBUG=n - -# -# Compile NXP DPAA2 FSL-MC Bus -# -CONFIG_RTE_LIBRTE_FSLMC_BUS=y - -# -# Compile NXP DPAA Mempool -# -CONFIG_RTE_LIBRTE_DPAA_MEMPOOL=y - -# -# Compile NXP DPAA2 Mempool -# -CONFIG_RTE_LIBRTE_DPAA2_MEMPOOL=y - -# -# Compile bust-oriented NXP DPAA PMD -# -CONFIG_RTE_LIBRTE_DPAA_PMD=y - -# -# Compile burst-oriented NXP DPAA2 PMD driver -# -CONFIG_RTE_LIBRTE_DPAA2_PMD=y - -# -# Compile schedule-oriented NXP DPAA Event Dev PMD -# -CONFIG_RTE_LIBRTE_PMD_DPAA_EVENTDEV=y - -# -# Compile schedule-oriented NXP DPAA2 EVENTDEV driver -# -CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV=y - -# -# Compile NXP DPAA caam - crypto driver -# -CONFIG_RTE_LIBRTE_PMD_DPAA_SEC=y -CONFIG_RTE_LIBRTE_DPAA_MAX_CRYPTODEV=4 -CONFIG_RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS=2048 - -# -# Compile NXP DPAA2 crypto sec driver for CAAM HW -# -CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC=y -CONFIG_RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS=2048 diff --git a/config/common_base b/config/common_base index ad03cf4..ee10b44 100644 --- a/config/common_base +++ b/config/common_base @@ -172,6 +172,7 @@ CONFIG_RTE_LIBRTE_CXGBE_TPUT=y CONFIG_RTE_LIBRTE_DPAA_BUS=n CONFIG_RTE_LIBRTE_DPAA_MEMPOOL=n CONFIG_RTE_LIBRTE_DPAA_PMD=n +CONFIG_RTE_LIBRTE_DPAA_HWDEBUG=n # # Compile NXP DPAA2 FSL-MC Bus @@ -458,6 +459,7 @@ CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC=n CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_INIT=n CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_DPAA2_SEC_DEBUG_RX=n +CONFIG_RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS=2048 # # NXP DPAA caam - crypto driver @@ -466,6 +468,8 @@ CONFIG_RTE_LIBRTE_PMD_DPAA_SEC=n CONFIG_RTE_LIBRTE_DPAA_SEC_DEBUG_INIT=n CONFIG_RTE_LIBRTE_DPAA_SEC_DEBUG_DRIVER=n CONFIG_RTE_LIBRTE_DPAA_SEC_DEBUG_RX=n +CONFIG_RTE_LIBRTE_DPAA_MAX_CRYPTODEV=4 +CONFIG_RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS=2048 # # Compile PMD for QuickAssist based devices diff --git a/config/common_linuxapp b/config/common_linuxapp index ff98f23..d0437e5 100644 --- a/config/common_linuxapp +++ b/config/common_linuxapp @@ -23,3 +23,17 @@ CONFIG_RTE_LIBRTE_NFP_PMD=y CONFIG_RTE_LIBRTE_POWER=y CONFIG_RTE_VIRTIO_USER=y CONFIG_RTE_PROC_INFO=y + +# NXP DPAA BUS and drivers +CONFIG_RTE_LIBRTE_DPAA_BUS=y +CONFIG_RTE_LIBRTE_DPAA_MEMPOOL=y +CONFIG_RTE_LIBRTE_DPAA_PMD=y +CONFIG_RTE_LIBRTE_PMD_DPAA_EVENTDEV=y +CONFIG_RTE_LIBRTE_PMD_DPAA_SEC=y + +# NXP FSLMC BUS and DPAA2 drivers +CONFIG_RTE_LIBRTE_FSLMC_BUS=y +CONFIG_RTE_LIBRTE_DPAA2_MEMPOOL=y +CONFIG_RTE_LIBRTE_DPAA2_PMD=y +CONFIG_RTE_LIBRTE_PMD_DPAA2_EVENTDEV=y +CONFIG_RTE_LIBRTE_PMD_DPAA2_SEC=y From patchwork Wed Mar 14 07:56:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131566 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp549190ljb; Wed, 14 Mar 2018 01:00:07 -0700 (PDT) X-Google-Smtp-Source: AG47ELvzEMNLUYM/IcCqbKB9zGKoE342BzsBJ4rV34n/xSDaEp058QzrCIcMMhF62/ari7uGBDFn X-Received: by 10.28.128.79 with SMTP id b76mr864142wmd.10.1521014407422; Wed, 14 Mar 2018 01:00:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014407; cv=none; d=google.com; s=arc-20160816; b=PAoFsfqnTvQrrbHK8s0Bft2wluRpoL8pMU4qFEJYB6DYzi9uf1bGIlXLf7o9yUSVVe Xky46T4liWQDHL+lTJYwJyhquGfQqvYIONa+gpJGi7XwnL4wJGF/JuaHU+R3wDNfPJ8x qZm0Hr6z2BkyGccToy3UXf/i4mbc3OUKUZLek9XVmklVqvddunS+Aq7f/p+9tgX8bL4r Y7RcUtEL/QEF5P2yZHq5EOE4Yxy102f2eptP2kIxUjCIkyBDb8/drxUAvEFIjRFlVWA5 srSPN3m2Mbx2F5QS7f/jzy7lHLtAJ0ySoLukCCiLRasLN8ZeSh2fzUHN39yrz4pPnE0t jbkg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=pxFmXURFjGDVHOSfHJha5w76yxiNH4j9vOqd+hx/flA=; b=PId+6Fk7K9Q/ycfJdR9SdG37kgZiBAisbNZdwPev1r+ggkyyTBpKcIMo0Wcnw71ll7 iz+EhUSKGKhBnU+RRPWMoldN4s6yh6fQd6RadBHg27ieDOYNZCbEUXRBtaR6O2uNFLFq Dm7MLhUljX8p1RKIzk0l7DyeepTV7aT6fUTSWgphUVzMgJrrmQKvRarjed530X2KeIEZ 9EivToIr6wrWKLOFSdBeYLmgiIsClLpOZ6wqF5V/1Fc+ajKBQjyAY8sVNBC2a4M4B+Nb TKp+CMzXYDhafe+cN0UuSNGvL0o7htd247PgKRMStf8r4Hn8XBkj3/TIzsoEuch3MMM1 oenA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=ge4u+z8M; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id d200si448074wmd.212.2018.03.14.01.00.07; Wed, 14 Mar 2018 01:00:07 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=ge4u+z8M; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7350BAAC3; Wed, 14 Mar 2018 08:58:19 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40070.outbound.protection.outlook.com [40.107.4.70]) by dpdk.org (Postfix) with ESMTP id B9ACAAAB3 for ; Wed, 14 Mar 2018 08:58:11 +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=pxFmXURFjGDVHOSfHJha5w76yxiNH4j9vOqd+hx/flA=; b=ge4u+z8M3HsfoYdF8q1gUSIhKRtAri1smL246E5HwqIZwfPdJxUcCzy6D2uNyfhXzn0feShYsPfX8FI/XefPm3KPiuz5koVbgNdnyG7UWO4qiNBq0iVCccn0ayV1+V3bPF/DEa8s7yMurXetAJIT0YW11UmJBY6rz68gR1ZL8RM= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:09 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net, Akhil Goyal Date: Wed, 14 Mar 2018 13:26:05 +0530 Message-Id: <1521014166-3201-10-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: aa57e561-8f58-410d-ce0b-08d589815437 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:qBp0+7UyF7YWa9TU8LbpO5bxWHcSAjWceZaq9j577OqhoZZvl1eQ/i2PPzKZmRmuHJSA8xi98zyidHVEu/JBs1X//R8F8uMr0e9drIf0sRtYkh3ivr3DNWD9i/+tNl75gQB0dJNFGwg1ieaRgCAKNJ1OLNbDaK20Hh4uWClb3v6M5lVWLZqG5e49dFRvcCAbFyRrNQqK2XfQuNrK0f/pyTh9/Zzkf2WkwRfOAFkIbajgWia9EFUGfqiraQlRMu2L; 25:4UnlChNl1aO3fC6EpQ6jqInkmzIT3BMPm7/Vv3OIOvpXTSeSW5oIO50Ne8nIcL3xBEXuQnG9yAdrg0Rjsll93PkYFGgaq/q3MEHj7zgzjPrESjYLK+ZvjvFJpEqJONn9koI3yuwJUcj9+P1205xMdURNLL3eGM/CvRO+1XF0RJhVa6OMlQqF/HrUMP0UteZtuxLuTCYKz+3OucvCZCbKWuzg09lc6SR/xTZ84fHxgQLtVE6AmS0fmMfvFTY20jpV515I2KfHfRQZ/p2lSq7cHKyBtKBzaTOkTZLAp5JZJaljnsBeqSWpTiXucNbuM5IQnReymN9ndSQQDOnm4dY4HA==; 31:DsxYtwWp9EXNDuckzK/2SeAEFk0zrvcMZQTUnWMKp6BFlEfXv4y3vMhd0coK0fydy4dlLJKAEfSNp1FaeZvqMZI4Gz6HezCUVvDOdXDVqljN/5nvk6yttUI/Q6dYYXaNsiHf1LxpProqvWaq8tCa2pnoxwMlCYttyQHitNs5slicSdKHEhz9BK6lMNzWYw1KfpNDhsjS8En+EuBBh75sRXbhR2gP7T5J33qe8nsaZ9A= X-MS-TrafficTypeDiagnostic: AM2PR04MB0754: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 20:i/jcy7zrFGfVfWKoIRWY2jq2W1tlxFLIfsrUM71sHALKIqXjB46nobzIEKYWYfB1ovujiChR+lAvxtYmEbe+wXIT0tEoSqH+ynKS7w+WPJyoij/KgarSBOT5u1GCgRCm9hYLgYOnnz14qXtVuzV+ZhFPF9W9BMS7XsbZfjtrnJe6vfitzY4eoRyvOOJpYy01CsT20vuLXPJvVnlijznU3PoMwuWBbvcRJ05G/64xGlhUWlg2ZMhyQb+ZKtXD/u8OnFGEfPC9jc6+gHSCgjFcBTv3AH/lXpTaXKxLh/tcsU9cldbFTVj2J6Ust7cUcsxtScsfLwZXYjiEpHdMfBKz6cJmmRQB9DLu8Xbp1Zpz3WbqtPmDH9K1iOfx82lvrIPA4iZbKdR+i9Af1Sc+iOLUxe34fuz4WohuIYvvuhvGL5wbC5DpvfwUrEmTS8N3wC9yYzh7WFnF6chIg/6dda1UJ1Xk8kTdm2S/coLVVRwSdoOl65+4AfNt0jxNQshbh8Mr; 4:ARm5Ur1yEiQ8EP4S9F2zy/MxsdmjC76NhZC/zV6nDTtt65Xrw23iHwc1JyXIxNumNb2hGVI6uFu6pKKB6tQ6I4iI/2/nK3dcLeetSW1GZASWYo4fAToMUWjwHN6zcz94rYB43+QMAVQ/hfNFf0Qp3kjCdfi+YdZjYYiAWgI3M/I86HqpZtDSfN3obwXua91NMY0UH7bNRNQFrLKNSojDXc1SiGcib261lDxdUouZE1whbRATxzvZC3iw9jKCR8CRl8HK8BEaARqdE1TvkufvhoS9JTjKpMldisvZ1VnBasyoOdBl3ECT6FEUWKcl+Z9FPdzWi3VeVQ+fORNm0QLry8aClZyjDvr80po13sjmNnIG40yfC/J+oYpEfqnSqMn+ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192374486261705)(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(575784001)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(59450400001)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(6666003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:xqv7/ZCDsajQphFtd8lD83HzelmaByvfidFlYuL4X?= w322qAqeEwFHfPnxOw7O1m5vuovsx4QrEGnrjnFImyH3myH91jCCh/O26/2Nn0fSm2R0fGqbpRpZWbJHhcKIGt1gOzcprLX8U5YVPeoRA2EQbBI6z4rwXPqLfqa8kJV5Xjo6aXmOTiAGG0FfQOi+k9Q0r0CnfuZyyOH/NeQ/+gYY5icnkNtcM8xhoXrnr19br2t5r//DCWgfq24qicuRhLsIROcZcoHvZK/yK6zg07svjF9ekXIEPRZkq2waYhJsu7QfCezHjs7kPs9y1z6WKTGtDn2E1EtAO83TP3Rf4kTIe83VrenUBu1w+LXLw5V80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M2PR04MB0754; 6:n4NKwZ3u/zogUczG0EaulHmINHt1St5QWxf1BRoTGEEDGtoXROzSyS1GcBCNGBB+eEo3yv/zcnkESivw/mlDPBqrEDKZMZfkb8P6Nc0yDUWd644DSuc3sZdoohS9/O2nv5ZIrFdArGHVZi8t/Gt5mz8ezuT9UVWhLLN9AU0W5DPpN63pxEHnbeOAXiRymRQsHcUe1pltNC5g2Ax8aJO8LwJozq9M9jjYFc0sdIxI7SrSElpE8HgId6PFEOGNUW63cgxnRcTn/Ng9FyZ2MyYh9rVDabomEqiAogCc1d+/aBSW53KUFiEJHrfahHTeUoYQOxpK4HHh0iOLBGsTipk1opNkflj6jsqyZssFGNCkOco=; 5:umJzJR750bwrEp1lfsJdLAqn0OFaZ/7YeMnlveMA7XHTZl9hMLb768b766LXYqv35T6WgZ4cRv5PdrpgX/zSJj2eXQ5EZsJXVWKgK4TNwoIHGtRhkYkWpVKjQSyOW5MZuYeUs2+MWGdcmSSWk+QuNTV1OHjFnneFSmNWo99Bjqk=; 24:wkZf1Bs/gyanFLfWTKrJI/XU2RJVytxl1iI9iG7Fu4YKASIVzG1GCxyMCpc0E9Ol89zVtv1naD38j2Df2oWdZkCbtNvdpVHn8pYtd+VvOmE=; 7:IFg4PwitiPIZceesCbsUgHzTwQFbObe2l1iKglN4KJ/kJgyPEdosEIVU3peOjTuCTIWR80M0Hrw5C/FszmfCM2366cu43ru/UG8lFncABQ+8gqWYluhlE2iNOZyN75fCdwgvlHHjmqJJe5H1F5d6sd6U7amjrqG2YqmIl04HLPX1CfBj0vWsN8ZQ7M9U0n5q0eKTgoQL9einGvcGMp7GsjhTHZDCtxckO30upIcbSYqMqyqDV4Dq7+ikW60gCkkF SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:09.0459 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: aa57e561-8f58-410d-ce0b-08d589815437 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 09/10] build: add meson support for dpaaX platforms 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Akhil Goyal Signed-off-by: Hemant Agrawal --- app/test-pmd/meson.build | 3 +++ config/arm/meson.build | 13 +++++++++++++ config/rte_config.h | 12 +++++++++++- drivers/bus/dpaa/meson.build | 29 +++++++++++++++++++++++++++++ drivers/bus/fslmc/meson.build | 27 +++++++++++++++++++++++++++ drivers/bus/meson.build | 2 +- drivers/crypto/dpaa2_sec/meson.build | 14 ++++++++++++++ drivers/crypto/dpaa_sec/meson.build | 13 +++++++++++++ drivers/crypto/meson.build | 4 +++- drivers/event/dpaa/meson.build | 10 ++++++++++ drivers/event/dpaa2/meson.build | 11 +++++++++++ drivers/event/meson.build | 2 +- drivers/mempool/dpaa/meson.build | 9 +++++++++ drivers/mempool/dpaa2/meson.build | 9 +++++++++ drivers/mempool/meson.build | 2 +- drivers/net/dpaa/meson.build | 14 ++++++++++++++ drivers/net/dpaa2/meson.build | 15 +++++++++++++++ drivers/net/meson.build | 2 +- 18 files changed, 185 insertions(+), 6 deletions(-) create mode 100644 drivers/bus/dpaa/meson.build create mode 100644 drivers/bus/fslmc/meson.build create mode 100644 drivers/crypto/dpaa2_sec/meson.build create mode 100644 drivers/crypto/dpaa_sec/meson.build create mode 100644 drivers/event/dpaa/meson.build create mode 100644 drivers/event/dpaa2/meson.build create mode 100644 drivers/mempool/dpaa/meson.build create mode 100644 drivers/mempool/dpaa2/meson.build create mode 100644 drivers/net/dpaa/meson.build create mode 100644 drivers/net/dpaa2/meson.build -- 2.7.4 diff --git a/app/test-pmd/meson.build b/app/test-pmd/meson.build index 7ed74db..83f8bb1 100644 --- a/app/test-pmd/meson.build +++ b/app/test-pmd/meson.build @@ -32,6 +32,9 @@ if dpdk_conf.has('RTE_LIBRTE_SOFTNIC_PMD') sources += files('tm.c') deps += 'pmd_softnic' endif +if dpdk_conf.has('RTE_LIBRTE_DPAA_PMD') + deps += ['bus_dpaa', 'mempool_dpaa', 'pmd_dpaa'] +endif dep_objs = [] foreach d:deps diff --git a/config/arm/meson.build b/config/arm/meson.build index 4e788a4..c1ab6ed 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -54,6 +54,17 @@ flags_cavium = [ ['RTE_MAX_LCORE', 96], ['RTE_MAX_VFIO_GROUPS', 128], ['RTE_RING_USE_C11_MEM_MODEL', false]] +flags_dpaa = [ + ['RTE_MACHINE', '"dpaa"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 16]] +flags_dpaa2 = [ + ['RTE_MACHINE', '"dpaa2"'], + ['RTE_CACHE_LINE_SIZE', 64], + ['RTE_MAX_NUMA_NODES', 1], + ['RTE_MAX_LCORE', 16], + ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', 'n']] ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic = ['Generic armv8', flags_generic, machine_args_generic] @@ -69,6 +80,8 @@ impl_0x51 = ['Qualcomm', flags_generic, machine_args_generic] impl_0x53 = ['Samsung', flags_generic, machine_args_generic] impl_0x56 = ['Marvell', flags_generic, machine_args_generic] impl_0x69 = ['Intel', flags_generic, machine_args_generic] +impl_dpaa = ['NXP DPAA', flags_dpaa, machine_args_generic] +impl_dpaa2 = ['NXP DPAA2', flags_dpaa2, machine_args_generic] if cc.get_define('__clang__') != '' diff --git a/config/rte_config.h b/config/rte_config.h index 699878a..72c0aa2 100644 --- a/config/rte_config.h +++ b/config/rte_config.h @@ -74,10 +74,20 @@ /* * Number of sessions to create in the session memory pool - * on a single QuickAssist device. + * on a single instance of crypto HW device. */ +/* QuickAssist device */ #define RTE_QAT_PMD_MAX_NB_SESSIONS 2048 +/* DPAA2_SEC */ +#define RTE_DPAA2_SEC_PMD_MAX_NB_SESSIONS 2048 + +/* DPAA_SEC */ +#define RTE_DPAA_SEC_PMD_MAX_NB_SESSIONS 2048 + +/* DPAA SEC max cryptodev devices*/ +#define RTE_LIBRTE_DPAA_MAX_CRYPTODEV 4 + /* fm10k defines */ #define RTE_LIBRTE_FM10K_RX_OLFLAGS_ENABLE 1 diff --git a/drivers/bus/dpaa/meson.build b/drivers/bus/dpaa/meson.build new file mode 100644 index 0000000..f5c6d7b --- /dev/null +++ b/drivers/bus/dpaa/meson.build @@ -0,0 +1,29 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['ethdev', 'eventdev'] +sources = files('base/fman/fman.c', + 'base/fman/fman_hw.c', + 'base/fman/netcfg_layer.c', + 'base/fman/of.c', + 'base/qbman/bman.c', + 'base/qbman/bman_driver.c', + 'base/qbman/dpaa_alloc.c', + 'base/qbman/dpaa_sys.c', + 'base/qbman/process.c', + 'base/qbman/qman.c', + 'base/qbman/qman_driver.c', + 'dpaa_bus.c') + +allow_experimental_apis = true + +if cc.has_argument('-Wno-cast-qual') + cflags += '-Wno-cast-qual' +endif + +includes += include_directories('include', 'base/qbman') +cflags += ['-D_GNU_SOURCE'] diff --git a/drivers/bus/fslmc/meson.build b/drivers/bus/fslmc/meson.build new file mode 100644 index 0000000..e94340e --- /dev/null +++ b/drivers/bus/fslmc/meson.build @@ -0,0 +1,27 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['ethdev', 'eventdev', 'kvargs'] +sources = files('fslmc_bus.c', + 'fslmc_vfio.c', + 'mc/dpbp.c', + 'mc/dpci.c', + 'mc/dpcon.c', + 'mc/dpio.c', + 'mc/dpmng.c', + 'mc/mc_sys.c', + 'portal/dpaa2_hw_dpbp.c', + 'portal/dpaa2_hw_dpci.c', + 'portal/dpaa2_hw_dpio.c', + 'qbman/qbman_portal.c', + 'qbman/qbman_debug.c') + +allow_experimental_apis = true + +includes += include_directories('../../../lib/librte_eal/linuxapp/eal') +includes += include_directories('mc', 'qbman/include', 'portal') +cflags += ['-D_GNU_SOURCE'] diff --git a/drivers/bus/meson.build b/drivers/bus/meson.build index c6af500..58dfbe2 100644 --- a/drivers/bus/meson.build +++ b/drivers/bus/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['pci', 'vdev'] +drivers = ['dpaa', 'fslmc', 'pci', 'vdev'] std_deps = ['eal'] config_flag_fmt = 'RTE_LIBRTE_@0@_BUS' driver_name_fmt = 'rte_bus_@0@' diff --git a/drivers/crypto/dpaa2_sec/meson.build b/drivers/crypto/dpaa2_sec/meson.build new file mode 100644 index 0000000..0fb4d96 --- /dev/null +++ b/drivers/crypto/dpaa2_sec/meson.build @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['bus_fslmc', 'security', 'mempool_dpaa2'] +sources = files('dpaa2_sec_dpseci.c', + 'mc/dpseci.c') + +allow_experimental_apis = true + +includes += include_directories('mc', 'hw') diff --git a/drivers/crypto/dpaa_sec/meson.build b/drivers/crypto/dpaa_sec/meson.build new file mode 100644 index 0000000..8a57098 --- /dev/null +++ b/drivers/crypto/dpaa_sec/meson.build @@ -0,0 +1,13 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['bus_dpaa', 'security'] +sources = files('dpaa_sec.c') + +allow_experimental_apis = true + +includes += include_directories('../dpaa2_sec/') diff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build index 17041ad..736c9f5 100644 --- a/drivers/crypto/meson.build +++ b/drivers/crypto/meson.build @@ -1,7 +1,9 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['qat', 'null', 'openssl'] +drivers = ['dpaa_sec', 'dpaa2_sec', + 'openssl', 'null', 'qat'] + std_deps = ['cryptodev'] # cryptodev pulls in all other needed deps config_flag_fmt = 'RTE_LIBRTE_@0@_PMD' driver_name_fmt = 'rte_pmd_@0@' diff --git a/drivers/event/dpaa/meson.build b/drivers/event/dpaa/meson.build new file mode 100644 index 0000000..9bbd6c2 --- /dev/null +++ b/drivers/event/dpaa/meson.build @@ -0,0 +1,10 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif +deps += ['mempool_dpaa', 'bus_dpaa', 'pmd_dpaa'] +sources = files('dpaa_eventdev.c') + +allow_experimental_apis = true diff --git a/drivers/event/dpaa2/meson.build b/drivers/event/dpaa2/meson.build new file mode 100644 index 0000000..835460c --- /dev/null +++ b/drivers/event/dpaa2/meson.build @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif +deps += ['mempool_dpaa2', 'bus_fslmc', 'bus_vdev', 'pmd_dpaa2'] +sources = files('dpaa2_hw_dpcon.c', + 'dpaa2_eventdev.c') + +allow_experimental_apis = true diff --git a/drivers/event/meson.build b/drivers/event/meson.build index d7bc485..e951199 100644 --- a/drivers/event/meson.build +++ b/drivers/event/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['skeleton', 'sw', 'octeontx'] +drivers = ['dpaa', 'dpaa2', 'octeontx', 'skeleton', 'sw'] std_deps = ['eventdev', 'kvargs'] config_flag_fmt = 'RTE_LIBRTE_@0@_EVENTDEV_PMD' driver_name_fmt = 'rte_pmd_@0@_event' diff --git a/drivers/mempool/dpaa/meson.build b/drivers/mempool/dpaa/meson.build new file mode 100644 index 0000000..08423c2 --- /dev/null +++ b/drivers/mempool/dpaa/meson.build @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['bus_dpaa'] +sources = files('dpaa_mempool.c') diff --git a/drivers/mempool/dpaa2/meson.build b/drivers/mempool/dpaa2/meson.build new file mode 100644 index 0000000..dee3a88 --- /dev/null +++ b/drivers/mempool/dpaa2/meson.build @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['mbuf', 'bus_fslmc'] +sources = files('dpaa2_hw_mempool.c') diff --git a/drivers/mempool/meson.build b/drivers/mempool/meson.build index 5991856..693a861 100644 --- a/drivers/mempool/meson.build +++ b/drivers/mempool/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['ring', 'stack', 'octeontx'] +drivers = ['dpaa', 'dpaa2', 'octeontx', 'ring', 'stack'] std_deps = ['mempool'] config_flag_fmt = 'RTE_LIBRTE_@0@_MEMPOOL' driver_name_fmt = 'rte_mempool_@0@' diff --git a/drivers/net/dpaa/meson.build b/drivers/net/dpaa/meson.build new file mode 100644 index 0000000..a4c40a6 --- /dev/null +++ b/drivers/net/dpaa/meson.build @@ -0,0 +1,14 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif +deps += ['bus_dpaa', 'mempool_dpaa'] + +sources = files('dpaa_ethdev.c', + 'dpaa_rxtx.c') + +allow_experimental_apis = true + +install_headers('rte_pmd_dpaa.h') diff --git a/drivers/net/dpaa2/meson.build b/drivers/net/dpaa2/meson.build new file mode 100644 index 0000000..ad1724d --- /dev/null +++ b/drivers/net/dpaa2/meson.build @@ -0,0 +1,15 @@ +# SPDX-License-Identifier: BSD-3-Clause +# Copyright 2018 NXP + +if host_machine.system() != 'linux' + build = false +endif + +deps += ['bus_fslmc', 'mempool_dpaa2'] +sources = files('base/dpaa2_hw_dpni.c', + 'dpaa2_ethdev.c', + 'dpaa2_rxtx.c', + 'mc/dpkg.c', + 'mc/dpni.c') + +includes += include_directories('base', 'mc') diff --git a/drivers/net/meson.build b/drivers/net/meson.build index 704cbe3..4ea6dcf 100644 --- a/drivers/net/meson.build +++ b/drivers/net/meson.build @@ -1,7 +1,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Copyright(c) 2017 Intel Corporation -drivers = ['af_packet', 'bonding', +drivers = ['af_packet', 'bonding', 'dpaa', 'dpaa2', 'e1000', 'fm10k', 'i40e', 'ixgbe', 'null', 'octeontx', 'pcap', 'ring', 'sfc', 'thunderx'] From patchwork Wed Mar 14 07:56:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 131567 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp549463ljb; Wed, 14 Mar 2018 01:00:19 -0700 (PDT) X-Google-Smtp-Source: AG47ELvC5o9mYy1jciha2PVVq80tKc/f3hVuVItT+QCysptnnvXUpGqVQul7rJbFUX+woY/FnM5e X-Received: by 10.223.197.1 with SMTP id q1mr2807980wrf.268.1521014419583; Wed, 14 Mar 2018 01:00:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521014419; cv=none; d=google.com; s=arc-20160816; b=D9SS32tYAEhJXX3dhBZhPdJ7aSKs0oxhwqm1d/7GCVzKCUy1Qs52jg15ArhYsHmSxB +QQS+rRz0BdIPgRfuhbj0o46trIDPpzzE0NG1YXeM21L58cZ/3TPbuoAw1lQkjT1t1Rq r+UorYjV5iB4czAWzO3XfA8GbZ3xpdNT0OERSsxINQUAe8EM1rz5G7vEki0drcKU6l69 84w7mRlAKp5JvmQfZJlenEr+CuU5xwpDtqiml5lBIBoDedc4NkYC+WbDH6fsdbR02bQW F2qAUlKft6J1JMItxN1uDt/BATitl/m6MDprCj6R4ULF1ulybfkXGGhlOHAMqL/IwKaT jjvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=SoRXPyQByka5V8/4C56H3Pry0aya0C8lVpzSry0S6nw=; b=gN2O4prVUIvBCAUoDb1NMz2T0+El3UjyiQuEfEevr738wslDGHAu6PcjyAN8+UwkDs ztIDFm5MtM8v62O3V6Bn16soygh3N0wRmefdPWpNcjCbGIH0oUIuXqBaTxRR5pZHJqB6 lp9aqN2HP3J/bDQM4L8MxwMxBZ5ks4fl75CnotOL8InroDMJbgzvNd+QD+0ruVZ6wDTL S92vy/zn+RZXZRyFPYuyEBVBZCZNGXuJPYevL7gI/8vC844W0B7n4z0rG1L3vG5qyYI1 9BGbLPSomAQqq7GZuuNLyk3aJKR2MwaE0IfvPkcJLLyS23WgaSh9e1k6l/WIIAy7NeXq iEDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=iyRfgNi1; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id d8si519120wmf.109.2018.03.14.01.00.19; Wed, 14 Mar 2018 01:00:19 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=iyRfgNi1; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 52E9BAACB; Wed, 14 Mar 2018 08:58:20 +0100 (CET) Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40063.outbound.protection.outlook.com [40.107.4.63]) by dpdk.org (Postfix) with ESMTP id 435AE5F44 for ; Wed, 14 Mar 2018 08:58:12 +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=SoRXPyQByka5V8/4C56H3Pry0aya0C8lVpzSry0S6nw=; b=iyRfgNi1GEd2PsBz7zHlk+UdUrgq2lN+mlvRNtdfteh+yIhFy/S79n79X+l6cLPqiBnQbgbWxF082R3fNfvlXzlA7+IiSV5H9dGEEjjnc9uKo3774b2uPbnZSN5GrM8Gg7eth3VETOGRyc0xarLO36Fovu6D4ocZOUUoLAUGfvs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Wed, 14 Mar 2018 07:58:10 +0000 From: Hemant Agrawal To: dev@dpdk.org, bruce.richardson@intel.com Cc: thomas@monjalon.net Date: Wed, 14 Mar 2018 13:26:06 +0530 Message-Id: <1521014166-3201-11-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> References: <1519889597-5805-1-git-send-email-hemant.agrawal@nxp.com> <1521014166-3201-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: d920fddd-6fc8-4306-c9a7-08d5898154f1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:jKnco5lbzYq4QxNsfNQ4d7Rk7Vx6fy+5ooEIOnJ63OZYqB4n7s10z8d+M/UPzgVxZH5BdNiZx376PE2nuCqtDUuKrwHMy3cNKS4tT9tpg+daP5g6ChxFRPvpYAjFhLu47K274+2mXacVQ2eSMOzcfasoXeKJZ+WV99j7zaHH3wzqV6W6g4ou+8Uwr66t9//Nut3k9B2qZ6oS4zMuZWN5r6TRUEko/RLnU40bZuYQhWijU3lMEi79m6pV4gHn4E4D; 25:HEHX2dtc+4iggrxnsxCMla8f6gHtSqHW5uosbcNt3LcXBFDjkKbGmecwvMmHcf9PNpsnJnJr4uB9c0Cwz5GEtLUToLkWnht9UqWxH40q74cPycj4dzo2fqj9TMs+9x+SRaWzE0jGn+Z7qgiu7txXZuwH5Y6jNdXVV8GSs3SASm0gnj5xhqFipPfa8L3GUaBg63Dv75TXrOaXagcoGm6eU3ryZkePItDa/4nm/qADONBNu9JrCWAAuz5/ORaRQnlglCg4Sb5l+qC/TobBJDtH4lMNCFQKNyT28wtQBuTqXpWpg1PRtQ8QxxQ/ZiOsdbD11GVXbDa9BHQcPCHjTZN6ug==; 31:FyS691ZSkcOcgCWValNWTcrZ4Lm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2KxTkDyHP16XOLVnNiyzagFOPcY3kol4pU5gtV8jWoWKGXejn4dX X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231221)(944501244)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0611A21987 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(39860400002)(346002)(39380400002)(396003)(366004)(199004)(189003)(316002)(4326008)(16526019)(575784001)(47776003)(6506007)(66066001)(186003)(52116002)(86362001)(386003)(55236004)(48376002)(2906002)(97736004)(68736007)(26005)(5660300001)(25786009)(105586002)(76176011)(51416003)(6512007)(50466002)(5009440100003)(6666003)(36756003)(16586007)(81166006)(6486002)(8936002)(106356001)(305945005)(7736002)(50226002)(6116002)(53936002)(81156014)(8676002)(2950100002)(3846002)(478600001)(110426004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:TsVMoiC35x9jYuimU1p0pH/UEdBpbSpPPZOgaqcMj?= IepWpm5k7kciVCaaAecpiVqdxoeSGzpVNHTwVtXa/lLf9hmZpgAO6BHMptSkLa1dTVW7nnzPuw8fEuht9YwS0oOemU/Ir/2LOlev00h+IQiYumDjw8T6HASxndyV91qZ1OqSrFIu07ajplCr3/AAgU36eev31uzfudMHsXYJqrmPGYYggjcPz/nSizx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rg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Mar 2018 07:58:10.4054 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d920fddd-6fc8-4306-c9a7-08d5898154f1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH v3 10/10] build: add meson cross compile config for dpaaX 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Hemant Agrawal --- config/arm/arm64_dpaa2_linuxapp_gcc | 15 +++++++++++++++ config/arm/arm64_dpaa_linuxapp_gcc | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 config/arm/arm64_dpaa2_linuxapp_gcc create mode 100644 config/arm/arm64_dpaa_linuxapp_gcc -- 2.7.4 diff --git a/config/arm/arm64_dpaa2_linuxapp_gcc b/config/arm/arm64_dpaa2_linuxapp_gcc new file mode 100644 index 0000000..7ec74ec --- /dev/null +++ b/config/arm/arm64_dpaa2_linuxapp_gcc @@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-ar' +as = 'aarch64-linux-gnu-as' +strip = 'aarch64-linux-gnu-strip' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = 'dpaa2' diff --git a/config/arm/arm64_dpaa_linuxapp_gcc b/config/arm/arm64_dpaa_linuxapp_gcc new file mode 100644 index 0000000..73a8f0b --- /dev/null +++ b/config/arm/arm64_dpaa_linuxapp_gcc @@ -0,0 +1,15 @@ +[binaries] +c = 'aarch64-linux-gnu-gcc' +cpp = 'aarch64-linux-gnu-cpp' +ar = 'aarch64-linux-gnu-ar' +as = 'aarch64-linux-gnu-as' +strip = 'aarch64-linux-gnu-strip' + +[host_machine] +system = 'linux' +cpu_family = 'aarch64' +cpu = 'armv8-a' +endian = 'little' + +[properties] +implementor_id = 'dpaa'