From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0081.outbound.protection.outlook.com [104.47.0.81]) by dpdk.org (Postfix) with ESMTP id 867161B484 for ; Fri, 12 Oct 2018 12:05:53 +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=lSlO6MBEWsHdPA0rw0rrk62VnA9doBzHz/4LKFWRiMI=; b=Tb8ntd0dMrvjyfT7avXc9/Np1heIZKVNhCz+TYARP76qOFxSclNCld/Z7eLsPmzIfKWnzDQk6tffNAK08JkrVw0iTyWMaIvrSZYR+w1XyTDAAE3I+G+lKdti2ElNzKPGGXVsIDRRCtJmyi4ab45tycJusO0uszOqrlnsrNdwoPA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shreyansh.jain@nxp.com; Received: from Tophie.ap.freescale.net (14.142.187.166) by AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1228.25; Fri, 12 Oct 2018 10:05:51 +0000 From: Shreyansh Jain To: thomas@monjalon.net Cc: ferruh.yigit@intel.com, dev@dpdk.org, Nipun Gupta Date: Fri, 12 Oct 2018 15:34:19 +0530 Message-Id: <20181012100426.29349-9-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20181012100426.29349-1-shreyansh.jain@nxp.com> References: <20180926180440.31726-1-shreyansh.jain@nxp.com> <20181012100426.29349-1-shreyansh.jain@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0004.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:d::14) To AM0PR04MB4676.eurprd04.prod.outlook.com (2603:10a6:208:75::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a3f79cb7-63bf-4260-3497-08d6302a4b07 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB4676; X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 3:ZGpRXvKLpp3eEKTOcDgi8X2JdC+0uGsPUyv14mcV/nTikLMpc7wdN1y8V8/1/1j1UCDS2q5t5GnNWShK3xk9fij7/hMM/OZQa6qS24/Cch3//P4xDbleOv/wRc17oLPvgzkadoeJt43aUFWejDm4gyT1ukBswLmU6RFxFhgV0A4kqfWse+erGhxOwMM4Omn/L5eAH41wnLvfLbRWjXWQjnib/ZPJhb8fMM6O0pKgl4nh94ZfyuzKpH6rD75DIRu/; 25:ZqWjLldmcMjWwiaBAfuTnxNBRdg6fbu4YE5rtdEAC4o0aYwLsgexop2ua8LNMKkJ44PCq3q+JTeYpOBxapGkziYekmEecdLLOCJ1RnXhSFM6IJ2yTA8l/z30kkoXMnCAHCgqjHG/gBy+cpqG2/4X9g/74Q1PaOYjJXBTGLP+Yl7tkdc7hd2dTozEOIFMPojQCCNBZjRmp63VCNDcIIQgz7g4aSWYFI07nkQAYf0khkFs9a4sM7FZLL8USzYmJywRr5ul8JkP8NcXZ2Xdpm3YH1GQZaY6H1z1Za882tP0wFiItcCu9lRrqg1khgIMAfMfDOHFeYvYnSlOJtLBwFEEfg==; 31:lwDIjlc3qCaIDUiSw6/QkuVtKgVhjTyg2a+6kfZjtmkrM3hy2WZN+FPj4EBO+2rbq+Ef2z3+tBRpgQfC4HNo5Dv/MzVcawrbH6PLToc8IGkEnmZYtsxgTVlDZo/XRGKVADnZmwY2aDisyAo+vp0jGmrK7J+tP707z/UDCPcqQXeRUqvND9iUCWCWiTAgDzZdaPCGJKwB7wAOZ8E9qIPI3r+uJbA62L+O/bWO8LW2Vrg= X-MS-TrafficTypeDiagnostic: AM0PR04MB4676: X-Microsoft-Exchange-Diagnostics: 1; AM0PR04MB4676; 20:AHKbN/Y6xaI4nemcjjBSCaZ7fvc+SsFD5ty15UHT41efAOykKLlQQkT+3IptKMOGhHpuesLRYeqTEmlN4J/6FRbJP5QTcJvjabxFZQsMX8aSR1A3Q77SE+HxwTBPpFlfDtLjBIYXKwLv7cswbZZA7SKn+m+cIjCAMrfxluRA/qSUTvJh44EPTY8c6Hrxyif6pEh5v34sCir8A6w9GMuD+Ux/FUp6WL8iGIeBK/rhJJE5yOo2w5LN15aKZAC5X5KC7q3t8KRhXMYmZyyQgA+f5NTY6fn0uJp5lcHcq2Xna4/knZyvcFpGv3pDjOuSnyaTw42qjXpq0KbCp/7JKQbW8Rk9HFTnLfAV7/1deY6jrRSF/Vgef99pD6FuHC9BlK8s1mbg1AlqNXeHprKxQLl0kjQIw9LlCrpr5oxWUclTDYPb311ywwlryyqQUWAms0+oOOPoQkoxEumo8bOf2lIC8PMJkqXy1mDJBYRnbQEdR+SsuXfIYgbefW7/WbFxBa4O; 4:LoUcstICBNg1pL7WJBSnxxSy2LILJiFl4ssFll+QP1y7nh3LkwAnx/9rbadacq4azo4WaHSz5g9jbCetnrPIR1tuvMHBqS7Jx//b968AmkMR1IRyqORA6pyhZQXDDPOJfvkp9byBT6hxdFPX5qZT/LDmhJ/WX/9BUNKYN9++b6KKwyaeDYGFZm0ePCfCjbeWqNzvwjE17QTK/YuvuJ+OAi6i9jXI+6QMpoTEennUrlmHw2kRNiJbBs0BIR/x4l1AXegYp6ZSo5Bz5oDuZUaP7D+xzwj/2dk2gvAz8EOE57AaE/nM2Ez+EZ2C75MvDfu0 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)(3002001)(3231355)(944501410)(52105095)(6055026)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051); SRVR:AM0PR04MB4676; BCL:0; PCL:0; RULEID:; SRVR:AM0PR04MB4676; X-Forefront-PRVS: 0823A5777B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(396003)(346002)(366004)(136003)(39860400002)(199004)(189003)(2906002)(52116002)(16526019)(14444005)(53936002)(8676002)(478600001)(186003)(386003)(446003)(105586002)(7736002)(106356001)(6512007)(6116002)(86362001)(3846002)(81156014)(50226002)(68736007)(1076002)(47776003)(5660300001)(6506007)(8936002)(78486009)(36756003)(316002)(26005)(66066001)(6666004)(25786009)(55236004)(81166006)(11346002)(48376002)(76176011)(44832011)(2361001)(956004)(51416003)(2616005)(97736004)(1006002)(50466002)(486006)(476003)(305945005)(16586007)(6916009)(4326008)(6486002)(2351001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB4676; 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; AM0PR04MB4676; 23:NV/4T1G5D3FcszzyDAd0WGBVnri2MeeKe+Ov1GCVF?= =?us-ascii?Q?1xl+GbFyn+ga0RXtla0HtdNjpv22HN52lhkbXGA+26dnRB15PUn3UtUrdRJv?= =?us-ascii?Q?xoqhHlrmwUCWpqI+9KWZM0+34NxbCsXKK3puERXYpjS3fsijZqG8mndBNhew?= =?us-ascii?Q?FtGPtrhCxpiW8dug6CX0u6YYlXWdUWQTMNayhggZLNJtG3pZHOWXXF/hqWp/?= =?us-ascii?Q?V1tk876er9Ff+K6K0rNpfqLTlUKMu6TZzrYCEQORiAS5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/yp6bfujiOPj5ln3BIgM2cpZh/7DwbmW5x+S3megtfdbiHHXwUfCkNyvMCzXTM9g4GYpGvmLEV9baPfZjZt1sfyUSrxIWxC9kbCB5kEQukoWSH4jB9BKkWzkQ==; 5:j4lI7tpz70MI1VY31GBcTBwHJ1v+fq38Po9vI/8mcOpJ3bzTnZ4XHHEITfjl2F3+aHGIQqsVblxjfdoLH54byUzghqGRmq+cOLBJ79IRXGrwuiN1BuvH2ZC1oe6aHrTHK5EKNFZEp5tIqrKRayEye9J3wcsWfsnG1VqLcW7POLc=; 7:1F4aYm28izz/hf9Ho4kBlHp42BBguKyFB1u+/A5XFU9JupDODvROvcDI7lGiA/WhkD/ca014O0dv+UdBJnVlm+ISWOuhK/UzSdfKOnLgurbVcP2Bb0M4rL359riJIdhbqikEJU9DuwRfAVmIg6USSI/ZUqtUkV0LYSLNwpEh3OH6oFRs6rcNFgOTsmcoMxl+h/5+tr1LVA1709LeDsUHK8lpA8GDgYeEnGF4iZ2FNMuWULNSE6v7XTzIicu/QInY SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2018 10:05:51.5200 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a3f79cb7-63bf-4260-3497-08d6302a4b07 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB4676 Subject: [dpdk-dev] [PATCH v3 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: Fri, 12 Oct 2018 10:05:54 -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 --- 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