From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0070.outbound.protection.outlook.com [104.47.41.70]) by dpdk.org (Postfix) with ESMTP id 7CD079A14 for ; Thu, 25 May 2017 20:09:39 +0200 (CEST) Received: from BLUPR0301CA0015.namprd03.prod.outlook.com (2a01:111:e400:5259::25) by DM2PR0301MB0909.namprd03.prod.outlook.com (2a01:111:e400:501c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Thu, 25 May 2017 18:09:37 +0000 Received: from BN1AFFO11FD016.protection.gbl (2a01:111:f400:7c10::166) by BLUPR0301CA0015.outlook.office365.com (2a01:111:e400:5259::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Thu, 25 May 2017 18:09:37 +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 BN1AFFO11FD016.mail.protection.outlook.com (10.58.52.76) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Thu, 25 May 2017 18:09:36 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v4PI84WM022340; Thu, 25 May 2017 11:09:33 -0700 From: Nipun Gupta To: CC: , , , , , , Nipun Gupta Date: Thu, 25 May 2017 23:37:42 +0530 Message-ID: <1495735671-4917-12-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> References: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131402093770481335; (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)(39410400002)(39380400002)(39850400002)(39450400003)(39840400002)(39860400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(53936002)(47776003)(36756003)(8676002)(48376002)(50466002)(77096006)(305945005)(105606002)(2950100002)(106466001)(8936002)(6666003)(6916009)(81166006)(33646002)(2351001)(38730400002)(50986999)(110136004)(356003)(76176999)(2906002)(86362001)(4326008)(85426001)(498600001)(54906002)(5660300001)(8656002)(189998001)(50226002)(5003940100001)(104016004); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0909; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD016; 1:RMNvMfOCwSVRmhAz29AWTCXH+FblkMybx67MdpoXJQ4qXwSFM+IWTV/mX9g9reYF1lqqlFsqE7X7fqI6usVveEV7hDxTzo5ZngWcFvmD4/SjxcxMX7E8EAKmi3fycLU+xMOKeAq2Sf8eyC117GWdlw4znkK05DPT7L/mPkpctJB0BPBqMWisnDI/BWCz57WiG2drx8QSeotp7q3io5LYyOcGedkCG6xfpVBQsqk182sPV8deajjozgNrfjzbNEV8sK/aRIzY4t2al7XtIBNc+TsQ+LTlM16b6L0nS1cTkPqOjzTb5bsYXq7C9+6afUdLMl2kK4OaU7PkUN3duvzCd4pvfDTcUOL7psze7wL0RAdiUfptkAn/PI21/qU6Uh2Zz+97cUwEivx3zaII5qlVw+MbX0YbeeltbcR+NDPL+EZ515cI9em3zEULFxrcDkZkKNHE8veemDw18RMBtcnCs1h96XjLcdzsR7NOCYcQGc1/bY7oQW8PVWg5MxYA/7PsbU3aLGhtkN0aiiLjmzawIXlEUAGHhdop+ZmgPTKEricfA0l5yFGGQFPxXxCorbhPuStd5t6BN0SCp0aq2oBECGhv47JzUB3mAXCsA82I60LfQ7337LJWis/y7z6ot2v7NUeg0Dp2Mj3yvxK1L4y732nzTFWzdUk26A2fUOAsPEvl9mcHo3cJ+YmnKsGncf9pAIZ79K8JHVes6OYzgBkCdzxWLU2yEN3r6MEu6xqVofOoh/qldSaRa1ZhQmUGg9cGW+cTA+ub7+/jTfmlxQ4jzA== MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR0301MB0909: X-MS-Office365-Filtering-Correlation-Id: fcc3d77a-7cbe-4e29-3d57-08d4a3993463 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:DM2PR0301MB0909; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0909; 3:raVnSvZtC5rRWiC8B3tbLpuQra2WpaR1fiSr0WtjLLs9k+peGVyQgB/ctnsfGeAl9JuE/LOzbth4w8sHXUG6mB/CESQ1Vaj+HKZPVvQ5mGqRDlKUNI75ku7RUQ0++V5yQWa88EhFU7HJp0V6+bWzdfJ6Lchw9KulcY7ps8dWyLH5G7OUOoVnXykJRd2jAQsglJnXlCBxE4rdZrURgiAzeqTMaa/cyh3vtF7i66gQcR1T/UhzLzEIkhPktedUX7nobpSXKa5aD2prZp33LgEoQpAB2XJmeZ2kvFxgPuKIS6dTgikrsKvj0wns1ackRrgwjHUFe3ZR1Le/272RZxCkPDkvSmdZIrMyvtyQ6Rm1RbM7fzO9byFGC9+Y0bnlHo7WO0ZEFPs57pAh09OK0qOo25FgTPTmibTQPbdYOMmsN0SK0HZnQmj9LHNCTEQdZwfl; 25:7lTrWuyf52PC86azntWBAWFNrjZ0j15PCxYe9RSBOrZZkFdO7D1NRfq+MRAUQndn08ZVPmoQjuYHcBIPK/DE9ckaqkwU3PyIoojLop5R1Zw4ZzBXqKRG9wFUhG6d/POK13LuFieG39E6QM4ufs4Y8aDE3kvVSQPe2EZjVv25EpOghryOrP/vcE2gIUoZ0ddGHsSO7G8gZ/Gt03twt4gqPvzYet9IYalQXr/xRr7fDMopDgrXNm1fiGYT6qf+dVgsXQJKoV5iX12S1FS/ZUOutmi3KLrgmUbSCaMK0Fr7qTcFkfZydxRn01rPZaPwEg67iwEjqifPFpCAzorW6cdXfAAs6WMEaeAgw39fIK+i6a1MEHizshSBuQ+Vb/cSMduF+Vbw30ZHsQ3K0uZVxbMc7XtPeskJL/R50lE20Bi1bY0rnSP3jKQbOnFyjX4Vlr7WU2trRdv8HHdeWKFnFpg/ez2S1NOQC9Nm+72KXckB8Lw= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0909; 31:1RPxULkXWe8rbiynjSxUBzHgK2KVTUrS7AupYFvfRWuubZTF6LX5JTsC+H6JI3dlkmpRaYm2SDF4mjdoX40t9bxxcG8ZP+o30Pr6D0t0NMaR6UbdoidOCPyLFt4HBylCjiSQGya2DcHYg0jn+FW0ZznPN2x98aa1vIr1MfURBS9IFX625tk/W4rntABwuoCTdQamM/GxeUlyyW0ZQHe5+1f+8xI+2zWaOVv4vbsvLlc1Q/urknPLy1e9Cyo3e9Mx1n05sjENs6Z66hr0Z52tZA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13018025)(13023025)(13024025)(8121501046)(5005006)(13015025)(13017025)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123563025)(20161123556025)(20161123561025); SRVR:DM2PR0301MB0909; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0909; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0909; 4:sTANedj9M2tIT9ixY4ynbPcftHjrbUCN8o7vvsBD?= =?us-ascii?Q?dLfQm0Zscan/1l97GEGETgWOErfX9s+64HjMuJp2PlrMc2o1HWVusGe7CAk1?= =?us-ascii?Q?kMk/k+ii3QgAjrt/APfIoaW/TErY/YcXHirGGjkaTVgGLL2fBXfexY5zwvmC?= =?us-ascii?Q?ENmBi+t+8MftDEqMVA8vMTjLggo4w1BIAILMz+2yaIpbJOGwZ4CFkQa535kS?= =?us-ascii?Q?gGTEqGq9lsMwRIDzhHN3QlPhf738Sqhggu+dG8WDk9H0zrwpThKSpCxz61+S?= =?us-ascii?Q?gibSp5nhTmL2l2QHtg+iK7rN1nBweWL4wws9xQa8ERUUKpNmp4A6gHs52qRj?= =?us-ascii?Q?I30dD+qUJIuhPD0b+4ic70vzJYpgjwhRpHYuHTo+rGR3WmlC5la5x0z51Isq?= =?us-ascii?Q?o5zX3/V1mD7q4+xShzvqkJeywHpQbDH/hkzfdQtwCw+w/A4mlfXWiLP0BrgL?= =?us-ascii?Q?lR2Hlmg+JosTxsEyOO5jiyE4CZh0fXXnVwTdXfqsCziD48Qt3KqUHrbAcayq?= =?us-ascii?Q?6l86Tnc+ijeEYvHpYpyQGxqFmXn4DiTvxZ6ttIJgPIOoExDQLH7KFt7iIxj8?= =?us-ascii?Q?HOetVyzpVux7I1EEgPucINLVNaD0/eeVASUPpJTo7L+ofibyyJ6pAI74Ao/6?= =?us-ascii?Q?icmYniqyyWbcRM0o8gxl5LjUUmDlWXsXfa78AYZuuqe5u1FqHAmR6o/l+YaK?= =?us-ascii?Q?yPrlyiH2UtbvXZSJDTQkTgU4UnhddeR/nYQpdK9rlEvuI5oZQmFUupnAb+e+?= =?us-ascii?Q?dUAHmzSm9qUYN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Do2nXxQp2ZRumemMQ4waw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 18:09:36.8609 (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: DM2PR0301MB0909 Subject: [dpdk-dev] [PATCH 11/20] bus/fslmc: add support for static dequeue from portal 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: , X-List-Received-Date: Thu, 25 May 2017 18:09:40 -0000 Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/mc/dpio.c | 44 +++++++++++++++++++++++++++++ drivers/bus/fslmc/mc/fsl_dpio.h | 30 ++++++++++++++++++++ drivers/bus/fslmc/portal/dpaa2_hw_dpio.h | 1 + drivers/bus/fslmc/rte_bus_fslmc_version.map | 2 ++ 4 files changed, 77 insertions(+) diff --git a/drivers/bus/fslmc/mc/dpio.c b/drivers/bus/fslmc/mc/dpio.c index d84232a..3553952 100644 --- a/drivers/bus/fslmc/mc/dpio.c +++ b/drivers/bus/fslmc/mc/dpio.c @@ -257,6 +257,50 @@ int dpio_get_stashing_destination(struct fsl_mc_io *mc_io, return 0; } +int dpio_add_static_dequeue_channel(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token, + int dpcon_id, + uint8_t *channel_index) +{ + struct mc_command cmd = { 0 }; + int err; + + /* prepare command */ + cmd.header = mc_encode_cmd_header(DPIO_CMDID_ADD_STATIC_DEQUEUE_CHANNEL, + cmd_flags, + token); + DPIO_CMD_ADD_STATIC_DEQUEUE_CHANNEL(cmd, dpcon_id); + + /* send command to mc*/ + err = mc_send_command(mc_io, &cmd); + if (err) + return err; + + /* retrieve response parameters */ + DPIO_RSP_ADD_STATIC_DEQUEUE_CHANNEL(cmd, *channel_index); + + return 0; +} + +int dpio_remove_static_dequeue_channel(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token, + int dpcon_id) +{ + struct mc_command cmd = { 0 }; + + /* prepare command */ + cmd.header = mc_encode_cmd_header( + DPIO_CMDID_REMOVE_STATIC_DEQUEUE_CHANNEL, + cmd_flags, + token); + DPIO_CMD_REMOVE_STATIC_DEQUEUE_CHANNEL(cmd, dpcon_id); + + /* send command to mc*/ + return mc_send_command(mc_io, &cmd); +} + int dpio_get_api_version(struct fsl_mc_io *mc_io, uint32_t cmd_flags, uint16_t *major_ver, diff --git a/drivers/bus/fslmc/mc/fsl_dpio.h b/drivers/bus/fslmc/mc/fsl_dpio.h index 6d86f07..39b572d 100644 --- a/drivers/bus/fslmc/mc/fsl_dpio.h +++ b/drivers/bus/fslmc/mc/fsl_dpio.h @@ -230,6 +230,36 @@ int dpio_get_stashing_destination(struct fsl_mc_io *mc_io, uint8_t *sdest); /** + * dpio_add_static_dequeue_channel() - Add a static dequeue channel. + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @token: Token of DPIO object + * @dpcon_id: DPCON object ID + * @channel_index: Returned channel index to be used in qbman API + * + * Return: '0' on Success; Error code otherwise. + */ +int dpio_add_static_dequeue_channel(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token, + int dpcon_id, + uint8_t *channel_index); + +/** + * dpio_remove_static_dequeue_channel() - Remove a static dequeue channel. + * @mc_io: Pointer to MC portal's I/O object + * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' + * @token: Token of DPIO object + * @dpcon_id: DPCON object ID + * + * Return: '0' on Success; Error code otherwise. + */ +int dpio_remove_static_dequeue_channel(struct fsl_mc_io *mc_io, + uint32_t cmd_flags, + uint16_t token, + int dpcon_id); + +/** * struct dpio_attr - Structure representing DPIO attributes * @id: DPIO object ID * @qbman_portal_ce_offset: offset of the software portal cache-enabled area diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h index 4269800..77efe37 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpio.h @@ -42,6 +42,7 @@ struct dpaa2_io_portal_t { struct dpaa2_dpio_dev *sec_dpio_dev; uint64_t net_tid; uint64_t sec_tid; + void *eventdev; }; /*! Global per thread DPIO portal */ diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map index fdc6e21..79cb648 100644 --- a/drivers/bus/fslmc/rte_bus_fslmc_version.map +++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map @@ -58,6 +58,8 @@ DPDK_17.08 { dpci_set_rx_queue; dpcon_open; dpcon_get_attributes; + dpio_add_static_dequeue_channel; + dpio_remove_static_dequeue_channel; qbman_eq_desc_set_dca; qbman_get_dqrr_from_idx; qbman_get_dqrr_idx; -- 1.9.1