From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0074.outbound.protection.outlook.com [104.47.36.74]) by dpdk.org (Postfix) with ESMTP id B07CE6A6E for ; Fri, 17 Mar 2017 14:09:47 +0100 (CET) Received: from BLUPR0301CA0004.namprd03.prod.outlook.com (10.162.113.142) by CO2PR03MB2360.namprd03.prod.outlook.com (10.166.93.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 17 Mar 2017 13:09:46 +0000 Received: from BN1AFFO11FD022.protection.gbl (2a01:111:f400:7c10::185) by BLUPR0301CA0004.outlook.office365.com (2a01:111:e400:5259::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.977.11 via Frontend Transport; Fri, 17 Mar 2017 13:09:45 +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 BN1AFFO11FD022.mail.protection.outlook.com (10.58.52.82) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Fri, 17 Mar 2017 13:09:45 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v2HD8ped021077; Fri, 17 Mar 2017 06:09:42 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Fri, 17 Mar 2017 18:38:39 +0530 Message-ID: <1489756124-10805-18-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1489756124-10805-1-git-send-email-hemant.agrawal@nxp.com> References: <1488545223-25739-1-git-send-email-hemant.agrawal@nxp.com> <1489756124-10805-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: 131342297857638138; (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)(39860400002)(39380400002)(39850400002)(39840400002)(39450400003)(39400400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(77096006)(6916009)(105606002)(2950100002)(189998001)(356003)(23676002)(86362001)(6666003)(106466001)(76176999)(50986999)(33646002)(8676002)(38730400002)(8936002)(47776003)(4326008)(2351001)(81156014)(2906002)(50466002)(5660300001)(2870700001)(53936002)(110136004)(36756003)(305945005)(50226002)(8656002)(85426001)(104016004)(5820100001)(81166006)(54906002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2360; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD022; 1:SQGAasBYssX8YUXo4RLsGulLf+cQBJyGXOxJseqvamnY7M5gyFDBLpTPxxyqy0KvFj1O5+ljvpD7Y9MJ0OOeF2PpuAbcoVYgHaCYpnesbzy4p+4qRaMyOEZ3qAagTToeYDZIDfCFfEcko8GYGro2tzQLKASmUwwMuf25uygt4Gn6jTtgDECuwNJ38zkQ/JNZZoZLcEs1lHnj0Rngsipk5ybXc1sdzZfDpRPn3TkQgynBLSDltxG9HMTLM+Qk+ArZSd65I2SvFILw72IJWcuDLrlW8pFQ/7UpONPunZOaIfmkZ5aP3qZFi72VYwScj8J9Be2gbY9sIYLvpclV8INrZmwDW3S1HgzsPfzLFWaHu78V5dYI5wt/d5TyNVoINvU+r6T3ukBmheo/tvWCpGWuo/K2RtlgFi4Dz5DzXUZWERIchVOSm+gEPMeuLyoekAxCh4zOZCmlIDPdS8wbSx61z+JE7IsxoEwDjZmRtVyqLyygCEi160V14x5QHYkj3t5kRFb0CLiZk99P9pU8UlIMAeuvqMo/iQVFzSndL40VX2zZkRtZYqIj0MpZV/WkBPYXz2+VmwH3k5Gve7K11jnIamfWSjfMhCmNIvB+fEepAb7cUHblS3N723HrbE508a6W8DKAd/fp6+4Cg2U20oAIKg== X-MS-Office365-Filtering-Correlation-Id: 0c7e2bb0-6d11-496d-befa-08d46d36e240 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CO2PR03MB2360; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 3:csr7tUc59OK4xFm5uHCKnOWORvra/Sk92wvg8dHGiXHAzRNVZ812bMbaim8GSjPO95WqD5ef00Yf/GbcKaZnSjLN20F+BjYKNBZAlTrqcpOLjV2+42Tfrw5B85aHD9M3UpFBCFbh0O9Am5iuAZh56i6OZz83m+7DGLnP7bsHQrsAuN5MRKDzk5sgcdVUyujY0kTloMdmbOL3R6YVezb5rtJXCxAC7cFhYWiohfRBT2npHBJDwdlNCW6WNPmxHpWZzCfh422i/9WJNuDMTmLoiGVvfURcji4BU/PICxfIxDonXDbe4nePuggNx4x2H5m0lzWm+JHl6y6UiROzHEfWFR2kEVRdUJfSOJytRvyQfWN9/nXvvwt9IzrJ50tr6daq; 25:iBcJzRwqzEzBpj4IHxhRoXTKqXFIbM+qpgBO9FDx3xMEDRTB9Eb0+P+BZebXJt9OaqEX7Gxx+tZZDR4sipDu1jAEx7wVfNHOOe7c6wu9UVmEEdSBeTjPacdKmLC5/f9VL2yTmE1S9ln1dFRqMWn7EfZvoZsCC1hYoTpEjj3iXIQwAkB1L9fnPn+91Lw7Fzh2rEjPe4IVLuOR3BiHziElaND1OX1easVvyqIJQvtG2jcnFKaafj9Ra2Msnj9gzR5Bql3udkt0S07yoKNb9PvdAX9c4v8Ofe3slsKxf7mrvmSVH6hs00Y7DDT8dbdH92fm4QTjFo2d2HtvUk68R1+WKpNeojVr7JNHY9VQM8UCg8/+As5jFHyiQI2W4JOBVz5GDdbkOXFLF/5k0paDcldnyNOoRRhLFwGOW7mLoGdEYOXWMxxsLpY9uiYsnuP/xEk3lyRwzcxBKyesLUvNSNAMfA== X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 31:ioOM5XhY06hpCHfSw3u/HFhPN1M1WB20EeGqXDj/ZLXD768fyU7FbiRd6kQmuC7Hho5DQIaclOpnaiheMo5nC+9CJCrHSm+AfDRarOswHOU+bsJIvffuFnRV3MokCfbIIw7+4QFIgBtmaI4dN0CuUcry/MDsdFK/vkOfZPX0ykCb/Q624/pqGMvdZJ42DcTJV4ttvwuIet69qivFQMf2dej5HcT6CNJLdW1uuntPhfilJjlsnAfPH/SfbnrpXgH5 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)(13017025)(13015025)(13024025)(8121501046)(13023025)(5005006)(13018025)(3002001)(10201501046)(6055026)(6096035)(20161123563025)(20161123565025)(20161123561025)(20161123556025)(20161123559025); SRVR:CO2PR03MB2360; BCL:0; PCL:0; RULEID:(400006); SRVR:CO2PR03MB2360; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 4:K7TqV94YqLxpoUN7P/QSRCEyZ0KDbjB7ZeHmGcxd6p+cn/cTQo52usmpPZF/iLFYZZfEi3d/6vOQE+oVvlgXScqEzqq9FpPYxiOR/i8UVG+TjpT3otRNsUYvwkXjqxDZQoGnwxYgxzPxdGJQql/fhcLzpbzUDFqxRBvLTkzBn9MciF/UhLyiyo3dv3ddbUopiTSKVpaW54lWMyI9vNQZm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oPMs426keLbZQoYCyS1tFiu3UEscs5L3LhFYv4U0oO92YikjVgnuyU+ubdRQwels+wY5cT0IlIVMCP6CTElJfBx2C8N70LhdhqxmTsI1uKGHYYpVN5nQ+lD9dTqPPt8Osmz/V/Zd; 24:AVEH5RbTpJWz8NmUBcn71ZOYrwrwCWH6xZaUnbGsz9upHU30cAzOohJPg9p9ozglRqNCdo7gAxR9PAJ4NG6giQGubjx0voqFXMFpceWxosI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 7:Z77jcmEW6sCuyF58PPX2HExnr5Aswksn6MdAvoqIAT5+d/QJtW3fs+LNUrLiSVi/wyWuQV02ww5N8ukrheFed4OjhcKLDDQlHXPJTGNpJOE6ohMRodY371jNhUgquKtBro4RtEJVUrD0OEzq4sha3Nka3FUT/+WZvkGiFBqnhFu24DQUffcBcNprxEYROiLMDu/oC7Gs3bLsKqLDFN7n2DSiEa4d2qLlpgVTTChmg+ponilD1roLHSrpvpUz4eeTRC8Vp80EYJbJxdynQ3eSxizyS68MoePWOQu1YJnaX0r/02bg/FnoFCQ40Riwpvge54c8wDYOoBfCACoHpdM1UQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Mar 2017 13:09:45.5922 (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: CO2PR03MB2360 Subject: [dpdk-dev] [PATCH v9 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: Fri, 17 Mar 2017 13:09:48 -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 9a60777..16baaf0 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