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  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:   Thu, 21 Apr 2022 13:39:37 +0000
From:   David Laight <David.Laight@...LAB.COM>
To:     'Andrew Lunn' <>,
        Joakim Tjernlund <>
CC:     "" <>,
        Eric Gratorp <>
Subject: RE: Ethernet TX buffer crossing 4K boundary?

From: Andrew Lunn
> Sent: 21 April 2022 13:33
> On Wed, Apr 20, 2022 at 09:09:58PM +0000, Joakim Tjernlund wrote:
> > We have this custom Ethernet controller that cannot DMA a buffer if the buffer crosses 4K boundary.

Fix the hardware :-)

> > Any ideas how to deal with that limitation in the driver?
> Does the DMA support scatter gather? You might be able to tweak the
> generic scatter gather code to generate two blocks if it crosses the
> boundary.

I'd also look at the USB3 xhci code.
That also has a perverse set of restrictions on buffer alignment.
Might give you some hints.


Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK
Registration No: 1397386 (Wales)

Powered by blists - more mailing lists