From patchwork Tue Jan 9 13:22:54 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 123943 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp4018986qgn; Tue, 9 Jan 2018 05:24:50 -0800 (PST) X-Google-Smtp-Source: ACJfBosl5ISlT4OKy05m0I5fumq/cTPF3f31vyj2c2bM6HVkTg++QYv6ilvpr5rQWAWfobTm+m/z X-Received: by 10.28.65.135 with SMTP id o129mr13086291wma.94.1515504290344; Tue, 09 Jan 2018 05:24:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515504290; cv=none; d=google.com; s=arc-20160816; b=YsqpgkO76UNKC5Gt53JXv7eaYP4Z47rcsKka6jQcfmN2m8oG7snx9Kxvx4vFBOVKCS vzsKSYQmIVkY8AlopzB60OKpSS9FWp/yv2IKllhBaZwEmOSb7I7gfO4n3kAIj5tMibzX 0e3kQZZvYh0QFtBFf+5nQ85bZG9hQPURhYkmIIvCnSSBuzSQQuZX0BnkWQpKVigqSzTG AvdOItqLd+EIX6jMJsRfpO8Yi/72160wn4O30hddj20eSJ7AQC4XuW7mFVKr2aQf7v4I ZupvCrMnzOrDaDNjAzNmUU3iWg6ruoXbSTTmZDo0KPGFnPLit68mCp/Uh1imf+vl6Jln PZBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:arc-authentication-results; bh=KDo8HpaKFQ9EuKjDn8IAJ6VOMjpWqV78mSlLCSDCkGE=; b=QQTXg38klY6a31HFmoTyKEZEr+iyiW/IxTYX8iNWB+Te2ILsw9LbgGitTjacTkXPFL 4RsR3PHPrkFCupqSewsuBdUaqgvbbQKvZqVYv3DJXG3hPzg47Qnt0ukDVmE0oE4BQf4a 6DvpL0AFu0Yc8GwpvqLMmti2oNO73StWrRpf5ucBaRgTjvPfQXfitUfh0RON801MS5rG 2yaiGtKSpFqyZh1569PJ+HwKOvhd60BL1i/K/ySAjwnpKET3+Trz+wNRlqAQkxNL5YTi IaUpi/mhcYHRE7goFxWuayjQj7OCBgPr+TbsUgHFHOAZlHL+QvgvBR7e5vAZCW6lKwnu OObw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id t3si10937222wrg.533.2018.01.09.05.24.49; Tue, 09 Jan 2018 05:24:50 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C89A71B1D1; Tue, 9 Jan 2018 14:24:30 +0100 (CET) Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0040.outbound.protection.outlook.com [104.47.38.40]) by dpdk.org (Postfix) with ESMTP id BFAA71B1C3 for ; Tue, 9 Jan 2018 14:24:28 +0100 (CET) Received: from BN6PR03CA0023.namprd03.prod.outlook.com (10.168.230.161) by BN6PR03MB2689.namprd03.prod.outlook.com (10.173.144.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.366.8; Tue, 9 Jan 2018 13:24:27 +0000 Received: from BL2FFO11FD026.protection.gbl (2a01:111:f400:7c09::131) by BN6PR03CA0023.outlook.office365.com (2603:10b6:404:23::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.386.5 via Frontend Transport; Tue, 9 Jan 2018 13:24:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; NXP1.onmicrosoft.com; dkim=none (message not signed) header.d=none;NXP1.onmicrosoft.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 BL2FFO11FD026.mail.protection.outlook.com (10.173.161.105) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.345.12 via Frontend Transport; Tue, 9 Jan 2018 13:23:56 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w09DOAVo017638; Tue, 9 Jan 2018 06:24:24 -0700 From: Hemant Agrawal To: CC: , , Nipun Gupta Date: Tue, 9 Jan 2018 18:52:54 +0530 Message-ID: <1515504186-13587-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515504186-13587-1-git-send-email-hemant.agrawal@nxp.com> References: <1513166759-13466-1-git-send-email-hemant.agrawal@nxp.com> <1515504186-13587-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131599778367457518; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(39380400002)(346002)(39860400002)(396003)(376002)(2980300002)(1109001)(1110001)(339900001)(199004)(189003)(77096006)(81166006)(16586007)(2906002)(97736004)(48376002)(51416003)(296002)(356003)(54906003)(316002)(305945005)(8676002)(81156014)(85426001)(50466002)(8656006)(86362001)(6666003)(5660300001)(4326008)(68736007)(6916009)(2351001)(104016004)(47776003)(36756003)(106466001)(50226002)(53936002)(105606002)(2950100002)(76176011)(8936002)(498600001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2689; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD026; 1:uIJPiSOSEgSrn5OeSLkIDwbazDV2bIXqf8SAXnTEgvbuCyybHwK/WutHsbtQ/VEArzRCssmJlYORgHM9QgfOvxAvL/hHwoNUvoqUvzGMKV5Mc8DdVW5bsElvlTNK7ssJ MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d00093f5-5341-43e9-c8ee-08d557643c93 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:BN6PR03MB2689; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 3:1Cp/rfTMb/IuEhWSyyO4rXChXnekHJpHfZ8C7QgduzWGvrwME5B1RoPhyDoiKI+EIANbTth+LaXWs1Ivr3mKLMQ3AqH5kX/ZpU4q4hvZp6ybqxCvYsKRA980wq2kW+iLfNi3meNyyLfm9kQ5fzYc52mOYZI4vnMsE6/OiLzPeB/5wwPns3o34F51rtu1vUCPHlE/gedmVHhEyXNUKU1iBgYIZzIKjhkYCi13nq8+RxosxkGt/7X2Z+cPRCExr0LFYbym/QVEGT+j3N01yqnzpiUlpCURxbIocuHZJdMkyCuoPexovfmmmxCYxiIx75fdoCBHkHt6mmwt9M0pcsHkEzjI6a9plQ8awTY+Yq9HQFE=; 25:2xBgMIs6umK0gDTiR/dAoQOliTiSx0kaf3LXf8GQtMhWI+sbRgaV/AvlMAt5gK05y2kx2h72S5UnnTr7+eb8ftQmQvPBAsHTftaxVPbgld6sL/bls5L2J7vzEaiWi2b4WfHYz/aZjtV57xlkzYMu2+Oh9CJ3GlmkrXoVgcnaNpOgO4BKkBMKVKZH6b8fog9LOc6aM6hjmkjfx/nL4fwRuc7vONjeEZWswZXMtHhvAR3W9FK1fIMs+2vAAGk/Xlm+neVuv1SvDNIVans5HbPdmulOrpJRiR/uoiREPhbcy/wEgefkq+/3AxMvuvoqq8ftQeN62svdJ65Sz0WkIC4/yg== X-MS-TrafficTypeDiagnostic: BN6PR03MB2689: X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2689; 31:Ns90HDGTm2cmvO25RZht+vp8Ijc5JWPcN3dxSyOjO1Gp1Ryue3AkRbV2zDjcQa/8+M4kboNcprPpCOtzcF5+KT16m9lrVwEAKx14qzHcAByWEhhWpKcJVoq/dO4VZ8Renbs213bAADSsQTvtLt+hRcnD5bI8LwIc5rtG7lKb9/45EvTNGe2tyt+Jp9hg0iwM5+3W8Jh4ieqEFL2ZKznFrJi00P9r/ViUtMUNNDYmjTY=; 4:7pE0mj45EPM5XaMtOZVng6u18/JqKX7k9VnmNr664TsZ6YHoLrBNE+xSpt/XVsvNSN25zgYfFf6a6mpzPqfNBj6mjC2oVwFBX6NVw27BkH+X7dDMt2s1RouN1tUXObttLd/jEBq9yP2L6tBwSeE8ucFJC9+FwQ8eIM1ijNZk1VpAvqeAAn5TB80xqxok80c0Zta2I6tJ/IEu/eCNIvIPqr3fJO3GMivDdEN5PQjbHFgCIVeFWNlfrgA0ZMo+tKA/ew1sSFJNr1LvqKjgdWV9dfzRk+4lGkN22P86BoUi9UGYwIcY7daXcV+mtUafxFOcgbXeRpkEsXdhtLP412hQbkAKrFamSHHN4RIYaxe5jxM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(3231023)(944510075)(944921075)(946801075)(946901075)(6055026)(6096035)(20161123561025)(201703131430075)(201703131520075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123565025)(20161123563025)(20161123559100)(20161123556025)(201708071742011); SRVR:BN6PR03MB2689; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:BN6PR03MB2689; X-Forefront-PRVS: 0547116B72 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2689; 23:p7K9lRkn99NZBctBlwuflvowdmxBfNXpv9BR8WPiy?= UlfTsFw1GwA2iFKGr2bA3dwb6htM7oeqIUZack91vU4BGnl1Z28lXMgdRKUAArwOzxMPoDm61MsVCRXsUbm/jHAP/KLm/2o10mv9n8KPp0FrPM5JqdLKfrlNAKtJwBjCRLZN84g8/lV3oJrf5A5fj+sX7P5bdlZ8BgK231oSNINO83J1wkfKuJSuVUKgtMqlSxKdgDYHmE97pGlGf/V8h/Z3PX2qrFctPFdS3JQDjsK+hSSKYhlTKVzvPy1qh3r1aa7ETXKLq9+MNIjljw5rohKQ0Du90oBnKHCaJ5Ll60oRJ70VJFaXf99YX9KSOQ+9nIel10Nh960/keI0Gcin8xih7pjSDXbBqRxjLzZkWEeyv+X2+aIVtAooz60iULn/Lcl7yggxPnlqJQAyHt8h4k1RcdIDDef/7zfujz5QcHxYrA62sD6UgLCYqCHrPvPvVkX+EqDmWUEyenRr2ugXsby2l9kGBtiqmRqsLnX5XMgqY9rN4w+swi/eNlFD0LX7kEwHsLD0KnBgLdA1K536jH22Rap5T11iRYSxsESs7KISvAQgV2xJda/w7Nkk1AxjRwvpzP/qb2wWMx25urN67F3Q5BbiMYnVS+vdCMDtp2avKr5/JH/3Tfhr1yehIEaCrZOo1HKYpdze3/IT0IxSA1uFW7m7FeY40ou0j0mx9rIwv2gf7ztrNrwPbq6iE528LQ26O9CvE5lHM1nSY2FhJ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6vCLeAeKGTpDIMlHxp3oQYdjkezBI80e+E2C1t5TXyvGMRoHFbMtCIvQnYs4JdrDeS8GpArL4Fdqg+4j5YLi0e0GCQsmh5Odg5QS32Oig4SncrUVjIIGLEC+/FMCvGRcC4QtMV0+7+L8Ybkq0oEcoV9Yf9sfZ2VFbiYnwaxa8H8/cTyewp7GIAd6Rl5D8mhCAE SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jan 2018 13:23:56.5897 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d00093f5-5341-43e9-c8ee-08d557643c93 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: BN6PR03MB2689 Subject: [dpdk-dev] [PATCH v2 06/18] bus/dpaa: optimize the qman HW stashing settings 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Nipun Gupta The settings are tuned for performance. Signed-off-by: Nipun Gupta Acked-by: Hemant Agrawal --- drivers/bus/dpaa/base/qbman/qman.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index a53459f..49bc317 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -7,6 +7,7 @@ #include "qman.h" #include +#include /* Compilation constants */ #define DQRR_MAXFILL 15 @@ -503,7 +504,12 @@ struct qman_portal *qman_create_portal( p = &portal->p; - portal->use_eqcr_ci_stashing = ((qman_ip_rev >= QMAN_REV30) ? 1 : 0); + if (dpaa_svr_family == SVR_LS1043A_FAMILY) + portal->use_eqcr_ci_stashing = 3; + else + portal->use_eqcr_ci_stashing = + ((qman_ip_rev >= QMAN_REV30) ? 1 : 0); + /* * prep the low-level portal struct with the mapped addresses from the * config, everything that follows depends on it and "config" is more @@ -516,7 +522,7 @@ struct qman_portal *qman_create_portal( * and stash with high-than-DQRR priority. */ if (qm_eqcr_init(p, qm_eqcr_pvb, - portal->use_eqcr_ci_stashing ? 3 : 0, 1)) { + portal->use_eqcr_ci_stashing, 1)) { pr_err("Qman EQCR initialisation failed\n"); goto fail_eqcr; }