You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The H616 BROM FEL path copies received USB data byte-by-byte from the
MUSB FIFO. Even after switching the controller to high-speed mode, this
leaves large post-SPL DRAM writes far slower than the USB link can
support.
After SPL has initialized DRAM, install an H616-specific thunk for
writes into the known DRAM window. The thunk builds the MMU remap it
needs, hooks the BROM RX FIFO copy helper, and replaces it with a
MUSB/USBC endpoint-DMA receive path. It routes the active RX endpoint
DRQ through VEND0 before starting the internal DMA channel, so the FEL
wire protocol stays unchanged.
Coalesce full high-speed packets into bounded RX DMA requests and use
larger progress chunks once the RX DMA thunk is installed. This reduces
device-side FIFO-copy overhead and host-side progress overhead for
large DRAM writes. Use a 192 KiB DMA request cap; 256 KiB requests can
time out while the host is writing.
Add the checked-in DMA thunk header to the sunxi-fel prerequisites and
thunk documentation. This makes the binary rebuild when the generated
header changes without making the sunxi-fel target regenerate thunk
headers.
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
0 commit comments