From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0065.outbound.protection.outlook.com [104.47.38.65]) by dpdk.org (Postfix) with ESMTP id 4A54F1B396 for ; Fri, 28 Sep 2018 13:44:57 +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:X-MS-Exchange-SenderADCheck; bh=UonXjAyP8od4P/3KEoQ/20dLr0S+DPly1bF7wnx7GLY=; b=OaFruxXqE3hy2tTJSFAWvY2dXDJw3MfRd4fjLHc7rvSCKTKQRHno1HX+UXDa44IHjnyRtzBjRsZCunOKKMkZNX7XhQ2/R8Jp+lg2++dC4eTAxnZ7+LLxX7e66iMVEWOKMuOdo4UiDHANdybeFx1JPFxKXxsvLp4Ix53u2+6oHtE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (115.113.156.3) by BL0PR07MB4994.namprd07.prod.outlook.com (2603:10b6:208:49::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1143.18; Fri, 28 Sep 2018 11:43:35 +0000 Date: Fri, 28 Sep 2018 17:13:15 +0530 From: Jerin Jacob To: Hemant Agrawal Cc: dev@dpdk.org Message-ID: <20180928114314.GA22543@jerin> References: <1535607196-26782-1-git-send-email-hemant.agrawal@nxp.com> <1537858955-6884-1-git-send-email-hemant.agrawal@nxp.com> <1537858955-6884-2-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1537858955-6884-2-git-send-email-hemant.agrawal@nxp.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Originating-IP: [115.113.156.3] X-ClientProxiedBy: BM1PR0101CA0045.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::31) To BL0PR07MB4994.namprd07.prod.outlook.com (2603:10b6:208:49::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 70d734dc-a5a6-4d62-2d0a-08d62537a048 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BL0PR07MB4994; X-Microsoft-Exchange-Diagnostics: 1; BL0PR07MB4994; 3:95mvMPff8Uc7k7OH6hFVvrVd32g3CG3YrFmWBK0IbXH51RnGO+lkkI8zP2Xj5o1pHFV40GmWxGBHFjeBRy0L1/iC1xbHLuwVjQnQWKM+dTRJHjewMBdnBVcgDYMzonH305Qp8pmBaUYB4n9O5OdG+YMKkI6ImKUCj1OkxBTjSlSXDkE9+/PCZBWxItGLvDaYcAlMeJWd4ijvLWpPYB+rcGOo9zvvLMzEDOtXC9ntCixth0KQQVTULxfLnxpbfVwT; 25:42mrn8ctC6rUpXZQQpEhp3jyjgmyPpX6cAY2SffFklPrRdB016YaY3mBW9a5ZeORVzOskLv23j/Bd9IOaTXSveLOkjOs+hG9dSd8LG7+YKmUV50KYanKba8zNnanqrQLczthZK6ssKH1yPr58uwiPBNiJ469RE6kHJHvbujzCxhgEH3tK4Q+6Jm8xGv55Lhf6alnjcK2fZvL34XHWt66gCC66gW9bvYoiAni+vkQx6qL7lifWwplV7QvRcISHh9Jy5COreY+1UrUiSKnCCM4Iy6dEOFD0pPA6uhp0QiKpWNpR+5LQCVfJSAl7g5ipTScclnMXBNozA8p4GFTfETNtg==; 31:2LZsEeTtpdnibrKm51POEdg3K/YwQUOFvoqTnXy41o5WTPZw+NRLPKC9D8VSNJ6T2WFhg3FK5jjzihaiV5V8Sqh2adatWu484+ehQ29DB660zSGdb7a6O0M1YJPmufMkjcXyrOvaK+w8aGHpo7Jn6SPsnIXvfcpN/VmE8AA9SS4yh3v+PXxd0oDBXxZQ0ex2J2iPx9CrYIgHJPvm316+l7mWfwGB0QSap6SgUEuPXdI= X-MS-TrafficTypeDiagnostic: BL0PR07MB4994: X-Microsoft-Exchange-Diagnostics: 1; BL0PR07MB4994; 20:nVZHjIHkqKCSgMHkpf9uq4+ZlTToQ+NiYFKcjqO0ApfNAmctVvs9OgaKKGxfXK2CV9ISpg95TexWrJKdjrmz+8+A3gewfy4kzPM996t3gd6F1H8f2Dw0XvJy2qkDs7fShHbIY0/u4bDF4VthBSiM3/DEg2yLLfd43j9p65LGxAOnGCpH2DRqh94QrQ0XK4VZxuz5gGwjvgd9EG7YhN3FokyrZ085l5r6iAU8NpsVU4pXSGOMvB8z5zR5kx58X3H/W+sC+w5DN+2i1Eory7gyVc+xn1B7l2VDdhi/YnaS/cQtklt/6xXgfh1u5kEaNjXw6Vsq09dtfA2jJ2By7EDnjaly78YXDUbbUzO9Z5DaKO5hvRKiRtnGtKmTBO2N1dYbeH7PEKhKIeoCBgcmWQ0moqo6sOdwbZtsrHHHtCIDv+cWIy0laZ9by/WHvpKJWML2v/cQuHd7tswbylbu+yr/Laf56GzuUPvwQRm85fyh7WzDDuQDly+rLAD37xjfqc9OrEbl4ycTt/9vaXyGUUzzvzpyrTT4H7Jcgm3903HdspRg3RjlGR1uzjNap46bN530XlOlHq7x9J0T1NJY68J52bBfThOI33L2OMMG7dczVP8= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231355)(944501410)(52105095)(93006095)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201708071742011)(7699051); SRVR:BL0PR07MB4994; BCL:0; PCL:0; RULEID:; SRVR:BL0PR07MB4994; X-Microsoft-Exchange-Diagnostics: 1; BL0PR07MB4994; 4:R3K3A3IG0WGomAcw1v64ImeeWHFx3IbRjg8nctyEIkTG6axMOSEDVCe4yD9vgfad2SW7YSey+12WckQcO6WvU+ublB/CHnpasrNVJgopzsMau9GKstAo6RVwCgJV32L3qiAG31m1M67KwrUYHTODdO80G538ukVZM1R5MEp2CfBkRRDvIRfZ+UHdN87rFOW7hvmuFgq85B8V+jMR5rLbUw4faKZiP3Sux7Tuddiy4jk7ftUvrsMMCB6KcO9u7S0iUaOAFBTqFe+/FsqlXdswW55BQRqto6NnLD+CTEHsUDGhSOwAEO0sRoKsgp0phcrFnG49MsmQWwDt0Z717Xzg7FJLbKW0UKfjO3ANirfuc98= X-Forefront-PRVS: 0809C12563 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(136003)(396003)(366004)(13464003)(199004)(189003)(8936002)(229853002)(4326008)(6306002)(6246003)(478600001)(50466002)(23676004)(68736007)(16526019)(186003)(76176011)(97736004)(2486003)(8676002)(25786009)(72206003)(52146003)(386003)(44832011)(6116002)(81166006)(55236004)(33896004)(11346002)(53936002)(1076002)(966005)(33656002)(6496006)(58126008)(446003)(476003)(5660300001)(33716001)(47776003)(956004)(6916009)(486006)(2906002)(316002)(9686003)(14444005)(105586002)(305945005)(42882007)(6666003)(66066001)(106356001)(7736002)(55016002)(3846002)(81156014)(2870700001)(34290500001)(26005)(52116002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL0PR07MB4994; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTDBQUjA3TUI0OTk0OzIzOmtLNDVLR3QySWx2MmZmOGRjeGhEdXFoWUJ1?= =?utf-8?B?K0xEbzRiOXJWcFVJVVRPd1JLNllJVVRJK0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ji1DvSEPLtzjhWKTeIvvQYgczzn423orEv/tzgMl0Ct4WAK8lEWCKd5Wb8L4Tmxp3d5fMDYTnWw35wDowRG/TWz91boEFh1pbKRyvqv92u8ZnG99/ARwXPjzjNS+vGHu4/XcBvSX+/HTUhLajwo0MG8Z5IZq9rsPuFeYs/C98G8=; 7:/j8uiiZZu0J636MpQQe5LCq+XFotHH+q2/mqdkPycF/cp+15Ozm4Hns3xfHkw3OxZ9GAxpAXO9YpbZNVaVgn0ozl0dJPdSuWe4F2XTI+3JNYorz9Nv8GP5gZ1KOTb3rw8+heL+NHgpJ0BG/Z3+ZvDoxV4SPR7Bn3oafg1xD43mphfZw7R57IOmT25YGjJF7pHwG8ykWePgNDEWsofGA/2R4SF6j8RXeVmcv17BfEuyIQ+onUAAtGvyjKgWpSnSUX SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2018 11:43:35.0419 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 70d734dc-a5a6-4d62-2d0a-08d62537a048 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR07MB4994 Subject: Re: [dpdk-dev] [PATCH v2 2/2] event/dpaa: add select based event support 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: Fri, 28 Sep 2018 11:44:57 -0000 -----Original Message----- > Date: Tue, 25 Sep 2018 12:32:35 +0530 > From: Hemant Agrawal > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com > Subject: [PATCH v2 2/2] event/dpaa: add select based event support > X-Mailer: git-send-email 2.7.4 > > > This patch add support to use select call with qman portal fd > for timeout based dequeue request for eventdev. > > If there is a event available qman portal fd will be set > and the function will be awakened. If no event is available, > it will only wait till the given timeout value. > > In case of interrupt the timeout ticks are used as usecs. > > Signed-off-by: Hemant Agrawal > --- > Note: This patch has a dependency on following patch series: > http://mails.dpdk.org/archives/dev/2018-September/112433.html > which is now part of dpdk-next-net tree. I will pull this patch when the depended patch show up on master branch. Currently it has following build errors, I assume it is due to dependency patch. /export/dpdk-next-eventdev/drivers/event/dpaa/dpaa_eventdev.c: In function ‘drain_4_bytes’: /export/dpdk-next-eventdev/drivers/event/dpaa/dpaa_eventdev.c:121:24: error: implicit declaration of function ‘qman_thread_fd’; did you mean ‘qman_thread_irq’? [-Werror=implicit-function-declaration] ssize_t sjunk = read(qman_thread_fd(), &junk, sizeof(junk)); ^~~~~~~~~~~~~~ qman_thread_irq /export/dpdk-next-eventdev/drivers/event/dpaa/dpaa_eventdev.c:121:24: error: nested extern declaration of ‘qman_thread_fd’ [-Werror=nested-externs] /export/dpdk-next-eventdev/drivers/event/dpaa/dpaa_eventdev.c: In function ‘dpaa_event_dequeue_wait’: /export/dpdk-next-eventdev/drivers/event/dpaa/dpaa_eventdev.c:148:2: error: implicit declaration of function ‘qman_irqsource_add’; did you mean ‘qman_reserve_fqid’? [-Werror=implicit-function-declaration] qman_irqsource_add(QM_PIRQ_DQRI); ^~~~~~~~~~~~~~~~~~ qman_reserve_fqid /export/dpdk-next-eventdev/drivers/event/dpaa/dpaa_eventdev.c:148:2: error: nested extern declaration of ‘qman_irqsource_add’ [-Werror=nested-externs] /export/dpdk-next-eventdev/drivers/event/dpaa/dpaa_eventdev.c:159:2: error: implicit declaration of function ‘qman_irqsource_remove’; did you mean ‘qman_reserve_pool’? [-Werror=implicit-function-declaration] qman_irqsource_remove(~0); ^~~~~~~~~~~~~~~~~~~~~ qman_reserve_pool /export/dpdk-next-eventdev/drivers/event/dpaa/dpaa_eventdev.c:159:2: error: nested extern declaration of ‘qman_irqsource_remove’ [-Werror=nested-externs] >