lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:   Wed, 20 Apr 2022 17:13:32 +0530
From:   Vinod Koul <vkoul@...nel.org>
To:     Aidan MacDonald <aidanmacdonald.0x0@...il.com>
Cc:     paul@...pouillou.net, linux-mips@...r.kernel.org,
        dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dmaengine: jz4780: set DMA maximum segment size

On 11-04-22, 16:36, Aidan MacDonald wrote:
> 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.

Applied, thanks

-- 
~Vinod

Powered by blists - more mailing lists