From patchwork Wed Dec 13 12:05:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 121745 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp5383553qgn; Wed, 13 Dec 2017 04:08:18 -0800 (PST) X-Google-Smtp-Source: ACJfBov3Cj1TthYS9tKbq70k82anXyVuchzw3ulc0r8YK5efJnd6Gy8WD/7iM+p8XejcqebQoXXk X-Received: by 10.223.164.218 with SMTP id h26mr1704293wrb.271.1513166898059; Wed, 13 Dec 2017 04:08:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1513166898; cv=none; d=google.com; s=arc-20160816; b=ygQINaIUabAVDT18VICSziKqZPed7JrNlXRuhH9ZvNWv1GuJc3mYBdKyEeqfT0OhDC J08ta92NVgXmnRwZEwVlRhAAEYjaycccnfAabAPs0SAjKkBJJL6Is4BpkduGlC1bah7i VobpM3h3gMjcpwnEdonrKKB6Dm/03RfrArspTiVOmFzyU2rso1A3z0yevxPv+7Ae61Vh PVDzelxP4Kc9YctfdDH9OjkET765496WvEARmX/25dZnQzJhX13o3Af8la85yl0CD8aE 2HZKCBwQGKAdYWQcnr9Dcpc0p+2azfKnwKjVsJZSpcueyzj5e814Iz+zTwVw5ZS7oqI9 j6bw== 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=kzL25zPOtJI73n5wxi3IdY6GWEiuWgBkShQmcrmM5YI=; b=QjQohtE4rWeZUp0il7N6fM9Eld2BRvBRnnwpGvKNZ/fVkk5Pkd0e988Tj9xpl3GeVL 7BhT0iSzAEGuhhS7wXDyqUVz2moEYPb14/SMEMbUuZqXGyRVRCazcpJiAPGDiFp1Hcag f9GwRm3CTfY4Wf56q2BFzP6RGkvLPcAeZh20ijnWa8xXEZiTTKYfRQ6bwE9PNBwDrW7c DCOdbxUBGSjaTH9M5hsjgl/J16dvmrYrybm3lRXPH9Qo3bwE+h3TiGakdeV/+p1xHEHN T85zwXu3mDOyfBCIknlUGrV5KerXQnnUPkUafS27rAhicqN/6l1/njbK/StHnnWkzHL9 qEEA== 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 e191si1365725wma.186.2017.12.13.04.08.17; Wed, 13 Dec 2017 04:08:18 -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 9F6B71B193; Wed, 13 Dec 2017 13:07:15 +0100 (CET) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0042.outbound.protection.outlook.com [104.47.37.42]) by dpdk.org (Postfix) with ESMTP id 938247D05 for ; Wed, 13 Dec 2017 13:07:11 +0100 (CET) Received: from BLUPR0301CA0027.namprd03.prod.outlook.com (10.162.113.165) 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_P256) id 15.20.302.9; Wed, 13 Dec 2017 12:07:10 +0000 Received: from BN1AFFO11FD018.protection.gbl (2a01:111:f400:7c10::166) by BLUPR0301CA0027.outlook.office365.com (2a01:111:e400:5259::37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Wed, 13 Dec 2017 12:07:10 +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; 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 BN1AFFO11FD018.mail.protection.outlook.com (10.58.52.78) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Wed, 13 Dec 2017 12:07:03 +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 vBDC6t9R008652; Wed, 13 Dec 2017 05:07:08 -0700 From: Hemant Agrawal To: CC: , Nipun Gupta Date: Wed, 13 Dec 2017 17:35:48 +0530 Message-ID: <1513166759-13466-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513166759-13466-1-git-send-email-hemant.agrawal@nxp.com> References: <1513166759-13466-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131576404231966064; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(336005)(7966004)(376002)(346002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(189003)(199004)(316002)(6916009)(16586007)(36756003)(77096006)(2351001)(50466002)(54906003)(106466001)(105606002)(2906002)(81156014)(6666003)(81166006)(356003)(97736004)(47776003)(48376002)(2950100002)(50226002)(68736007)(8656006)(5660300001)(4326008)(76176011)(85426001)(51416003)(8936002)(8676002)(53936002)(498600001)(305945005)(104016004)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR03MB2360; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD018; 1:qpVOhQ9dLeBgb/F+GfMACTXi9+mJ8aS4V/T8bxPzr4ZB+BNk5sk7PygVuRevPyNV09+2k4Gtr7LFZUSZfEbgz+83K+T0UHu3p8G/5zi1PdKyZwqilTdvLcOABlFLRj4l MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 49c78db8-7e22-41c7-cd70-08d542220588 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4628075)(201703131517081)(5600026)(4604075)(2017052603307); SRVR:CO2PR03MB2360; X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 3:hfZ1CmrBMWXFVehs4wH0qpWU7z9bvYDud74hKYiAxVAZP0WKd3HpVp5jD8QPOa39ykGt47421LeFTWw0J+ySen4XVXTcpaAvoq/kRgye3Lq4VEoS1bN+vtoT59u2ZqNQMLzEoxZ0T1calu3PiMMetmX4HQ1Xum413e3LRds3BZ4L1bx8KpoFgjPthpyVHHnQ12GPlyH/3bxFnXzsuBv8OWquKhrj4pRNZ+ZR0WQylHMxgWHmPl78lc5h0S/qG6I3CX7pq+mvr3XcD58zTwQwZtbhwysN6dXBqMrkphx4mM4+1ylMJd7e8i1FMurKtRNa9M/yAmOVvJpQboA4NzvNMKUpMNZmyUZtOEfbs3kyP04=; 25:nqWuxrWKqcnIOF57N29Idu2rpvzAa/EsKFIhchi7VjlxUf8rlHWiRAG6dK/LSPYuC1kEDj93qwKtf77XGJ/I6F1djbkvxEKO9vNAqHlRikY6ERXDETWPNed1m6ux8HbBQccyUz6yfEU8McYF9/vSc37YUSamj5SohKhfen+jJFXRkgt5iVLsJM/+b2isFrnOVFOsjH3t51tSSPP7xXEJE6sENca/cOn+lcKJW2im9gjugwOSvAeNJfpKVrpKnkxMJSfFdjzWCAkrEnS9RFWhQ0qW75YKd/GMXFCfbjtpfWI1tzupp1nL/kf1DogqPv2zDLKKwnVUVdkErnn/VFhGGI/4h/sKjcTwASbV24HlmiI= X-MS-TrafficTypeDiagnostic: CO2PR03MB2360: X-Microsoft-Exchange-Diagnostics: 1; CO2PR03MB2360; 31:l2noMG/q471LtJOS7f6LCnTWIj823e5t1mt71FBaSouPcrMIQ2fbLWMDdzm7CBm+j1bUosl4uxJnO3IoJw9c/qvOnaGkj/uZ5fUSuSaKYJIF5LDoe17PR+plV98ykDuTsI6l4eXWW+KSAtXtU8H3rUE+KNSnRdvFLp6O861qNhz4sF5LyZaHvQfDYEuWMUDRb4hDH+zEP313k7XqpiF2qpLGWOVlZA7W0bhMii2+81M=; 4:GKcaO1FJJH5zdEmcc4XI/vcGpEf6JswXIjZSgjpIUOwqfEj2tokE0APB5zcUPUflzxbCTWnyqdgis26iUOPPOKAiqxZXt05FhiAcrBtkL6SF8EV0b0VvGj0Iz7mW/at87Y1ZjE8x5SXFm5iKrOL9LIpH9NtdO/Q5Qt37D+g2Xb15vLQUPzcBHZFw4kmYPCOn/ModBUomS9mvK3NnlFXRiJ7Z6hZ4pm8zqwp6RU5iKgLGKum2XI1gOEY6CzltQoDJ0pXiRsNm0dRJqnW1Qv7+EGBo2hlBV7NTkOY/8Q7UeD3QiFpgQmqJIXX6TozC7SLXgtxwYNw+dbTOabcvttwRlXw1gXTMZeuUcJ36lHhiZPI= 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)(8121501046)(5005006)(10201501046)(3002001)(3231023)(93006095)(93001095)(6055026)(6096035)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123561025)(20161123559100)(20161123565025)(20161123556025)(20161123563025)(201708071742011); SRVR:CO2PR03MB2360; BCL:0; PCL:0; RULEID:(100000803101)(100110400095)(400006); SRVR:CO2PR03MB2360; X-Forefront-PRVS: 052017CAF1 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR03MB2360; 23:+OAEEjCepS9mcmNmAuirwRFpHG8Bvb7I7atuuV66+?= deHcftBEHuOVupmaw6Doj0bP11XOVWbvE6r7tG1LYXFSIXuEvMdwMVOU9WxoZ7roncZwv3lfmWaZawaNjgYVQdmkHy35veeXJygVSRk2ttySrJaK2AzZhToptFG6JZVA1rDvBNLWB/RAcqQXCBv+BB893erpRqvicPLpHR531XrC8U1nqXI10zLZz/511/Iz9ePnhxKMx/yHd5rQhcenkhbfxl9OFSQbEW+3gcEgz+G8N4m9Ns1ItXaH/D/nCf8TQ2GLTAqjmWOOfv/DSV5GImAVzzVejoqTrp9plcD90DO+v1KWWeS+U2bZ+7B+4umj1K9zi/GrXgcMEmElbwtXVBX9FvUkC+6DnxtefUb/LLIG3XXKfPPOWJb7aHzp/5VrEhHqaPkaJkEXRdtj3tADXJgelFrA8fszBhh/Cmoej+R9fu0YI7/7/oaQlmjK6KqHMEV/RciMJ19W6yuIdDX1nrjW1RWsTflgpr+QFp87u89KMCcORQoMJIPpdsQDLcVbj8Lci2zvQboHn9HdVFWHZcdS3JAjnMzqO4cORyK/LBJwRWskRzIIGbxYoCp6Np6YgR9AwnqlGoE3f8PHumZlAniK6bHubUJ4+7pcPo6YOi7b2SUdGsZEMFv7uIE/t5jr1lvntfNa4OmH9xG8ikDFf0Wnzq9fwfgcQi3QXJwkhjl3ojnNz6GcqMerTZcSV2db6vL08lMZdXrV+nPhTlvqK+m3mbEY3D9O1/VZ4Gq2aagKj4IKsWbI9WQbW+N02RJLAayB4T7a+105DxzFMsbJ/HLLfTW6XWg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w22JUpsXc66kxdM3uN8F/qlTk68F3n4V7dLi1lyN2poCG9/wuYfmw84Gvd59qdlzijvWyud8a7K/GpyizvfKSoareGv9AA7RxnW3tOQtyNUYbmHIBXWn SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Dec 2017 12:07:03.0250 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 49c78db8-7e22-41c7-cd70-08d542220588 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 07/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 87fec60..77e4eeb 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -40,6 +40,7 @@ #include "qman.h" #include +#include /* Compilation constants */ #define DQRR_MAXFILL 15 @@ -532,7 +533,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 @@ -545,7 +551,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; }