Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-12 Thread Nicolas Morey-Chaisemartin
Le 05/12/2016 à 03:52 PM, Jerome Glisse a écrit : > On Thu, May 12, 2016 at 03:30:24PM +0200, Nicolas Morey-Chaisemartin wrote: >> Le 05/12/2016 à 11:36 AM, Jerome Glisse a écrit : >>> On Thu, May 12, 2016 at 08:07:59AM +0200, Nicolas Morey-Chaisemartin wrote: [...] With transparent_hugepage

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-12 Thread Andrea Arcangeli
Hello Nicolas, On Thu, May 12, 2016 at 05:31:52PM +0200, Nicolas Morey-Chaisemartin wrote: > > > Le 05/12/2016 à 03:52 PM, Jerome Glisse a écrit : > > On Thu, May 12, 2016 at 03:30:24PM +0200, Nicolas Morey-Chaisemartin wrote: > >> Le 05/12/2016 à 11:36 AM, Jerome Glisse a écrit : > >>> On Thu,

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-12 Thread Jerome Glisse
On Thu, May 12, 2016 at 03:30:24PM +0200, Nicolas Morey-Chaisemartin wrote: > Le 05/12/2016 à 11:36 AM, Jerome Glisse a écrit : > > On Thu, May 12, 2016 at 08:07:59AM +0200, Nicolas Morey-Chaisemartin wrote: > >> > >> Le 05/11/2016 à 04:51 PM, Jerome Glisse a écrit : > >>> On Wed, May 11, 2016 at 0

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-12 Thread Nicolas Morey-Chaisemartin
Le 05/12/2016 à 11:36 AM, Jerome Glisse a écrit : > On Thu, May 12, 2016 at 08:07:59AM +0200, Nicolas Morey-Chaisemartin wrote: >> >> Le 05/11/2016 à 04:51 PM, Jerome Glisse a écrit : >>> On Wed, May 11, 2016 at 01:15:54PM +0200, Nicolas Morey Chaisemartin wrote: Le 05/10/2016 à 12:01 PM, Je

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-12 Thread Jerome Glisse
On Thu, May 12, 2016 at 08:07:59AM +0200, Nicolas Morey-Chaisemartin wrote: > > > Le 05/11/2016 à 04:51 PM, Jerome Glisse a écrit : > > On Wed, May 11, 2016 at 01:15:54PM +0200, Nicolas Morey Chaisemartin wrote: > >> > >> Le 05/10/2016 à 12:01 PM, Jerome Glisse a écrit : > >>> On Tue, May 10, 201

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-12 Thread Nicolas Morey-Chaisemartin
Le 05/11/2016 à 04:51 PM, Jerome Glisse a écrit : > On Wed, May 11, 2016 at 01:15:54PM +0200, Nicolas Morey Chaisemartin wrote: >> >> Le 05/10/2016 à 12:01 PM, Jerome Glisse a écrit : >>> On Tue, May 10, 2016 at 09:04:36AM +0200, Nicolas Morey Chaisemartin wrote: Le 05/03/2016 à 12:11 PM, Je

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-11 Thread Jerome Glisse
On Wed, May 11, 2016 at 01:15:54PM +0200, Nicolas Morey Chaisemartin wrote: > > > Le 05/10/2016 à 12:01 PM, Jerome Glisse a écrit : > > On Tue, May 10, 2016 at 09:04:36AM +0200, Nicolas Morey Chaisemartin wrote: > >> Le 05/03/2016 à 12:11 PM, Jerome Glisse a écrit : > >>> On Mon, May 02, 2016 at

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-11 Thread Nicolas Morey Chaisemartin
Le 05/10/2016 à 12:01 PM, Jerome Glisse a écrit : > On Tue, May 10, 2016 at 09:04:36AM +0200, Nicolas Morey Chaisemartin wrote: >> Le 05/03/2016 à 12:11 PM, Jerome Glisse a écrit : >>> On Mon, May 02, 2016 at 09:04:02PM -0700, Hugh Dickins wrote: On Fri, 29 Apr 2016, Nicolas Morey Chaisemart

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-11 Thread Nicolas Morey Chaisemartin
Le 05/10/2016 à 03:34 PM, Jerome Glisse a écrit : > On Tue, May 10, 2016 at 01:15:02PM +0200, Nicolas Morey Chaisemartin wrote: >> Le 05/10/2016 à 12:01 PM, Jerome Glisse a écrit : >>> On Tue, May 10, 2016 at 09:04:36AM +0200, Nicolas Morey Chaisemartin wrote: Le 05/03/2016 à 12:11 PM, Jerom

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-10 Thread Jerome Glisse
On Tue, May 10, 2016 at 01:15:02PM +0200, Nicolas Morey Chaisemartin wrote: > Le 05/10/2016 à 12:01 PM, Jerome Glisse a écrit : > > On Tue, May 10, 2016 at 09:04:36AM +0200, Nicolas Morey Chaisemartin wrote: > >> Le 05/03/2016 à 12:11 PM, Jerome Glisse a écrit : > >>> On Mon, May 02, 2016 at 09:04:

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-10 Thread Nicolas Morey Chaisemartin
Le 05/10/2016 à 12:01 PM, Jerome Glisse a écrit : > On Tue, May 10, 2016 at 09:04:36AM +0200, Nicolas Morey Chaisemartin wrote: >> Le 05/03/2016 à 12:11 PM, Jerome Glisse a écrit : >>> On Mon, May 02, 2016 at 09:04:02PM -0700, Hugh Dickins wrote: On Fri, 29 Apr 2016, Nicolas Morey Chaisemart

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-10 Thread Jerome Glisse
On Tue, May 10, 2016 at 09:04:36AM +0200, Nicolas Morey Chaisemartin wrote: > Le 05/03/2016 à 12:11 PM, Jerome Glisse a écrit : > > On Mon, May 02, 2016 at 09:04:02PM -0700, Hugh Dickins wrote: > >> On Fri, 29 Apr 2016, Nicolas Morey Chaisemartin wrote: > >> > >>> Hi everyone, > >>> > >>> This is a

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-03 Thread Kirill A. Shutemov
On Tue, May 03, 2016 at 12:11:54PM +0200, Jerome Glisse wrote: > On Mon, May 02, 2016 at 09:04:02PM -0700, Hugh Dickins wrote: > > On Fri, 29 Apr 2016, Nicolas Morey Chaisemartin wrote: > > > > > Hi everyone, > > > > > > This is a repost from a different address as it seems the previous one > >

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-03 Thread Jerome Glisse
On Mon, May 02, 2016 at 09:04:02PM -0700, Hugh Dickins wrote: > On Fri, 29 Apr 2016, Nicolas Morey Chaisemartin wrote: > > > Hi everyone, > > > > This is a repost from a different address as it seems the previous one > > ended in Gmail junk due to a domain error.. > > linux-kernel is a very hig

