From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0046.outbound.protection.outlook.com [104.47.41.46]) by dpdk.org (Postfix) with ESMTP id 4F5CD7CDA for ; Wed, 31 May 2017 17:30:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BXjpe11HiYmKCUtloAJZL9JMCeYLh6IsMVcgnqok5M4=; b=a8m3HF2A+Vc0r7omnb6WrBspCqVbG6tcATH1iqS1g8YUiTJ9a+eq3KsmEp/7PIItVe3QCBloV0xyqn6fTF+Y1IUwfxOYvSNQ6G6a3ijKo+Ekzt4w+rln9cSoPX8DmF3637PBaBQA/curePI9NICkH1ww0LwF1Dr0MW1O2xkNS4I= Authentication-Results: nxp.com; dkim=none (message not signed) header.d=none; nxp.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (111.93.218.67) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 15:30:06 +0000 Date: Wed, 31 May 2017 20:59:14 +0530 From: Jerin Jacob To: Nipun Gupta Cc: dev@dpdk.org, hemant.agrawal@nxp.com, harry.van.haaren@intel.com, bruce.richardson@intel.com, gage.eads@intel.com, shreyansh.jain@nxp.com Message-ID: <20170531152913.GD16598@jerin> References: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> <1495735671-4917-13-git-send-email-nipun.gupta@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1495735671-4917-13-git-send-email-nipun.gupta@nxp.com> User-Agent: Mutt/1.8.2 (2017-04-18) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR01CA0111.INDPRD01.PROD.OUTLOOK.COM (10.174.208.27) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1714: X-MS-Office365-Filtering-Correlation-Id: 57d3b462-3d82-493d-06dd-08d4a839ebfc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 3:evfo7pjFaLTzGo0JElQpTNKasMRRub+0Ja82TUM7uh48EJuT26DMGNVsbGgsM5+B00PznDWDEhvV+eTrYm3ECGZCIlEP9AiqiFkJM/5iZPwva9HnUzF2YzVDfpeqqYXLneqmZZlu+EJwC5A8sFNlZhY4IatgQ5TX0piEEoQQTmo94IFWcE+3wLZL4eRKlS8N6aFgD+y2wtMF71uSwD4SPRSNrgZXbUyO0f7GzAWUSopT+Iox5GaPadC5SNyOIdO1Sw+OVq4NMZMTEsNPfvTyi+pBsEfRYqAHx9s9WgXCOKrkbMLwPYWjonZqO3xABHfzh2rlCTEzHRngs2hiYC/IFg==; 25:r5Xs3rQgXeFnlrIH1X7KC2hBea5HIME/FHcsYF3VvWU3QkgK2kBOnL9B4ARZNoY13qqNO+lhp442M3QWZm/v+v1w2dyIgaJwr62zdvEooBoLP51l2ZTgOZ5h6VEb1UlR+tG5Hz/nlV787nVtYo6Gno/Bwtg+BWCjSw6LFg1i2UpxJbzVIhP5RQtHtyafwvglNy7f1a9X6bUojNADHCTZ0tCBOCm7iAwnu0AXALuUbmitCy5xovGulIxC8wQe9JuPcfJLNtaG5ihX+Py1Ok35Kmjy1NkrQavsECzhQywyFZG6k3qiFNxItXHNo2371v+r1MHXhHg6FWrcYyetbB6/AqG40V7cQN9oSu+LX+nJv14bDAY2iAL0a6XDPb5c5sEfnqd9opSqQAHg2cSEgGut5qPgtNm35w7UBn7Z/vEf9orFLerjF8FYHFvsUzUpiAVygjpvbcQPldmzO7E0h4i5VCLpcXxULjrr0z5JoPYIy+E= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 31:N7gyWlUlec5sK425nVvBa8GZvRW2HQvANlsg8xQ7RQkU4CISP+FpQnPG2hlpBg6cV6wVHNWaLqEmxyMCGcYtCizPQT+bcjEeea6daNgAz7B48y8yGlkuru/daRF/tmxybk/xvPsRtDzbd1b8p/gXR93zLL5YM1dgNZjaqoanNWCHZGRswye0IQ34yzB/7/pj/PSIYugiEHhpNGJrteN9VupqObpHOYN4QPW5ZJiDSB6MEbR4rtoImlYeg841pW67; 20:T28qaGUxagZvTE1vIGYQVV4cleKV4qAdTK6I9NR5zrhB2ynrkHJDpJknn3PfB5+Oo4FDmOQguQ32JX1CUBg/LeujEwh/BCyvApUdw0tkX+FytcUpfWPjbY7TrM4DBNICR3QnzEBEB4fz5OMFmzr2jhEz+WeJc2cM1HZ1A5cXyyBkyyFTN6HPLtTOvILzE4ML9JY3RIm1VQ7WP3432S3kW0vEnmQQ/g8cUKqEeVstytVSUCVBxDZyS5844mAsqHiCs10UDSFYn9bElwktSKmXrYvzbl99rvwyoQuPFNL9j0t50qwX9sPloXrkwafv/eh3qPq2yeLplnkJ2GsF43FU/CbJCiVAQauwSK3feHmR7aAFGbSeEop+ayrCWsCe6DJX0wL8Y4p5uTmJCWpATRWcxymhx4D7k9FYMRpj6JWYe8rEcFZKV/q4HpM13I0M2UdY7ArdLXOl9o6RIkAcORKVnqriCSofdr64YBgmm4Dm1rLq1zeaA1KGUyLAZZVQoSwmnMm6jS0sL37RlezREqsXek/UaVFxu/NMXEDLuHxK/S6dPibAxZItZjgiOB91LlSC/ImxyctljKRkqTYcRwHC1b63u6GBz/qFH9h1ENF3UAo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(93006095)(6041248)(20161123560025)(20161123562025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:kO2LA+GCO9opl/IKzjtvsLyJ7fX/L5DA2eDOj14KWSrKCGSAdH5T/ZB+AqeUUUy2+8YgRzDJrWzNOTgG8YUSTZHYovHaZsYVsOKi252RFpjmfoqR1MdKpKaHH3L7No1kADW6HwmDShe0GmSbC98++crpK4BvT/QI0d/4Fr9y+16ORoIimti4td7ufWJBsfWaIEdoISGGeZHz6vx0CmcSl1e/+fiS/pDI/QJu4dpnR4H9TcIBiIFV3r02YZFgx6HB3dLrIVPmfHjFDtt6YeyNnIExbCB7Fz1tzE6rC7snCbe3yFo+0I1tE5e0mwp+nnwO9FUno1RQhzY0e3aKBukI7Q5YJQ7/AaR1RN3/2+G3IY3qrLJH/5gQAyUPKjHABh/aE+pAtvZ+ICeJCFz1n6/OgWCJOnfEiy9quDIut50nz6LcnLrpMauqkASLKVquxSX/5L2xgaeIrKGVQQ40RSrrt+zfkLf97J7kjpFZ7jKjaZeDwm24THLavCN3zjummfqqhne6G9HADd98zFCzgOCPkuLDTQYwTY1IyVXt4rBbEDQqICmTnyhiiO7ZXEMM/ztY9zDTOaX+cZ7BDLlNKwvGlwqUkwHXpHc2BXXPH7hjIqZdseAhdcuyouPShHf4UOuTduD0K/9wHg/Sb5KwvrQdxdfN1iKRZiZtZpzEF2OLUzopnehd3DNzGmfFoZaRrz8JeWFkn4wLN6nJ9AbNcWicKeZfUo7UconJ8LJy62lJZIxLH59UJqfhZ1HtBark2eGYEdZgFlzkiljmzLgbPntqp2vSEBMdDxkBZh6MDm+rcZRavCIFmirGGf+YalqHn1OaG5QQ5QlcM3BsR9JA4U9XRQ== X-Forefront-PRVS: 0324C2C0E2 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39410400002)(39850400002)(39400400002)(13464003)(6916009)(50986999)(33716001)(42882006)(76176999)(54356999)(33656002)(2950100002)(6666003)(305945005)(25786009)(229853002)(5009440100003)(2906002)(8676002)(50466002)(478600001)(189998001)(5660300001)(8656002)(55016002)(83506001)(23726003)(1076002)(6116002)(9686003)(4326008)(53936002)(3846002)(81166006)(42186005)(72206003)(110136004)(66066001)(38730400002)(7736002)(4001350100001)(6496005)(6246003)(47776003)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1714; 23:sdlprteFTVRJBNmlunGeBXmED6dUVYwjRhZBuw9?= =?us-ascii?Q?+4r0UJ5VxQDsxK71A+pEns0e3R0hoPjq/ap8Sus/KpRZdPRdvzRd4+G1pqVQ?= =?us-ascii?Q?Y7OvErR1+nqVG4xkg+++Z6z5/utoF30ugAPwYj0fIXTNGFBnlKyC7OlAI9Ar?= =?us-ascii?Q?iSNR5sqkVMaUs0LHuIikhpEQRRub16dWKYr9gT+MBtoLsM9XzjGM4XJAef7o?= =?us-ascii?Q?EkwUZnCtZ0GjRENeqVBI7B7imvVocWzt2SayjgIyVkFf09JYjYA5qlF22Keo?= =?us-ascii?Q?isW7DuAhYGrYKCiVcyMckdkGPAI120DiJRoPPMYrNtm1hsbtEiTlnzlhudsG?= =?us-ascii?Q?vSZyNWPh/CDxNRHYhNjwBW/6vuAOnIqsUbsr7ZCANIEemHvOlECeevbPNAud?= =?us-ascii?Q?eIWGaR+xiI8rCARQeHU+Ffgzb1Q69G0UzWLRLgZrBCFy2LLaD61DgibcZIIH?= =?us-ascii?Q?AAZs+AgPC1ysimsd+D0/XxdU2++hxycvlk53CgbL+01tEY6lfpQJx0IB6oiP?= =?us-ascii?Q?5XeFQh3Kk8XI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Org: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 15:30:06.4815 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Subject: Re: [dpdk-dev] [PATCH 12/20] event/dpaa2: add configuration functions 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: Wed, 31 May 2017 15:30:12 -0000 -----Original Message----- > Date: Thu, 25 May 2017 23:37:43 +0530 > From: Nipun Gupta > To: dev@dpdk.org > CC: hemant.agrawal@nxp.com, jerin.jacob@caviumnetworks.com, > harry.van.haaren@intel.com, bruce.richardson@intel.com, > gage.eads@intel.com, shreyansh.jain@nxp.com, Nipun Gupta > > Subject: [PATCH 12/20] event/dpaa2: add configuration functions > X-Mailer: git-send-email 1.9.1 > > This patch adds all the configuration API's for DPAA2 eventdev > including device config, start, stop & port and queue > related API's > > Signed-off-by: Nipun Gupta > --- > drivers/event/dpaa2/dpaa2_eventdev.c | 283 ++++++++++++++++++++++++++++++++++- > drivers/event/dpaa2/dpaa2_eventdev.h | 22 +++ > 2 files changed, 304 insertions(+), 1 deletion(-) > > diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c > index 7fa17f2..cfb52bb 100644 > --- a/drivers/event/dpaa2/dpaa2_eventdev.c > +++ b/drivers/event/dpaa2/dpaa2_eventdev.c > @@ -106,7 +106,288 @@ > return dpaa2_eventdev_dequeue_burst(port, ev, 1, timeout_ticks); > } > > +static int > +dpaa2_eventdev_queue_setup(struct rte_eventdev *dev, uint8_t queue_id, > + const struct rte_event_queue_conf *queue_conf) > +{ > + struct dpaa2_eventdev *priv = dev->data->dev_private; > + struct evq_info_t *evq_info = > + &priv->evq_info[queue_id]; > + > + PMD_DRV_FUNC_TRACE(); > + > + evq_info->event_queue_cfg = queue_conf->event_queue_cfg; Based on the documentation, it looks like ORDERED sched type is not supported. If so, return an error when queue config request is RTE_EVENT_QUEUE_CFG_ORDERED_ONLY. On the same lines, default_queue_setup() returns RTE_EVENT_QUEUE_CFG_ALL_TYPES as default value. If ORDERED sched type is not supported then I think, RTE_EVENT_QUEUE_CFG_ALL_TYPES can not be used as default or configured. > + > + return 0; > +} > + > +static void > +dpaa2_eventdev_port_release(void *port) > +{ > + PMD_DRV_FUNC_TRACE(); > + > + RTE_SET_USED(port); > +} > + > +static int > +dpaa2_eventdev_port_setup(struct rte_eventdev *dev, uint8_t port_id, > + const struct rte_event_port_conf *port_conf) > +{ > + PMD_DRV_FUNC_TRACE(); > + > + RTE_SET_USED(port_conf); > + > + if (!dpaa2_io_portal[port_id].dpio_dev) { > + dpaa2_io_portal[port_id].dpio_dev = > + dpaa2_get_qbman_swp(port_id); > + rte_atomic16_inc(&dpaa2_io_portal[port_id].dpio_dev->ref_count); > + if (!dpaa2_io_portal[port_id].dpio_dev) > + return -1; > + } > + > + dpaa2_io_portal[port_id].eventdev = dev; > + dev->data->ports[port_id] = &dpaa2_io_portal[port_id]; > + return 0; > +} > +