forked from rockchip-linux/kernel
-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dmaengine: pl330: Optimize scatterlist transfer
Use hardware link-list instead of soft link-list to make sure no gap among the scatter-list transfer. Merge multiple descs [first ... last] into the last desc, and drop the descs which have been merged into last one. Now we get the union one rather than a soft SGL. Obviously, this require much more MCODE buf size, because we merge multiple descs into a union one. Increase MCODE buf size if needed. e.g. -#define MCODE_BUFF_PER_REQ 256 +#define MCODE_BUFF_PER_REQ 512 or parsed from DT arm,pl330-mcbufsz-bytes = <512>; Otherwise, you may see the warning log on the long SGL situation. dma-pl330 2ab90000.dmac: pl330_submit_req: Try increasing mcbufsz (403/256) Signed-off-by: Sugar Zhang <[email protected]> Change-Id: Iea31fc9dba08d36570d4bdbe2c5fcb61f5fed0d4
- Loading branch information
1 parent
aab600d
commit ec0b65d
Showing
1 changed file
with
34 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters