From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM05-DM3-obe.outbound.protection.outlook.com (mail-eopbgr730075.outbound.protection.outlook.com [40.107.73.75]) by dpdk.org (Postfix) with ESMTP id B7CFE1B213 for ; Sat, 1 Dec 2018 16:12:05 +0100 (CET) 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=JLDSUVGt+rDaEp/3bYD+wTmqA03UnJukPkGekzYwA54=; b=g8mbsuQDRY/atsqOIruoyq6BdWHW/tvjBg97tgE4WZPTcDTTvFqimdqrfYpwUAkxA2Xc8wMf5a1sonRH+bkxtwgYBKluRz9/vP0YDMa/meiW0dUlgXn1aZG+akUg0rH4nFcGZusKjlmnQ3SQ6/J4X9Drv7Tc0KQCygeU9zZLghY= Received: from BYAPR07MB4997.namprd07.prod.outlook.com (52.135.238.214) by BYAPR07MB4152.namprd07.prod.outlook.com (52.135.222.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1382.18; Sat, 1 Dec 2018 15:12:03 +0000 Received: from BYAPR07MB4997.namprd07.prod.outlook.com ([fe80::9d3a:7709:b7e5:8ccf]) by BYAPR07MB4997.namprd07.prod.outlook.com ([fe80::9d3a:7709:b7e5:8ccf%2]) with mapi id 15.20.1382.020; Sat, 1 Dec 2018 15:12:03 +0000 From: Jerin Jacob To: Erik Gabriel Carrillo CC: "Bhagavatula, Pavan" , "dev@dpdk.org" Thread-Topic: [PATCH 1/1] app/eventdev: detect deadlock for timer event producer Thread-Index: AQHUiBhYGTYd0hzZ/EyXEWg/BbBleKVqAC8A Date: Sat, 1 Dec 2018 15:12:03 +0000 Message-ID: <20181201151150.GC26004@jerin> References: <1543519131-18910-1-git-send-email-erik.g.carrillo@intel.com> In-Reply-To: <1543519131-18910-1-git-send-email-erik.g.carrillo@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [122.178.219.219] x-clientproxiedby: SG2PR04CA0143.apcprd04.prod.outlook.com (2603:1096:3:16::27) To BYAPR07MB4997.namprd07.prod.outlook.com (2603:10b6:a03:5b::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BYAPR07MB4152; 6:wXULtJ9NhWGGago1Z1jofetMLtdZ6O06f7tAhLTaWH5AQB1HkcPFJPsxZFGAVwkPvWcsCzVsWm8GiFDcRivMjjjPmLh6uz1XUOklvB87km3T81msDzo4h2paC/QEaSFT7ygZeszcskUKgbvafPP73DF8Sjh9+e0HeXLjysnQ088i8b3P+ho7d6DRM0M/HunNYD0EmzJoYNelpraZoVrN/8yYod5WDgap8wKHeOxnMToD8qyupmnpWQY30ilsnLaNLWhbblYuWr6D7PTRrrvwfLcWY87hXaeGYIjrDXphse9nu7oO+BdGmyKzgzPfi30DBKZeoh5AoWN6axWgfdBRx4pGokN4Zb+rALx9PvX11upePUgL5YZs8a+vRykuuVZ1t+4NfRCJ/+Hvq1V65wnBbuBJ4SrQHQ10E4dZDZgHxG349xz4iflyYHoscfIIl/7AW3w60je7aqn3mhX870de8g==; 5:Q43o/sQvVEsU8BWRHObnOu1QGcCYYLGXQMVeN5fMi1CZk59B8sS9DVkcesqsVEMamwFdQHJygDN9qHTB48nkk49cUN6PvokfzFSd1LZ6LWY0Xl63hN3z18DJlF4g8b2e2BwKHRGu/parFhGX09xS6RpDuP3gAQbTNX9rYcVM/UM=; 7:rYeoMku3vBfw9bP3bDBIhlMLNms5rqH4gZWJmXgJ/bQ0mSkyNA6qqvIaUswY57NlM5mKYxqW1X0I3mBKk0aq5QkHE2FdVGpG0cKcCiaQlbYaQoqf4XLK1YSdD7EoottQGOhCKQYHSdKeHHzNniwFgQ== x-ms-office365-filtering-correlation-id: 553eac24-4e54-46f6-4125-08d6579f5931 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390098)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4152; x-ms-traffictypediagnostic: BYAPR07MB4152: x-microsoft-antispam-prvs: x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(3231454)(999002)(944501477)(52105112)(148016)(149066)(150057)(6041310)(20161123558120)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(201708071742011)(7699051)(76991095); SRVR:BYAPR07MB4152; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4152; x-forefront-prvs: 087396016C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(7916004)(136003)(346002)(39860400002)(376002)(366004)(396003)(199004)(189003)(13464003)(6116002)(66066001)(4326008)(68736007)(305945005)(7736002)(5660300001)(3846002)(53936002)(14454004)(9686003)(6512007)(33896004)(76176011)(105586002)(316002)(26005)(102836004)(386003)(6506007)(6246003)(99286004)(2906002)(106356001)(52116002)(72206003)(71190400001)(54906003)(186003)(14444005)(478600001)(42882007)(11346002)(256004)(446003)(71200400001)(486006)(476003)(229853002)(25786009)(6916009)(33716001)(8936002)(6486002)(8676002)(33656002)(81156014)(81166006)(97736004)(6436002)(1076002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4152; H:BYAPR07MB4997.namprd07.prod.outlook.com; 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-antispam-message-info: kOP+i8Ch9p4m9nkU1nIdJW1hLWRW9ZCIQfU4X6vm5CMh8AbVGmGfCdcviZp0RVXP9GXreBML5JaAgQFMLwHAGHImBZbsQVWl8DIiZKBRu8rOFaX7l307mwc3f2RUHVwPhw+50mOTgt/71bDG9or83ncjeiSNdVh/KhYgd5ioIRaIz0AKfH1oA2pPXlGGAQdBDfWP2SjPqXrIv+UDexlBmNhDv2llKaw0wZBh8khuqymB0McA5bybFUu+6uRi8XOlwFNNNMk9XO+N2Yq1HQ55TDDCEa4L/1A3+tFVmr9DxBWuJ8MfJ7Ro/d30GHt8zWJOOQF5QM9+rhKQLKNW5narVEqEYMbzre7Hp56YUQVkiP4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <94D9D5404ADB0841A47085F2B19A5417@namprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-Network-Message-Id: 553eac24-4e54-46f6-4125-08d6579f5931 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Dec 2018 15:12:03.1695 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4152 Subject: Re: [dpdk-dev] [PATCH 1/1] app/eventdev: detect deadlock for timer event producer 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: Sat, 01 Dec 2018 15:12:06 -0000 -----Original Message----- > Date: Thu, 29 Nov 2018 13:18:51 -0600 > From: Erik Gabriel Carrillo > To: pbhagavatula@caviumnetworks.com > CC: jerin.jacob@caviumnetworks.com, dev@dpdk.org > Subject: [PATCH 1/1] app/eventdev: detect deadlock for timer event produc= er > X-Mailer: git-send-email 1.7.10 >=20 > If timer events get dropped for some reason, the thread that launched > producer and worker cores will never exit, because the deadlock check > doesn't currently apply to the event timer adapter case. This commit > fixes this. Please add Fixes: With above changes, Acked-by: Jerin Jacob >=20 > Signed-off-by: Erik Gabriel Carrillo > --- > app/test-eventdev/test_perf_common.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) >=20 > diff --git a/app/test-eventdev/test_perf_common.c b/app/test-eventdev/tes= t_perf_common.c > index 8618775..f99a6a6 100644 > --- a/app/test-eventdev/test_perf_common.c > +++ b/app/test-eventdev/test_perf_common.c > @@ -327,7 +327,8 @@ perf_launch_lcores(struct evt_test *test, struct evt_= options *opt, > } >=20 > if (new_cycles - dead_lock_cycles > dead_lock_sample && > - opt->prod_type =3D=3D EVT_PROD_TYPE_SYNT)= { > + (opt->prod_type =3D=3D EVT_PROD_TYPE_SYNT || > + opt->prod_type =3D=3D EVT_PROD_TYPE_EVENT_TIMER_ADPT= R)) { > remaining =3D t->outstand_pkts - processed_pkts(t= ); > if (dead_lock_remaining =3D=3D remaining) { > rte_event_dev_dump(opt->dev_id, stdout); > -- > 2.6.4 >=20