Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1270687

Re: [RFC] User space to kernel space copy optimization

From Sinan Kaya <okaya@codeaurora.org>
Newsgroups linux.kernel
Subject Re: [RFC] User space to kernel space copy optimization
Date 2015-11-17 00:20 +0100
Message-ID <qvBe1-5kg-19@gated-at.bofh.it> (permalink)
References <qvzYC-4nO-15@gated-at.bofh.it> <qvAUF-4Yp-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 11/16/2015 5:57 PM, Jiang, Dave wrote:
>> One of the things I'm interested in is to use a memcpy capable DMA
>> > engine HW to optimize user space and kernel space parameter copying.
> Have you looked at why NET_DMA was deprecated and using DMA engine to
> do kernel->user copy could be a problem?
> https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/
> ?id=77873803363c
> 

As far as I know, the problem was the TCP/IP stack trying to work on a
buffer that was given to the DMA engine for moving. It was causing stale
data problems.

The goal was to let DMA engine move the data while TCP/IP stack was
working on something else. Then, synchronize on a known point. Of
course, when above violation happens; things break.

Are you expecting a similar problem on user space to kernel space
interaction? I think the ownership buffers are pretty much defined,
isn't it?


-- 
Sinan Kaya
Qualcomm Technologies, Inc. on behalf of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a
Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[RFC] User space to kernel space copy optimization Sinan Kaya <okaya@codeaurora.org> - 2015-11-16 23:00 +0100
  Re: [RFC] User space to kernel space copy optimization "Jiang, Dave" <dave.jiang@intel.com> - 2015-11-17 00:00 +0100
    Re: [RFC] User space to kernel space copy optimization Sinan Kaya <okaya@codeaurora.org> - 2015-11-17 00:20 +0100
      Re: [RFC] User space to kernel space copy optimization "Jiang, Dave" <dave.jiang@intel.com> - 2015-11-17 20:30 +0100

csiph-web