From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0076.outbound.protection.outlook.com [104.47.41.76]) by dpdk.org (Postfix) with ESMTP id CADFAFA3E for ; Tue, 17 Jan 2017 14:20:49 +0100 (CET) Received: from BN3PR0301CA0054.namprd03.prod.outlook.com (10.160.152.150) by BN6PR03MB2465.namprd03.prod.outlook.com (10.168.223.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Tue, 17 Jan 2017 13:20:48 +0000 Received: from BN1AFFO11FD021.protection.gbl (2a01:111:f400:7c10::152) by BN3PR0301CA0054.outlook.office365.com (2a01:111:e400:401e::22) 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; Tue, 17 Jan 2017 13:20:48 +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 BN1AFFO11FD021.mail.protection.outlook.com (10.58.52.81) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Tue, 17 Jan 2017 13:20:47 +0000 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v0HDJ8ma021741; Tue, 17 Jan 2017 06:20:44 -0700 From: Hemant Agrawal To: CC: , , , , , , Hemant Agrawal Date: Wed, 18 Jan 2017 00:22:50 +0530 Message-ID: <1484679174-4174-30-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1484679174-4174-1-git-send-email-hemant.agrawal@nxp.com> References: <1482988612-6638-1-git-send-email-shreyansh.jain@nxp.com> <1484679174-4174-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: 131291328477353174; (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)(39400400002)(39840400002)(39860400002)(39410400002)(39380400002)(39450400003)(39850400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(8936002)(189998001)(33646002)(2906002)(4326007)(76176999)(86362001)(106466001)(81166006)(50986999)(626004)(105606002)(104016004)(30001)(23676002)(2351001)(81156014)(8676002)(2950100002)(6666003)(47776003)(97736004)(92566002)(2870700001)(6916009)(68736007)(36756003)(54906002)(50226002)(5660300001)(77096006)(5820100001)(38730400001)(50466002)(356003)(85426001)(8656002)(305945005)(110136003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2465; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD021; 1:+H9HxQozAIZjy37XEZ3SRtnJLrAMPZERV026Rfabh5LwiCuqx7B1gIop56of6UPFqsb/bri47i3PNDWIKWdJHrPaVsFZUedWvhzgU4aeSEiK/aGRisOJ4KLX3NITMnNLytqs7Q6+3VfO6cfAtP42nJGw4Qklg72p91s4nKEeqSQk9t8E7OvBo89F8BYXoeA+wCNjy32L7par+I/+onnBEncFM34LK/c+bCkaaClmPJFPU4HkudmJmPk74ppRGUNsFwte8cjtdmfnzN4i+6qtFfQkuMuQEV9sKp7VQ6sH3jiODKxguny4XsJ8Mng4UMYbrlZLVAEKZXsbU6jB6+UoDhTOPlpkX9khvm8tM91WSj1UDAVDuITZzPpiDgJnxZO3tZJzm7yWdDll2wWJL4LZF7JjI+mz0e3EoJ9LCKDlUM/GoCBR20v6aKk1V144IMIHw5C7ZYusKF5l6qNCNEN/dMFIK/HC/ru3W8EOjKXw+YE5ZHgHsiZcf7B+UdN/shIcH8nkTCCb+E+B718tX61+ji0sX5ubzBjmG1QJ0aeFR56OM565BCt8bcfmIcyaA2VcCNEc4+rQsIYWuD5mTyH/fCroPKILsDUxqNuc1jAZpPqUHsQtfIHKt/cMNkPkU4eNJ3fbeJja5IVX4XrY/SMb7H92RQnkV1aVTxjZpxybBRrCXQUEIOlb0chXz0rwqaS9d1wtTAbbMujtvwpRmE6bTh+x767OeXxs4vlSVZIm1HBNX9UX1AjWa3qDPz/df8GE X-MS-Office365-Filtering-Correlation-Id: 71c5c407-e66c-4ce3-49fe-08d43edba65f X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:BN6PR03MB2465; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2465; 3:a6z3xzMLgqrPwxh8w444Fj4YmLg4g9ywruEk86Zi4zadtgYDIw/wsn2NLVwz2nLadJM8nP81Im7luQU7hb68b2kUZkk+MCpqCcv9dEx0aTC8faI5UubYoPlOnzokRWAeZXYgmOtKg3dyFRCgD6Etbfr0hT5CuR7vrOjWlyb1RI3FSYJxEbYtoQhKVkqIzx4VEW5JT1/fh5gGhnVr+DeJcW9LmBZEjGgdl1VvV++u5Z2roC6vMbID/dmoW/Vy7fEJ3TcwEa1zTspz1qedy6YSrMozIRJN4zDtVtnsBZ2DEaloX4MvJqOa+0mBOyWf0nfdJuYM5MLItZEKydHlbPIy18VNFo4Y8ZLiUAzrrnZk1m5d7t+lA8qMO3JBCUwDLbc5; 25:TX/fXEKxDCARSUJusLb/xc9tvY2EinS3NHzZygu5tCQtQ4aGFm0ikkkqlh+eiWZogeZ8X5aHtYlgbcvXdgujTGEXhpKZq8/jpjrDdLHs9ksT/+FqGOwGV/aYH0SlnBLveNodhnUtg3ZF3mEKA479tyX8sJwwEAyAxGlUsGxZDGaqXh6232ifFu02Te9azNYGKRPRPtxgKtE6756yCY83nMlkWQCfo8/n1Oz3ZsV1MrK44M9NU6dex90dGg7SDv9/nuy7pdPfeSQ/9NsCp8U36qxvVooWBc7A/eVCDTGbcNENldnA+27rIHX6K/ux671gZnQrwVrQhalTpDuQrAH9a2NdTUYcgQ9wGaMGafAhwatsZOZHK8DX1ZQKPA36UtI9HFoMA0zFgcvLj5fVt+AyIT3mtH+JfltiNQvnKuaELr9wax/fMiKE9KXaSeADWwO8ZFMERm6gA4AqZu3bt0wNpg== X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2465; 31:SFWuoTsvNbLrg/yjNp/t8Uut7uxAlgi0lDAHys8ZWugbPKvKpRcJ5BtA9fKVw/XbTOuBX1qez9yUOy/Hq7KuI+21mmd09nASXut2CpTHn5NN5PnFtfAH8Z5jojQlCKeElunkTjqFEej3hNoiQgtqW0dvZFc7wRmGuOh96dpYSWRbuzN5sjeXXDKDyR1BtjcTwwW4u0yVcBKQ9PepLQtq16e5nprONqc5QUa54byBdGJgwv2La+MFqAkjetfCcfxHlUVeAmWvItyAk14o1ivWKdOuTgWRYeQRrHIgDEZzAZc= 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)(8121501046)(5005006)(13023025)(13017025)(13015025)(13024025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123563025)(20161123556025)(20161123559025)(20161123561025); SRVR:BN6PR03MB2465; BCL:0; PCL:0; RULEID:(400006); SRVR:BN6PR03MB2465; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2465; 4:r01P6JOuUdbvwvufwULeeZFWdVDBCkcJFCrI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pKum64C9aSS6t/8M7izPmDSOor3xBvyhP2pl+cuRFsTxVSkg4LEkyg8JPKM8ijYqrhQE4BxEBGlVVpdAaYk0+fvG1C0LgruiLL05R5F9/vM344Gst20NM6kU7vvk/dDMY3cyQZgexZ7ajZcPCfZyyDIPCH76ovQBMbWPnCzY; 5:soiEaRt2IPy1iOgInJ2wveU2G/D2wXsFvFhOxFVxyy4g8RjEkezZ/O6YQkExWIv4lhgw6JzOz0HNsz1rXl/Y9QqkrjgjnxRooXKaa+6HDmmrjNtdfGs0aaIEdxtRg3qtxqXAoKaR+L60Cssn+BcCPIcVI7hKpfZttWCZ658VqsO/+PrzOhGmrM8YtgeSOWTR; 24:gQkrEk8Dq7fWxp36k53xsry2ZyfDOcO2C4mlzRmY2ISjne41ht6kXOp0xpImwhJvA45hvWBhlJ56UEyr/T4w+hxVOG3eQlTmL2A6WYbBcZM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2465; 7:x7iKg67k+fEx8bbVCXgX1I37MNzAJosZlCXVpqQxfkH5M7qaiE2vZ/MYQuQkcnZA7hVrqQWKnxzJMQkwbszq0ZliQnuMC8ouf1x0SxZ+EGoB2UwBwET5pYK35PjnY9pyC3OmeflzmtAHfIsgxsn33rDbowKjemKNx1TCEyQrnV70PXcIDXGDiUWGzbwJ4tprsW45IJGRzGWA9DdDLgWayXEBS9UQGHZC4xUhTtiTLchZLQvfuVSh0sR/tRpBOit7RAypQVd4HM1MeU8JU6c4fSwNfWkumTXOxrxwION1M2lK5dlwaKjVynAtHq9PP0rnCC6rmIURXHPQtcAhX/jncQ4jGuJhtF/ue9RnlE7JvsVCvjY3pit+qZkLS/m9PC1cAcwuIADKLa//xpNU6Zi+uGzsv3Hf1cPhfzC7sO1lnppk4VSrfO/Sw0x9XTMtkiim+DBzt7x9m6HHrw/dpNQ4xw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2017 13:20:47.4233 (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: BN6PR03MB2465 Subject: [dpdk-dev] [PATCHv4 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: Tue, 17 Jan 2017 13:20:50 -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