From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0081.outbound.protection.outlook.com [104.47.37.81]) by dpdk.org (Postfix) with ESMTP id 7E2D8D260 for ; Fri, 24 Mar 2017 14:36:40 +0100 (CET) Received: from BN3PR03CA0107.namprd03.prod.outlook.com (10.174.66.25) by MWHPR03MB2798.namprd03.prod.outlook.com (10.168.208.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Fri, 24 Mar 2017 13:36:39 +0000 Received: from BN1AFFO11FD048.protection.gbl (2a01:111:f400:7c10::160) by BN3PR03CA0107.outlook.office365.com (2603:10b6:400:4::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14 via Frontend Transport; Fri, 24 Mar 2017 13:36: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; 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 BN1AFFO11FD048.mail.protection.outlook.com (10.58.53.63) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.977.7 via Frontend Transport; Fri, 24 Mar 2017 13:36:38 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v2ODZhg4005481; Fri, 24 Mar 2017 06:36:35 -0700 From: Hemant Agrawal To: CC: , , , , , Date: Fri, 24 Mar 2017 19:05:33 +0530 Message-ID: <1490362538-20854-18-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1490362538-20854-1-git-send-email-hemant.agrawal@nxp.com> References: <1489756124-10805-1-git-send-email-hemant.agrawal@nxp.com> <1490362538-20854-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: 131348361985187180; (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)(39840400002)(39850400002)(39450400003)(39400400002)(39380400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(85426001)(53936002)(50986999)(5660300001)(356003)(4326008)(8936002)(110136004)(38730400002)(8676002)(305945005)(81166006)(50226002)(105606002)(106466001)(50466002)(36756003)(76176999)(2351001)(47776003)(86362001)(8656002)(54906002)(104016004)(77096006)(2950100002)(33646002)(2906002)(6916009)(2870700001)(23676002)(189998001)(5820100001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR03MB2798; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD048; 1:Gwu8J0XNMBl+zTfB43lbJS+U4daV62dwDbwtoWSrOz5Rw+x3QCXDDFQTF+o09tETUpMiicPYwo2qolmlFt6i2iCi+PhCvUXUsyodZzwe/ToJdU8ptmlqtVUj2NKjU1ZqKAGkZn5djLKzfvT7fWz8HtowcHO23XDIy6Qx9yoE+V3erR27AJUlKyLBdwFfu/vw/RY7L5Bdh+e+hCP1rC+Jz5p1V8Ok41msOl2jZIef9bKRaDANKt2w3npJyFSp3iG2vgZ2HQsshMOGoI5W8XfmKO57c+zRR33eI5SM02hyVivlAG37Zx12MDUyHDhL4GpwesmQ/tpwqPGQskbmzRuTf/NBwtbiJjQbgHllJB8TMq4xgiA/zyIK2BsHqkLUdZ6cSi5jYkxmmEmGg9JKcoggsL28Y+2y+Xjv3sB7JWVzJz2ZepyEMJLjZH4siQjOrKGXS5748Dq/7Pb1GVNi3z5ImBclqv5tAJ/sWdFM8jR/wC503/eyaCtiU//PM4/GpP0i7/SF6jLR5PiKEx0bpFACQ8nx/VkR1gFLwVhYbphcHaRrTPcrOSnlfRvaIodM7aaChoevnwa7DAN5+GXvODKgWRphdSDpV3HQQ6DjgGiU3nHDQ3GrqeaA3ru0k9NlBWelYLmWymgjMPHuuMASYRKzIw== X-MS-Office365-Filtering-Correlation-Id: 72a05c0f-23f1-4819-d274-08d472bacc58 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:MWHPR03MB2798; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2798; 3:Y4jqzG5JpQrzSng7dkVdgeSpGEYVAAbLCJvImn9igcIFXS+rr0wi7SrlCd5ylDq6EJpnMqRIjYeU2OeFZhhzezbzNIiRBvpYAYTCIuRmQ0rFn50QNJ698SIOPCRFUoY5rcKAoqZhtGi1uIVq5fat3vh2EgvHLLkDn+jkv3fu9K/6c7iiPmrXy2l7kcRpP0ywgJdtI91VHhObcj+plkAxuENGbRZqXTM6vsb2G0nobtP3kcRDe0qtn738Qp3NIjXvG4Q0TVf66Qxag+uh5zgY2hhiXBf5xtX59TnyfQDBRR2XON1kUYpP+lStv/1Wy2qf0IvhYcb6gTAXQbqQqSSpcppRp4nKnkOsJXGXRS2NEz/izVfrNCHTT7vC3ondHM9G; 25:SojWigqeFATXRjvGBqFo5RzDJ3ZsfwwZRWWjGKQQzidpmxHiOA/nNKOxPKJ5R/gflv/8JfSQBgeej0X9u8RbHUtLzF4uWiyJPeF5pNFpHrD8qzxF5EyK+DQba+zrxVTsxcZZtX1BpIj4449TXYSCyAKvpvmRrwp2OYKFbKq0nzpesJvWOF+bzGjGJZ/hxCpAFaAe/zcbXthJecGkJ3p/4SqcgWepMCFpzaQ3OJmn6DzYlACo+iHP2IiwVZwcy8JrjUsnwzwcbiwra6GaR8swJ57+bCh2ZQX4jyq1rEQlsrmlLu63jJdQYY3SxAuzd7fUxSrH+61DWnnq7b/3N1UrgYCusno8gkt82XxtPKHad5cII3QeqBu10Moi93RM3cf8zOd38jxDEDIxGUx+fcmoAEGmBx4ECAD2lXixOaCyfRBM6K5eMvscIh2H/BEx9dR5P8X9EhpYsR7kpY/4L6w9/A== X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2798; 31:vzDJyeR6jSGjCxuHIf9DPiwBIJ6I1JZ7ikl96EzDtC7H1fjOp7ApVSgDB2m2j/G4Qqtc2n+r5AHpCCHdVZ0t4tqUJM+9jHNBgEHixUznTjlyOkcsJP8MoiMayJ4NkB8k3/pmqt8SK58bRIci7HBs5vFh2y5zzF2SD8+ZbFCmNZJOXrNZ7jX2Tb6t1Wo5VCSRGgkExldAPsRgH5xHzWXwJQ2aD+otZ2nmRqNx8rVRbczAARZ4DP3Luw1Lw17+PJvfnsI7HoaDp9KSXK0cYtBRTg== 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)(13023025)(13024025)(8121501046)(13015025)(13017025)(5005006)(3002001)(10201501046)(6055026)(6096035)(20161123556025)(20161123561025)(20161123559025)(20161123563025)(20161123565025); SRVR:MWHPR03MB2798; BCL:0; PCL:0; RULEID:(400006); SRVR:MWHPR03MB2798; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2798; 4:kwXu1JhdaOItt8REiHu7TBj7CCRNUTbikUdVKg72vo0N/Vnjen4Eyoz4T8B0raaSFL9zI1ysN0QHhgmi621gs2WOhmScNbFGRe/QggkKiljdrrUhsbhV1Xv3L1uFHXckHWNHUDTXLp+lTLUzcVvLx2DeD1U1fBPNefIcu8VOKw0xAo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6bDwRd1PGDTuKbIXmz+KeI8/x7PiGS+Rp5NNu40++eS3ppAw9BnNlKrP; 24:ZV6o0kjndew/Orqch982+ISsJUyZWBEGSkf+VTlu5XtfpfREbKw+64cVyl+Etc5Itc9eDA4FBksx3nshINDXdDU7PEQBWDvY8vrmwIwRIaw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2798; 7:zvJX0Uedd0WFCajHAuYt0oZlfFwFhB/0xEa+9TM+nSJbT7nkBW4d/lYiSBaminoV+WuUfoa7OADqGd2aTGc8O2SVZFqRofgfAq+wcqyfBcRzwRHLiZnZJSZFOaIFETFraCOe/t/Okwsd3rYhL6taFYqHStQj1ocA6OQPb88Qm5GmA6V3DxA8D9dDiirOFroFBmurAEiXAtPKLEU/1pLRCIYDZICP2DCVVcYgp35DoRkJxAaGEe20nX6gbfv1lIWi1BlC2iubPhQpT8nH2B84Tv50YKcPzwMG0MSD8Lo5F3HEQ98tP7RO8horJe73sevSj92Lrey1nRiNjCDOx4z9Bw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Mar 2017 13:36:38.2223 (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: MWHPR03MB2798 Subject: [dpdk-dev] [PATCH v10 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, 24 Mar 2017 13:36:41 -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 34e435f..8d6f419 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