From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0065.outbound.protection.outlook.com [104.47.32.65]) by dpdk.org (Postfix) with ESMTP id 6C9BAFA66 for ; Wed, 15 Feb 2017 20:07:39 +0100 (CET) Received: from BN3PR0301CA0076.namprd03.prod.outlook.com (10.160.152.172) by BN6PR03MB2947.namprd03.prod.outlook.com (10.175.126.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Wed, 15 Feb 2017 19:07:38 +0000 Received: from BY2FFO11FD025.protection.gbl (2a01:111:f400:7c0c::103) by BN3PR0301CA0076.outlook.office365.com (2a01:111:e400:401e::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16 via Frontend Transport; Wed, 15 Feb 2017 19:07:38 +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;caviumnetworks.com; dkim=none (message not signed) header.d=none; 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 BY2FFO11FD025.mail.protection.outlook.com (10.1.15.214) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.904.16 via Frontend Transport; Wed, 15 Feb 2017 19:07:37 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v1FJ5fM8020023; Wed, 15 Feb 2017 12:07:34 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Thu, 16 Feb 2017 06:09:37 +0530 Message-ID: <1487205586-6785-39-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1487205586-6785-1-git-send-email-hemant.agrawal@nxp.com> References: <1485172803-17288-1-git-send-email-hemant.agrawal@nxp.com> <1487205586-6785-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: 131316592572770786; (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)(7916002)(39400400002)(39850400002)(39410400002)(39380400002)(39450400003)(39860400002)(39840400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(47776003)(68736007)(105606002)(50466002)(8936002)(50226002)(5660300001)(189998001)(81166006)(81156014)(92566002)(389900002)(6916009)(2950100002)(2351001)(53936002)(106466001)(33646002)(8676002)(2906002)(104016004)(54906002)(97736004)(77096006)(356003)(8656002)(305945005)(5820100001)(36756003)(110136004)(86362001)(23676002)(76176999)(50986999)(4326007)(85426001)(38730400002)(2870700001)(626004); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2947; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD025; 1:RrjlUyPWV8xgbIBNF0pDhJA26nXIR0j3I4h83g6Nj215h0wcQUMnQRzCEmEZOY+hTjv1FHuY8i13Iqd9T/q7+G6lutT3pJoScAYF6Z1Xe7OWj3xp4ka1M6aPfFyEJwph2Df5yZUWTTXv4+aZnRFevBEFtPPdcS+V77yYKXiwalrSmVQ9cHORqn7CG2cxx5Yu96IgpZCTUCYMh+wnaqhnvlAaxQProPDzRhTB55ZdxhjyOunBuOGhqlF1MS9rMqsPq5Agj0QYicD60pgYeSk44AmlJrYZ2sj3WMmo7HOQDRaZanbTxCOBAXRSOWF550dJuYRL8a5xKMv2Wxnrz4CuBUVF9xfJU/psfY1bWLeK+xhrQ313VMTCbb9HBhw1/oIv4mzFXm/UkWSFYKUw0/G7cm5u4pLyuLiSDTYU63mA116dOS25QNACMrXDTLvVrWQJqoicJGHY+uDU81xYI222/UkhdqEQw+vWIFpWtW0EH2Ta3P4keqMjHUYAdswnTrKrEImFRepTF9Wx26mthlBUrHHc3LPuwE5j4iDuFdVVsQ9suN29RK+r36nmgRFD/fV7Ui5pivV166tb+9KBp5ZWHxziltOVqrGAHNWXynAbGVsxCX06DJNARyjoxxQmvooaaDw61H4J0tRQyc5ECKBQ9w== X-MS-Office365-Filtering-Correlation-Id: 9b153411-4c1b-4aa6-29e2-08d455d5e7e1 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR03MB2947; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2947; 3:1Em4IZ6m7/dsJECXBHuK4Le8tkxTO0F5tfzMjk5KTHuTfe9zijgKIVx8apFyAaWs4lTbBHY0RfAtn2OMaO0C082r7C/GCtCQT/1bCuUTDN0A0MT41es1O1a1N/e0P0tUBagCfSj5ahWs3u40piLYjFUSZJk441IXrLT7iUNS7nOJRK8o8Z7QCloRlbED+nMTf7cPtaTr78Ue6Dtkksp5mbwV+9d2oN/k5tm86Hi7bDDgVUZ5UUcfkXJzLtapwZEgOXJIhaFK9Zn5I+kh0Ye3ZM8se3YQoiF2Cp74JJvmmqTR84pu8N3NDkMevG6senaGnlCVbp+62gSSTfwWdOh8pFBV7ITQ5tBvgMYjT4O+zPBHMrpUZM5rIT+K0JeQ5Eu9; 25:p+QQYDmWSn5CBABlG/Yh0noARCxevKYHkbxRIouKLpU09gNmKqgS/Y3eIhfUzRMBCOUW+Aw4Fi/zRwyqmCjKFM9JPHeIAsIBbnwflWfu54GHB2Wcjkg3bnxkTFcP8utxEyhtS/NlQ7CGXT8XbPYi4IbWcrH4+FiIE7nJIYdZKJunkMdvrk0qszkQWM6KvhIk0/Mq3WCZq3p+hvKU32KPqe/G1rqerNsreGW+AoasGkcYLDE11ojZC1jKUDaQNoPY9IOpcQmtqkCgg3rg7VlwZtPRmKwZKgGPAC9PbRChW+hO0UDXCw/VjCaNoES/NnNIhQbbahPhAvTMEnMwCmw5fWqOKIovwA5AAVvbWxSfGfLuehG2houejKAxTtghmEqII+nEpdK5rMjbNR/jYXLvzUIyuOFJnA9ur0emlQ0811WIizPs3CoGYXoFFqs/7eWr2D5sQIx2tEwLkH15Di5BvA== X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2947; 31:dH/jPsvgyoskw5OBGtnkXK5iBUVYNwYX0TGIbzp09OiQNEFa0XWtGR3tc7vkfHqGfLet3hsAN4Q9z1CXMWNSRSTknVTAUzrMK7yUidQ3cRathxUa4fY+GORaH6gwiJr27HP/cGH13XfgHzcDGbAIa8Ma/9NapqxH0JpfDR86Y12SfCmvY4E7vFOusbq77QIwqDOYonnLgf2raW+JIIbO8fDxgYmtO6+nSk6Y9f679+IWNys50/epmicTaq/I1D7mv1eCFlO01FLPbtNuqsNPvA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13018025)(13024025)(13023025)(13015025)(13017025)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123556025)(20161123559025)(20161123563025)(20161123561025); SRVR:BN6PR03MB2947; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2947; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2947; 4:rtSzzo6TzGUMTYlrUofznmAs7vmccTxw/pc21f1H7X6G1MetZGkmhndwQXsZrSXCB4W6/BX9knxgAhGFdbITbpDPSs5NSRK3ovkGFlQCJtY3C8X4JlNBABXQYOvT68n3leRaA9nwK+3diY/cz/vh3zIgJ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qZTvIPrgYRHdsyMeMufnVFT6j9u1urWJ/kBJHTbdgJjlVjiG0obUjDYR9C8e+B+7IHA6ofZ2kaGFt6HTULdrcn9bORiqSLlc=; 5:lW1aFHFNNtA4kUT/KblC6Q/MxXm8mMBeB9crLW8i7G8JK9pnECSnaDZWgLEScJFbzL9YZceo2ISysBBEwMXbdyFqlhyt2lLuacH6iKwiz89sOoZt3gsdR3cwrfumLbuRIbIHd/p9zRzxbbscc3XMnpPMTybGV2EG/c+YToSWIQLPk7Rwd+ZdIRsPlVdMQGn6; 24:ZDlo5RfOtuOxaDPMnt7bh/9HmDz5s3sEfsqmR1hyoyyiVZSfvsu7ONNyBugbblCqTytjYJHVlnizVok29wD6A8l9xoc2AfdjF6LgZ4Et794= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2947; 7:rxp1RARlhiKX/vobtqB6gloemtzZQmuEZpfFja9J9uBJ+GXT/xfFTgp9rSIEMwaI5tOjRiTr6Xqo8x3g8q0bUFszTNEfqARgygUCDWpv28N1PWv4RT0zH0faoXxJ4L0zhytKyJZyQUEasl1eJzCxa6HebUfi9x356Wg3xAoLWLk7ZfmwoOUIZjEPLUxc86dqVgXDHAVW7OgVLFeM3f2ZB9RoykuHYouF+MB8qyV7H1K6xQVTmn7KgP/I3w04bCssyvk6csXP5QLrfwJlxfGQxyZRIwy+oTTbksmuByXsmOxOqHcaJBN2nEYpsIqtWRpBpT9mbDv+xL2f5R+f/uVEOg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Feb 2017 19:07:37.0742 (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: BN6PR03MB2947 Subject: [dpdk-dev] [PATCHv7 38/47] 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: Wed, 15 Feb 2017 19:07:39 -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 1d6ae36..64f41d9 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