Tom Rini
233fda6af6
Merge patch series "Uthreads"
...
Jerome Forissier <jerome.forissier@linaro.org > says:
This series introduces threads and uses them to improve the performance
of the USB bus scanning code and to implement background jobs in the
shell via two new commands: 'spawn' and 'wait'.
The threading framework is called 'uthread' and is inspired from the
barebox threads [2]. setjmp() and longjmp() are used to save and
restore contexts, as well as a non-standard extension called initjmp().
This new function is added in several patches, one for each
architecture that supports HAVE_SETJMP. A new symbol is defined:
HAVE_INITJMP. Two tests, one for initjmp() and one for the uthread
scheduling, are added to the lib suite.
After introducing threads and making schedule() and udelay() a thread
re-scheduling point, the USB stack initialization is modified to benefit
from concurrency when UTHREAD is enabled, where uthreads are used in
usb_init() to initialize and scan multiple busses at the same time.
The code was tested on arm64 and arm QEMU with 4 simulated XHCI buses
and some devices. On this platform the USB scan takes 2.2 s instead of
5.6 s. Tested on i.MX93 EVK with two USB hubs, one ethernet adapter and
one webcam on each, "usb start" takes 2.4 s instead of 4.6 s.
Finally, the spawn and wait commands are introduced, allowing the use of
threads from the shell. Tested on the i.MX93 EVK with a spinning HDD
connected to USB1 and the network connected to ENET1. The USB plus DHCP
init sequence "spawn usb start; spawn dhcp; wait" takes 4.5 seconds
instead of 8 seconds for "usb start; dhcp".
[1] https://patchwork.ozlabs.org/project/uboot/list/?series=446674
[2] https://github.com/barebox/barebox/blob/master/common/bthread.c
Link: https://lore.kernel.org/r/20250418141114.2056981-1-jerome.forissier@linaro.org
2025-04-23 13:21:39 -06:00
..
2024-06-26 13:17:51 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-16 08:05:15 +02:00
2025-02-03 11:33:04 +08:00
2024-05-13 16:51:13 -06:00
2024-05-20 13:35:03 -06:00
2025-04-07 16:35:43 -06:00
2024-05-20 13:35:03 -06:00
2024-07-18 13:51:30 -06:00
2025-04-03 11:43:22 -06:00
2024-06-26 13:17:51 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-02-15 10:38:34 +01:00
2024-05-20 13:35:03 -06:00
2024-10-24 09:45:55 +02:00
2024-11-16 19:49:13 -06:00
2024-08-27 14:30:14 -06:00
2024-05-20 13:35:03 -06:00
2025-04-10 20:55:53 -06:00
2024-05-20 13:35:03 -06:00
2025-03-26 13:28:08 +02:00
2024-06-26 13:17:51 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-01-15 08:48:42 -06:00
2025-04-19 12:47:33 +02:00
2025-04-07 16:35:43 -06:00
2024-12-30 13:21:55 -06:00
2024-07-15 12:12:17 -06:00
2025-01-05 02:30:48 +01:00
2024-10-15 10:24:27 -06:00
2024-07-19 16:48:07 -06:00
2025-01-15 08:48:42 -06:00
2024-12-30 13:21:55 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-11-03 21:27:12 -06:00
2024-06-26 13:17:51 -06:00
2024-10-09 22:04:56 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2024-08-02 15:16:51 -03:00
2024-07-15 12:12:17 -06:00
2024-05-20 13:35:03 -06:00
2024-06-16 12:13:44 +02:00
2024-08-13 06:12:40 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-06-07 10:48:41 -06:00
2024-09-12 17:35:37 +02:00
2024-09-12 17:35:37 +02:00
2024-05-20 13:35:03 -06:00
2025-04-19 12:45:48 +02:00
2025-01-05 02:30:49 +01:00
2024-10-16 11:11:56 -06:00
2022-03-15 16:19:29 -04:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2025-04-10 09:59:37 +02:00
2024-10-29 16:17:47 -06:00
2024-05-20 13:35:03 -06:00
2024-09-12 17:35:37 +02:00
2024-10-18 14:10:21 -06:00
2025-02-05 16:22:55 +01:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-02 20:00:59 -06:00
2025-04-04 12:25:02 -06:00
2025-04-11 13:20:38 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-09-12 17:35:37 +02:00
2024-11-14 10:49:24 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-08-13 06:23:05 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-10-17 15:38:50 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-06-30 10:59:42 -06:00
2025-04-23 13:19:44 -06:00
2024-08-15 11:30:41 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2019-12-04 17:10:51 -05:00
2024-05-20 13:35:03 -06:00
2024-12-30 13:21:55 -06:00
2025-01-26 11:06:56 +01:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-23 13:19:44 -06:00
2024-05-20 13:35:03 -06:00
2024-03-07 09:23:10 -05:00
2024-05-20 13:35:03 -06:00
2024-10-25 14:22:24 -06:00
2025-03-14 13:30:12 +02:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-09-18 13:07:19 -06:00
2024-07-15 12:12:17 -06:00
2024-12-17 13:17:41 -06:00
2024-07-15 12:12:17 -06:00
2024-05-20 13:35:03 -06:00
2024-12-17 13:17:41 -06:00
2024-11-14 18:14:05 -06:00
2025-04-08 11:43:23 -06:00
2025-04-23 10:02:49 +02:00
2024-09-12 17:35:37 +02:00
2024-11-15 16:36:18 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-11 12:16:32 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-22 08:55:29 -06:00
2022-09-02 13:40:42 -04:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-04-08 16:23:51 -06:00
2024-05-20 13:35:03 -06:00
2021-07-27 14:50:47 -04:00
2023-10-24 16:34:45 -04:00
2024-05-20 13:35:03 -06:00
2022-03-04 15:20:06 -05:00
2025-04-23 09:58:07 +02:00
2024-05-20 13:35:03 -06:00
2024-09-18 13:01:00 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-12-24 17:02:23 +01:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-12-02 07:40:39 -06:00
2024-06-26 13:17:51 -06:00
2024-05-20 13:35:03 -06:00
2025-04-10 20:55:53 -06:00
2024-05-20 13:35:03 -06:00
2025-02-07 13:35:23 -06:00
2024-09-20 17:38:16 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-01-14 14:29:29 -06:00
2024-05-20 13:35:03 -06:00
2024-06-24 13:34:52 -06:00
2024-05-20 13:35:03 -06:00
2025-04-23 13:19:44 -06:00
2024-05-20 13:35:03 -06:00
2025-04-08 16:23:51 -06:00
2020-08-07 22:31:32 -04:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-01-15 08:48:42 -06:00
2024-10-17 03:12:47 +02:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2024-05-20 13:35:03 -06:00
2023-06-13 08:51:07 +03:00
2024-05-20 13:35:03 -06:00
2025-01-28 08:58:41 +02:00
2024-12-31 19:00:46 -06:00
2024-05-20 13:35:03 -06:00
2024-10-10 16:02:20 -06:00
2024-07-15 12:12:17 -06:00
2025-02-26 13:48:27 +00:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2024-07-03 07:36:32 +01:00
2024-05-20 13:35:03 -06:00
2024-11-14 18:14:05 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-09-18 13:00:59 -06:00
2024-10-11 11:44:47 -06:00
2025-03-17 08:06:53 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2024-05-20 13:35:03 -06:00
2025-01-22 15:58:04 -06:00
2024-05-20 13:35:03 -06:00
2024-07-15 12:12:17 -06:00
2024-05-20 13:35:03 -06:00