diff options
| author | Paweł Anikiel <[email protected]> | 2022-06-17 12:47:24 +0200 |
|---|---|---|
| committer | Tien Fong Chee <[email protected]> | 2022-07-01 14:57:14 +0800 |
| commit | 8b1eee3730fc603fcacc5818b71a0e194bc55892 (patch) | |
| tree | 4def083a94436d9a9f1ed9108836b7792d0fbea8 /lib/crypto/mscode_parser.c | |
| parent | aea0e80a9feff740a6cb6323c67452bc5a752e4d (diff) | |
socfpga: arria10: Improve bitstream loading speed
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 <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Diffstat (limited to 'lib/crypto/mscode_parser.c')
0 files changed, 0 insertions, 0 deletions
