From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50087.outbound.protection.outlook.com [40.107.5.87]) by dpdk.org (Postfix) with ESMTP id 344921B49E for ; Wed, 26 Sep 2018 20:06:06 +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=WdI7eibw8g+qgBPcdq2UCGSxKc12RDA6Q4He9xlnMqtkaq8AjAaNTYm+v9y1RTkJZkZ2MmvaZgry8Pu02I5fC6eLmUquTvp3DX6nw9AOBMadVJCu69n2GJjD7dwjyp4HE158JPC1nGgSa6h06WqiVKlAZJXsFXAQSyFx9sNk8+E= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1164.22; Wed, 26 Sep 2018 18:06:03 +0000 From: Shreyansh Jain To: dev@dpdk.org, ferruh.yigit@intel.com Cc: thomas@monjalon.net, Nipun Gupta Date: Wed, 26 Sep 2018 23:34:33 +0530 Message-Id: <20180926180440.31726-9-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180926180440.31726-1-shreyansh.jain@nxp.com> References: <20180917103631.32304-1-shreyansh.jain@nxp.com> <20180926180440.31726-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0014.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::24) To AM6PR04MB4679.eurprd04.prod.outlook.com (2603:10a6:20b:1c::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9ef14832-48b8-4b0a-8fa9-08d623daba21 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM6PR04MB4679; X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 3:PWC+VKUzs+wg9H4vN5uvvGnH2+FIxPiWmcTSbZfbD5E+NffR3JUMYqMxtWScDaRdgaHv+FItXwT50Uo0jYvlAWL1rTUIatiSZCbBPZKAK2hDhjG5py5QQL8PN1lkHHnhZTxX+YWvmDYzMrYN8AtUSid/YR5NEYYqESVo9WOY0JtquKECVWWj74A2CQLjR0iWqV69UFL/rdM2MK83edXG9jA1dZXktr3cDpPYeSfmwvUzW0NYLUuaAs11t4OrWXu+; 25:+A9oQ+WNEXfJcpbcDe+Q0HwTvqINWl4kSH1B5Qr9WzwNlZdj2RPW+xS6/iVfPq1h2649RAsqrXt/OyWKOyUXzDct0teCrfOjZCwdOfm95K4cNJiCcfCsO3Kzowz/dYdniFcOXLpFxq8HYEXcjuunCk8zhpf6L3QViTDDGYpOFYkdKqvvE+P0sYsCUX5muUx43CNKzzqE7Po6qCLXEqliJq9qfztQ2hRdjoPbs6cRLAtlHQ4rfLJeWjJiAkPpMb2/5R58Cge+ZUno4/bBRALaOx0/+2W9nCyjQgwQ0hxXAa26L+ycAQ3XI3iHqqbTgUBJvuprpiPULJVYC9yu0m3MfA==; 31:x6lpbB59QaunGhNYcX8unwyT+BzIJg669qYQJBT9vVkotilXoe7oNB1yF0RaQmTQEWh77GjRpZL3u21akibJqvW26sDsDupAwehS66bchTeuPGmVOjVR1tSNp5ZHTO4YXlRKkrhV2u3NuGUXCuxIyplJEuWnImhdFq79UcGEXcDkQmyYwOTmnBcHVXnQ0xVIylPKIt2V2/Lc/sTuQ0Uk/h+wAiiXhpJBSUNwmogNPwg= X-MS-TrafficTypeDiagnostic: AM6PR04MB4679: X-Microsoft-Exchange-Diagnostics: 1; AM6PR04MB4679; 20:JRQTAdt8bQwCLxcNBiMNJ7L4xofJNSui+mzU5Wd8zpzuUy2u9gKvbYp8wBI2VKFz1m00Ok/Odzyg6Io0yeP4m/KqNNZC+I8Wsa0J1W/EGFB6cuW5sc+wMRLe47P0XoqUUXmJuZSNX+T6/EZU0ZR2KMMAmzWcpUeMjIs7FU5yrvGgbX2KAiy/z4evp1rSpMM18mcM0Hm+JdVHGoEoIhxNHnOUuMHlkk7yzI2vF/Bf/XgT5daXE57dQwbqXdFSFejnNd7FEDu9yQ+tKUt2HNC2Ebe3CJeb6VnJoRVB/RMw9lxEQN5kG59jpEnFHE05g23f6NgH4P4kviLe673M5ispZzYnNVWlqga0QQT85eJ/y5qz38YsuaYZvGIEOYN0B7CWbloIFk22zCIrPTeSOalfwC/iNdvvqdpE1GBBouEmP6Y4n2zAItRuJXv8sSNXdJvGFwC+8nhgOWnmZ059iF21+xrLs7CHYVtpVIqRsYvXbHvBOrd9IhUUwdPJkzAi/8b8; 4:2s3xcQBPUsQQVi+Mh5iZFX5COFR+qyzU+utXCQh/4d69Ip6lXE/jlHdGmJY6w8o+MJcJAVcTZvD6JN+gOl2RjzuJNOhcLeOp1sas7mhOLZd5/E1OokZHnuYBszksnH+WDhVzfdUOC+rUFXZT/gAW6v2r4miwvWomDspfXidPax2G9kBnO4f8tR/LqPF9zglmYRl8pPnDiSjvf92xlbK2C+rmxTiAB860AFv50SkWaWkwdnZqJH1pZPmya9EKUv1xLgkXsXpctAB+DDAgygYb/jctOn/CGhCF8xWPQyTqHN6SA5n7guiX71rTCPA4eKVw 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)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(149066)(150057)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123558120)(20161123560045)(201708071742011)(7699051); SRVR:AM6PR04MB4679; BCL:0; PCL:0; RULEID:; SRVR:AM6PR04MB4679; X-Forefront-PRVS: 08076ABC99 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(136003)(396003)(346002)(366004)(39860400002)(189003)(199004)(11346002)(50226002)(446003)(47776003)(44832011)(956004)(476003)(106356001)(486006)(2616005)(6512007)(66066001)(305945005)(7736002)(6486002)(105586002)(36756003)(86362001)(478600001)(8936002)(16526019)(81166006)(50466002)(186003)(26005)(25786009)(8676002)(55236004)(48376002)(81156014)(4326008)(3846002)(6116002)(1076002)(6666003)(52116002)(34290500001)(5009440100003)(2906002)(16586007)(51416003)(316002)(97736004)(6506007)(76176011)(5660300001)(386003)(68736007)(14444005)(53936002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR04MB4679; H:Tophie.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; AM6PR04MB4679; 23:k1sGvOO64IpPO7k9C/iskSm1YumlxcdUTOcQpvnkP?= =?us-ascii?Q?erd9K6IUOimsTHNKDoTeaE0QSEKZpcmNMnnoXQ9V+DgjZAhHoLP++qV3nvdm?= =?us-ascii?Q?Nw19DsOdaOQaCDy+hti/XStE/0Ew3WwuskP5pKQY5HlmMCmcwK5SjtJQNCGq?= =?us-ascii?Q?UoTyxtCaAHQ7iOCKfAh+KJI8Pyb2X79HBC6k28kwcJdQpvJ83RX/pcpH14Ps?= =?us-ascii?Q?F9ocbe9xDI25bvxYdaGYPJyOoFM67n7kPY6B9zaBNzXU2T/7vzIx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oaGTSsgmJf7Z6Rzvy6b0C+tWmM9mWJS4NeqlepYowq8SWbWrCttONHPIyA==; 5:IP14TtYsAJ6mHaJW92LoEkzGKoDf2PHM6MB5m1IhcyTl394bldApg1jsUh0ZYgDbGbKfQBMuZzXLaJmYkco3lmtIPjHMsV0YYcaNyF+njV6f9tZw5DqLqbADcfF5OZlAIwpyEetq8nkXDNZbz13aln7h201v5mXqgDqaLXju1/c=; 7:3AqD8pdJavIPnX4kGS3zmnjCtI+BcpsmtGyBne3DBj06Koe0iDq1tf+wXH73f7lrBMIvMt+yQkw8V4NVdT6unoH4qYSkfhXBCenqVTNYUI2NoqJ5tBXGK5eW6T3JG4gvLuIxeqPKMWshOzmgG0hmH5wkpT7efHhqvecLdiT8y8SnaKFhRsg0E86UtNAgwW96OwSmHPQ/lwSv+RfA1ydRFXitN5WNIHozwW8mVUQNY3B9Ld7pHWdRoDaLDWaAEnhE SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2018 18:06:03.5702 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9ef14832-48b8-4b0a-8fa9-08d623daba21 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB4679 Subject: [dpdk-dev] [PATCH v2 08/15] 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: Wed, 26 Sep 2018 18:06:06 -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