From patchwork Wed Aug 29 10:47:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145414 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp522074ljw; Wed, 29 Aug 2018 03:51:04 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYnmcdYCXHTAfSHHgVSsviThlrljL7gcdu2P+nqjJGS76j5brzrrde+TKFN0HF939Q16XEC X-Received: by 2002:a1c:8a04:: with SMTP id m4-v6mr3751601wmd.137.1535539864096; Wed, 29 Aug 2018 03:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535539864; cv=none; d=google.com; s=arc-20160816; b=ByOc4Tkno72GZpm1AoXXLON/NRJDzDsPqZB/8h1cVh6VHvNRIcOFx3qXVkyXHhIO85 jN+v5vtswwruYCc8yj1xmNB2+ErSdUVLxPLZrsmJZz2luO67mxWToM98vfXMPn+aKQSh 8iwA9qJiiTAq8Z1LdqBkVd+X9Vw++l74LBfK8bXz1WnzXWDxuLMrl4Xv7ih+m9e9BInM n2JLq7UYkzXaET6QfFqQw4zhhBf+cIA17jgIN/jfC5SMWvYOetjy+CB7VAze7/Oi79eu fnJ3USEd8tImVrn2AKweMnJbzhsm4EWKTwJN83Zc/B35O8mJbMp7hJ34f5NA8Ui83Kep Th1g== 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=3GWYm+sFhjb6VEYwuPrTSiydbOOI5cMDvjsjMcc3YCI=; b=a+V8SM6T4ZQPx5QYEVwnWTcGSHt7gsOMJt1g8FK/bn/z1xXNgDAp/KAmixuz0om7F7 R3rleJxX+WeczrZCOEC4M5ia7kWliQ2UD7S9L1eaNKmaQveV9goDkaRSFk980+meWPS4 g+4SNHFWj/eCBr2YJwqxOT5zXtuDbxx5/gjOXlRjignlsM6sMDl52joSuOxvfI9tCBhl oAfIEuhaMmM747kJt8n60ZJnM9z9bpJgQ1DwvVF5pGTrbeJyX8K61b7LrRTWj4QL1T7a JwiYfZ4yqXFbLztqmD5uwR859TJoKaolCzmAEPotCRRWK5o3RnLWAGRIVWEiSjVPHECV 2Wkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=apDcTZ6M; 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 e140-v6si3466959wmf.120.2018.08.29.03.51.03; Wed, 29 Aug 2018 03:51: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=apDcTZ6M; 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 2ED225A44; Wed, 29 Aug 2018 12:50:00 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00060.outbound.protection.outlook.com [40.107.0.60]) by dpdk.org (Postfix) with ESMTP id C33F1559A for ; Wed, 29 Aug 2018 12:49:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3GWYm+sFhjb6VEYwuPrTSiydbOOI5cMDvjsjMcc3YCI=; b=apDcTZ6MD+zSFV/CPzogUDLtgL7pVFS3b60yG4rPgFqot6nudn9Y0iGctM9Bzbe0rh5dB2r+JKzcDsd8NebY8KBx8oERipblA4V+ia6VkjvS1IyPUIki++zQ//MRO+O1q8eJWiBbDQUJVE0SCgtY6HaJuXvC69ZFIpw+VPnCzTw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.143.30.134) by VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Wed, 29 Aug 2018 10:49:53 +0000 From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Cc: dpdk-up@NXP1.onmicrosoft.com Date: Wed, 29 Aug 2018 16:17:35 +0530 Message-Id: <1535539660-20228-9-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> References: <1535539660-20228-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.143.30.134] X-ClientProxiedBy: BM1PR0101CA0071.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::33) To VI1PR0401MB2543.eurprd04.prod.outlook.com (2603:10a6:800:56::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0855edb1-326d-4843-6224-08d60d9d2735 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4618075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0401MB2543; X-Microsoft-Exchange-Diagnostics: 1; VI1P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5lXcdrbASfslYaJJUwAVKSURWMjt18Vl9/LQ1IakjnILRAMmtQjwhUI/nffWuC7U3mTt7TwtckZHQNivdEU3mXQIwpc4W75nTQ1OP4TtrhTgSzNXEY61XXxaxQlhz+8F6ZYQ9vm7DcIkC+77V75f7q+o9mZTLPFZKzpogDCit1Q2zU1qSaYa/nNqY8AdOR5d5oNJudVxgobgPTIC9LziYCX0r2zUjlGwdArh/1sgtpN0VMSu9aHcNlvOBLaTguCEICSslq/AQh46XKMOAC9IR2WgRAfXz8cIVph0mPqJi7ftvmRmKOBN8kmyMDNU6PAQSjEQbTcyKVLnjONZYyuJ3Eppcv3Ph82jHyCwcTK8e8Hndhbzv5z86Cv; 4:g2nmZy1rDhNBL0VotPhdRXqHvUvTEbntaGEqpXXdViIaYydLUIIs64cPPF6TyUrzJoSNiOZdIfTdK7S9LaQ8VRDxLmJXE0V9QjanHbpo8RH2KmWAkNGMJ7o7wEpRjPLDlGwXeH3GDgnoUsAhAFjN0K57eWJyblxWXQ0nIijSKOZ2BvkDt5C4x78049ByPbV5ipRCdMH9rBzyFi4JMW+V7nw4mvwrA/YuVoDelp8owfV7e6f1OEiaOF/0ERcHv7O8/rm1n+wcSoUOa2k8fgb+jwLlf4PTlDT2PLpO9dxzMbO7ePxualg3GlAFNKwhUiNn X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699016); SRVR:VI1PR0401MB2543; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0401MB2543; X-Forefront-PRVS: 077929D941 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(136003)(366004)(396003)(39860400002)(376002)(189003)(199004)(6512007)(6486002)(16526019)(53936002)(486006)(186003)(11346002)(105586002)(6116002)(106356001)(5660300001)(50466002)(68736007)(5009440100003)(2616005)(25786009)(48376002)(386003)(4326008)(55236004)(6666003)(73566003)(86362001)(956004)(107886003)(446003)(3846002)(26005)(6506007)(476003)(316002)(52116002)(50226002)(478600001)(47776003)(66066001)(8936002)(16586007)(76176011)(51416003)(97736004)(44832011)(81166006)(8676002)(7736002)(305945005)(36756003)(81156014)(14444005)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0401MB2543; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0401MB2543; 23:0m0jv50dJK4BFveG8npz7zAvAJuroAXNKD0iWGU?= nRI2QUITlcEzsJfUn+WsVuy0/2F0zGhl2ybeAuO2S3qQscf9Rd3XcEQ6/xEVRHy3gb39/nPuC8kziI8RS4OZ7u79xA+HftOSW0yB1T8s0NwSPxCM6nf1S13pb71O1jmtCY2Y0QZE6tgcn8FY3VFbXyV8pIpCkGwyXdkJy/MKQtZGNP4GTMX7Vb5FpH27PIAag0/3vjGk8iepuyu9X+j83hcvcsNEOI0OcvUBnEtxvhO3lYPrpfAW2fodJ+Pp1oO3IsVy9DL599zdacp/DbTbQ2v9hkxNtMDAeGpogOL/3H3E+g6hRZMoNekkShh+y6dkk05lXUdNfqgTgCgbB0JWHrTyHYo5kd7jL1IAIg9WtKT8f+Jwa4a45KDADFKMb3gQZdtQL8pYpnqlKvTsMSyTRigoMqxMHBnGtCPdBxMnIUut1N9DOK6wBa1MmuqEvpLac0ROS7BQWKRfw2QDWSlwDK1OX6YBk0iqJ7V92LVjirrS9syuWvG72acRykyUE9WxZNw24aabYuzXc5Y3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OriginalArrivalTime: 29 Aug 2018 10:49:53.0403 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0855edb1-326d-4843-6224-08d60d9d2735 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0401MB2543 Subject: [dpdk-dev] [PATCH 08/13] bus/dpaa: avoid using be conversions for contextb 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" From: Nipun Gupta Signed-off-by: Nipun Gupta --- drivers/bus/dpaa/base/qbman/qman.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 71da275..dc64d08 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -852,11 +852,9 @@ static u32 __poll_portal_slow(struct qman_portal *p, u32 is) case QM_MR_VERB_FQPN: /* Parked */ #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - fq = get_fq_table_entry( - be32_to_cpu(msg->fq.contextB)); + fq = get_fq_table_entry(msg->fq.contextB); #else - fq = (void *)(uintptr_t) - be32_to_cpu(msg->fq.contextB); + fq = (void *)(uintptr_t)msg->fq.contextB; #endif fq_state_change(p, fq, msg, verb); if (fq->cb.fqs) @@ -967,7 +965,6 @@ static inline unsigned int __poll_portal_fast(struct qman_portal *p, *shadow = *dq; dq = shadow; shadow->fqid = be32_to_cpu(shadow->fqid); - shadow->contextB = be32_to_cpu(shadow->contextB); shadow->seqnum = be16_to_cpu(shadow->seqnum); hw_fd_to_cpu(&shadow->fd); #endif @@ -1136,9 +1133,9 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, /* SDQCR: context_b points to the FQ */ #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - fq = qman_fq_lookup_table[be32_to_cpu(dq[rx_number]->contextB)]; + fq = qman_fq_lookup_table[dq[rx_number]->contextB]; #else - fq = (void *)be32_to_cpu(dq[rx_number]->contextB); + fq = (void *)dq[rx_number]->contextB; #endif if (fq->cb.dqrr_prepare) fq->cb.dqrr_prepare(shadow[rx_number], @@ -1195,7 +1192,6 @@ u32 qman_portal_dequeue(struct rte_event ev[], unsigned int poll_limit, *shadow = *dq; dq = shadow; shadow->fqid = be32_to_cpu(shadow->fqid); - shadow->contextB = be32_to_cpu(shadow->contextB); shadow->seqnum = be16_to_cpu(shadow->seqnum); hw_fd_to_cpu(&shadow->fd); #endif @@ -1260,7 +1256,6 @@ struct qm_dqrr_entry *qman_dequeue(struct qman_fq *fq) *shadow = *dq; dq = shadow; shadow->fqid = be32_to_cpu(shadow->fqid); - shadow->contextB = be32_to_cpu(shadow->contextB); shadow->seqnum = be16_to_cpu(shadow->seqnum); hw_fd_to_cpu(&shadow->fd); #endif @@ -1556,7 +1551,7 @@ int qman_init_fq(struct qman_fq *fq, u32 flags, struct qm_mcc_initfq *opts) mcc->initfq.we_mask |= QM_INITFQ_WE_CONTEXTB; #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - mcc->initfq.fqd.context_b = fq->key; + mcc->initfq.fqd.context_b = cpu_to_be32(fq->key); #else mcc->initfq.fqd.context_b = (u32)(uintptr_t)fq; #endif