From patchwork Sat Sep 16 10:52:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 112786 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp1614771qgf; Sat, 16 Sep 2017 03:53:59 -0700 (PDT) X-Google-Smtp-Source: ADKCNb59rTnKk37aOEsYl4cXy5K4qbcK5W8qv25h1QCSKi98eEGHPFZz/v1fgsOU9R3GB44NkPJG X-Received: by 10.223.178.166 with SMTP id g35mr24784443wrd.262.1505559239032; Sat, 16 Sep 2017 03:53:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505559239; cv=none; d=google.com; s=arc-20160816; b=F+sl7AF4p1/8r3oUZ7zW/KbE/agRfleifN8ZA4nW0k3JVfs5U3KjP+ASRJ+V+dpYCw vhCdt2fQQtnpR7JFtCsIM+P3dR7QbXkryFXxAQgKTkTWazT0z22+E0AfjyADrOPmhYQh 75+xNFdzAK475vjaQDr8HCP8K5D5YOXHOWczsCXnWJ4Ztryp8PR5Nc3guh3oPGEhgzfx KD597Aw0ztNX55Rsd5+PTVLQxdC3c+XQXKIL7yg8I9CnYzCvUVYpQiqcxrbWw/1oT2fC M5yrENyiNldzKowWjYL9B1pcHAe8Z76dUAvYeFM8d2VhMN0xIxJjO/NLQCMtFHy0S6Km hKmw== 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=KY+7MYvNEUmscUlwEiGgitzbhjqouEWfH3r4Xbm1rhOgl629Havb7QLHPtBOgY2OgK VsHozlSzpMGnwTfERqWlsaKiO9FhN4hIMtvnqMFZ5WWcO8bE2jn1q4n4O5ugvj5J7CPA LmPZCCAOZamWp/dmy2i6v3fk+AoNTfZ/+4eAaytQHXgKvqAJBMGXA+fRBChRLzy2Wpq4 X2UPtTPYX81S2CLRiD6sbNE4Dv4omFKQp+WGvugTFq/VCQsYOKUUElFBlYwVS0+NaVzU 1u7nrECNKdaFl4cMSM2VfeumXELtaXlP4MIpUErov1cICcuikn1Bavskt5MyWdwBnoL1 5+5w== 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 i4si2528662wma.193.2017.09.16.03.53.58; Sat, 16 Sep 2017 03:53:59 -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 [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7ED701B19F; Sat, 16 Sep 2017 12:53:26 +0200 (CEST) Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0084.outbound.protection.outlook.com [104.47.34.84]) by dpdk.org (Postfix) with ESMTP id 4E0991B18C for ; Sat, 16 Sep 2017 12:53:19 +0200 (CEST) Received: from BN6PR03CA0052.namprd03.prod.outlook.com (10.173.137.14) by CY1PR03MB2362.namprd03.prod.outlook.com (10.166.207.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Sat, 16 Sep 2017 10:53:17 +0000 Received: from BY2FFO11OLC013.protection.gbl (2a01:111:f400:7c0c::138) by BN6PR03CA0052.outlook.office365.com (2603:10b6:404:4c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.8 via Frontend Transport; Sat, 16 Sep 2017 10:53:16 +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 BY2FFO11OLC013.mail.protection.outlook.com (10.1.15.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.13.11 via Frontend Transport; Sat, 16 Sep 2017 10:53:16 +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 v8GAr6up028328; Sat, 16 Sep 2017 03:53:14 -0700 From: Hemant Agrawal To: CC: , Date: Sat, 16 Sep 2017 16:22:18 +0530 Message-ID: <1505559161-29222-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> References: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> <1505559161-29222-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131500327964822518; (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)(346002)(376002)(39380400002)(39860400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(189998001)(54906002)(104016004)(4326008)(97736004)(36756003)(48376002)(110136004)(76176999)(53936002)(50986999)(5003940100001)(50466002)(5660300001)(77096006)(33646002)(50226002)(81156014)(8676002)(8936002)(81166006)(68736007)(8656003)(305945005)(85426001)(105606002)(106466001)(356003)(2351001)(86362001)(16586007)(47776003)(498600001)(2906002)(316002)(2950100002)(6916009); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2362; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC013; 1:HuWEuF7D8KEDBiWR0WlFoXTSgYoxATSuQgHzBJL4QAL0RdCP87JFusF4RPNcgtz/GVT0F9rz21w54LKNaaEji7hCdG/aOnKDp71p7hmnLw2cNaTlrsXQjI/wAEXbgp4b MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e20cb96e-41fd-4690-cbf6-08d4fcf122a7 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:CY1PR03MB2362; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 3:HEpx7mv8j1mSm647u5NcCHElvuNu4V2YsVZpbat+5f2SUkrHUSAhnoIhIPFsUKMHzyKpSE9sTYsHC+HE+5T43TfNcVP1xIfnmd/jOJW8MKpwJtg1OV8gpkva2GuSydm3myK39km7rrHFfIK+UeUT9NGNAdl3NQNsjGqAU9gV9GEaR4CnzhdKGcERKXfWEUJcT/eys6WbW0PcUP8qutdNPae8YSQCivvfzCFSsC3m9A5ibzpwnvKS0hil+w1JXx2tgS7aHuBgmMc40emwvawhtAcnCryYMYvlZmDUAoUpQIWbXzbdtGL0vUpxaNRVbs+F2irS/fZ8hiwrgdkT3dzYMRPul8Uy4hMEdTLcfMIMFD0=; 25:AFObUki+PCgwr4Od7TPiyh5O3V6TYYaJ2SnLWnzWqVuBlkTSGXBOu4XbB+qI3PqWNBqmEbo/DZlFpgceVkJegtbE1czIsj0+IGHv3Z7K1wgCAs2mR7HPj4XmARxd/DdTMobBT7l96k4eihA7nzz8W9yEyi2Kky0iitg0fWlfdimmF7xKxiCGpq1tdv/VmqF0htkG/7hmlFnaE9ohCjXxgBLKr2yBPgDXq+bOJSUE3D6K+i48Hsg2WFD2lcFx9hN6R05AGTWWaczdX5599FByOysBKJPsfAmv34864tfvFThZ3cVxDjR/mDXw+EjSYZt2c4GBR4MiuiOr1r1flUcAFQ== X-MS-TrafficTypeDiagnostic: CY1PR03MB2362: X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2362; 31:XxTNrCeMfdoc/FnHB4uWTzpuZqWVEK7pwUs5TwuFcqUsv9wVezsCFfYcOhOkDKKrjshBabsZcLN6I4SaydLFIfISt3kw5oZbF5KO/Y5h1jE3vz4pHYRORHz+rjNZxY248v0dikPLOjAYtnkRn0eMYYs7IHtYswelVZ1J6HLLQt7n6Fic2WkfEdJo7D5AQMqtyYIzMwR+xVUcxSjuQv3GUJ7IFCayMllkj1s0WRw3sRI=; 4:Gye7Jk7IuSCY1FzBlm9hRixImwAke2lN3lY4+wBZRDIiYceLuNi4vB8IBE7HY898O0Ls1/oyPlDdXLSZDmaRlAYWkDgku9tnRKTSyutk76m0LXrY2I2DW8u/mrUzYx5cDOz/jbseCV2WnxyPnk0JCgw49E4xCc2hdx1f+X+AAqSR+OXX8KXd62xW0AHY+MjqBmeN6eIGj4RMyde1SFVTH/86q0woK16xqrq3ntuEIQIlcO3qRWw6X4O6ky1dxA7vDbGTVvlWVybTeEGCZ8dfaWcpMSRDxXaboztP+4hhv7s= 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)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123559100)(20161123565025)(20161123556025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2362; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2362; X-Forefront-PRVS: 0432A04947 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2362; 23:x8wLuCRmCD1msOUtcsbkUH4GzikDv9N4B/3MgQmJR?= PPq4ngjrNitKp4tBIiRWEPYK7+aEMmHoUZUyFyDhiYLby+bcnw0KZRWHNLfIZU4Q72qZXrJacUjDdN9qKYebplzvEBl7NwTb3RVoyNTqlDbDxTwHpmUiIRBuex54Hb8g8l6WmpfvsVbaMUVjOXTcKejkh6tPrZaf5ZBzEaDPNTyoRjctNo9crH0JN7QCOQkqsDZdAqXACQwtthfOp2y/+sMuvkI8yV+7WhRQBuJ3LAdE8W+3OD8KZF4TVEGs66NCc+yKPKmgyxFNVlVThOVS8A6WdB+4mo3Yp1yAOxUK9BZfOsVjz9OiheY8xeVe/znX7t7Xc2u6RxVFe2A/Qchk+bo0ykMdd2xGXD2qm483R9hYGFvQaQkXQgkoX3/y91MJURgM/VEBky4k/tbME0ODANBm7xwrgMU0sFfaqL7O97QTnfZAT0pNuka26To2YY5kGBBKaVl18oS47FNJVxk6ygZb10z0GEDLqIZa15bnSh69HQrvYEvkgSN2WI5O5sDda89dPGAL8+6h3wNxTuEs5cmIsV4UKfFJLuJNvZOCFaUXhuw2itkus3oTQJCECEoitT/lp02/jicYsJtIPIURV9lufp7pm4cCTRiCte49lzfM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vRRh2tDQfVbdjaEdDlAsbSbZG0XX2EVMMuoqffqfyOE68bIX3y2ot/K0ZPGuT6tO4ioTMJqMiVt1ibKA06tMR/WC+qyF24/Y=; 7:wLeY5HXbvk9NE+fFDn0HXjUrroiaEXwE5rA114Im9FcOEe3NMivmSX7V55MnPUCMP/N3xjiSr69CG1Y64PhAMDyNb6+7wusTVMWUdm6e+ANyRrI/BhY2cAFodmTVK3fYJvYgjpG0/nciaURCUf1xFx3RhSDC3JmxZ35vLv7jViODhNt4E+MyPU3YfIZVK7hqcQXlTzjlj8O8y/Gd/37SoBTPdKTC1czKyH5NqJyEP0g= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Sep 2017 10:53:16.2950 (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: CY1PR03MB2362 Subject: [dpdk-dev] [PATCH v3 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)); }