From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 23AAF4292B; Wed, 12 Apr 2023 22:00:59 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B718C410F2; Wed, 12 Apr 2023 22:00:58 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 7134E406A2; Wed, 12 Apr 2023 22:00:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1681329656; x=1712865656; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=2USggx3L0PcyC8lTSQ1u7RJDQ+SPNJxFRj9K/khLc/I=; b=QmnkXu2dAbd40tZsfmo3pg/IvmzJ3NMuh3hHWMQ95YGWsGvk6NyCNkdB YahNW0f+dPwqpmKl2x26qxNNY0YgopSX9ysa7Xtm6fyfvvwxht95F90ft mlYYZWSVfyvpo0VDwHDZNSHaYknYd2/PzSPhXV4hyiXTnsI8/FgNMU1Ud 1yidwr04gtNafWtYbRhr7i4Jzk09+sMWLgl+Zwx7TMoCH/mHtG/5LkRX5 HEkOqM+yzXR/ttCdTlUl3lCmZ5vVtukqtIrMu93y6hVL3kzDfnxzCNSa5 qWM5znFby7sxQbOvI3tvEqFQi4aQXq7RA/FITnOJ/sZHTf4e0wW7s+mOw A==; X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="323631737" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="323631737" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Apr 2023 13:00:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10678"; a="935259973" X-IronPort-AV: E=Sophos;i="5.98,339,1673942400"; d="scan'208";a="935259973" Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmsmga006.fm.intel.com with ESMTP; 12 Apr 2023 13:00:52 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 12 Apr 2023 13:00:50 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 12 Apr 2023 13:00:50 -0700 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.46) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 12 Apr 2023 13:00:50 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jzzxJGZtSiIYKgcczJs+5zxJ8gS6DcckAPvNiyKRdG6OSw5WiqG6BzgyWZLxOyfi0kwAuOk150/TlVvVbQMRvOUFU7cgxYs+at0fQoSFA3bVsI8bwdMlqqfQSAD3re65j4kgUrCAC1fTIdWLmWV8RMLhGz06Iq7Fm/flHsos7LNFNhbn2KpBvygXoj1Z/XfsYfynCYtpUdTHYiaq3y6oUsY5ilT5VPSyg7tcLEi3I6Yer1pDNMdgnDpMPccnL/OVefShHX2LwsRG4rbIFpYrNnIDRJRVBzq+fN2wwGlxhma8lwYDW5sFAG3Hj97tCsOfk0JRevvWM8KDrB/gkrwG8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2USggx3L0PcyC8lTSQ1u7RJDQ+SPNJxFRj9K/khLc/I=; b=nY/JhzYsUgsbwTe4hKRGvWYU83zMrLybH/rHSDs5VNFfMj2tXf2OZU5dC3twOe4y+N+NGyZrEwH1W3uEOjOwSL/UM/YFcV48kfArwpMdtqIw6Bi4VBc2E31Ee0YBqAbDYF7XvFzdmQnNCssoMo758VqNAXY7AYlfA+O0GKhBJC+HNJ96Jc7FPK2SLAqOiVLEc6nPXBjqebCBAB5ujpzqQ5Mg5eHGZ1tdmzPTzpHlmpZnJ1VCS5Vq95b3LKGVMxh3bdlQqvwIfWqW/W9hjEO/Pz2bLIAlgWOk33j7pH1oAGOSUyKQI/bkbb4RphlEJck/jxMokfKi6mo0ejwbnIwSQw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Received: from CY5PR11MB6416.namprd11.prod.outlook.com (2603:10b6:930:34::14) by DS7PR11MB7782.namprd11.prod.outlook.com (2603:10b6:8:e1::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6277.35; Wed, 12 Apr 2023 20:00:48 +0000 Received: from CY5PR11MB6416.namprd11.prod.outlook.com ([fe80::83fa:9d16:2b1f:4eed]) by CY5PR11MB6416.namprd11.prod.outlook.com ([fe80::83fa:9d16:2b1f:4eed%3]) with mapi id 15.20.6156.028; Wed, 12 Apr 2023 20:00:48 +0000 From: "Carrillo, Erik G" To: Shijith Thotton , "jerinj@marvell.com" CC: "dev@dpdk.org" , "pbhagavatula@marvell.com" , "stable@dpdk.org" Subject: RE: [PATCH v2] eventdev/timer: fix timeout event wait behavior Thread-Topic: [PATCH v2] eventdev/timer: fix timeout event wait behavior Thread-Index: AQHZW7T5LhuKfaxGWkaWSA/iG6zqw68oOuwQ Date: Wed, 12 Apr 2023 20:00:47 +0000 Message-ID: References: <90fb5b328eda4c7f83cfb11998ba32a01935ff8e.1679375813.git.sthotton@marvell.com> In-Reply-To: <90fb5b328eda4c7f83cfb11998ba32a01935ff8e.1679375813.git.sthotton@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CY5PR11MB6416:EE_|DS7PR11MB7782:EE_ x-ms-office365-filtering-correlation-id: 3779dfb8-318f-44e9-3f8d-08db3b909bd5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hStZh8d3DyvZgGsQ5USkotludPPQfhQYTBDAIrA4e6LxaJwoJYQMEe/yTOWPfy2rOURc1U2TY+T1DgOvDS7IeeWNWiogAwwcHoVHNxgwfqo/u1bIsuPSCaISEFx3LbatbKcacvwywrNQCk3qb27z1cuFszr6SD28kKka13mJfQ/COiznQNMCdXXW2kfQuBnRvcLYtYrZX/mWfSYGgM4l2WYuMrOUhAr4ktgivkjj+ivfb8lbQBHGNib+TQa3dFI3v0sXkGkDRB84RX5IoYtikc0o/+GNISfKfoevnQQOhz9Fq0RYo9lJYk4UB3eNlbesC8OiZWVglLVIWMwAsslG3392Rwa4TA0VMDKD2JqZmGuNQU+s6h8ACc52vrsAHj5XBWSxNjV6nxgbNmAMl/iMbaZ3xYHKraynmCv4OVv+io5FIHCFLaJzIqE4lrBK+RZ0jos1aADrjSzy0N8BVHlPT+EHyVu/eYF1/AOuUPq/cIqTbnh5Uh3bnPJBKq6ZO4sUSY0pBy9CpAHdXgcQSW8jB6GJhfh24rcWz7/EygKNbPvoSoTO2Fc+xH7hZhPtwOCSvsk/JalJA6h3mvht6Ni4LvDJzITXBcpBjd2hPEOFVzYU1cXoXkwaHJHfYQ8of8cF x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CY5PR11MB6416.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(346002)(39860400002)(366004)(396003)(136003)(376002)(451199021)(9686003)(8936002)(5660300002)(122000001)(38100700002)(52536014)(2906002)(316002)(86362001)(55016003)(66446008)(66556008)(41300700001)(38070700005)(4326008)(64756008)(82960400001)(66946007)(8676002)(66476007)(186003)(33656002)(83380400001)(76116006)(54906003)(71200400001)(478600001)(53546011)(110136005)(6506007)(7696005)(26005); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?3ZVh8EEQpmfI2Unp7KPLKuynBgcl2Q990B8c4qfH0Uq472m7BmcRGRjA880X?= =?us-ascii?Q?fjwhseaVuHKbhB7ICtmEoLWceaF32kxUNav8BD1JuFzUptvkDt19dkFDBVjR?= =?us-ascii?Q?rSpvXE7yn3ZhgkVkDsi2+Zu3ASWFdqK876U2jUq+8Qz41u03u5sIhWuDG/8m?= =?us-ascii?Q?0yBuxVN92RrZQ55FMDc9XoGdbH2RyN6aSuNcOslu4AR20t9gz9a1abr3LP7k?= =?us-ascii?Q?W1UsRG+sehpYqS9WULprl5GpYYWBIzxN/pSjCmawGc03h1VtYoElH5K1IN1m?= =?us-ascii?Q?MWcDZNemy16VfiTJIo+Kt1ta3Jxw4A4mTxyKxibNGhQH9VW/5TIYkHwaMV18?= =?us-ascii?Q?qPEyd9Qug5mzLgaxTQMIQ8jGr1mxIGxF/KeyjUFpOKrDP0NfHT2kNtAEYoJX?= =?us-ascii?Q?1ElT9Cy/TXDOhwZr8R2pOJeo9k1SCdti3vzhMhOBl3nVkNeY+keFH9W/gVIT?= =?us-ascii?Q?agCHMHhDFuWfjh/fptXxGjTH3d6w1W0k1qsdm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ascii?Q?AuG1DJnLpl3h0OGnu7GHkvfuV8AuBrrZCwVoZgmVeipRTyc7Ll6EbfP5/XQK?= =?us-ascii?Q?bPbml7UXJuRXGt1G94ZodpQ9N1tAb8C0NpstAm7FGJaUPv64A24FD5PBTd07?= =?us-ascii?Q?JE91C5svbL/xy6IY2BOvHh1Abp/qfHLPSVX82Jtj36glfV5vaZhw4Y184h2B?= =?us-ascii?Q?W6zALmpz0Od1HgYGEWXNrLvUBgtfbElXG5A7tVxz?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CY5PR11MB6416.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3779dfb8-318f-44e9-3f8d-08db3b909bd5 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Apr 2023 20:00:47.8361 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: EGJsRHxPmYWCRkG5Fc35EM3QEca4n84b6/3iz7hTZ55fVUvXMgSs6+OkNn8qVxJD1bE3a6MAK6ESdygMWnk4c0lFc4MqkyUJWtKIP0vissM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB7782 X-OriginatorOrg: intel.com X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org > -----Original Message----- > From: Shijith Thotton > Sent: Tuesday, March 21, 2023 12:20 AM > To: Carrillo, Erik G ; jerinj@marvell.com > Cc: Shijith Thotton ; dev@dpdk.org; > pbhagavatula@marvell.com; stable@dpdk.org > Subject: [PATCH v2] eventdev/timer: fix timeout event wait behavior >=20 > Improved the accuracy and consistency of timeout event wait behavior by > refactoring it. Previously, the delay function used for waiting could be > inaccurate, leading to inconsistent results. This commit updates the wait > behavior to use a timeout-based approach, enabling the wait for the exact > number of timer ticks before proceeding. >=20 > The new function timeout_event_dequeue mimics the behavior of the > tested systems closely. It dequeues timer expiry events until either the > expected number of events have been dequeued or the specified time has > elapsed. The WAIT_TICKS macro defines the waiting behavior based on the > type of timer being used (software or hardware). >=20 > Fixes: d1f3385d0076 ("test: add event timer adapter auto-test") >=20 > Signed-off-by: Shijith Thotton Thanks for the update. Acked-by: Erik Gabriel Carrillo