From patchwork Fri Sep 8 08:45:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 112026 Delivered-To: patch@linaro.org Received: by 10.37.128.210 with SMTP id c18csp1243120ybm; Fri, 8 Sep 2017 01:46:44 -0700 (PDT) X-Google-Smtp-Source: ADKCNb6Mx37o5uXgOo51bzre6Wu2ZBVTCXH1f9+eFsSmjiGIlt1xpqMmH6PY0kGAPDXcOZUWCm2+ X-Received: by 10.223.143.105 with SMTP id p96mr1405863wrb.118.1504860404848; Fri, 08 Sep 2017 01:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1504860404; cv=none; d=google.com; s=arc-20160816; b=y6oBpECsvwLudkblzvY3f24X3K/WJNyNi476pBSeATRLOwIJ0wARpMMv/wnnZvsA5y Q8J/Pk5BQuvzjD4282XeXY+BEUNt5aQG/tBkdi2UZOPOp/4WqywBO5HCn+fbBy/09Elu 5ejYk9W2BhVPHwGPj+gpdK+xiZPgCTERGLDldqXDgqSiuBYt9MaxLWulmd50rc7gEyDG 7f8KHw9UEgCuvQNUEw0E+nDLHhhQaeU/SHsmqLBTAZJT/Gp5IkeRrR7LGnO4swP6ERXL +FeqWZL0GS9XsdKilBnamsiK51Wqa0er63f1nVQABYccwlBtoiELgJvZRy2+xR9Qpy6s qc3A== 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=owxBcy4rDDbJiHqZexjN7h5++wrKGStV23luvMyqoFtetFMf8H1jJUlpnVkF+UqnoH 3K1S3livhJaoamvQ9+Pkasj534fHdNyrUI3Sqi81hHU0/PpMc8cWmVcRpdSZN0vU6NnJ Vd9UmYeeJgkP345tR5irO/tUHCQ06hXqUqA+LEdYY3U1EdP3XIdQWWgjXoNCWqWBqsD9 DWZzKsY6/dDFlt8r74yxEQvbF02sekOus3XB5jjvdQoS6n+HXzDtv9Qz1NMCHQ7IRnU2 qOCDsMxC6Zbe3G4JUVjFudy+dqafA/GSi1uKzN9QaGmyIUqRPplgJPci3v5HpcNKcPqz +7gQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 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 ([2001:4b98:dc0:41:216:3eff:fe72:dd13]) by mx.google.com with ESMTP id q110si1118815wrb.132.2017.09.08.01.46.44; Fri, 08 Sep 2017 01:46:44 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 as permitted sender) client-ip=2001:4b98:dc0:41:216:3eff:fe72:dd13; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 2001:4b98:dc0:41:216:3eff:fe72:dd13 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 603D9199CD; Fri, 8 Sep 2017 10:46:04 +0200 (CEST) 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 44175199BE for ; Fri, 8 Sep 2017 10:46:01 +0200 (CEST) Received: from BN3PR03CA0110.namprd03.prod.outlook.com (10.174.66.28) by CY4PR03MB3319.namprd03.prod.outlook.com (10.171.247.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.13.10; Fri, 8 Sep 2017 08:45:59 +0000 Received: from BN1BFFO11OLC001.protection.gbl (2a01:111:f400:7c10::1:142) by BN3PR03CA0110.outlook.office365.com (2603:10b6:400:4::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.35.12 via Frontend Transport; Fri, 8 Sep 2017 08:45:59 +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 BN1BFFO11OLC001.mail.protection.outlook.com (10.58.145.12) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.13.11 via Frontend Transport; Fri, 8 Sep 2017 08:45:58 +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 v888jmoa023063; Fri, 8 Sep 2017 01:45:56 -0700 From: Hemant Agrawal To: CC: , Date: Fri, 8 Sep 2017 14:15:01 +0530 Message-ID: <1504860327-18451-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> References: <1503658183-4078-1-git-send-email-hemant.agrawal@nxp.com> <1504860327-18451-1-git-send-email-hemant.agrawal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131493339589723741; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(6009001)(336005)(39860400002)(39380400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(498600001)(54906002)(50986999)(76176999)(110136004)(53936002)(33646002)(105606002)(106466001)(5003940100001)(2351001)(2950100002)(2906002)(6916009)(6666003)(77096006)(36756003)(50466002)(48376002)(189998001)(4326008)(5660300001)(8656003)(356003)(50226002)(85426001)(305945005)(86362001)(8936002)(104016004)(8676002)(81156014)(81166006)(68736007)(97736004)(47776003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB3319; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11OLC001; 1:lgQ3jqc1F+p1YYr29jV/1DPU+Y52u1hXzByyUjFukXzfW5fJWR49t0zIUJSTiaxuxZBFBxQuULqgC/9rXmBdTqyUqkLapkZyGNSkM1PeIRsgOZIXJ5ll0vzt+ARpPcVX MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c026edb6-c18c-4e60-e4fe-08d4f6960707 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:CY4PR03MB3319; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3319; 3:eMh4Flks2np2o8zDjreS9KxvKyQRe7IODxAI3+cw5BoQZ75aJJVVjvOsZbNqDh4eP+FNPoM1w87AmZ5aN794HcjNX2tDgh4dVMDsbuyxIL4F8oZkTC34vcjP/g9nHliNxPQXAYtZwENhDDS5Qek7K0hioUv/9Oxcvh+jVwcFhq3TemLueDFg929teDe+FDfvp78WLqtmE0Dil/OwBR6M4jrr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S0KXOV7WVNti8VsWHrYyGNnaBQ8Sow= 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)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6096035)(20161123556025)(20161123561025)(20161123559100)(20161123563025)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR03MB3319; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR03MB3319; X-Forefront-PRVS: 04244E0DC5 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB3319; 23:16ybpBFRhZHqcShV7jDl5BQJciq1GQOPP8PxOMvh0?= QztVMcnD/aSNAKh+v02i+7ubHDWToePUdtExPmC2fP7QDmgXUMHxAHP97ndQZOtrx2amxVXi4GpZRCvPE3n4tQNiSPDOdyEnW6J9rz8eTi7/GtR7N3vSgPvKw9gj1/MMHrB36s7o2nksKntFG0oF25dBg7+iDtK3B3JvBf99LzZBCUa/FSgdJ5C8mRrrXtur07v91bCq34L1p0ICNmT+oTE76gv62H7M9eV/pARIMBol2zlaqptf4U8Cp1B2CqRA/EeeZ/Qj+N/leKGAtjfsUVqFqSZPcTMfl8YSkElURbJAUvr8D3vIgyET5vuUmBKhGxPhGm+h9/6VfgwVnZNgJjua2KYCwJMlH0s35dAjVjhM4QuKjkMgbNejITF1Zz5z/LD0S1u8F9uw87z4OowDDeV4ims/Hj5llB1jzLQDBkpB2TqCQ0pv8BSuNRpTpnLK4OfXRZid4+4iPTfsopAt3hKkoMWSCO3ZVnypn7hoKiSzE4x0Sb8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U7vGAsgKE0YEh4qbgGkZaGToi1tdEXFjK24ExADDnQ5GbZbL4dHId7UugSbgNJbngesieQ47UN2RV06Kejxa61JgHXc9kdCGDt8kbfS0gwANV95pN4y8xH7yuIffGNg==; 24:5Mgoo2SG2nWVtFFssTh25AQaJBlKX+UPLM8ls2b+xrptDYlYBlhdgq4zldmP4hHAzLAbXcOK819q6GPag54OXc/JfUJStXLNbUrH07ygGp4=; 7:FlWKPrVTgdcMOH5YymK7AgftLi8pT8byieqIgdnplb9NqTmGHy2/0ClimuOCfEEMV4z+ELDeYFsf9RheaUFTLz8pSzbGUdVyMw+h1JBMIOksVbvvwg9/lsgdXf+YSOB/9/yl6cchRqgJdtaZzLBe/MZchPLEHRHTJttZBxfgayrsbwdmbq86WfD2093FQV93lSDQxhQZc79SCOoGcFSbzCRSBg+t5fVrNUbCYoVsB74= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Sep 2017 08:45:58.7851 (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: CY4PR03MB3319 Subject: [dpdk-dev] [PATCH v2 04/30] 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)); }