diff options
author | Aidan MacDonald <aidanmacdonald.0x0@gmail.com> | 2022-04-11 18:36:18 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-04-20 14:43:22 +0300 |
commit | 2128565a8d3055623f651712b7faa3d66ce4f02c (patch) | |
tree | b1f6f22d834ee8912dcab05b2addc6f6b6b0b0d8 /drivers/dma/idxd | |
parent | d965068259d13fde49487b45064106d3d0c57a74 (diff) | |
download | linux-2128565a8d3055623f651712b7faa3d66ce4f02c.tar.xz |
dmaengine: jz4780: set DMA maximum segment size
Set the maximum segment size, since the hardware can do transfers larger
than the default 64 KiB returned by dma_get_max_seg_size().
The maximum segment size is limited by the 24-bit transfer count field
in DMA descriptors. The number of bytes is equal to the transfer count
times the transfer size unit, which is selected by the driver based on
the DMA buffer address and length of the transfer. The size unit can be
as small as 1 byte, so set the maximum segment size to 2^24-1 bytes to
ensure the transfer count will not overflow regardless of the size unit
selected by the driver.
Signed-off-by: Aidan MacDonald <aidanmacdonald.0x0@gmail.com>
Link: https://lore.kernel.org/r/20220411153618.49876-1-aidanmacdonald.0x0@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd')
0 files changed, 0 insertions, 0 deletions