Re: [Intel-wired-lan] [net-next PATCH 25/27] igb: Update driver to make use of DMA_ATTR_SKIP_CPU_SYNC

From
Jeff Kirsher <hidden>
Date
2016-10-26 17:21:14
Also in
intel-wired-lan, linux-mm, lkml
Reply to
Alexander Duyck, 2016-10-25
On Tue, 2016-10-25 at 11:39 -0400, Alexander Duyck wrote:
The ARM architecture provides a mechanism for deferring cache line
invalidation in the case of map/unmap.  This patch makes use of this
mechanism to avoid unnecessary synchronization.

A secondary effect of this change is that the portion of the page that
has
been synchronized for use by the CPU should be writable and could be
passed
up the stack (at least on ARM).

The last bit that occurred to me is that on architectures where the
sync_for_cpu call invalidates cache lines we were prefetching and then
invalidating the first 128 bytes of the packet.  To avoid that I have
moved
the sync up to before we perform the prefetch and allocate the skbuff so
that we can actually make use of it.

Signed-off-by: Alexander Duyck <redacted>
Acked-by: Jeff Kirsher <redacted>

Attachments

Thread (38 messages) 38 messages, 7 authors, last reply 2016-10-28
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help