Re: [PATCH RFC 1/1] module: delay kobject uevent until after module init call

2020-12-03 Thread Nicolas Morey-Chaisemartin
I tested this on a system that had the script in patch#0 fail 100% of the time. With this patch, I haven't seen any failure in a few hours. Haven't seen any unexpected side effect either. Tested-By: Nicolas Morey-Chaisemartin On 12/3/20 2:51 PM, Jessica Yu wrote: > Apparently the

Re: [PATCH] checkpatch: add --strict "pointer comparison to NULL" test

2015-08-27 Thread Nicolas Morey Chaisemartin
- Original Message - > From: "Joe Perches" > To: "Viresh Kumar" > Cc: "Andrew Morton" , "Dan Carpenter" > , "Greg KH" > , "LKML" , "Mike > Holmes" , > nmo...@kalray.eu > Sent: Thursday, 27 August, 2015 5:05:37 AM > Subject: Re: [PATCH] checkpatch: add --strict "pointer comparison to NUL

[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 - 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 F

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: >>>

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 F

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: >&

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: >&

Re: [Question] Missing data after DMA read transfer

2016-04-27 Thread Nicolas Morey-Chaisemartin
mapping: (null) index:0x2 [436477.927382] page flags: 0x2f8000(tail) [436477.927421] page dumped because: cur_page I'm not sure what to make of this... Nicolas Le 04/25/2016 à 08:18 AM, Nicolas Morey-Chaisemartin a écrit : > Le 04/20/2016 à 04:56 PM, Nicolas Morey-Chaise

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 wrot

[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

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-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: &

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 a

[BUG] bad runqueue clock/ktime value at init?

2016-11-29 Thread Nicolas Morey-Chaisemartin
Hi everyone, After upgrading my worksation (ASUS Rampage IV GENE motherboard, Core(TM) i7-3820) to a kernel >= 4.6, I noticed bad performances and htop showing "0" CPU usage on all processes. /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq showed for all cores. Bisect pointed me to a comm

put_page vs release_pages

2016-09-29 Thread Nicolas Morey-Chaisemartin
Hi, Can someone explain to me what is the difference between put_page and release_pages and which one should be used when ? To explain my case: We have a PCIe driver than transfers data between user process (read/write scalls) to a PCI device, using DMA. We followed the DMA guide so the code ba