From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0074.outbound.protection.outlook.com [104.47.33.74]) by dpdk.org (Postfix) with ESMTP id 77CE6FA6B for ; Sun, 4 Dec 2016 13:44:58 +0100 (CET) Received: from BN6PR03CA0051.namprd03.prod.outlook.com (10.173.137.13) by BY2PR0301MB0741.namprd03.prod.outlook.com (10.160.63.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13; Sun, 4 Dec 2016 12:44:57 +0000 Received: from BN1BFFO11FD033.protection.gbl (2a01:111:f400:7c10::1:152) by BN6PR03CA0051.outlook.office365.com (2603:10b6:404:4c::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.761.9 via Frontend Transport; Sun, 4 Dec 2016 12:44:56 +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 BN1BFFO11FD033.mail.protection.outlook.com (10.58.144.96) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.734.4 via Frontend Transport; Sun, 4 Dec 2016 12:44:56 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:721; Count:10 Received: from bf-netperf1.idc ([10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id uB4ChXbZ032240; Sun, 4 Dec 2016 05:44:53 -0700 From: Hemant Agrawal To: CC: , , , Hemant Agrawal Date: Sun, 4 Dec 2016 23:47:27 +0530 Message-ID: <1480875447-23680-33-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com> References: <1480875447-23680-1-git-send-email-hemant.agrawal@nxp.com> X-IncomingHeaderCount: 10 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131253290965617383; (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)(2980300002)(1110001)(1109001)(336004)(339900001)(199003)(189002)(104016004)(50226002)(39380400001)(81156014)(76176999)(39400400001)(5003940100001)(189998001)(38730400001)(86362001)(36756003)(50986999)(39410400001)(47776003)(8936002)(8666005)(81166006)(8676002)(356003)(68736007)(110136003)(2351001)(305945005)(6916009)(33646002)(92566002)(2950100002)(6666003)(97736004)(7846002)(106466001)(105606002)(5660300001)(50466002)(626004)(2906002)(77096006)(4326007)(85426001)(39450400002)(48376002)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0741; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD033; 1:ZaEz3yu66XeEIYe5Bhn7QNDPq8PSLY0cUzk4H+jCleibnz2bkYMp3lLzUxGB9pjMMmHl2htIhuSDZqjt+czLkkTDPeFnFsjxEoBs1zQzsIQPlkl5T0skUNCKh8rz8EMUtJm7qMnR30Jxf/6jlrvzUXiiTsSO9l/pKKNsZ5GBrWXTDAAM++wzij7tQTNzeD6KsJap/nObZXdoNhc3KBdYqVxVwJymmAr8iscq1CgqephfSKvrX4jNxPz4gV9jh0AFsl5qj8j/0wJCa2FZvLcodT/+KX7znOG40K01geI+Gp0oACgGOJCMmgaoLuYwm12SdINcqqWXF7rOKcz1mCsfu5lGmOz5gc5lKmTyFInvU05fs5mbBCIADuHe4xwUKkv1LVrpekpVLKH2qEhYGZ+9NRaJ3ndTUOcoND9ioWeTF5kcfiKgVPnYLGyiyb7RONXBHj764BEkXBIXQFYbRcm8kOmSVYjLuQqhWabiTpYvX1HQZ/LzkgX50vgKnPxt+aLQA9++2Q4e2iwdBix2/PQQ0BG3r1pRGxbD1QHOuWmIXhWHLhjF1HEmU+7zBsVrGsWSkEiLW2v+uJQ71sK1UhYOhWAmzyBAgekWK6cs5QNXwMa+5OqvT79/Ow4+XlmPkoI1V1eTEA8mw1Y0jfMECIV5EsjE2Nt/temKz+AVM/sm5HaTTjJ3L8y4kuLb+02aPQYp7TQeCaUI4cOmBU6i6pmEWd2E+O491ut7K846ZQGSQbuy3C+kNGlei51eWL4zeESkZPVuthjmcASZ1F42zp5fzw== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2ebc2881-a8fb-45f5-de7e-08d41c4359fc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR0301MB0741; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 3:4Q4E72safGAaPFdOvvhaMEbr3FqPIe8COLHganSAzkAiewJutp6ysWdl8q03N6WQ/sk4Nh61qqNRVUwbC7ummI6EY7ul7EKR/bLZpnOZwWz/hzYGuoxS7IZ5OVzMdSDDWfmslLXT3d3GOD0qhuV4YK4sxO14IV1p47mtqfi7FEaeASIvP0hnGY6LBhRD6jpZeq+8AF1UxRRoTFMXUS2E6csSuyUbA8ZeumCHnpGPp9uokouQykm0cF15iblkvAq1xDXHVDSdHubsfJOx6bEaOGiADNSls1eCuD5rSPGz9p04sABHfQQeNL66ReYmXIboZ3he/mfnrBxPR8DPreqTlvvy3o9VhuOSiibBGIVeHdRmIqRy1jjJc6SvdOT2CTpd X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 25:qI+Ya62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hjrwOk72TNaY7ekJuYw== 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)(13023025)(13024025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123563025)(20161123565025); SRVR:BY2PR0301MB0741; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0741; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 4:1EJPkPG0/FEyGHs7K/IrLjSTLViLn8GvdGi3ShaYpzwtrdBRNIgKRSiWm3EFkr/8+BudxfUVDR413Y9XKA2RG+wDgSUQRPDbFR+TqtZgnKlwqe4VHWzDR1Y2ciEfViybBPccHsimvkJGycv5E6mrZBvoz9p2OGBIu5wwi+Mgb9wY7+2ayf7/p38oTndOsbuZ4AtN74a6Cu3K4hHXB0PAdGDi/bsqAWQZuEILvtcC0Cemh0Zuks0BRODtj1x5kzociR8WUiSm5IHjpUbR2SZQFpVYl0xy77Wy694zOsVlElXqtYnL2ukHwT8vvQsPOKOgwa3HwbOb2B9b/4SIikC7KVJAShETWHn+NbapMn0CLX9yiehG5h31yWSwSLFlbUYVIApGkWTNKl5TWaiOcRB3fmB1V1Ejc9fxuYGFA3GJa+WjHx4gJHe8+WidRCUiEx3OjP2/cMFELARTdFzfyONJUsONf5YeK54Px6qyBsyrh2jiOk6l2e7KY11QT2ErfMYQxLXLqInkcBtmUOlAoLIcJJPrj5Wf8hyXDvQ7ylCcJO6pDnZYcnEBR6N5S3HqGicqXSpZMzRSqV56qaL+JngWM4IqxbPNppSMvgNcaQXd8bCP5zlDjnA/garYgaKV2dT/RunDpGx9oOBhSzMQiFfnklkoRkTbuYymOtQywPh8PE+ghAMV5tK/nKnuagojAOxaG+lVJYQ1wBA8byHVIgQDkCBUs8sTnEh13wg3hCUs6b9eJgdec2qOXQMooAGcHDFV X-Forefront-PRVS: 014617085B X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0741; 23:2ROF9TL6v7LqKY8BTzyxSj+UIlYI1zpi9D/l0a9?= =?us-ascii?Q?cDx1Tblpr6OYITlpJEd/FvB+Vd3EgWZKQ5cE99Op3Jf2S3ZTtSpXJu2m0VP6?= =?us-ascii?Q?+gD5JKqZ+atu0SVji4nI+49AIF+yDsF5Vt+FRhtrl85b4oO8mTshoNyMsV1A?= =?us-ascii?Q?x61GMzMNXQFZa+gnoO5XzDfjOfJ4IdEIaddzaQ0ip0fTAHu55GHzADGqkUKe?= =?us-ascii?Q?p4UUzqkJNVYgG5S3bNukAtS3LmLGaIU/snrNpU98jY+FnVE1dM2JyBfaVqBr?= =?us-ascii?Q?efa/xo3ddBtR0j4cey5iK5LgjAoYRBorxZwJYm/fqMjQpHKctMHtovjKe1DA?= =?us-ascii?Q?4Z7/4tV+mXUcztKr0f5NExhJS6OnScg4P0wg6lVVTyLqYAZCjsvRqsY6sqpu?= =?us-ascii?Q?EAVj6a7fl6OxWt5zP0n2I4EHmLwp9Wc+z77c9pQdC+km3o5yzbC0+digiSRu?= =?us-ascii?Q?W8eslXOBAuUKVqEwkZh8XN1o/0uOoDE6SggUAEK5wmGzxqLJazDXAt3y051/?= =?us-ascii?Q?q62I6hod1LOu2e7Z94vkRlZXiQeEeAPquWzWh33AVmT/4yk3/CQGptWtV5nR?= =?us-ascii?Q?3ujvs7LxnNbxC+bdXc3sltKVmq35VFSw1CG8cwUpXDGOIvoAuisZydQ4Jw5g?= =?us-ascii?Q?A673mqPy7FLNMcwrypQ2ubWGFjNNgYPye+XegBAnLZm8RlqYRH2xh/M8r1Ly?= =?us-ascii?Q?Cx4jpEg3ecpEyiutcfpPf+xfzy6uBWzmjw2vvEmGC1TB0pbHgMKZdceovDsu?= =?us-ascii?Q?FkLk4lPOVPU+lV6NGp6yZV2Ub0g7kY92fVGp/Tyq/gDSxjS9PRRtcy117Vgq?= =?us-ascii?Q?os/JLLgUQEZlIX8RM8pbIlZRCqLiSJbkjXlzKXI6ixoRAE5lJQagE26OKCmi?= =?us-ascii?Q?+A4579U4C+Uc0XxbY6uzAaEB9hjd80Wl5QHqIInlwJ6P7hqILgqSWdwq6Iik?= =?us-ascii?Q?KhsIRGfaf47o163H3Q0bS0ZAME8lIXXesN9SOjtT3MCu5kDIC7LiPbddVFLE?= =?us-ascii?Q?tYbo11RlqSeqNpDkjGf+OI7GQ7A8b59kMbbawOpk1tqrOQsbH/1nqeeHGXfY?= =?us-ascii?Q?NpNnWh9xP/tSWHMt10xpESPpEagG31tU1m0A6eJx6PxO+C7eTL6rdYsK3Swz?= =?us-ascii?Q?nAWoPNtj/YR6GsVl0Uf6tRqHrWYO94sraBytqW6yo1o8HFvp0pUg+4kw2flO?= =?us-ascii?Q?AT64yd4t5jUneEmG5L77jM0gk/kW/dE8AaHoanCKoZ+deEqCEQzabVg7+0Q?= =?us-ascii?Q?=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 6:RMrUg2i184BKICp6QHykRQU78TiEsNZNcpfGwNfqFOfF+ZEW09keeZ53OC1J5rOZ/jeDmgkRKchDt+1GBAQc4xwC4/6YW2AV+M5pVIpvifxIght8aC3zsZo9QurZVdU9Fa37QrAbUEguTHWBbapmwinTL4CimojylpmPR8w9e8eAqPHQNyyNTXFHFgBvoErWc+XgOUnU4skK9dv9lfO3/dqJhP6C/SNMfVVu7o6UOUJI3sqUSmi7dLw46gWFkFqUstTh50OoLIEPDxNnmEJUmcqgRfDg+fB97TOyNlEVDe/neceIe1525HuyoNKQHokvfEIWcP9ARyC4trrdbUlEy++7DQgTzjIVskWdjxrpR75GXa0Sshd640JQTSNEkxalEnhtYvZOpSbAhMIIMsZkufldUo/E5zf50ztceKvU4mfK29EzHr+HWHnVIQuEbk5M; 5:N0+3TRMT1guptwEdRxW6Vit3XrUJRoCxcXCDNxr/Hw5x/27hXey6CAiE47SpV2UfDPwXs5kZ2zH3Y0s5YFcaIYclMdR64CDTZ/SMPx1iidVsccKcQkkgoCBhVgwZGmCmT4Cwo+47PwbxcHD9q//241/E4Dm8/1CtN1WXoLknFEChYlWcFDoMMo8Y8zETO0Oe; 24:cb6GJKfVy1bFwflkun/LJJWbDxACLHDh3Sd/p2i/Lcu7gUlEaUoGA9GLstBAJppMbrLFu7AYDZxOqngGE/byBl+ZVwvSuDI+a5lr1JWPd84= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0741; 7:URbTR7cf5QHQBir3VK6q9x4/GqlhwKfwMh2mF4RSW35JOJRseWN8DYGYfuOJEiHkGP2NF0Gv7i/vTuHc1VbZAsXpTEyUCyKi+Ss1QKh6CQqoq4LUC129fV29OJV+QpM/xKzOK21MrWZtcwkeQkKDynleHDtzUWLmm9LN4RNldK2cNu7RMDQYJHoKYkC9ryCWMVGVEAGhfkUfPZSnSQqJUHkWLzz3X32X2Q1hivRZ3ko9ZOw2K+Ty8holpN1HoMy5D1J4olti7BI7Svb3O00gkFUpLvs5mtErlZ3PovmixHjI6Y4fPncRjEo96iLzEU0mNpxXWP2f2huHQf4bnd2lM2wuRn2Vw4rs1P0cfgt8KrCO0uOSZSlna+Ch5wsEFvy2RYDa02BSbqJ64Ol6u8j1GcGhEsRmQCgKwY59J7Rzm4aTm6RcDZsi+OFmkTreiHemTI7ObIAHVbm7KYMmOA7Wxw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2016 12:44:56.2341 (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: BY2PR0301MB0741 Subject: [dpdk-dev] [PATCH 32/32] 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: Sun, 04 Dec 2016 12:44:59 -0000 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 1a25f07..dd8e8fb 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -229,6 +229,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