From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40068.outbound.protection.outlook.com [40.107.4.68]) by dpdk.org (Postfix) with ESMTP id 248CB5911 for ; Mon, 17 Sep 2018 12:37:56 +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=i2XLLH25vX1LUaTX5x2caNA17GnP09DEWtiXjn6UsGY=; b=uGxCHQsbja7Tx3G7dzM/IQnQ3weUvNGaOX384up7BZCuZFytlzAZ0LaUj3bkyXUfu0W4TPB1xDz6rq0uM+7ypWu7KxHAX6eC6k2W307t8L6n0M9mA0Q6AD/Aer3JSa9yNQnkA0G1QCvyZj77IsF6pSjpn+WqfiEBxSbV6e+vWmQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM0PR04MB4673.eurprd04.prod.outlook.com (2603:10a6:208:75::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Mon, 17 Sep 2018 10:37:54 +0000 From: Shreyansh Jain To: dev@dpdk.org, ferruh.yigit@intel.com Cc: Nipun Gupta Date: Mon, 17 Sep 2018 16:06:27 +0530 Message-Id: <20180917103631.32304-8-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180917103631.32304-1-shreyansh.jain@nxp.com> References: <20180917103631.32304-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR01CA0092.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1::32) To AM0PR04MB4673.eurprd04.prod.outlook.com (2603:10a6:208:75::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7b805077-f791-4e42-34e2-08d61c89a08c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4673; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4673; 3:wXdfNuMorKYV4HgdX5IqLCeeikO/8Pbbg9KpgZ7QufnMYsMapnQshg7w1iBVRPSmAqXi+vwsPa1Eh6q0UYWy675AAeGMGpA7hgCOswGXbRRo2Y7fTV13jxMnFRToDEtEl7ka/uLshpvBVw4E4MniOCChZ/Iz+rZSGFhaCM7dWAK9Vrn2V1dbzGFHQsiEkxK0aeIps245s5ab/vcGjNqByPwK2x515ElMRS7/iDmcN3ktCiGCqwZ5xlRVm1Uxhvig; 25:9EGeaLWotZaze1FH5BRYM7kMM0gnD7HEEaWc1PxBgpByr83Efjm9rh+RMESEaI1W8M+CzygRqLeUBzT9G5wz16BRSJVekS58bk8AFwRZcy77vh1YvD19l8qSfULPRiCa6ZM4B0Sjh91SUma79hc1zzbdnpVNlOW0gyfZq5js67Paer1oyUC5wIDR2MkFFZGYrlX+JwjghG6wU/pdbZMfr5zCFVRtcS3OWww0IGyfp60c6l8TR8buqX9Gwy+dkeM/cXXNAsL47KX/nz1FUMgeps56cxn02J/pY4fL8CDEbW44DjJ6y9SRt9NWWMPFmiY+UW8aaJl4BK4suo+M9R8ZtQ==; 31:9206hhCLpBMbWZeEGwfunGlzzl8uOK0lXGN3BuEyhncvfIGCW1tbkuYLKfIkdIQ9FrmqbEBm7jUH35k0Rd9eb4+v3MiG2cUY9Ov9XI99YZNddRs2Yyu+s+PaG3RkE/wKmv6P1qM19JapmvSwOnCb6wlcfIICskmEHkn46cRE4Rnsb8QYphyJeqMlXf6vCgqLMerFU1/71x0l7dYD9yNjtYiGbhrU4oVRxdf/0kSfSzw= X-MS-TrafficTypeDiagnostic: AM0PR04MB4673: X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4673; 20:yNI3trStv+Ll64/yXDI18LEklYNvoAPyp15CK0X5/sb4zelPwy9xq8JlH3uZxMoM/iq27Jxy8cx4+7WHKuuQi4MkQjdWKiGg115SK+xd6LNUjpwQ4sZQqJm8NDQ+XN53CrCUyafWIfKIgoshcK2PSVGPAuWQT7j+aY72567VKMGF0iKk+HkN2Z9VYOOUcK2Kvi41Mjgn25l9fc0mOTGb5ezlDJa6jEnAa5hK+U7Gy1nCb69/ggmW/oqUO7ErdSwOn6ZInFQtreljt6QLyw64rO7HVku28/l6g7K/b0/c4MbKIKFpMA8Z8JD2y4ejGGBPEpJ2LsPOn/g/Q1YJNhWgLi/pnIKzF4XogCrhXsKY+pMQ+fJMWkirpx1BwYMOIH/o5ayHHoMESKBVdR7C3tWf31Aa3r/C3V0CoYsBzdM0iqj8GHf3iivrbPWluj29FZvuhw/xmRQ9D43hwAGPjGg4oIhv//ER6e/NQvLrdZQLFHDSRPlS4QmFQ7Rffok2WD6e; 4:D8A2BAs75NZaN85xTQZ71sV6gUgZ2nrdsBPzWyP9ZegTZ7HpmCbzNgnI9x7Xd3Mqtbmdzz/SoC5fD4yj8mIoVFgWZm3TuOBSNk1Rk1tMDneucbyiIuZ1aRhzlf3fGCEO4Y8w8C30XoM8ASUPSthVMzEkGLOosqrqN4yDeegvUFrFk1tNrEoUj5QfRm6mx9Kjh1t5hxonwjKPcVEU5L8NpK1zTSQIkqHzxABF+zKuK+TK7r4qy1kt2/6Bey0NugFC55EY7tYZBmCQaR4NbuawyKOpBqeG71QDfXqtdCU3zqJFjTxD+YkME3yp4ZPfNOB+ 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)(5005006)(8121501046)(3231355)(944501410)(52105095)(10201501046)(3002001)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699050); SRVR:AM0PR04MB4673; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4673; X-Forefront-PRVS: 0798146F16 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(136003)(396003)(346002)(366004)(376002)(39860400002)(199004)(189003)(16526019)(48376002)(186003)(1076002)(3846002)(5660300001)(486006)(6506007)(386003)(16586007)(316002)(36756003)(14444005)(44832011)(5009440100003)(52116002)(6116002)(2616005)(76176011)(446003)(51416003)(11346002)(956004)(476003)(6512007)(47776003)(106356001)(25786009)(50226002)(2906002)(68736007)(105586002)(81156014)(81166006)(7736002)(6666003)(305945005)(8676002)(8936002)(4326008)(86362001)(97736004)(6486002)(478600001)(50466002)(66066001)(26005)(53936002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4673; H:Tophie.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM0PR04MB4673; 23:+BIWIA/bfyVZYJkHPZMNWJmpxBg1wFMXlq2algaxC?= =?us-ascii?Q?bCILCNbSa6+XzYYFacPDI6Knj7QvbufJxZd1HLAzhir0+wodFfZRj2jzmCTk?= =?us-ascii?Q?xcqTbELFVziMI9hBPcCRtEDsZ12SR5l4dwVphKcyfAfraINsleXM5vvVCoNj?= =?us-ascii?Q?/uUOjfcft6os9T4g5Q0y8DqcaWU0b3fCtyqG1NKJrhDmn1TPhUJ/9/O2Lpc4?= =?us-ascii?Q?X8cvs4i8pBpO0M9metYcSQNl+sjPDvpuaYVNtiUCxEpdPa16W09kIcOR56p4?= =?us-ascii?Q?O6juYpgcosaguNE0PczuVaxQj8WxRr72tExX18xyb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2lNZCOnMmpYcHgxRh6ENnY624ohwHAnMeziKprBrzyMJ0G21a1TzHyJVap15Z9s2Vij4tX5JDEBEADk=; 7:lAQF7Tz948LnR+uTi96KsEeDK6q7NvsbPrdIEBSXwzq6KxPKnJAvdxiRZGn2FplZdXBEK39lJ+oG4jWst5hDZOoSsy59DqUCeWlVPM0lC7puzyF9SCbXD54Pz0IJfJIzsxGaRR+OnbKYfrMIa+ZLqPSSHOFYhIyMxzZve/6Q3dCDRYjMotECrSZ6Vpfb5g4+Y4Nn8AlhBv0+qQZgKYwi0RnwuhwqN2Rgdi4A4Hpgkvt9tyLRPcuHaqQKWGPZit6/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2018 10:37:54.1488 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7b805077-f791-4e42-34e2-08d61c89a08c X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4673 Subject: [dpdk-dev] [PATCH 07/11] bus/fslmc: disable annotation prefetch for LX2 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Sep 2018 10:37:56 -0000 From: Nipun Gupta In case of LX2 we get parse result summary in FD. We do not need to prefetch and read the annotation to fetch the parse results. Signed-off-by: Nipun Gupta DPDK-1404 --- drivers/net/dpaa2/dpaa2_rxtx.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index 89cfd2929..953fed2ad 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -554,10 +554,12 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) } fd = qbman_result_DQ_fd(dq_storage); - next_fd = qbman_result_DQ_fd(dq_storage + 1); - /* Prefetch Annotation address for the parse results */ - rte_prefetch0((void *)(size_t)(DPAA2_GET_FD_ADDR(next_fd) - + DPAA2_FD_PTA_SIZE + 16)); + if (dpaa2_svr_family != SVR_LX2160A) { + next_fd = qbman_result_DQ_fd(dq_storage + 1); + /* Prefetch Annotation address for the parse results */ + 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)) bufs[num_rx] = eth_sg_fd_to_mbuf(fd); -- 2.17.1