From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0040.outbound.protection.outlook.com [104.47.34.40]) by dpdk.org (Postfix) with ESMTP id 7321FF97E for ; Thu, 19 Jan 2017 14:25:51 +0100 (CET) Received: from BN3PR03CA0099.namprd03.prod.outlook.com (10.174.66.17) by MWHPR03MB2478.namprd03.prod.outlook.com (10.169.200.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Thu, 19 Jan 2017 13:25:49 +0000 Received: from BY2FFO11OLC006.protection.gbl (2a01:111:f400:7c0c::155) by BN3PR03CA0099.outlook.office365.com (2603:10b6:400:4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Thu, 19 Jan 2017 13:25:49 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com;nxp.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 BY2FFO11OLC006.mail.protection.outlook.com (10.1.14.199) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Thu, 19 Jan 2017 13:25:48 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v0JDO4f7015351; Thu, 19 Jan 2017 06:25:45 -0700 From: Hemant Agrawal To: CC: , , , , , , Hemant Agrawal Date: Thu, 19 Jan 2017 18:53:56 +0530 Message-ID: <1484832240-2048-32-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484832240-2048-1-git-send-email-hemant.agrawal@nxp.com> References: <1484679174-4174-1-git-send-email-hemant.agrawal@nxp.com> <1484832240-2048-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: 131293059486657741; (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)(7916002)(336005)(39410400002)(39400400002)(39380400002)(39850400002)(39860400002)(39450400003)(39840400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(5660300001)(50226002)(8936002)(81166006)(53936002)(8676002)(81156014)(626004)(68736007)(50466002)(104016004)(50986999)(105606002)(5820100001)(106466001)(76176999)(356003)(36756003)(85426001)(2351001)(305945005)(110136003)(2870700001)(92566002)(23676002)(189998001)(86362001)(2906002)(77096006)(38730400001)(8656002)(33646002)(4326007)(6666003)(47776003)(2950100002)(6916009)(54906002)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2478; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC006; 1:9GmwiM/DRvCV98cTsdEuhDagCjLnlMUtRmfdbLJuhHJKCcy7u/PXCUvhBXJRQAfJfwMmnHWL2+G5y+GvF5oJrR+8QCLVmoYQmEhQXcRO+U4v/6xskAmfKJYqejBz7jbqSW6kcRI4/JJ31QUodYzSQvqbeD2xzlh7COkV9qOBEMB/QR9xJPz+htLeHAYJ57LaqZ/stPlpioxQZxIpuN3zmp/6NKOc4tzgeWikkFRAIm81V0ZlH+GrBawwmZZEF81ynpPw1bSD8nV3TPBmQkdlUHJ5PhEOh2i7G6GsTcuYh4JIbJb8Zoz1i9HPkIhaxhonUCcxvp5TP4i62Xpcm80y4lS3U9LP3qSwKmZIp8KtzQuc7uUzC0Fu3cw2mlsexlCEVxPzOaWXm29RUMVRBEGzap69tqbov1pv5blYv8ZHyFjG0kwfgarzqmtM9E9guvdsLmOKWKYQV75l1YSeHzbtekI0e5KEimgNdzjz5YcpGcV98EV8od3lYGy9slKw8VaVqsEWudDK4suuWJYQrGti8QXaZ41KNiDN8262qHHu5B4DSKrsLB6ac6zbNDjczUNMiCLHqDFa2DhQJ8D2557q5dqxBMv/ad+M2wTWG0ZKaP08WACVhyfJmDYZfkkmKkq5+0THC/+ZMx4ernvNx3WdHjXwpT+SkPi2tiy4xBpnZDhoHWetP7LrN+n5IhpYysnmmD4CDK34C6OxpNqWHvsGtnlE/TkyOwydk8lRTO46UFsEhMPGp3fpDDV02UMNhtKT X-MS-Office365-Filtering-Correlation-Id: cb1bb4ce-1243-4317-c0b5-08d4406eae8e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR03MB2478; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2478; 3:jV6RoQ17irLafW0grDpjWrGhRozvNckS5Kr3Iv5+vi110ZEJswud0jDmuGuRGLKc3gBuXglKEzLHnWs3LPRuYM4q3WETKdeT2zKjUzSCnBXI+qT/jHZpT/y/1Yy47YKhmlq0q1cyq9NvHiU7uQ7FvNvAFhvnhixTt9//J5jQH8NcIfa0a2ukhLFiW+hWhkeY731Ffh4Xx/oM7nE2YInGcL27302RKfbAEyZ6QItjknv9FZX0HgYWeske2SOcnipZvYdE56C3eXlnTaqtl1n2jvJFZ4dy6+TvqCrx3mY3K3c+jW4wLmZM9xqNh1NhoBhQ1Mit5+xc85icASpr3Hoz283PUtyDIWMO29YNnEZsTmcgoXJ/YNdFIHU8NqVYOkji X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2478; 25:qOI+Q8ZzutC/ZxvjkxEmj/D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exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13023025)(13017025)(13015025)(13024025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123563025)(20161123565025); SRVR:MWHPR03MB2478; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2478; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2478; 4:CcGxqZwUjI4XATsiSyWiwM+cxH0EzrcLzqL/a/s3t6ER8hZUacCocrqOKQ+ocuIiPq/l9K/8xy11UXiOgl8jWtjUVmaUjpbgRCfMaF2KKm/NvNO49CEMhMLuMrTCvDj9+VEjQXoziRpjgeqW9PFBeatV6MwSlgTTs4beHJIEtBXBzTsVneltJWGR5iHPyPiloQ5K0Iru+jz2DvegJyTEbvZ0/TOHFOfvpNT9FEFNEuin/IrMT0Ps2CRKR/uEMmIUcRb/TBcTmxu21ZWycWb2H+Mwz/Ru2j+y8z2+O+28ZQboLs3RS3MQU0PkTu39DGB8txgYDIKFt10WhfWuLGxEHoJxB/HbtH/Jt9eryJKHtOfFUcSqwPpOLWh1nGRKqmexNCG6wF/ZRhHRtzRQYTn9B4h79stNhUHBtlwUI7qtJy/0xi5tVf9APdn0S/DIGobRwhKfAsClshHdABdjaQe+LCjM1pqQeNc2KyNFJ2E7UCp33hjT6u4iua7jcdu9EQsNnuM7af6ttewK59Wxs/4XYZXjH8SQ1delc40UZHrl+8UpPsDsU29wUbA1oaQrqRUICxa3VyMBMITleYcTh/kqp4/Kdu7QhwpEoP2d0d/2BxeDa/R7riA6jjwDwmARtADP+CFc04LaJb11XmAD9Okw2gG+BHsB7HVlz0tXXGCIgMA2eYHcnO5WJa7AuleXZC3xJ1RVUGBUNwsp84Favu/aT4jFm5yIi/cXe7XfOCEUY3xbU84mi/EvEy4KTjBeEuLs X-Forefront-PRVS: 0192E812EC X-Microsoft-Ex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Gk2Yz89/DVuMHP1XrgNHd2aVS3alB9Brm399qu0WhvwQoQG/Ho04Ta2vTqR3M3djxyrfIqXjTp7nK191SzxekI/EwvclpAUTl6hos9c2FwoVFmX49sDXVJTBEfEgXOlNMcDUq3k4KwThKskrXz40ojDGrmOf6m+IsCc3azsW5+M1mL0+jigk82A9tUsVG0FKF9VWSTv7ZiddvAisDV1gydPxCGpQjVhEeAtiq3z0DakDRQC3Op8VnmQrltbtHSbW4mdMwyRv5TvHwxyR1qL2ZJ/sOErsIKX3NpISFxyb+kncwn175sevsYhgJqMHHZHvVSnVCALppzrLjWB7nRhbQLoHf8ZxNg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2017 13:25:48.3381 (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: MWHPR03MB2478 Subject: [dpdk-dev] [PATCHv5 29/33] 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: Thu, 19 Jan 2017 13:25:52 -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 a9d5f10..2cf395f 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -278,6 +278,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