[PATCH v2] eventdev/timer: fix timeout event wait behavior
Carrillo, Erik G
erik.g.carrillo at intel.com
Wed Apr 12 22:00:47 CEST 2023
> -----Original Message-----
> From: Shijith Thotton <sthotton at marvell.com>
> Sent: Tuesday, March 21, 2023 12:20 AM
> To: Carrillo, Erik G <erik.g.carrillo at intel.com>; jerinj at marvell.com
> Cc: Shijith Thotton <sthotton at marvell.com>; dev at dpdk.org;
> pbhagavatula at marvell.com; stable at dpdk.org
> Subject: [PATCH v2] eventdev/timer: fix timeout event wait behavior
>
> 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.
>
> 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).
>
> Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
>
> Signed-off-by: Shijith Thotton <sthotton at marvell.com>
Thanks for the update.
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo at intel.com>
More information about the stable
mailing list