rockbox/firmware
mojyack e13befb925 pp5020: ata: do not yield in ata_wait_intrq()
Confirmed on iFlash-modded ipodvideo, USB mass storage connections
frequently fail with bus resets during mount on macOS, and trigger
"reset high-speed USB device" errors on Linux during sequential
reads.

The root cause is: storage_read_sectors() calls yield() via
ata_wait_intrq(), which switches to the main thread running
handle_usb_events() loop. This calls send_event(GUI_EVENT_ACTIONUPDATE),
triggering LCD redraw that takes approximately 110ms. This stalls the
ATA DMA completion, causing the USB bulk transfer to time out from the
host's perspective.

This commit removes the yield to prevent the reading thread from being
preempted by the lengthy LCD redraw during DMA completion.

This also improves sequential read throughput from ~13MB/s to ~18MB/s.

Change-Id: Ia552f97aa0169c93c4f21e250d13dc3a626661d4
2026-03-10 18:17:41 -04:00
..
asm Remove Creative Zen Vision and Vision:M ports 2026-02-06 07:31:54 -05:00
common Fix yellow in c72ffa7a9a ("diacritic: Critical bugfixes") 2026-03-10 10:14:42 +00:00
drivers sdmmc_host: mark tCardInfo initialized at end of card init 2026-03-02 17:11:33 -05:00
export firmware: cleanup duplicated DM320 LCD memory defines 2026-03-06 15:55:35 -05:00
include firmware: add copyright headers to core_alloc.c/h 2026-03-09 10:26:18 +00:00
kernel Convert users of SHAREDDATA_ATTR to SHAREDBSS_ATTR 2026-02-05 07:57:07 -05:00
libc lua -- remove strtol and strtoul replace with rb->strtol and rb->strtoul 2025-12-06 18:11:13 -05:00
reggen stm32h743: implement I2C controller interface 2026-02-23 08:19:29 -05:00
target pp5020: ata: do not yield in ata_wait_intrq() 2026-03-10 18:17:41 -04:00
usbstack pcm: Make more of the low-level PCM API private 2026-03-03 13:09:21 -05:00
arabjoin.c
arabjoin.h unicode: Support characters beyond the first unicode plane 2025-09-12 09:24:30 -04:00
ata_idle_notify.c misc: Clean up a large pile of -Wexpansion-to-defined warnings 2025-04-21 21:04:05 -04:00
backlight-sw-fading.c backlight-sw-fading: FS#13717 fix brightness overshoot 2025-12-19 08:20:07 +01:00
backlight.c backlight: Fix dimmed display doesn't go to sleep 2026-02-25 13:07:38 -05:00
bidi.c unicode: Support characters beyond the first unicode plane 2025-09-12 09:24:30 -04:00
buflib_malloc.c
buflib_mempool.c
chunk_alloc.c
COPYING
core_alloc.c firmware: add copyright headers to core_alloc.c/h 2026-03-09 10:26:18 +00:00
debug.c
eeprom_settings.c
elf_loader.c elf_loader: add elf_loadmem() to load file from memory 2026-01-25 19:51:07 -05:00
enc_base.c
events.c
firmware.make make: remove asm.make and use asm/SOURCES directly 2026-01-08 16:41:57 +00:00
font.c font: logf: fix pointer in buflibmove_callback 2026-01-10 07:11:51 +01:00
font_cache.c unicode: Support characters beyond the first unicode plane 2025-09-12 09:24:30 -04:00
general.c
hangul.c unicode: Support characters beyond the first unicode plane 2025-09-12 09:24:30 -04:00
lc-rock.c firmware: introduce CONFIG_BINFMT 2026-01-05 13:14:30 -05:00
linuxboot.c
logf.c
lru.c
panic.c arm: add initial ARM Cortex-M support 2025-04-18 13:19:42 -04:00
pcm.c pcm: Make more of the low-level PCM API private 2026-03-03 13:09:21 -05:00
pcm_mixer.c pcm: Make more of the low-level PCM API private 2026-03-03 13:09:21 -05:00
pcm_sampr.c
pcm_sw_volume.c pcm: introduce pcm_sink 2026-03-02 10:09:11 +09:00
powermgmt.c misc: Ensure stacks are always aligned with the native pointer size. 2025-09-05 19:43:11 -04:00
profile.c
README
rolo.c nwze370: improve lcd & backlight 2025-10-21 16:54:57 -04:00
rom.lds
screendump.c
scroll_engine.c pass event data to usb_acknowledge 2026-01-26 19:47:09 -05:00
sdmmc.c SD: Move sd_parse_csd() into common sdmmc code 2025-08-22 14:48:28 -04:00
sound.c audio: remove pcm_sw_volume include from sound.c 2026-02-19 14:16:26 -05:00
SOURCES misc: remove leftover pnx0101 support code 2026-03-05 15:41:06 +00:00
storage.c bootloaders: Don't build usb_core without HAVE_BOOTLOADER_USB_MODE 2026-02-07 08:46:10 -05:00
system.c
timer.c
tuner.c
usb.c bootloaders: Don't build usb_core without HAVE_BOOTLOADER_USB_MODE 2026-02-07 08:46:10 -05:00

See docs/README