From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0043.outbound.protection.outlook.com [104.47.41.43]) by dpdk.org (Postfix) with ESMTP id 177DED333 for ; Tue, 11 Apr 2017 15:50:45 +0200 (CEST) Received: from BN6PR03CA0096.namprd03.prod.outlook.com (10.164.122.162) by CY1PR03MB2281.namprd03.prod.outlook.com (10.166.207.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Tue, 11 Apr 2017 13:50:43 +0000 Received: from BN1BFFO11FD036.protection.gbl (2a01:111:f400:7c10::1:105) by BN6PR03CA0096.outlook.office365.com (2603:10b6:405:6f::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Tue, 11 Apr 2017 13:50:43 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; caviumnetworks.com; dkim=none (message not signed) header.d=none; caviumnetworks.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD036.mail.protection.outlook.com (10.58.144.99) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1019.14 via Frontend Transport; Tue, 11 Apr 2017 13:50:43 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v3BDnjG6000706; Tue, 11 Apr 2017 06:50:40 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Tue, 11 Apr 2017 19:19:33 +0530 Message-ID: <1491918578-4902-18-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1491918578-4902-1-git-send-email-hemant.agrawal@nxp.com> References: <1491725483-6619-1-git-send-email-hemant.agrawal@nxp.com> <1491918578-4902-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-Matching-Connectors: 131363922436728041; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39840400002)(39860400002)(39410400002)(39380400002)(39850400002)(39450400003)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(50986999)(47776003)(76176999)(2906002)(2870700001)(189998001)(53936002)(104016004)(4326008)(85426001)(33646002)(105606002)(106466001)(5820100001)(77096006)(5660300001)(81166006)(97736004)(8676002)(50226002)(38730400002)(110136004)(8936002)(36756003)(8656002)(6916009)(50466002)(2950100002)(305945005)(54906002)(356003)(86362001)(23676002)(2351001)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2281; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD036; 1:Lp7qVBdXAP9Sg4F79BwCvWMMRiCCZ5jD6FnqMcehtGmALB48Brl7bFXTQOykf5+/6Z/N+rLyY2fu1DsKj8y5eauSwoKf86iLOFPY2tXctA4oZFUngDnbTTVY2T2gKMDWX/oWRR1MdOfCu8JY9g/c7FqIFFzGd4bOZDYFutiOOYlsmGI/B6X0IcAqp9hjloxEfIVNzd0+LvtLTmgZRfa/9Uc6aczTZrXHKIa05Us87UDEPxVOClXgP1mw3C6ZQI+GGxEH5UvC/P+QCbG8xPrtnNtWOp6584Tlvz48pJCJNYAkimO43kuI/cRtlofZITbY081pJVIQv+p5E/PHDWznVTfAu/LP5oFT7KPajSruX2btDwXHMwEc7NK/yUA5i4MH1TjKaznl4RbCy9RW5tYrLZYINraeAIgCh5DgeS3yHQTTkgN56SfphjwIaa2xjhSRN0EgA/VcRp1dP3VdapRwCZZfYTuC2pnS9agpCU6hiRgiZtQQ0FPSduORUhMsKiuke0OulslrmKJKvZfCEpIjZEo9PaFXx7HisCffVUcfgtHL1XfpMT9akKDlgCCuIEOAZnaRY73orBSSB1SB5ZaSTh6eX8dKrUerCjkwAufh9T66y0Ca2HokfcCMWYLu7IGNr31w6ny9sI7imu+rWUp/Jxo0FzmfXcMlaeXvocYWEtM= X-MS-Office365-Filtering-Correlation-Id: 5ccf18af-c33d-44a3-4388-08d480e1bf99 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030255120)(201703131430075)(201703131517081); SRVR:CY1PR03MB2281; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2281; 3:eQyjWS3DV+ZhenO+jMgErApdxpQsodsObamm2PxQisTYyRvwpLiP/hCzXnOu3Sj/cGalyGET5tPvJ378SYPbxrJRMVJ2B0XNJLzkpm9eFqpRdgu5ktNSbQWjdpJqGksOFK4XVTTLdf3dYtR3P6m4a4vUKnN4hSBPsEAJsdVkTFzOVuxmReubtYB8CsS3RaIT928bYsfGjM6RXkmmY4zHUhMNndL0Q3Bu+3Z/MYqhEqEZGv1x3RsULW6WpskZyWSDzWKorNdY/01gpivEwnMovx29xkU7R0BtXHHSc0B1IdkuVkht0+yB1/3R7abUixdaSuqDxcsyYnPeOMqQ2/f2+FAZcV4gSS5ndBIAryb+kuHb1ZP1K2T9UcdiF/LBWH+7poPMlUt5niUCJgBVSGnjaVdHj9mPptRY1b3xSVWcGx8ZpDYfxsTEZqudqWv4V0ITSnkGaR2DgkbOzHLt1YnUjw==; 25:iOFzCUWcfvPKB5MLKW8QHLghcQiwQCB/QwLLpHxyGFPEX8WN0XwgXJsd3HB1Vi5HJ0sW7Ca5ikb1NkxXI4KattCdPWiRLNzchU1FPr+gDlrhvMe8qkLJma4qcUz9VO9FCXWkgqBa2Azn294d4vHI1Uic3tPicYdBmZn2NxbwEnisNfBJw2l5RxxTH1Yq/o4MI7wnZLyMOSHDWyuX54I8vicfJxfY/HFy41nO3dFHW4MC/mOXk7cdlgo0P0Fu+LLYDyBDng+VJZav+75o++K2d4MBjDH0xfqlOARw6/ldMJaEnmyCoK36QwBxscITix935MU1O64SIhJuA0eseTYn7J4S19xqGlW3wevioRpX6pCcXlSRv5JwsBkz6OzMcauCyRynpeS/kfP7cICdvO7LBGjK5jMoRsqDTqRwTuyZ/YTMgt8grJT/0jIsf412c3mBSOI6xE2+8R6vMIoLfW+bOQ== X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2281; 31:zAmibVkdPd+jo/0fAAeWaJLk+OeW12c2btbZL0kFq+7I6oBGhqH2HhlQOuaQ7vFcGiL6NPfn9loPK6xUZJrecwMJ925jHchgdrZfDJ3vjpX56acgSGsPoLgrjjkvwH27a7AobHvKRaBEhy5Pwt4tHs1gKZFHOXvNiZQxlxFP4keuI4QeXkX2oDK14V+mYGHbMGGWlBNctcJWEXZ49fe0DT7NSyCvKxJOdamGPSAyUDOQbblCJEhDRXrFqzZiQZoi+PmMDxkP8D5VAtqzHFgQZQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13015025)(8121501046)(5005006)(13017025)(13018025)(13024025)(13023025)(3002001)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123561025)(20161123563025)(201703131430075)(201703131448075)(201703131433075)(201703161259075)(20161123556025)(20161123565025); SRVR:CY1PR03MB2281; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2281; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2281; 4:v+yE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SBTe4ID8tZomOhgxdP7U3tHIdRabv8YiC182CtokbLWIK0Vd4KpUc6z57R3A/hiEN4OeEiS5RoV3QRQtvO2cjvPu9zYQ7GUoxknNZwPfKRySVy4ui0K4YFweuCTg9ht4sXLfGT+Xyk2XA8Wjq7OTH9fcsdZ5xFrqI2eggqfR2+LMx+ljuWq1Qo+kFNCpc4t2tW3kRLKKwxrGgZ5l45clDZspiOUjoKVIMpygtANNw87PLnK/K2p0yAoXTP7ueE7Ca/WkQKftpDegtuqRHhyhUlg9HO4arx3zk0gcHcA0OGF0FrYJZmQ==; 5:hMH7ue8Gxc7+sPAFKkEvtMOW7m9plYnGCE9ySVUTB3UZuYrxejvevCvn8tm+njNySUJGrAU8D9v5KTprOWEBY5vPOd74lsnW8Cjy+zb7k07G5ABooPZ8/QCiuE0/InEnmLfJbzrFJeCZpmsiYk1EabjvOyJQf/kvr08OYHd0txeW/qKii1HAYegEglUqh8km; 24:oQYQffid/8yWaF2sXGdwNRKIoocrBCe5UWimpa0eHx+A1dnlMh2alR+4escJJ5KUUeR3RFaZ2xe1Z49h2cSv2L9Xn48L0xnmOYTrBRS2cnk= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2281; 7:yeV2gIIs5ZoSSoq0XeqnzZlsYMyUwt654/3h8H6fRgmLmsZixMjAPnZOvYFvWkAVWifD0Ky1868uwjBFmxpodt++q68W44A8P/jHuO3GA0/+rN0g5LVt7IWoEgh/Jttb+gDrYOZb6xenb6vTGm9KSEwH/s4g/+XYLa+TmDH2WDg4QSY/TqLOazoqpSMQMBtiJ+7CBUzSpUL5bpA5K7db0WUV+VY7BLdT2wAzDlaw3+MErgs/ysCgA6h+BygZ95AHUf0bNsweiyJT1PNS+kO5aA9ribLFWlauBGVY/VI0K9HXmSOa4whCRgmCIQoSSR9DX4ag9xwHYstCDOuARrUJ6g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Apr 2017 13:50:43.4700 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2281 Subject: [dpdk-dev] [PATCH v12 17/22] net/dpaa2: enable stashing for LS2088A devices 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: Tue, 11 Apr 2017 13:50:46 -0000 As the hardware determines which core will process which packet, performance is boosted by direct cache warming/stashing as well as by providing biasing for core-to-flow affinity, which ensures that flow-specific data structures can remain in the core’s cache. This patch enables the one cache line data stashing for packet annotation data and packet context Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_ethdev.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 157a2d0..9cc8a46 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -277,6 +277,17 @@ options = options | DPNI_QUEUE_OPT_USER_CTX; cfg.user_context = (uint64_t)(dpaa2_q); + /*if ls2088 or rev2 device, enable the stashing */ + if ((qbman_get_version() & 0xFFFF0000) > QMAN_REV_4000) { + options |= DPNI_QUEUE_OPT_FLC; + cfg.flc.stash_control = true; + cfg.flc.value &= 0xFFFFFFFFFFFFFFC0; + /* 00 00 00 - last 6 bit represent annotation, context stashing, + * data stashing setting 01 01 00 (0x14) to enable + * 1 line annotation, 1 line context + */ + cfg.flc.value |= 0x14; + } ret = dpni_set_queue(dpni, CMD_PRI_LOW, priv->token, DPNI_QUEUE_RX, dpaa2_q->tc_index, flow_id, options, &cfg); if (ret) { -- 1.9.1