Re: [Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-05-02 Thread Hugh Dickins
On Fri, 29 Apr 2016, Nicolas Morey Chaisemartin wrote: > Hi everyone, > > This is a repost from a different address as it seems the previous one ended > in Gmail junk due to a domain error.. linux-kernel is a very high volume list which few are reading: that also will account for your lack of r

[Question] Missing data after DMA read transfer - mm issue with transparent huge page?

2016-04-29 Thread Nicolas Morey Chaisemartin
Hi everyone, This is a repost from a different address as it seems the previous one ended in Gmail junk due to a domain error.. I added more info found while blindly debugging the issue. Short version: I'm having an issue with direct DMA transfer from a device to host memory. It seems some of th

Re: [Question] Missing data after DMA read transfer

2016-04-27 Thread Nicolas Morey-Chaisemartin
I ran some more tests: * Test is OK if transparent huge tlb are disabled * For all the page where data are not transfered, and only those pages, a call to get_user_page(user vaddr) just before dma_unmap_sg returns a different page from the original one. [436477.927279] mppa :03:00.0: org_pa

Re: [Question] Missing data after DMA read transfer

2016-04-26 Thread Nicolas Morey-Chaisemartin
PIng. I could really use some help/feedback on this. Thanks in advance Nicolas Le 04/25/2016 à 08:18 AM, Nicolas Morey-Chaisemartin a écrit : > Le 04/20/2016 à 04:56 PM, Nicolas Morey-Chaisemartin a écrit : >> Hi everyone, >> >> Short version: >> I'm having an issue with direct DMA transfer fr

Re: [Question] Missing data after DMA read transfer

2016-04-24 Thread Nicolas Morey-Chaisemartin
Le 04/20/2016 à 04:56 PM, Nicolas Morey-Chaisemartin a écrit : > Hi everyone, > > Short version: > I'm having an issue with direct DMA transfer from a device to host memory. > It seems some of the data is not transferring to the appropriate page. > > Some more details: > I'm debugging a home made P

Re: [Question] Missing data after DMA read transfer

2016-04-21 Thread Nicolas Morey-Chaisemartin
Le 04/21/2016 à 10:35 AM, One Thousand Gnomes a écrit : >> But if I try to copy_from_user (using the address coming from userland, the >> one passed to get_user_pages), the data has not been written and I see the >> memset value. >> >> I manage to build a test case that fails all the time, but

Re: [Question] Missing data after DMA read transfer

2016-04-21 Thread One Thousand Gnomes
> But if I try to copy_from_user (using the address coming from userland, the > one passed to get_user_pages), the data has not been written and I see the > memset value. > > I manage to build a test case that fails all the time, but never at the same > offset within the buffer. > It's always i

[Question] Missing data after DMA read transfer

2016-04-20 Thread Nicolas Morey-Chaisemartin
Hi everyone, Short version: I'm having an issue with direct DMA transfer from a device to host memory. It seems some of the data is not transferring to the appropriate page. Some more details: I'm debugging a home made PCI driver for our board (Kalray), attached to a x86_64 host running centos7