[PATCH 09/11] socfpga: arria10: Improve bitstream loading speed

Simon Glass sjg at chromium.org
Mon Apr 11 20:35:13 CEST 2022


On Fri, 1 Apr 2022 at 06:44, Paweł Anikiel <pan at semihalf.com> wrote:
>
> Apply some optimizations to speed up bitstream loading
> (both for full and split periph/core bitstreams):
>
>  * Change the size of the first fs read, so that all the subsequent
>    reads are aligned to a specific value (called MAX_FIRST_LOAD_SIZE).
>    This value was chosen so that in subsequent reads the fat fs driver
>    doesn't have to allocate a temporary buffer in get_contents
>    (assuming 8KiB clusters).
>
>  * Change the buffer size to a larger value when reading to ddr
>    (but not too large, because large transfers cause a stack overflow
>    in the dwmmc driver).
>
> Signed-off-by: Paweł Anikiel <pan at semihalf.com>
> ---
>  drivers/fpga/socfpga_arria10.c | 20 ++++++++++++++++++--
>  1 file changed, 18 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list