Skip to content

drivers: udc_dwc2: Double fifo size for bulk endpoints#105631

Open
tmon-nordic wants to merge 1 commit intozephyrproject-rtos:mainfrom
tmon-nordic:dwc2-double-bulk
Open

drivers: udc_dwc2: Double fifo size for bulk endpoints#105631
tmon-nordic wants to merge 1 commit intozephyrproject-rtos:mainfrom
tmon-nordic:dwc2-double-bulk

Conversation

@tmon-nordic
Copy link
Copy Markdown
Contributor

@tmon-nordic tmon-nordic commented Mar 17, 2026

Double fifo size for bulk endpoints to allow packet to be transmitted while next one is being written to fifo. This offers significant throughput improvement when class supplies big enough buffers.

On nRF54H20 with SCSI buffer size 8192 with double buffering enabled and DWC2 operating in Buffer DMA mode, the maximum throughput increases more than double when used with disk driver that does nothing in read callback (i.e. this is the upper bound possible). Gnome Disks benchmark configured for 100 samples, 8 MiB sample size measures Average Read Rate equal 33.6 MB/s with this change compared to 15.3 MB/s without it.


I believe the proper solution is #99510. The throughput improvement is way too significant to not have it due to review disagreements, therefore I am submitting this as a standalone PR.

@zephyrbot zephyrbot added the area: USB Universal Serial Bus label Mar 17, 2026
@zephyrbot zephyrbot requested review from jfischer-no and josuah March 17, 2026 08:38
Double fifo size for bulk endpoints to allow packet to be transmitted
while next one is being written to fifo. This offers significant
throughput improvement when class supplies big enough buffers.

On nRF54H20 with SCSI buffer size 8192 with double buffering enabled and
DWC2 operating in Buffer DMA mode, the maximum throughput increases more
than double when used with disk driver that does nothing in read
callback (i.e. this is the upper bound possible). Gnome Disks benchmark
configured for 100 samples, 8 MiB sample size measures Average Read Rate
equal 33.6 MB/s with this change compared to 15.3 MB/s without it.

Signed-off-by: Tomasz Moń <tomasz.mon@nordicsemi.no>
@sonarqubecloud
Copy link
Copy Markdown

@github-actions
Copy link
Copy Markdown

This pull request has been marked as stale because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 7 days. Note, that you can always re-open a closed pull request at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: USB Universal Serial Bus

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants