From patchwork Fri Aug 25 10:49:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 110986 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp809194qge; Fri, 25 Aug 2017 03:50:50 -0700 (PDT) X-Received: by 10.28.125.69 with SMTP id y66mr974789wmc.42.1503658249999; Fri, 25 Aug 2017 03:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503658249; cv=none; d=google.com; s=arc-20160816; b=J5XNrOhyJO0MJKvYSGpaagB5pqCNY2Gp7eJv+qzocvyDkhEWelgNHzaP6fNAQY2R1s B5wKxHcWzho4SIa9pR6QJ2NQMCt0+WYIbDNY2CBqVHKxiKbtV5F+m8t83qxir9isf+NE 3/RT6l3/3enMQmTEMkx1p3Tp3VAlTjwnj2gVQ4sKo3RNZil67NZgDdeRygoQBBLIeVW0 LI5MU/xyv0Td2uCxapqH2vimzZNrDCTiK0M7JO6wZV952KD2QEM0oQEnur9qCS4oJx17 0P2pNKS7mA4fdTleBQ1Zuuj+xPDCyM1KRJbzAcCbBghQ82ikmJuELrTRA3FykDi7Xfwt H7/w== 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=SWvAvrspl38Jzdn7HKSJPsrkwO4Khrl3FEhTTRwPyPc=; b=urOcnCkTx1IaNK36NK+mZOUp3lW77mewHXZNKdVISLORa2mTOoQx9swElpl+2CNEbL YdSbbUGeFQmSJmLkX1gf4OncVVEDFHBRnw4EWybghSVKbtuw+n/9btKjnl+Clz0cKTvf q8WaLILYQem45IVqpE5GOXwJRTRavRq/XwirfNEYPBxqmsRKViAkJ4JcSEeDlIPHogVv AVGZIIw8K7MwmeT0H0zgG1h84KvZFLVXQqNqF7TfbXFDNBnuqpdxsxO+GEy4IJ1C6Flu PboJigeGUwVfUm7yoTYzQBdhND23eyYe31+FBpTQsg0bDIcyfJqB1eOPF8yAg7Y72gAQ mitQ== 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 w9si5129002wrg.265.2017.08.25.03.50.49; Fri, 25 Aug 2017 03:50:49 -0700 (PDT) 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 [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 4013C90F9; Fri, 25 Aug 2017 12:50:16 +0200 (CEST) Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0069.outbound.protection.outlook.com [104.47.40.69]) by dpdk.org (Postfix) with ESMTP id 4D47A7D9F for ; Fri, 25 Aug 2017 12:50:11 +0200 (CEST) Received: from BN3PR03CA0084.namprd03.prod.outlook.com (2a01:111:e400:7a4d::44) by DM2PR03MB557.namprd03.prod.outlook.com (2a01:111:e400:241b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18; Fri, 25 Aug 2017 10:50:09 +0000 Received: from BL2FFO11FD048.protection.gbl (2a01:111:f400:7c09::115) by BN3PR03CA0084.outlook.office365.com (2a01:111:e400:7a4d::44) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1362.18 via Frontend Transport; Fri, 25 Aug 2017 10:50:08 +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 BL2FFO11FD048.mail.protection.outlook.com (10.173.161.210) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1341.15 via Frontend Transport; Fri, 25 Aug 2017 10:50:08 +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 v7PAnw68032070; Fri, 25 Aug 2017 03:50:06 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 25 Aug 2017 16:19:20 +0530 Message-ID: <1503658183-4078-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131481318089041357; (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)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(77096006)(50986999)(36756003)(76176999)(6916009)(6666003)(54906002)(5660300001)(356003)(81166006)(97736004)(2950100002)(498600001)(50226002)(8656003)(85426001)(81156014)(53936002)(110136004)(8936002)(305945005)(4326008)(626005)(86362001)(105606002)(106466001)(48376002)(189998001)(5003940100001)(8676002)(2351001)(104016004)(68736007)(2906002)(47776003)(50466002)(33646002); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR03MB557; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD048; 1:+w9SoiOLnJIJ8qj6VLuGaAitmz6DQc3etemvgQ3Xbl1XMEh4vshOwabnAAFoSQKQTKrZDrmx+oItStc59MPjIioieScD6RA/olOjBgjqj9kJjZ+3M3HFvhexujejyvWK MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1f886de9-56ca-47c9-25cd-08d4eba70dc3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603199)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:DM2PR03MB557; X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB557; 3:AaiPinw99ocVToqFxUS4S3jb4mmZNggPZMZssSe/XlVxNCgd6DYzCTd56FbNM9dG+8Eg5nZX4ITJoJY7bjAiE5MTCfWR49eoTVgVMkQT42rvlNherrkoFZInCLXg6cc4RATn2tnfXkzEza4dqd9nmoJOipYvwzw4i6or5WvFfY7t2v5DrK9jG6y8t2QWJD/hXOv3PLjB8XXDbpMH6CmLe6/BYO1E66GFRzNf9wd35Iyq/thpkOYmCFHDISg8AvPmVU0e98vWR5soB+EuYloFSKP3IDVs+E+Cj7Tq3hBrTCrqpxwIXj20v7ZlKVpGeg556rzJwlGnnld8xXjUBHCdp0jesgLiUpeEqr/8/qoO2fE=; 25:IUZUA81p8nEYgijk2QrP1X2anlYp8Xxp/MBFp80yQ4o3V34E5El8GZK2HukO5+FpiXGw357LXNHn8sV6+v0ea3X3wDRbVNwQugtk5A8k3/Kyn9j5JDYXZ5R1sZRSFE8lV9a2vvPbiJiv8iH+L/xJjraKz1+4ck13QV1IjzA1qLRaZIwsTcY/9VWK5AuquzGEFE/p5FJWDXnSVdh6UB73QZ8jaDWsreX75ktWmCdX9TWa9409nF+3Tzxz81dAOa+9wDFFmMeRF1XzNnxG2v/PbJEjWLeNxLjQPyMaMLCwbnN1K61oU+d+0Z36dKqPwgD4BVMaEZM8frvhln4x8Ffz3EXyvaMdNmzyTomU+wjB4tk= X-MS-TrafficTypeDiagnostic: DM2PR03MB557: X-Microsoft-Exchange-Diagnostics: 1; DM2PR03MB557; 31:hKHqgD5Jk3zJHFuYcl0RPSHVpLfNsD31bQSX3wjHY89h1b+vEJaec/yCzSWFqAWv4myafwPt2ZBryJVUKLhAoHPJZhVAhP866oug253c7JhTQwAGKFWPf3jfnkwab/eegb6W13YQG51Jqme5txTzbhiFZxH5GEgXA/4p2mCq8drBi8qHDAxVsuZIERBa2lGt5rogHnn73rxg+2NMXTj5VjNueJNd/l6bzWzH75peNSE=; 4:bP7KT7hW+GvJPmcLKHEpV0uuL4S2j4GPEg3J0HfUNT2sG6OH4ko3b93h4Pz/b8EUKx06XX8VCVMyfYoeID2nZSadrbeHoBtk1gMGGeJg7QMyzBM5/4C+78F6DS5ZrhdRjrnNpvZA19xZa52fjx/RqX7HXyF0APH6ZXQs2VwI6zvyhotRbEiB2RTbuzL9eS26lZjP7pfibF58bL57jy4u6unrCAZIx0DnDJVJaXcIPX2/7Qiwdzwg6jeHY2tkThuEWOxP04vlt8stGvaCT0EHU1jhC5FikXEElaQbIh3wmY8= X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123563025)(20161123565025)(20161123561025)(20161123556025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153)(20161123559100)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR03MB557; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR03MB557; X-Forefront-PRVS: 041032FF37 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR03MB557; 23:8TacZUXVb+yAKygWpYAiVUmGl8UYQ0M9xa/6XVCJLH?= CR4WXT+n/M+9kp7t32rb8pGlnymPsN7c3odsBCCYgMMRfI/jgZFZfcAKGMNQNgb5uTyJouf+jeertjYCF+1Y0ROjRImjlQFQkKlXv/W0sjlrL9JgCBDtYQSxcHvk0OxLHsxrE+FY+6/8LBmxv8uP5Uh1D5MbS2NmlNSJPwV1rE8jJ8l346SwZWUEWvGKNnFQGwEFww8lHuq0sdlpK4piyffZQriAp1lPAwoI4qpN/LtXZdl2LpUmeJ9Z9dEHi964rAMRmlS6XRlFq5FOIF87f+vQGyc15HFwb0sNwZL/TSyEHLtGHqY1jQA8HE7mX6xTOY4Orwm75dr835IcIO5hOpRE6eH3BnsnBn0fxZRw1jaz5MZP4mUJYREBPwMug42dBZxxsnYtZv/GaO3TXkeq0CpUF+bHAtheDyd/sCpzFy2KIic6Knw6tvvu2F+y8+kRACYnDqsXhdfhYADCX8jbQ2GOtaLAyycj0bQdZl7u0+aevrpGcg3wBetz0Ne3/aEzqaA0hBTrynTg/T0VjqQZ2ZD2TVUdfl4NpFpVhimrOkvycl4MQjl8FqAqB4ddOJGhTJHUvulaHCJB5dj6EsqkJ6aL2cK3YHjTztMwiCG2imRjQm8ONcjK7Fe1yN4fP3NEYEydFYSXitA9puBUWMLghKsX12QEBxTrEMILhYyI81CnreRtsrvKaeRQv7YJ09/4WQmcx714xu8YAwgH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TVomgOklIi+Fwg4LBr+SGhKyFD3xyk2++DQhtiWA8wXGcF/5bkqEQq/IxJrmDjqDlLimgNfQPjTg5iQ82fSf73Vys/8pDmOPEf+bAECPNi6wbvJBQKPpHbv2pCW1Ebw3uqsAjexkmPLDRZxOICjhSMGhBXII+MZ1Uw1kSkvLvoenjY6V8h248796H7YPL3EojdR4gibM7jqR03uCMZAA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Aug 2017 10:50:08.7013 (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: DM2PR03MB557 Subject: [dpdk-dev] [PATCH 04/27] bus/fslmc: support up to 32 frames in one volatile dequeue 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: Haiying Wang QMan5.0 supports up to 32 frames in one volatile dequeue command. For the older Qman versions which only support up to 16 frames, the highest bit in NUMF will be ignored. Signed-off-by: Haiying Wang Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_portal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index f212829..7fc78cd 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -704,7 +704,7 @@ static struct qb_attr_code code_pull_dct = QB_CODE(0, 0, 2); static struct qb_attr_code code_pull_dt = QB_CODE(0, 2, 2); static struct qb_attr_code code_pull_rls = QB_CODE(0, 4, 1); static struct qb_attr_code code_pull_stash = QB_CODE(0, 5, 1); -static struct qb_attr_code code_pull_numframes = QB_CODE(0, 8, 4); +static struct qb_attr_code code_pull_numframes = QB_CODE(0, 8, 5); static struct qb_attr_code code_pull_token = QB_CODE(0, 16, 8); static struct qb_attr_code code_pull_dqsource = QB_CODE(1, 0, 24); static struct qb_attr_code code_pull_rsp_lo = QB_CODE(2, 0, 32); @@ -743,7 +743,6 @@ void qbman_pull_desc_set_numframes(struct qbman_pull_desc *d, uint8_t numframes) { uint32_t *cl = qb_cl(d); - QBMAN_BUG_ON(!numframes || (numframes > 16)); qb_attr_code_encode(&code_pull_numframes, cl, (uint32_t)(numframes - 1)); }